Function at 0x40a3a0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
test byte [ecx], al
mov dword [esp], ecx
mov dword [esp + 4], 0
mov edx, dword [esp + 0x10]
mov dword [esp + 8], edx
call fcn.004024c0
movzx eax, byte [esp + 0xc]
test al, al
je 0x40a624
mov eax, dword [esp + 0x1c]
test eax, eax
setb cl
mov edx, dword [esp + 0x20]
test edx, edx
setl bl
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ecx, ebp
or ecx, ebx
test cl, cl
je 0x40a484
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x85], 1
mov ecx, dword [0xbace4c]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x40a43b
jmp 0x40a46e
mov eax, dword [0xbace4c]
mov eax, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00457a20
mov dword [esp], 0x989680
mov dword [esp + 4], 0
call fcn.0042be00
mov eax, dword [esp + 8]
test eax, eax
jl 0x40a423
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x85], 0
mov byte [esp + 0x30], 1
add esp, 0x14
ret
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
call fcn.0042be00
jmp 0x40a457
call fcn.00458fd0
mov eax, dword [esp]
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x28], eax
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x20]
adc edx, ebx
mov dword [esp + 0x2c], edx
jmp 0x40a4aa
mov eax, edx
mov edx, ebp
mov ebp, dword [esp + 0x24]
mov esi, dword [ebp + 0x18]
mov byte [esi + 0x85], 1
mov esi, dword [0xbace4c]
mov esi, dword [esi]
test esi, esi
je 0x40a61d
cmp ecx, 0x989680
xchg esi, ebx
seta bl
xchg esi, ebx
test ebx, ebx
xchg edi, ebx
setg bl
xchg edi, ebx
sete dl
and esi, edx
or edi, esi
xchg edi, eax
test al, al
xchg edi, eax
je 0x40a61d
mov ecx, 0x989680
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0042be00
mov eax, dword [esp + 8]
test eax, eax
jge 0x40a606
mov eax, dword [0xbace4c]
mov eax, dword [eax]
test eax, eax
jne 0x40a5f1
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x85], 0
call fcn.00458fd0
mov eax, dword [esp]
mov ecx, dword [esp + 0x28]
mov edx, ecx
sub ecx, eax
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x2c]
mov ebp, ebx
sbb ebx, eax
test ebx, ebx
setl al
xchg esi, ebx
sete bl
xchg esi, ebx
test ecx, ecx
xchg edi, ebx
setbe bl
xchg edi, ebx
and edi, esi
or edi, eax
xchg edi, eax
test al, al
xchg edi, eax
je 0x40a4a6
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004024e0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x18]
mov ebx, edx
cmp edx, eax
jne 0x40a5ae
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 8], 0
call fcn.004024c0
movzx eax, byte [esp + 0xc]
test al, al
je 0x40a56b
mov byte [esp + 0x30], 0
add esp, 0x14
ret
cmp eax, 1
jne 0x40a64c
mov byte [ebx + 0x85], 1
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
call fcn.0042be00
mov eax, dword [esp + 8]
test eax, eax
jl 0x40a636
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x85], 0
mov byte [esp + 0x30], 1
add esp, 0x14
ret
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00457a20
jmp 0x40a51e
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x85], 0
mov byte [esp + 0x30], 1
add esp, 0x14
ret
mov edx, ebx
jmp 0x40a4f6
mov eax, dword [esp + 0x18]
cmp dword [eax], 1
jne 0x40a662
mov byte [esp + 0x30], 1
add esp, 0x14
ret
lea eax, [0xd6f03f]
mov dword [esp], eax
mov dword [esp + 4], 0x32
call fcn.0042e730
lea eax, [0xd6e408]
mov dword [esp], eax
mov dword [esp + 4], 0x31
call fcn.0042e730
lea eax, [0xd5ce13]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
call fcn.0042e730
nop
int3