math OFFSET = 0x348EA0 #Starts by going to address 0x348EA0 to bypass a coincidental "BTX0" ASCII value earlier in the file do goto OFFSET #Goes to the address identified above get DUMMY long #Skips four bytes get DUMMY long #Skips four bytes get SIZE long #Records the next four bytes as the file size getdstring DUMMY 0x60 #Skips 0x60 bytes getdstring NAME 0xC #Records the next 0xC bytes as the file name string NAME + ".NSBTX" #Modifies the recorded filename by adding the ".NSBTX" extension log NAME OFFSET SIZE #Writes the file defined by the above lines findloc NEXT_OFFSET string "BTX0" 0 "" #Finds the next instance of text string "BTX0" and records its address as the variable NEXT_OFFSET math OFFSET = NEXT_OFFSET #Sets the OFFSET variable to equal NEXT_OFFSET defined above while NEXT_OFFSET < 0xC4A340 #Loops back to the first line of code after the "do" command, provided a NEXT_OFFSET was found prior to address 0xC4A340. All uncompressed .BTX0 files are encountered before that address.