Function at 0x40b290
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b597
sub esp, 0x40
mov eax, dword [esp + 0x44]
cmp eax, 0x7000000
jle 0x40b2bb
mov eax, 0x7000000
jmp 0x40b2c3
test eax, eax
je 0x40b572
mov dword [esp + 0x3c], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x90]
mov ebx, dword [ecx + 0x94]
mov dword [ecx + 0x90], ebx
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
mov dword [ecx + 0x94], ebp
mov dword [esp + 4], 0
lea ecx, [ebp + ebx]
shr ecx, 6
inc ecx
mov dword [esp], ecx
call fcn.00449bb0
mov eax, dword [esp + 0xc]
mov ecx, eax
shr eax, 0x14
and eax, 0x7ff
mov edx, eax
add eax, 0xfffffc01
mov ebx, ecx
shr ecx, 0xf
and ecx, 0x1f
mov ebp, ecx
add ecx, 1
mov esi, 0
adc esi, 0
mov edi, dword [esp + 8]
shl ebx, 5
shr edi, 0x1b
or edi, ebx
mov dword [esp + 0x38], edi
lea ebx, [0x5f8d40]
lea ebp, [ebx + ebp*8]
mov edi, dword [ebp]
mov ebp, dword [ebp + 4]
test esi, esi
jne 0x40b58a
cmp ecx, 0x21
jae 0x40b57e
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], edi
add edx, 0xfffffc01
mov edx, 0xffffffff
adc edx, 0
lea ecx, [ebx + ecx*8]
mov ebx, dword [ecx]
mov dword [esp + 0x2c], ebx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00449bb0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
call fcn.00447e00
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov edx, dword [esp + 0x34]
xor edx, 0x80000000
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], edx
call fcn.00447e00
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov dword [esp + 4], 0
mov edx, dword [esp + 0x38]
and edx, 0xfffff
mov dword [esp], edx
call fcn.00449d70
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00448480
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0xc], 0x3eb00000
mov dword [esp + 8], 0
call fcn.00448480
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x20]
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call fcn.00447e00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0xc], 0xc03a0000
mov dword [esp + 8], 0
call fcn.00447e00
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call fcn.00449aa0
movzx eax, byte [esp + 0x10]
test al, al
je 0x40b4ed
xor eax, eax
xor ecx, ecx
jmp 0x40b4f5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
call fcn.00449b60
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0xbfe62e42
mov dword [esp], 0xfefa39ef
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call fcn.00448480
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x34]
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call fcn.00448480
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00449c00
mov eax, dword [esp + 8]
inc eax
mov dword [esp + 0x48], eax
add esp, 0x40
ret
mov dword [esp + 0x48], 0
add esp, 0x40
ret
mov eax, ecx
mov ecx, 0x21
call fcn.0045ef00
mov eax, ecx
mov ecx, 0x21
call fcn.0045efb0
nop
call fcn.0045daa0
jmp fcn.0040b290