40 bytes header

0  4 bytes 'VMGP'
4  2 bytes ???
6  2 bytes ???
8  2 bytes Stack size/4
A  1 byte ???
B  1 byte XXX Highest bit represents wheter resources are included in the file
C  4 bytes CodeSize ; has to be 0 mod 4
10 4 bytes DataSize ; has to be 0 mod 4
14 4 bytes BssSize
18 4 bytes ResSize
1C 4 bytes ???
20 4 bytes PoolSize (must not be 0)
24 4 bytes StringSize

mod_structure:

0  4 bytes ???
4  4 bytes ???
8  4 bytes CodeSize
C  4 bytes ???
10 4 bytes ???
14 4 bytes DataSize
18 4 bytes ResSize
1C 4 bytes ???
20 4 bytes ???
24 4 bytes ???
2C 4 bytes PoolSize
30 4 bytes StringsPtr
34 4 bytes ???
38 4 bytes XXX AND 0x80


	