Function at 0x40a7a0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x20
mov eax, dword [0x93ee7c]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
test byte [ecx], al
mov edx, dword [esp + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], edx
call fcn.00476350
movzx eax, byte [esp + 0xc]
test al, al
je 0x40a841
mov eax, dword [esp + 0x2c]
test eax, eax
jge 0x40a81f
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x89], 1
mov ecx, dword [0x913354]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x40aa24
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
call fcn.004332c0
jmp 0x40a9f5
call fcn.004725f0
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
jmp 0x40a871
mov eax, dword [esp + 0x24]
cmp dword [eax], 1
jne 0x40a853
mov byte [esp + 0x3c], 1
add esp, 0x20
ret
lea eax, [0x726e94]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
call fcn.0046ad70
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 [0x913354]
mov esi, dword [esi]
test esi, esi
je 0x40a8b3
test ebx, ebx
xchg esi, ebx
setg bl
xchg esi, ebx
xchg edi, ebx
sete bl
xchg edi, ebx
cmp edx, 0x989680
seta cl
and ecx, edi
or ecx, esi
test cl, cl
je 0x40a8b3
xor ebx, ebx
mov edx, 0x989680
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.004332c0
mov eax, dword [esp + 8]
test eax, eax
jge 0x40a930
mov eax, dword [0x913354]
mov eax, dword [eax]
test eax, eax
je 0x40a8e3
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004714c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x89], 0
call fcn.004725f0
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 eax, eax
setl cl
xchg esi, ebx
sete bl
xchg esi, ebx
test edx, edx
xchg edi, ebx
sete bl
xchg edi, ebx
and esi, edi
or esi, ecx
xchg esi, eax
test al, al
xchg esi, eax
je 0x40a869
jmp 0x40a947
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.00476370
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x18]
mov ebx, edx
cmp edx, eax
jne 0x40a98a
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 8], 0
call fcn.00476350
movzx eax, byte [esp + 0xc]
test al, al
je 0x40a947
mov byte [esp + 0x3c], 0
add esp, 0x20
ret
cmp eax, 1
jne 0x40a9df
mov byte [ebx + 0x89], 1
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
call fcn.004332c0
mov eax, dword [esp + 8]
test eax, eax
jl 0x40a9c9
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, [0x72eccf]
mov dword [esp], eax
mov dword [esp + 4], 0x32
call fcn.0046ad70
lea eax, [0x72e8c4]
mov dword [esp], eax
mov dword [esp + 4], 0x31
call fcn.0046ad70
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 [0x913354]
mov eax, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004714c0
mov dword [esp], 0x989680
mov dword [esp + 4], 0
call fcn.004332c0
mov eax, dword [esp + 8]
test eax, eax
jl 0x40aa0c
jmp 0x40a9f5