get fileCount byte goto 0x10 for i = 0 < fileCount get fileSize long goto 0xC 0 SEEK_CUR savepos startOffset xmath startOffset "startOffset + 0x40" get name string string name += ".tm2" goto startOffset log name startOffset fileSize xmath startOffset "startOffset + fileSize" goto startOffset next i