Function at 0x40bbd0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40bc5b
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x40bbf3
mov ecx, dword [ecx + 0x30]
jmp 0x40bbf9
mov ecx, dword [0x93edf0]
test ecx, ecx
je 0x40bc44
mov edx, dword [0x8ed360]
cmp edx, 1
jne 0x40bc0c
xor edx, edx
jmp 0x40bc26
mov dword [esp + 0xc], ecx
mov dword [esp], edx
call fcn.0040bc70
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, eax
mov eax, dword [esp + 0x14]
mov dword [ecx], edx
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
call fcn.0042e000
add esp, 0x10
ret
lea eax, [0x7302ae]
mov dword [esp], eax
mov dword [esp + 4], 0x38
call fcn.0046ad70
nop
call fcn.00470430
jmp fcn.0040bbd0

Function at 0x40bc70
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40be3b
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40bc99
mov eax, 0x7000000
jmp 0x40bca1
test eax, eax
je 0x40be16
mov dword [esp + 0x34], eax
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x448]
mov ebx, dword [ecx + 0x44c]
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 + 0x448], ebx
mov dword [ecx + 0x44c], ebp
mov dword [esp], edx
call fcn.004717e0
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, eax
shr ecx, 0x14
and ecx, 0x7ff
mov edx, eax
shr edx, 0xf
and edx, 0x1f
shl eax, 5
mov ebx, dword [esp + 0x24]
shr ebx, 0x1b
or ebx, eax
lea eax, [0x8efa80]
movsd xmm0, qword [eax + edx*8]
mov ebp, ecx
add ecx, 0xfffffc01
add edx, 1
mov esi, 0
adc esi, 0
test esi, esi
jne 0x40be2e
cmp edx, 0x21
jae 0x40be22
movsd qword [esp + 0x14], xmm0
add ebp, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
and ebx, 0xfffff
mov dword [esp + 0x10], ebx
movsd xmm0, qword [eax + edx*8]
movsd qword [esp + 0x1c], xmm0
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.00462590
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x2c], xmm0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00462660
movsd xmm0, qword [esp + 0x2c]
movsd xmm1, qword [esp + 0x14]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x1c]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x78a318]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x78a358]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40bdf1
xorps xmm0, xmm0
mov eax, dword [esp + 0x34]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x78a390]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
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 fcn.004718c0
mov eax, edx
mov ecx, 0x21
call fcn.00471990
nop
call fcn.00470430
jmp fcn.0040bc70