Code: Select all
idstring "ZWS"
get VERSION byte
get SIZE long #uncludes first 8 bytes; quickbms finds uncompressed size automatically
get ZSIZE long
math ZSIZE += 5
comtype lzma
log MEMORY_FILE 0 8
putvarchr MEMORY_FILE 0 0x46
append
clog MEMORY_FILE 12 ZSIZE SIZE
append
get NAME basename
string NAME += "_unpacked.swf"
log NAME 0 SIZE MEMORY_FILE