Function at 0x40a5f0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x20
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x24]
test byte [edx], al
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call fcn.004023d0
movzx eax, byte [esp + 0xc]
test al, al
je 0x40a693
mov eax, dword [esp + 0x2c]
test eax, eax
jge 0x40a66d
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x89], 1
mov ecx, dword [0x7ce1a4]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x40a874
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
call fcn.00433720
jmp 0x40a845
call fcn.00465240
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x28]
add eax, edx
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x2c]
adc ecx, ebx
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x2c]
jmp 0x40a6c3
mov eax, dword [esp + 0x24]
cmp dword [eax], 1
jne 0x40a6a5
mov byte [esp + 0x3c], 1
add esp, 0x20
ret
lea eax, [0x624daa]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
call fcn.00436e90
mov ecx, ebp
mov ebx, eax
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov esi, dword [ebp + 0x18]
mov byte [esi + 0x89], 1
mov esi, dword [0x7ce1a4]
mov esi, dword [esi]
test esi, esi
je 0x40a705
cmp edx, 0x989680
xchg esi, ebx
seta bl
xchg esi, ebx
test ebx, ebx
xchg edi, ebx
sete bl
xchg edi, ebx
setg cl
and esi, edi
or ecx, esi
test cl, cl
je 0x40a705
xor ebx, ebx
mov edx, 0x989680
mov dword [esp + 4], ebx
mov dword [esp], edx
call fcn.00433720
mov eax, dword [esp + 8]
test eax, eax
jge 0x40a780
mov eax, dword [0x7ce1a4]
mov eax, dword [eax]
test eax, eax
je 0x40a735
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00464000
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x89], 0
call fcn.00465240
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x14]
sub edx, eax
mov eax, dword [esp + 0x10]
mov ebp, eax
sbb eax, ecx
test edx, edx
setbe cl
test eax, eax
xchg esi, ebx
setl bl
xchg esi, ebx
xchg edi, ebx
sete bl
xchg edi, ebx
and ecx, edi
or ecx, esi
test cl, cl
je 0x40a6bb
jmp 0x40a797
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x89], 0
mov byte [esp + 0x3c], 1
add esp, 0x20
ret
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004023f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x18]
mov ebx, edx
cmp edx, eax
jne 0x40a7da
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 8], 0
call fcn.004023d0
movzx eax, byte [esp + 0xc]
test al, al
je 0x40a797
mov byte [esp + 0x3c], 0
add esp, 0x20
ret
cmp eax, 1
jne 0x40a82f
mov byte [ebx + 0x89], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
call fcn.00433720
mov eax, dword [esp + 8]
test eax, eax
jl 0x40a819
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x89], 0
mov byte [esp + 0x3c], 1
add esp, 0x20
ret
lea eax, [0x62a160]
mov dword [esp], eax
mov dword [esp + 4], 0x32
call fcn.00436e90
lea eax, [0x629db0]
mov dword [esp], eax
mov dword [esp + 4], 0x31
call fcn.00436e90
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x89], 0
mov byte [esp + 0x3c], 1
add esp, 0x20
ret
mov eax, dword [0x7ce1a4]
mov eax, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00464000
mov dword [esp + 4], 0
mov dword [esp], 0x989680
call fcn.00433720
mov eax, dword [esp + 8]
test eax, eax
jl 0x40a85c
jmp 0x40a845