blender would be a suitable application to use for this, you basically just need to get a DTS Plugin which can be found
here and basically you need to scale the hat to properly fit the model of the head, and do whatever other tweaks you need for the hat, as well as compress it so there isn't many polygons then export it along with the textures into a folder, place it in a Rar Archive and done.