Function at 0x409ce0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40a25a
sub esp, 0x4c
mov eax, dword [esp + 0x50]
test byte [eax], al
nop
lea ecx, [eax + 0xfc]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
add ecx, 0x3fffff
and ecx, 0xffc00000
mov dword [esp + 0x14], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x400000
lea edx, [0x7e9d50]
mov dword [esp + 0xc], edx
call fcn.0040b690
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x409d4d
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x14]
jmp 0x409fff
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], ecx
mov edx, eax
shr eax, 0x16
mov ebx, dword [esp + 0x50]
jmp 0x409d96
mov ecx, dword [esp + 0x30]
mov dword [edx + ebp*4], ecx
mov edx, dword [esp + 0x40]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00402010
mov eax, dword [esp + 0x30]
inc eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x34]
mov ecx, ebx
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
mov ebp, edx
lea edx, [ecx + edx - 1]
shr edx, 0x16
cmp eax, edx
ja 0x409f58
mov dword [esp + 0x30], eax
mov edx, dword [ebx + 0xe4]
test edx, edx
jne 0x409e0b
mov dword [esp], 0x1000
mov dword [esp + 4], 4
mov dword [esp + 8], 0
call fcn.0040b2b0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409fbc
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x50]
lea edx, [ecx + 0xe4]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00402010
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
test byte [edx], al
cmp eax, 0x400
jae 0x409fb2
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
test esi, esi
jne 0x409f9c
mov dword [esp + 0x40], edx
lea eax, [ebx + 0xe8]
mov dword [esp], eax
mov dword [esp + 4], 0x408c8
mov dword [esp + 8], 4
lea eax, [0x7e9db8]
mov dword [esp + 0xc], eax
call fcn.0040b690
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x409e84
mov dword [esp], 0x408c8
mov dword [esp + 4], 4
lea eax, [0x7e9db8]
mov dword [esp + 8], eax
call fcn.0040b2b0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409f86
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx + 0x114]
cmp dword [ebx + 0x110], ebp
jne 0x409f2f
mov dword [esp + 0x1c], eax
shl ebp, 3
test ebp, ebp
jne 0x409eab
mov ebp, dword [0x7e828c]
mov dword [esp + 0x18], ebp
mov dword [esp], ebp
mov dword [esp + 4], 4
lea eax, [0x7e9db8]
mov dword [esp + 8], eax
call fcn.0040b2b0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409f70
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx + 0x10c]
mov esi, dword [ebx + 0x110]
mov dword [ebx + 0x10c], eax
mov edi, dword [esp + 0x18]
shr edi, 2
mov dword [ebx + 0x114], edi
mov edi, dword [ebx + 0x10c]
mov eax, ebx
mov ebx, dword [ebx + 0x110]
cmp ebx, esi
jg 0x409f0c
mov esi, ebx
cmp edi, ebp
je 0x409f27
mov dword [esp], edi
mov dword [esp + 4], ebp
shl esi, 2
mov dword [esp + 8], esi
call fcn.0045a880
mov eax, dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx + 0x110]
mov edx, dword [ebx + 0x114]
lea ecx, [ebp + 1]
cmp edx, ecx
jb 0x409f6b
mov dword [ebx + 0x110], ecx
mov edx, dword [ebx + 0x10c]
cmp ebp, ecx
jb 0x409d64
jmp 0x409f64
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ecx
add esp, 0x4c
ret
mov eax, ebp
call fcn.0045a030
call fcn.0045a070
lea eax, [0x4ee18e]
mov dword [esp], eax
mov dword [esp + 4], 0x22
call fcn.00432150
lea eax, [0x4efd0b]
mov dword [esp], eax
mov dword [esp + 4], 0x2c
call fcn.00432150
lea eax, [0x4eb946]
mov dword [esp], eax
mov dword [esp + 4], 0x19
call fcn.00432150
mov ecx, 0x400
call fcn.0045a040
lea eax, [0x4ef0be]
mov dword [esp], eax
mov dword [esp + 4], 0x27
call fcn.00432150
mov esi, dword [ebp + 8]
mov dword [edx + 0xf8], esi
nop
mov esi, dword [edx + 0x460c]
sub esi, dword [edx + 0x45f4]
mov dword [edx + 0x460c], esi
mov esi, dword [edx + 0x4600]
mov dword [ebp], esi
mov dword [edx + 0x4600], ebp
mov eax, ecx
mov ebp, dword [edx + 0xf8]
test ebp, ebp
je 0x40a0a5
mov esi, dword [ebp]
movzx edi, byte [ebp + 4]
xchg edi, eax
test al, al
xchg edi, eax
je 0x40a01c
sub esi, ebx
mov dword [esp + 0x2c], ebp
lea edi, [esi + ebx]
cmp esi, edi
jbe 0x40a02b
xor eax, eax
jmp 0x40a057
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], edi
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.00413810
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
mov ecx, eax
cmp eax, esi
je 0x40a092
test ecx, ecx
je 0x409fd2
mov dword [esp + 0x48], ecx
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
call fcn.004136f0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
jmp 0x409fd2
mov eax, edx
movzx edx, byte [ebp + 4]
test dl, dl
jne 0x40a09e
mov esi, edi
mov dword [ebp], esi
mov edx, ebx
jmp 0x40a0af
mov edx, ebx
xor ebx, ebx
mov ecx, eax
mov eax, dword [esp + 0x50]
test ebx, ebx
jne 0x40a14d
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], 0x400000
call fcn.0040a270
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x40a17c
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x50]
lea ecx, [eax + 0x45f4]
mov dword [esp + 0x3c], ecx
mov dword [esp], ecx
call fcn.004146c0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x48]
mov dword [eax], ecx
mov byte [eax + 4], 1
mov ecx, dword [0x7c8338]
mov dword [eax + 8], ecx
mov dword [0x7c8338], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004146c0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x48]
mov edx, ecx
mov ebx, dword [esp + 0x34]
add ecx, ebx
mov dword [eax], ecx
mov ecx, dword [0x7c8338]
mov dword [eax + 8], ecx
mov dword [0x7c8338], eax
mov eax, dword [esp + 0x50]
mov ecx, edx
mov edx, ecx
lea ebp, [ebx + ecx]
cmp ecx, ebp
jbe 0x40a163
mov esi, 0x1c
lea edi, [0x4ec81a]
jmp 0x40a167
xor esi, esi
xor edi, edi
test esi, esi
jne 0x40a1a6
test ecx, 0x3fffff
jne 0x40a190
mov eax, edx
mov ecx, ebx
jmp 0x409d51
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
add esp, 0x4c
ret
lea eax, [0x4edd1f]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00432150
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], esi
call fcn.00433670
lea eax, [0x4ede69]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00433f50
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00433dd0
lea eax, [0x4e6535]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00433f50
mov dword [esp + 4], 0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00433dd0
lea eax, [0x4ed233]
mov dword [esp], eax
mov dword [esp + 4], 0x1f
call fcn.00433f50
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.00433f50
call fcn.00433890
call fcn.004336e0
lea eax, [0x4effaf]
mov dword [esp], eax
mov dword [esp + 4], 0x2e
call fcn.00432150
nop
call fcn.00458b70
jmp fcn.00409ce0