Function at 0x668b20
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x668da3
sub esp, 0x48
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x668b5b
movzx edx, byte [ecx + 4]
nop
test dl, dl
je 0x668d8a
mov dword [esp], ecx
call fcn.0046ecd0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x18]
lea ebp, [0x6dda80]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00468140
movzx eax, byte [esp + 0x10]
test al, al
je 0x668c1d
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x14]
cmp dword [eax + 8], edx
jne 0x668c00
mov ebx, dword [eax + 4]
test byte [ebx], al
mov ebp, dword [0x93f150]
nop
mov esi, dword [eax]
test ebp, ebp
je 0x668bb5
call fcn.00471840
mov dword [edi], esi
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], esi
mov ebx, dword [eax]
test byte [ebx], al
mov ebp, dword [0x93f150]
mov esi, dword [eax + 4]
test ebp, ebp
je 0x668be6
call fcn.00471870
mov dword [edi], esi
mov ebp, dword [ebx + 4]
mov dword [edi + 4], ebp
mov ebp, dword [eax]
mov dword [edi + 8], ebp
mov ebp, dword [eax + 4]
mov dword [edi + 0xc], ebp
mov ebp, dword [eax + 8]
mov dword [edi + 0x10], ebp
mov dword [ebx + 4], esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
dec dword [edx + 0x14]
mov eax, dword [esp + 0x50]
mov ebx, dword [ecx + 0x18]
lea ebp, [0x6dda80]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.0040d360
mov eax, dword [esp + 0x50]
lea esi, [eax + 0xc]
lea edi, [esp + 0x2c]
call fcn.00471f9a
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0xc]
lea ebx, [0x6dda00]
mov dword [esp], ebx
mov dword [esp + 4], edx
lea edx, [esp + 0x2c]
mov dword [esp + 8], edx
call fcn.0040c740
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x668ca6
mov edx, dword [eax]
cmp ecx, 1
je 0x668c68
mov ebx, dword [esp + 0x50]
xor ebp, ebp
jmp 0x668cb1
mov eax, dword [edx]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jne 0x668ca1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0xc]
lea ecx, [0x6dda00]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.004675f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
sete al
jmp 0x668ca8
xor eax, eax
mov byte [esp + 0x54], al
add esp, 0x48
ret
inc ebp
cmp ebp, ecx
jge 0x668d82
lea esi, [edx + ebp*4]
cmp dword [esi], ebx
jne 0x668cb0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
lea ebx, [0x710460]
mov dword [esp], ebx
mov ebx, ebp
shl ebp, 2
sub eax, ebx
mov edi, eax
neg eax
sar eax, 0x1f
and ebp, eax
lea eax, [ebp + edx]
mov dword [esp + 4], eax
sub ecx, ebx
mov dword [esp + 8], ecx
dec ecx
lea ebp, [edi - 1]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
lea edi, [ebx + 1]
shl edi, 2
and ebp, edi
add ebp, edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
call fcn.004694d0
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0xc]
lea ecx, [0x6dda00]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.00467120
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
lea edx, [ecx - 1]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov edx, dword [0x93f150]
test edx, edx
jne 0x668d6a
mov edx, dword [esp + 0x20]
cmp edx, ecx
mov edx, dword [esp + 0x28]
jmp 0x668d80
call fcn.00471840
mov edx, dword [esp + 0x28]
mov dword [edi], edx
mov ebx, dword [eax]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x20]
cmp ebx, ecx
mov dword [eax], edx
setl al
jmp 0x668ca8
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789e50]
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.00470430
jmp fcn.00668b20