Function at 0x40b870
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x52054c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40bb74
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40b899
mov eax, 0x7000000
jmp 0x40b8a1
test eax, eax
je 0x40bb4d
mov dword [esp + 0x34], eax
mov ecx, dword [0x52054c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x4a4]
mov ebx, dword [ecx + 0x4a8]
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 + 0x4a4], ebx
mov dword [ecx + 0x4a8], ebp
mov dword [esp], edx
mov dword [esp + 4], 0
call sym.runtime.fint64to64
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, ecx
shr ecx, 0x14
and ecx, 0x7ff
mov ebx, edx
shr edx, 0xf
and edx, 0x1f
shl ebx, 5
shr eax, 0x1b
or eax, ebx
lea ebx, [0x4de800]
lea ebp, [ebx + edx*8]
mov esi, ecx
add ecx, 0xfffffc01
add edx, 1
mov edi, 0
adc edi, 0
test edi, edi
jne 0x40bb65
cmp edx, 0x21
jae 0x40bb59
add esi, 0xfffffc01
mov esi, 0xffffffff
adc esi, 0
and eax, 0xfffff
mov dword [esp + 0x18], eax
mov edi, dword [ebp]
mov dword [esp + 0x30], edi
mov ebp, dword [ebp + 4]
mov dword [esp + 0x2c], ebp
lea edx, [ebx + edx*8]
mov ebx, dword [edx]
mov dword [esp + 0x28], ebx
mov edx, dword [edx + 4]
mov dword [esp + 0x24], edx
mov dword [esp], ecx
mov dword [esp + 4], esi
call sym.runtime.fint64to64
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
call sym.runtime.fadd64
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x28]
mov dword [esp], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x2c]
xor edx, 0x80000000
mov dword [esp + 0xc], edx
call sym.runtime.fadd64
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp], edx
mov dword [esp + 4], 0
call sym.runtime.fuint64to64
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call sym.runtime.fmul64
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x3eb00000
call sym.runtime.fmul64
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [esp], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call sym.runtime.fadd64
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0xc03a0000
call sym.runtime.fadd64
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call sym.runtime.fgt64
movzx eax, byte [esp + 0x10]
test al, al
je 0x40bac8
xor eax, eax
xor ecx, ecx
jmp 0x40bad0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x34]
mov dword [esp], edx
call sym.runtime.fint32to64
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0xfefa39ef
mov dword [esp + 4], 0xbfe62e42
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call sym.runtime.fmul64
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call sym.runtime.fmul64
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.runtime.f64toint32
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, edx
mov ecx, 0x21
call sym.runtime.panicIndexU
mov esi, edi
mov eax, edx
mov ecx, 0x21
call sym.runtime.panicExtendIndexU
nop
call sym.runtime.morestack_noctxt
jmp sym.runtime.fastexprand