# Dawn of Magic 2 # script for QuickBMS http://aluigi.org/papers.htm#quickbms get FILES long get FILES64 long for i = 0 < FILES getdstring NAME 0x40 get SIZE long get ZSIZE long get OFFSET long get OFFSET64 long getdstring TIMESTAMP 8 get TYPE long filerot "\x4c\xbe\xcf\x0c\x92\x75\x03\x25\xac\xc7\xb4\x6e\x83\xee\xc6\x4f\x61\xe1\x6b\xd9\x29\x68\xb9\x5b\x8d\x4a\xf7\xee\xce\xf8\x7b\xe4\x9f\x50\x93\x6a\x66\x93\x63\xa1\x67\x0d\x4a\x29\x7f\x78\x48\x90\xa6\xa4\x76\x65\xda\x74\x4b\x4b\x51\xf7\x8e\x83\xb1\xf4\xce\x49\x40\x97\x97\x79\x96\x19\x48\xed\x3d\xf9\x2a\x2f\x17\xc0\xa0\xd1\x58\x60\x07\x78\x5f\xe2\x24\x2a\xe1\xbc\x60\xf9\x96\xf0\x6d\x2b\xa7\xf4\xfd\x18\xc7\xc2\x2e\x6f\x1c\xb8\x2c\x1a\x3b\x78\x1a\x4d\x7c\x91\x5d\x42\xd6\x57\xbe\x16\x44\x84\x34\x3d\x20\x95\x90\x0c\xbd\x91\xf4\x81\x40\x81\x4c\x77\xcd\x38\xaf\x8e\xd7\x3c\xa2\xb4\x78\x83\xda\xec\x7b\x5d\x78\xdf\xf9\x06\xcf\x2f\x02\x45\xb5\x9e\xba\x09\xa1\x12\xc6\xe3\x36\x65\x71\xf2\xff\x4d\xe5\x31\x3c\xb9\xc4\x9f\xf1\x8e\x80\x17\xfd\x00\xbf\x95\x6d\xcc\x51\xc2\xa1\xf5\x60\x3b\x24\x59\xb1\xf7\x16\x42\xb3\x86\x3a\x02\xfd\xc1\x28\x0d\xf8\x0e\xc9\x0a\x9e\x3a\x95\x2e\x6d\x9a\x51\x36\x71\x78\x61\x25\x1d\xc9\x72\x71\x8b\x45\x9d\xf6\xda\x9c\xfa\x11\x97\x56\xcc\x72\x03\x72\x18\xba\x20\x99\x31\x0a\x1b\x93\x4d\x34\x4d\x9d\x3d\xd3\x76\x83\x20\xd4\xb1\x35\x1a\x43\x6f\x3c\x65\x4e\xfa\x75\xbf\xe2\x80\xb3\xff\x7b\x75\x91\xce\x28\xcd\xee\xca\x1a\xef\x0f\xd6\x63\x78\x59\xcc\xbe\x9b\xd8\xad\xbe\xbf\xbe\x4d\x59\xf6\x12\xad\x2a\x64\xdf\x17\x77\x49\x10\x6d\xad\xb6\x08\x44\x90\xc2\xd7\x82\x9e\x1c\xb5\x04\xcc\xf7\x9f\xab\x62\x91\xd3\x59\xa1\x35\xac\xcc\x0f\x39\x51\x83\xa1\x6e\xd9\x07\x2b\xba\x82\xa3\x5e\x65\x06\x84\x22\xf6\x00\xef\xd1\x9c\x2c\xaa\x82\xf9\xf5\x59\xe1\xee\xad\x04\xde\xff\x0f\x0c\x9e\x97\x6e\x19\xe7\x04\x0f\xf3\x30\x13\x31\xfa\xff\x99\xe2\x0f\x7d\x5f\x66\x61\xb5\x38\x39\x3e\x6d\xb9\x03\x6c\x81\x09\x8e\x31\xe6\x1c\xdf\xbd\x82\x50\x07\x9d\xdb\xf3\x03\x06\x4d\xb4\x3f\xfe\x53\x37\x51\x5f\xc2\x4e\x4d\x06\xed\xdb\x62\xaa\xda\x30\x0e\x03\x42\xa2\x6e\xff\x76\x5e\xb5\x49\x5c\xea\xbc\xa6\xbb\xdc\xe2\x66\x66\xf7\x7f\x40\x8e\x21\x2a\x61\x51\x88\xba\x20\x61\xa4\x6b\x7b\x91\x2f\xc4\x19\x8e\x46\xd6\x21\x7f\x1d\xca\x08\xeb\xc1\xc9\x1f\x68\x54\x03\x9c\x1f\xd4\xda\x43\x23\x98\x59\x04\x84\x91\x8c\xcf\x86\x86\x1c\x0f\xc1\x99\xcf\x30\x6c\x33\xa1\x30\x0e\xd4\x5e\x07\x4e\x06\x2d\x9f\x46\xef\x24\xa5\x7e\x4d\xa2\x17\xeb\x13\xfe\xd0\x67\x5d\xea\x95\x05\xb5\xb4\xa2\xb3\xca\x60\x8b\x7e\x60\x89\x89\xb9\xcd\x42\xa9\x5c\xaf\x5f\x5d\x42\xa0\xf0\xdb\xcf\xa4\xa3\x9f\xfe\xac\x7d\x8b\x66\x4f\xd3\xa6\x91\xaa\x1c\xc2\x15\xcd\x46\xf4\x26\xdd\x33\x68\xd3\x2a\x7d\x1c\xa3\x3a\xf3\x1f\x0d\xd7\x3b\x83\xe7\xcb\x40\x0b\xf0\x0d\x61\x16\xb4\x4b\x80\x69\x10\x62\xa9\x8e\xcf\x3a\x48\xa0\x60\xf3\xc9\x2e\x44\x39\xd7\x7a\x65\x2b\x02\xb3\x01\x57\xe7\x10\x5b\x0f\xcb\x57\xda\x99\x88\x3f\x48\xd1\x9a\x16\xcc\xff\xc6\x83\x63\x73\x23\x1e\xc9\x30\xf9\x23\xa6\xeb\x98\x98\x6a\x2b\x1b\x5d\xd9\xce\xf4\x08\xab\x50\x07\x43\xe8\x21\x88\xe7\x4a\xa7\xcc\x38\x50\x17\xd8\x15\xab\xe8\x67\xcf\xf5\x72\x46\x87\x12\xb4\x7d\xdf\x49\x61\x63\x56\xdb\xd8\x38\x22\xb4\x90\x41\xb4\x91\xc8\x0b\x5e\x78\x0b\xb6\x27\x08\x7e\x95\x13\x90\x81\x4d\x3b\xdc\xe7\xcc\x85\x80\x57\x75\xdc\xed\x0e\x8c\xed\xb6\x89\x34\x35\xea\x5b\x1a\x63\x84\xf5\x05\x42\x63\x4d\x00\x5a\xa4\x85\x69\xa2\x7e\x16\x0f\xb4\xb2\xf1\xe8\xda\xd7\x1d\x95\x5d\x15\x11\x98\xd6\x3c\x11\xaa\x6a\xbe\xef\x44\xb3\x5c\x2b\xca\x33\x46\xe9\x93\x43\x3a\xd5\x64\xf5\x18\x36\xa7\x8b\x90\xce\x60\x7e\x10\x3a\xee\x64\x64\xd6\x3e\x7d\x07\xa2\xc0\xd0\x6e\xcf\x89\xde\xb7\xee\x77\xa8\xf0\x10\xbc\x39\xb1\x7c\xab\x27\x9f\xa8\xf3\xa0\x68\xab\x0e\x35\x9e\x57\x10\x76\x5a\xd0\x80\xca\x60\x93\xaa\x06\x97\x89\x23\xca\x6b\x03\x47\xfc\xa7\x6b\x3c\xe8\x62\x39\x79\x0f\x2f\xc5\x9b\x54\xbd\xd2\xed\xa1\x3a\xb7\xd3\x08\x72\xa7\x42\xe2\x52\x19\x8c\xae\x71\x6c\xcf\x16\x1d\xc2\x57\x70\x27\x88\x9d\x5b\x19\x61\xe0\xf6\xb6\x6c\x43\x9c\x9c\xdc\x30\xc7\x41\xb2\x6c\x25\x30\x24\x33\xff\xe2\x74\x1f\x93\x4d\x74\x92\x19\xf5\xc8\xa6\x8d\xed\x11\xbe\xc5\x42\xbe\x04\x07\xe2\xea\xf2\xf6\x3c\xa3\x27\x16\x12\x19\xa5\xce\x61\x54\x1d\xf0\x87\x2d\x66\x3c\xe3\x66\x3c\x08\xa9\xf0\x0f\x90\x5c\x8a\xea\x38\xca\x56\x2c\x1d\x94\xa2\x06\x1b\x9c\x92\xf4\x9d\xb3\x14\x92\xc5\x4c\xbc\x83\x9f\x24\x68\x23\x43\xb1\xb6\x6e\x5b\x38\x54\xfc\xaf\x5a\xe8\x72\x5b\xd3\xe9\x8d\xfe\x0d\xa8\x4d\x48\x6e\x41\xdc\x3c\xba\xd1\x64\x28\xd0\x1f\xbb\x75\xc7" OFFSET if TYPE == 0 log NAME OFFSET SIZE elif TYPE == 4 log NAME OFFSET SIZE elif TYPE == 5 clog NAME OFFSET ZSIZE SIZE else print "Error: unknown compression type %TYPE%" cleanexit endif filerot "" next i