Nicknine

EA ASF Scanner

Jul 16th, 2018 (edited)
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # Extracts individual EA SCHl format files from archives.
  2. # Script for QuickBMS: https://aluigi.altervista.org/quickbms.htm
  3.  
  4. get BNAME basename
  5.  
  6. for i = 0
  7. # Find SCHl header
  8. findloc OFFSET string "SCHl" 0
  9. goto OFFSET
  10.  
  11. # Find SCEl block (end marker)
  12. do
  13. get BLOCKID long
  14. get BLOCKSIZE long
  15. math BLOCKSIZE - 8
  16. goto BLOCKSIZE 0 SEEK_CUR
  17. while BLOCKID != 0x6C454353 # SCEl
  18.  
  19. savepos SIZE
  20. math SIZE - OFFSET
  21.  
  22. string NAME p "%s_%d.asf" BNAME i
  23. log NAME OFFSET SIZE
  24. next i
Add Comment
Please, Sign In to add comment