Function at 0x1007cdd0
Capabilities:
Decompress data using quicklz

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
cmp dword [eax + 0x14], 0x10
jb 0x1007cde0
mov eax, dword [eax]
push 0x10199ae4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x1007d0dd
mov edx, dword [edi]
mov ecx, edx
shr ecx, 0xa
mov eax, edx
shr eax, 8
and ecx, 1
push ecx
and eax, 1
mov ecx, edx
shr ecx, 9
and ecx, 1
push ecx
push eax
mov eax, edx
shr eax, 7
and eax, 1
push eax
mov eax, edx
shr eax, 6
and eax, 1
push eax
mov eax, edx
shr eax, 5
and eax, 1
push eax
mov eax, edx
shr eax, 4
and eax, 1
push eax
mov eax, edx
and edx, 7
shr eax, 3
and eax, 1
push eax
push edx
push str.PRIM_n_tPRIM:_u_n_tIIP:_u_n_tTME:_u_n_tFGE:_u_n_tABE:_u_n_tAA1:_u_n_tFST:_u_n_tCTXT:_u_n_tFIX:_u_n_n
push esi
call fcn.1001d650
mov ecx, dword [edi + 8]
add esp, 0x2c
mov eax, ecx
shr eax, 0xa
and eax, 1
push eax
mov eax, ecx
shr eax, 9
and eax, 1
push eax
mov eax, ecx
shr eax, 8
and eax, 1
push eax
mov eax, ecx
shr eax, 7
and eax, 1
push eax
mov eax, ecx
shr eax, 6
and eax, 1
push eax
mov eax, ecx
shr eax, 5
and eax, 1
push eax
mov eax, ecx
shr eax, 4
and eax, 1
push eax
mov eax, ecx
and ecx, 7
shr eax, 3
and eax, 1
push eax
push ecx
push str.PRMODE__when_AC0__n_t_PRIM:_u_n_tIIP:_u_n_tTME:_u_n_tFGE:_u_n_tABE:_u_n_tAA1:_u_n_tFST:_u_n_tCTXT:_u_n_tFIX:_u_n_n
push esi
call fcn.1001d650
mov eax, dword [edi + 0x10]
add esp, 0x2c
and eax, 1
push eax
push str.PRMODECONT_n_tAC:_u_n_n
push esi
call fcn.1001d650
mov ecx, dword [edi + 0x18]
add esp, 0xc
mov eax, ecx
shr eax, 0xc
and eax, 0x3ff
push eax
mov eax, ecx
shr ecx, 6
and eax, 0x3f
and ecx, 0x3f
push eax
push ecx
push str.TEXCLUT_n_tCOU:_u_n_tCBW:_u_n_tCOV:_u_n_n
push esi
call fcn.1001d650
mov eax, dword [edi + 0x20]
add esp, 0x14
and eax, 3
push eax
push str.SCANMSK_n_tMSK:_u_n_n_n
push esi
call fcn.1001d650
movzx eax, byte [edi + 0x2c]
add esp, 0xc
push eax
movzx eax, byte [edi + 0x28]
push eax
movzx eax, byte [edi + 0x29]
shr eax, 7
push eax
push str.TEXA_n_tAEM:_u_n_tTA0:_u_n_tTA1:_u_n_n
push esi
call fcn.1001d650
movzx eax, byte [edi + 0x30]
add esp, 0x14
push eax
movzx eax, byte [edi + 0x32]
push eax
movzx eax, byte [edi + 0x31]
push eax
push str.FOGCOL_n_tFCG:_u_n_tFCB:_u_n_tFCR:_u_n_n
push esi
call fcn.1001d650
mov ecx, dword [edi + 0x38]
add esp, 0x14
mov edx, dword [edi + 0x3c]
lea eax, [ecx + ecx]
sar eax, 0x1d
push eax
mov eax, ecx
shl eax, 0x1d
sar eax, 0x1d
push eax
mov eax, edx
shl eax, 5
sar eax, 0x1d
push eax
mov eax, edx
shl eax, 0x1d
sar eax, 0x1d
push eax
mov eax, ecx
shl eax, 0xd
sar eax, 0x1d
push eax
mov eax, ecx
shl eax, 9
sar eax, 0x1d
push eax
mov eax, edx
shl eax, 0xd
sar eax, 0x1d
push eax
lea eax, [edx + edx]
sar eax, 0x1d
push eax
mov eax, ecx
shl eax, 0x19
sar eax, 0x1d
push eax
mov eax, ecx
shl eax, 0x11
sar eax, 0x1d
push eax
mov eax, ecx
shl ecx, 0x15
shl eax, 5
sar eax, 0x1d
push eax
mov eax, edx
sar ecx, 0x1d
shl eax, 0x19
sar eax, 0x1d
push eax
mov eax, edx
shl eax, 9
push ecx
sar eax, 0x1d
push eax
mov eax, edx
shl edx, 0x15
shl eax, 0x11
sar eax, 0x1d
push eax
sar edx, 0x1d
push edx
push str.DIMX_n_tDM22:_d_n_tDM23:_d_n_tDM31:_d_n_tDM02:_d_n_tDM21:_d_n_tDM12:_d_n_tDM03:_d_n_tDM01:_d_n_tDM33:_d_n_tDM30:_d_n_tDM11:_d_n_tDM10:_d_n_tDM20:_d_n_tDM32:_d_n_tDM00:_d_n_tDM13:_d_n_n
push esi
call fcn.1001d650
mov eax, dword [edi + 0x40]
and eax, 1
push eax
push str.DTHE_n_tDTHE:_u_n_n
push esi
call fcn.1001d650
mov eax, dword [edi + 0x48]
add esp, 0x54
and eax, 1
push eax
push str.COLCLAMP_n_tCLAMP:_u_n_n
push esi
call fcn.1001d650
mov eax, dword [edi + 0x50]
add esp, 0xc
and eax, 1
push eax
push str.PABE_n_tPABE:_u_n_n
push esi
call fcn.1001d650
mov ecx, dword [edi + 0x5c]
add esp, 0xc
mov edx, dword [edi + 0x58]
mov eax, ecx
and eax, 0x3fff
push eax
mov eax, ecx
shr ecx, 0x10
shr eax, 0x18
and ecx, 0x3f
and eax, 0x3f
push eax
mov eax, edx
push ecx
shr eax, 0x18
and eax, 0x3f
push eax
mov eax, edx
shr edx, 0x10
and eax, 0x3fff
and edx, 0x3f
push eax
push edx
push str.BITBLTBUF_n_tSBW:_u_n_tSBP:0x_x_n_tSPSM:_u_n_tDBW:_u_n_tDPSM:_u_n_tDBP:0x_x_n_n
push esi
call fcn.1001d650
mov eax, dword [edi + 0x60]
and eax, 3
push eax
push str.TRXDIR_n_tXDIR:_u_n_n
push esi
call fcn.1001d650
mov edx, dword [edi + 0x6c]
add esp, 0x2c
mov ecx, dword [edi + 0x68]
mov eax, edx
shr eax, 0x10
and eax, 0x7ff
push eax
mov eax, edx
and eax, 0x7ff
push eax
mov eax, edx
shr edx, 0x1b
shr eax, 0x1c
and edx, 1
and eax, 1
push eax
mov eax, ecx
shr ecx, 0x10
and eax, 0x7ff
and ecx, 0x7ff
push eax
push ecx
push edx
push str.TRXPOS_n_tDIRY:_u_n_tSSAY:_u_n_tSSAX:_u_n_tDIRX:_u_n_tDSAX:_u_n_tDSAY:_u_n_n
push esi
call fcn.1001d650
mov eax, dword [edi + 0x70]
and eax, 0xfff
push eax
mov eax, dword [edi + 0x74]
and eax, 0xfff
push eax
push str.TRXREG_n_tRRH:_u_n_tRRW:_u_n_n
push esi
call fcn.1001d650
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
pop edi
pop esi
ret 4