Function at 0x40bf50
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x62920c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40c255
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40bf79
mov eax, 0x7000000
jmp 0x40bf81
test eax, eax
je 0x40c22e
mov dword [esp + 0x34], eax
mov ecx, dword [0x62920c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x94]
mov ebx, dword [ecx + 0x98]
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
lea edx, [ebp + ebx]
shr edx, 6
inc edx
mov dword [ecx + 0x94], ebx
mov dword [ecx + 0x98], ebp
mov dword [esp + 4], 0
mov dword [esp], edx
call fcn.004507c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, eax
shr edx, 0x14
and edx, 0x7ff
mov ebx, eax
shr ebx, 0xf
and ebx, 0x1f
shl eax, 5
shr ecx, 0x1b
or ecx, eax
lea eax, [0x5f9d00]
lea ebp, [eax + ebx*8]
mov esi, edx
add edx, 0xfffffc01
add ebx, 1
mov edi, 0
adc edi, 0
test edi, edi
jne 0x40c246
cmp ebx, 0x21
jae 0x40c23a
add esi, 0xfffffc01
mov esi, 0xffffffff
adc esi, 0
and ecx, 0xfffff
mov dword [esp + 0x18], ecx
mov edi, dword [ebp]
mov dword [esp + 0x30], edi
mov ebp, dword [ebp + 4]
mov dword [esp + 0x2c], ebp
lea eax, [eax + ebx*8]
mov ebx, dword [eax]
mov dword [esp + 0x28], ebx
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 4], esi
mov dword [esp], edx
call fcn.004507c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
call fcn.0044eb90
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x28]
mov dword [esp], edx
mov edx, dword [esp + 0x2c]
xor edx, 0x80000000
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], edx
call fcn.0044eb90
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov dword [esp + 4], 0
mov edx, dword [esp + 0x18]
mov dword [esp], edx
call fcn.00450980
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0044f1f0
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.0044f1f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call fcn.0044eb90
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.0044eb90
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call fcn.004506b0
movzx eax, byte [esp + 0x10]
test al, al
je 0x40c1a9
xor eax, eax
xor ecx, ecx
jmp 0x40c1b1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x34]
mov dword [esp], edx
call fcn.00450770
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.0044f1f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call fcn.0044f1f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00450810
mov eax, dword [esp + 8]
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, ebx
mov ecx, 0x21
call fcn.00469930
mov esi, edi
mov eax, ebx
mov ecx, 0x21
call fcn.004699f0
nop
call fcn.00468500
jmp fcn.0040bf50