Function at 0x461a80
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x461ea4
sub esp, 0x7c
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x461e8b
movzx ebx, byte [ecx + 0xf]
and ebx, 0x1f
cmp bl, 0x13
jne 0x461e8b
lea edi, [esp + 0x34]
xor eax, eax
call fcn.004645c8
mov ecx, dword [esp + 0x80]
movzx ebx, byte [ecx + 0xc]
test bl, 1
je 0x461ada
mov edx, 0x34
jmp 0x461adf
mov edx, 0x24
movzx ebx, word [ecx + 0x20]
lea ebp, [edx + ecx]
cmp ebx, 0x100000
ja 0x461e7f
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
xor edx, edx
jmp 0x461b2e
mov dword [esp + 0x20], edx
mov eax, dword [ebp + edx*4]
lea ecx, [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00452810
mov eax, dword [esp + 0x20]
lea edx, [eax + 1]
xor eax, eax
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
cmp edx, ebx
jl 0x461afe
mov ebx, dword [esp + 0x44]
add ebx, 3
and ebx, 0xfffffffc
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], ebx
movzx ebp, byte [ecx + 0xc]
movzx esi, word [ecx + 0x22]
and esi, 0x7fff
movzx edi, word [ecx + 0x20]
add esi, edi
movzx esi, si
cmp esi, 0x100000
ja 0x461e73
movzx edx, di
cmp edx, esi
ja 0x461e6a
mov dword [esp + 0x24], edx
lea edi, [edx - 0x100000]
xchg edi, ebx
neg ebx
xchg edi, ebx
xchg edi, ebx
neg ebx
xchg edi, ebx
shl edx, 2
sar edi, 0x1f
and edi, edx
mov edx, dword [esp + 0x24]
sub esi, edx
cmp esi, 1
jne 0x461e52
xchg ebp, eax
test al, 1
xchg ebp, eax
je 0x461bad
mov edx, 0x34
jmp 0x461bb2
mov edx, 0x24
add edx, ecx
mov edx, dword [edx + edi]
nop
cmp dword [edx], 4
jne 0x461e3a
xchg ebp, eax
test al, 1
xchg ebp, eax
je 0x461bcf
mov edx, 0x34
jmp 0x461bd4
mov edx, 0x24
add ecx, edx
mov ecx, dword [ecx + edi]
movzx ecx, byte [ecx + 0xf]
and ecx, 0x1f
nop
cmp cl, 0xd
je 0x461e22
cmp cl, 0xe
je 0x461e22
mov ecx, dword [0x7f8b50]
test ecx, ecx
jne 0x461c04
lea ecx, [ebx + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x44]
add ecx, 3
and ecx, 0xfffffffc
add ecx, dword [esp + 0x48]
cmp ecx, 0x100
ja 0x461e0a
movzx ecx, byte [esp + 0x88]
test cl, cl
je 0x461c30
mov edx, dword [esp + 0x40]
jmp 0x461c32
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], 0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], cl
nop
nop
lea eax, [0x7e5200]
mov dword [esp], eax
call fcn.0040a140
mov eax, dword [0x7f8a84]
lea ecx, [0x5f3b20]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.0040d260
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
movzx ecx, byte [esp + 0x10]
test cl, cl
jne 0x461daa
mov ecx, dword [0x7f8a84]
test ecx, ecx
jne 0x461cc6
call fcn.0040ccc0
mov eax, dword [0x7f8db0]
mov ecx, dword [esp]
test eax, eax
jne 0x461cb9
mov dword [0x7f8a84], ecx
jmp 0x461cc6
lea edi, [0x7f8a84]
mov eax, ecx
call fcn.00464380
mov ecx, dword [0x7f8a88]
cmp ecx, 0x7d0
jge 0x461de3
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x54]
xor eax, eax
call fcn.004645c6
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
lea edi, [esp + 0x5c]
lea esi, [esp + 0x34]
call fcn.00464a90
mov eax, dword [esp + 0x18]
cmp eax, 0x7d0
jae 0x461dd9
lea ecx, [eax + eax*4]
mov dword [esp + 0x24], ecx
lea edx, [0x7e5204]
lea edi, [edx + ecx*8]
mov edx, dword [0x7f8db0]
test edx, edx
jne 0x461d38
lea esi, [esp + 0x54]
call fcn.00464a7c
jmp 0x461d52
lea eax, [0x603fe0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
call fcn.004116d0
mov eax, dword [0x7f8a84]
lea ecx, [0x5f3b20]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.0040d5e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
inc dword [0x7f8a88]
nop
nop
nop
lea eax, [0x7e5200]
mov dword [esp], eax
call fcn.0040a340
lea eax, [0x466210]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x8c], eax
add esp, 0x7c
ret
mov dword [esp + 0x1c], eax
nop
nop
nop
lea eax, [0x7e5200]
mov dword [esp], eax
call fcn.0040a340
lea eax, [0x466210]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4]
add eax, ecx
mov dword [esp + 0x8c], eax
add esp, 0x7c
ret
mov ecx, 0x7d0
call fcn.00464400
nop
nop
nop
lea eax, [0x7e5200]
mov dword [esp], eax
call fcn.0040a340
lea eax, [0x623ca7]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call fcn.00436e90
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66e3c4]
mov dword [esp + 4], eax
call fcn.00436760
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66e3bc]
mov dword [esp + 4], eax
call fcn.00436760
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66e3b4]
mov dword [esp + 4], eax
call fcn.00436760
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66e3b4]
mov dword [esp + 4], eax
call fcn.00436760
mov eax, edx
mov ecx, esi
call fcn.00464460
mov ecx, esi
mov edx, 0x100000
call fcn.00464420
mov ecx, ebx
mov edx, 0x100000
call fcn.00464420
lea eax, [0x5f1960]
mov dword [esp], eax
lea eax, [0x66e3b4]
mov dword [esp + 4], eax
call fcn.00436760
nop
call fcn.00462f70
jmp fcn.00461a80