Function at 0x40a7d0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40ab4b
sub esp, 0x30
cmp word [0xb793e4], 0x10
jne 0x40ab34
call fcn.0042d7d0
xor eax, eax
jmp 0x40a817
lea edx, [eax + eax*4]
lea ebx, [0xb793e0]
movzx ebp, word [ebx + eax*2]
lea esi, [0x1450fb4]
mov dword [esi + edx*4], ebp
inc eax
cmp eax, 0x43
jge 0x40a823
jb 0x40a800
jmp 0x40ab2a
mov eax, dword [0x144da28]
test eax, eax
je 0x40ab14
cmp eax, 0x1000
jb 0x40aa88
lea edx, [eax - 1]
test eax, edx
jne 0x40aa26
mov eax, dword [0x144da24]
lea edx, [eax - 1]
test eax, edx
jne 0x40a9c4
test eax, eax
jne 0x40a867
jmp 0x40a883
lea eax, [ecx + 1]
mov dword [0x144da20], eax
mov ecx, dword [0x144da20]
cmp ecx, 0x20
sbb eax, eax
mov edx, 1
shl edx, cl
and edx, eax
cmp dword [0x144da24], edx
jne 0x40a85e
lea eax, [0x143f340]
mov dword [esp], eax
call fcn.00422fc0
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call fcn.00414f30
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp]
mov dword [eax + 0xbc], ecx
mov dword [esp], 0
mov dword [esp + 4], 0x10220000
call fcn.004160c0
mov eax, dword [esp + 8]
test eax, eax
je 0x40a8eb
nop
mov dword [0x143f628], eax
mov dword [0x143f62c], eax
add eax, 0x10220000
mov dword [0x143f630], eax
mov eax, dword [0xb7a838]
test eax, eax
jae 0x40a8f7
xor eax, eax
cmp dword [0x143f628], eax
ja 0x40a9bd
mov ecx, dword [0x143f630]
cmp eax, ecx
jae 0x40a9bd
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x20]
lea esi, [0xe72920]
call fcn.00458822
mov eax, dword [esp + 0x18]
add eax, 0x43ffff
and eax, 0xffc00000
mov dword [esp + 0x14], eax
xor ecx, ecx
jmp 0x40a945
mov edx, dword [esp + 0x1c]
lea ecx, [edx + 1]
mov eax, dword [esp + 0x14]
cmp ecx, 3
jge 0x40a98e
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x20]
mov ebx, dword [edx + ecx*4]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x400000
call fcn.0040b140
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x40a93a
mov edx, eax
mov dword [0x143f638], eax
mov dword [0x143f63c], eax
add eax, ecx
mov dword [0x143f640], eax
lea eax, [edx + ecx]
mov dword [esp + 0x18], eax
lea ecx, [0x14418a0]
mov dword [esp], ecx
call fcn.00416ed0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [0x143f634]
mov dword [eax + 8], ecx
mov dword [0x143f634], eax
add esp, 0x30
ret
mov ecx, eax
jmp 0x40a911
call fcn.0042f560
lea eax, [0xd54c92]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.0042fe00
mov eax, dword [0x144da24]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042fb10
lea eax, [0xd53c21]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.0042fe00
call fcn.0042f5d0
lea eax, [0xd567c6]
mov dword [esp], eax
mov dword [esp + 4], 0x19
call fcn.0042e730
call fcn.0042f560
lea eax, [0xd4ed71]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.0042fe00
mov eax, dword [0x144da28]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042fb10
lea eax, [0xd53c21]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.0042fe00
call fcn.0042f5d0
lea eax, [0xd50c31]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0042e730
call fcn.0042f560
lea eax, [0xd4ed71]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.0042fe00
mov eax, dword [0x144da28]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042fb10
lea eax, [0xd63dba]
mov dword [esp], eax
mov dword [esp + 4], 0x25
call fcn.0042fe00
mov dword [esp], 0x1000
mov dword [esp + 4], 0
call fcn.0042fc40
lea eax, [0xd3f5b7]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.0042fe00
call fcn.0042f5d0
lea eax, [0xd50c31]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0042e730
lea eax, [0xd5c981]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
call fcn.0042e730
mov ecx, 0x43
call fcn.00458100
lea eax, [0xd4d394]
mov dword [esp], eax
mov dword [esp + 4], 0x11
call fcn.0042e730
nop
call fcn.004567f0
jmp fcn.0040a7d0