get FILESIZE asize
get NAME BASENAME
string NAME + ".txt"

for
	savepos OFFSET

	get MAGIC longlong
	get SIZE long


	if MAGIC == 0x31BE502435317445

		get UNK longlong
		get UNK longlong


		get STR_SIZE short
		savepos OFFSET_STR
		
		slog NAME OFFSET_STR STR_SIZE
	

	endif
	xmath NEXTOFF "OFFSET + SIZE + 12"
	
	if NEXTOFF == FILESIZE
		cleanexit
	endif
	goto NEXTOFF

next