Function at 0x40ac20
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b09e
sub esp, 0x28
cmp word [0x8eeba4], 0x10
jne 0x40b087
mov eax, dword [0x93ed6c]
test eax, eax
je 0x40b071
cmp eax, 0x80000
ja 0x40afe5
cmp eax, 0x1000
jb 0x40af59
lea edx, [eax - 1]
test edx, eax
jne 0x40aef7
mov eax, dword [0x93ed70]
lea edx, [eax - 1]
test edx, eax
jne 0x40ae95
cmp eax, 0x400000
jbe 0x40ac96
mov dword [0x93ed70], 0
mov eax, dword [0x93ed70]
test eax, eax
jne 0x40ae74
xor eax, eax
jmp 0x40aca9
inc eax
cmp eax, 0x44
jge 0x40ae55
lea ecx, [0x8eeba0]
movzx edx, word [ecx + eax*2]
cmp edx, 0x80
jne 0x40aca8
lea eax, [0x926d80]
mov dword [esp], eax
call fcn.004260e0
call fcn.004109c0
mov eax, dword [esp]
mov dword [0x93edf0], eax
xor eax, eax
jmp 0x40ace5
inc eax
cmp eax, 3
jl 0x40ace4
nop
mov dword [esp], 0
mov dword [esp + 4], 0x232000
call fcn.00412230
mov eax, dword [esp + 8]
test eax, eax
je 0x40ad39
lea ecx, [eax + 0x232000]
nop
cmp eax, ecx
jbe 0x40ad19
mov ecx, 0x231fff
jmp 0x40ad1e
mov ecx, 0x232000
mov dword [0x926ebc], eax
mov dword [0x926ec0], eax
add eax, ecx
mov dword [0x926ec4], eax
mov byte [0x926ec8], 1
mov eax, dword [0x8efe68]
cmp dword [0x926ebc], eax
ja 0x40ad51
mov ecx, dword [0x926ec4]
cmp ecx, eax
ja 0x40ad53
mov ecx, eax
lea eax, [ecx + 0x43ffff]
mov dword [esp + 0x1c], 0x20000000
mov dword [esp + 0x20], 0x10000000
mov dword [esp + 0x24], 0x8000000
and eax, 0xffc00000
mov dword [esp + 0x14], eax
xor ecx, ecx
jmp 0x40ad89
mov edx, dword [esp + 0x18]
lea ecx, [edx + 1]
mov eax, dword [esp + 0x14]
cmp ecx, 3
jge 0x40ade0
mov dword [esp + 0x18], ecx
mov edx, dword [esp + ecx*4 + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], 0x400000
call fcn.0040b680
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40ad7e
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax]
nop
cmp eax, edx
jbe 0x40adbf
dec ecx
mov dword [0x926ed0], eax
mov dword [0x926ed4], eax
add ecx, eax
mov dword [0x926ed8], ecx
mov byte [0x926edc], 0
mov eax, dword [0x926ed8]
mov dword [esp + 0x14], eax
lea ecx, [0x92b42c]
mov dword [esp], ecx
call fcn.00414e50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov edx, dword [0x926ecc]
mov dword [eax + 8], edx
mov dword [0x926ecc], eax
lea eax, [0x92b42c]
mov dword [esp], eax
call fcn.00414e50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [0x92b454]
mov dword [eax + 8], ecx
mov dword [0x92b454], eax
nop
lea eax, [0x93fcc8]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0x7fffffff
call fcn.004763a0
add esp, 0x28
ret
lea eax, [0x72fa21]
mov dword [esp], eax
mov dword [esp + 4], 0x36
call fcn.0046ad70
lea eax, [ecx + 1]
mov dword [0x93ed74], eax
mov ecx, dword [0x93ed74]
mov eax, 1
shl eax, cl
cmp ecx, 0x20
sbb edx, edx
and eax, edx
cmp dword [0x93ed70], eax
jne 0x40ae6b
jmp 0x40aca4
call fcn.00437f30
lea eax, [0x722bcc]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00438790
mov eax, dword [0x93ed70]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438480
lea eax, [0x722bb5]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00438790
call fcn.00437f90
lea eax, [0x723ee3]
mov dword [esp], eax
mov dword [esp + 4], 0x19
call fcn.0046ad70
call fcn.00437f30
lea eax, [0x71fe92]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.00438790
mov eax, dword [0x93ed6c]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438480
lea eax, [0x722bb5]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00438790
call fcn.00437f90
lea eax, [0x721149]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0046ad70
call fcn.00437f30
lea eax, [0x71fe92]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.00438790
mov eax, dword [0x93ed6c]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438480
lea eax, [0x72a312]
mov dword [esp], eax
mov dword [esp + 4], 0x25
call fcn.00438790
mov dword [esp], 0x1000
mov dword [esp + 4], 0
call fcn.004385b0
lea eax, [0x71b22d]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00438790
call fcn.00437f90
lea eax, [0x721149]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0046ad70
call fcn.00437f30
lea eax, [0x71fe92]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.00438790
mov eax, dword [0x93ed6c]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438480
lea eax, [0x729b69]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call fcn.00438790
mov dword [esp], 0x80000
mov dword [esp + 4], 0
call fcn.004385b0
lea eax, [0x71b22d]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00438790
call fcn.00437f90
lea eax, [0x721149]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0046ad70
lea eax, [0x726eb2]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
call fcn.0046ad70
lea eax, [0x71f816]
mov dword [esp], eax
mov dword [esp + 4], 0x11
call fcn.0046ad70
nop
call fcn.00470430
jmp fcn.0040ac20