I am going step by step on extract the war3map.j file using storm.dll. Here is the problem I noticed.
In order to extract the file. The tool needs to find out the file size using the command SFileGetFileSize.
The size I see from there is the following. 1,962,183,826
I am not sure if that is the correct size, or if it is in bits or bytes. I think it is Bytes because after that the .dll is calling making an array of bytes:
byte[] outputBuffer = new byte[fileSize - 1];
So if that almost 2 billion number file is the byte size. Divide that to 1024 to get the KB size. We Get: 1,916,195 KB.
Translate that to MB that is another 1024 division. That makes it 1,871 MB. Which is almost 2 gigs.
That can't be true as the map is a-lot smaller than that. So I guess there is something making the check sum of the file size way too big.
I can't give it any more testing as I gotta run now. I will get to it (if I remember) in 2 weeks or so
Edit: Now it seems the FileSize I get is: 8,120,899,978,316,623,025.
Doesn't matter really. I am sure its a mistake anyway...