idstring "BTDX" get VERSION long getdstring TYPE 0x4 get FileCount long get NameTableStart longlong if TYPE == "GNRL" goto NameTableStart for i = 0 < FileCount get NameSize byte get null byte getdstring names[i] NameSize next i goto 0x18 ComType zlib for i = 0 < FileCount get unk1 long getdstring Extension 0x4 get unk2 long get unk3 long get offset longlong get packedLength long get unpackedLength long get unk4 long clog names[i] offset packedLength unpackedLength next i endif if TYPE == "DX10" print "Sorry, but DX10 extraction support is not implemented yet!" endif