Code:
# Megaman X 7 .emi
# script for QuickBMS http://quickbms.aluigi.org
get ENTRYCOUNT long
get BLOCKSIZE long
idstring "MATH_TBL"
math OFFSET = BLOCKSIZE
get FILENAME BASENAME
for i = 0 < ENTRYCOUNT
get SIZE long
get BLOCKCOUNT short
get UNK2 short
get UNK3 short
get UNK4 short
padding 16
savepos NEXTENTRY
string NAME = FILENAME
string NAME += "_"
string NAME += i
string NAME += "."
string NAME += UNK4
log NAME OFFSET SIZE
goto OFFSET
goto SIZE 0 SEEK_CUR
padding BLOCKSIZE
savepos OFFSET
goto NEXTENTRY
next i