Function at 0x40f0a0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, eax
or eax, ecx
mov ebx, dword [esp + 0x58]
or eax, ebx
test eax, 3
jne 0x40f406
movzx eax, byte [0x93f150]
test al, al
je 0x40f1e0
nop
mov eax, dword [0x926eb4]
test byte [eax], al
mov ebp, ecx
shr ecx, 0x16
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x40f0f4
mov ecx, ebp
shr ebp, 0xd
and ebp, 0x1ff
mov eax, dword [eax + ebp*4]
jmp 0x40f0f8
mov ecx, ebp
xor eax, eax
test eax, eax
jne 0x40f128
lea eax, [0x91ebcc]
mov dword [esp], eax
call fcn.004762f0
mov eax, dword [esp + 4]
test eax, eax
je 0x40f119
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x40f11d
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x50]
xor ebx, ebx
jmp 0x40f356
mov dword [esp + 0x28], eax
lea ecx, [eax + 0x3f]
nop
mov dword [esp], ecx
call fcn.00476200
cmp byte [esp + 4], 1
jne 0x40f151
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 0xc], eax
ja 0x40f151
cmp dword [ecx + 0x48], eax
ja 0x40f155
add esp, 0x4c
ret
mov edx, dword [0x93ee7c]
mov edx, dword fs:[edx]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 0x58]
mov dword [esp + 0x48], edx
test byte [edx], al
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x40f1a2
movzx ebp, byte [ebx + 0xf]
xchg ebp, eax
test al, 0x40
xchg ebp, eax
jne 0x40f1a2
movzx ecx, byte [ecx + 0x3e]
test cl, 1
je 0x40f190
xor ecx, ecx
xor ebx, ebx
xor ebp, ebp
jmp 0x40f19e
mov ecx, dword [ebx + 0x14]
nop
mov ecx, dword [ecx]
mov ebx, ecx
mov ebp, dword [esp + 0x5c]
mov ecx, eax
mov esi, ecx
jmp 0x40f1d2
mov dword [esp], ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.0040ec30
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov esi, ecx
mov ecx, eax
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
test edi, edi
je 0x40f2d2
jmp 0x40f210
add esp, 0x4c
ret
mov ecx, dword [esi + 0x988]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x2c]
add edx, 8
mov dword [esi + 0x988], edx
mov edx, dword [edi]
mov dword [ecx], edx
mov edx, dword [eax]
mov dword [ecx + 4], edx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x58]
lea edx, [ecx + eax]
mov dword [esp + 0x10], edx
call fcn.0040edc0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
je 0x40f2a9
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov esi, dword [esp + 0x50]
mov edi, eax
sub eax, esi
mov esi, dword [esp + 0x54]
add eax, esi
mov esi, dword [esp + 0x48]
mov ecx, dword [esi + 0x988]
add ecx, 8
nop
cmp dword [esi + 0x98c], ecx
jae 0x40f1e4
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], eax
call fcn.00430a20
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
jmp 0x40f1e4
add esp, 0x4c
ret
mov edi, dword [esi + 0x988]
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x2c]
add edx, 4
mov dword [esi + 0x988], edx
mov edx, dword [eax]
mov dword [edi], edx
mov eax, dword [esp + 0x50]
mov esi, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x58]
lea edx, [ecx + eax]
mov dword [esp + 0x10], edx
call fcn.0040edc0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
je 0x40f2a9
mov dword [esp + 0x38], edx
mov esi, dword [esp + 0x48]
mov edi, dword [esi + 0x988]
add edi, 4
nop
cmp dword [esi + 0x98c], edi
jae 0x40f2ad
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], eax
call fcn.00430a20
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
jmp 0x40f2ad
inc ebx
cmp ebx, eax
jge 0x40f397
mov ebp, dword [ecx + ebx*4]
mov esi, dword [ebp + 0x68]
cmp edx, esi
jb 0x40f355
cmp dword [ebp + 0x6c], edx
jbe 0x40f355
mov eax, edx
sub edx, esi
mov ecx, dword [ebp + 0x110]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.0040ffa0
add esp, 0x4c
ret
lea eax, [0x91ebcc]
mov dword [esp], eax
call fcn.004762f0
mov eax, dword [esp + 4]
test eax, eax
je 0x40f3b4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x40f3b8
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x50]
xor ebx, ebx
jmp 0x40f3c1
inc ebx
cmp ebx, eax
jge 0x40f402
mov ebp, dword [ecx + ebx*4]
mov esi, dword [ebp + 0x70]
cmp edx, esi
jb 0x40f3c0
cmp dword [ebp + 0x74], edx
jbe 0x40f3c0
mov eax, edx
sub edx, esi
mov ecx, dword [ebp + 0x118]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.0040ffa0
add esp, 0x4c
ret
add esp, 0x4c
ret
lea eax, [0x72b953]
mov dword [esp], eax
mov dword [esp + 4], 0x28
call fcn.0046ad70
nop
int3