Function at 0x418690
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x418947
sub esp, 0x38
mov edx, dword [0x7c82cc]
mov ecx, dword [0x7c8368]
mov ebx, dword [0x7c8364]
mov eax, dword [esp + 0x40]
cmp eax, ecx
jae 0x418941
mov ebp, dword [0x7c8324]
test byte [ebp], al
mov eax, dword [ebx + eax*4]
cmp eax, 0x400
jae 0x418937
mov dword [esp + 0x1c], edx
mov ebx, dword [ebp + eax*4]
mov dword [esp + 0x2c], ebx
test byte [ebx], al
xor eax, eax
jmp 0x4186ff
mov ebp, dword [esp + 0x28]
lea eax, [ebp + 1]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
cmp eax, 0x40
jge 0x41872e
jae 0x41892d
mov dword [esp + 0x28], eax
lea ecx, [ebx + eax + 0x40880]
mov dword [esp], ecx
call fcn.00401df0
movzx eax, byte [esp + 4]
test al, al
je 0x4186f0
mov byte [esp + 0x16], al
xor ecx, ecx
jmp 0x418733
add esp, 0x38
ret
inc ecx
cmp ecx, 8
jae 0x4186f0
mov edx, 1
shl edx, cl
test al, dl
je 0x418732
mov edx, dword [esp + 0x28]
lea ebx, [ecx + edx*8]
cmp ebx, 0x200
jae 0x418921
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + ebx*4 + 0x40000]
mov dword [esp + 0x20], ecx
test byte [ecx], al
lea edx, [ecx + 0x3b]
mov dword [esp], edx
call fcn.00401df0
movzx eax, byte [esp + 4]
cmp al, 1
jne 0x4188ca
movzx eax, byte [0x7e81b2]
test al, al
je 0x418795
mov eax, dword [esp + 0x20]
jmp 0x4187af
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x30]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
je 0x4187af
lea ebx, [edx + 3]
cmp ecx, ebx
jne 0x41885e
lea ecx, [eax + 0x48]
mov dword [esp + 0x34], ecx
nop
mov dword [esp], ecx
call fcn.00408ef0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x4c]
jmp 0x4187e5
nop
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.004090f0
movzx eax, byte [esp + 0x16]
mov ecx, dword [esp + 0x24]
jmp 0x418732
mov ecx, dword [ecx]
test ecx, ecx
je 0x4187c8
cmp byte [ecx + 6], 1
jne 0x4187e3
movzx edx, word [ecx + 4]
mov ebx, dword [eax + 0x40]
mov ebp, dword [eax + 0xc]
test ebx, ebx
je 0x418859
mov dword [esp + 0x18], ecx
mov eax, edx
xor edx, edx
div ebx
imul eax, ebx
lea ecx, [ebp + eax]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
call fcn.0041a960
mov ecx, dword [esp + 0x18]
lea edx, [ecx + 8]
mov dword [esp], edx
mov dword [esp + 4], 4
lea edx, [0x58a0e0]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
call fcn.0041a830
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
jmp 0x4187e3
call fcn.0042fdf0
mov dword [esp + 0x30], ecx
call fcn.00433670
lea eax, [0x4e6c0c]
mov dword [esp], eax
mov dword [esp + 4], 6
call fcn.00433f50
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00433bf0
call fcn.00433850
mov dword [esp + 4], 0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00433bf0
call fcn.00433890
call fcn.004336e0
lea eax, [0x4e8b7f]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00432150
mov byte [esp + 0x17], al
call fcn.00433670
lea eax, [0x4e7683]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00433f50
mov dword [esp + 4], 0
movzx eax, byte [esp + 0x17]
movzx eax, al
mov dword [esp], eax
call fcn.00433bf0
call fcn.00433890
call fcn.004336e0
lea eax, [0x4efa2a]
mov dword [esp], eax
mov dword [esp + 4], 0x2b
call fcn.00432150
mov eax, ebx
mov ecx, 0x200
call fcn.0045a040
mov ecx, 0x40
call fcn.0045a030
mov ecx, 0x400
call fcn.0045a040
call fcn.0045a030
nop
call fcn.00458b70
jmp fcn.00418690