Advertisement
Dimitri_UA

Untitled

Jan 27th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. --header
  2. 4b signature
  3. 4b limit count 1
  4. 4b limit count 2
  5. 4b limit count 3
  6. 4b TotalNumOfResources 4181 totalSize = (2 * 4181 + 4119) & 0xFFFFF000 = 0x3000
  7. 4b NumResourceBlocks 141208 total resource blocks size = 141208 * 4096 = 22798000 (offset to 2nd table)
  8. --first table
  9. 4072b resource offsets table (2b per offset)
  10.  
  11. --resources (each resource is aligned with 0x1000 (4096) bytes
  12.  
  13. --second table
  14. @22798000 additional table, size = 0x10C0
  15. we read first 4096 bytes in file (header + first table), then skip to this additional table and read it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement