Function at 0x66a4f0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x66a7d1
sub esp, 0x50
mov eax, 0
mov dword [esp + 0x4c], eax
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x94]
test ecx, ecx
jg 0x66a527
add esp, 0x50
ret
lea ecx, [eax + 0x38]
mov dword [esp + 0x40], ecx
mov dword [esp], ecx
call fcn.004868a0
lea eax, [0x66a7e0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x4c], eax
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x40]
lea edx, [0x6ddb00]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.0040c740
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x66a7af
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x44]
lea edx, [0x6dda40]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.0040c740
mov esi, dword [esp + 0xc]
lea edi, [esp + 0x20]
call fcn.00471f9a
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x34]
test eax, eax
jg 0x66a633
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x66a5f2
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x40]
lea ecx, [0x6ddb00]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
call fcn.004675f0
jmp 0x66a622
dec eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx + 0x40]
lea edx, [0x6ddb00]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.00467120
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov byte [esp + 0x13], 0
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
call eax
add esp, 0x50
ret
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov ebp, edx
sub edx, ebx
mov esi, dword [esp + 0x34]
add edx, esi
mov dword [esp + 0x14], edx
test edx, edx
jle 0x66a6f8
cmp ebp, ebx
jg 0x66a691
test esi, esi
jne 0x66a65d
xor ebp, ebp
jmp 0x66a6c7
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jbe 0x66a7aa
mov ecx, dword [esp + 0x20]
mov ebx, dword [0x93f150]
mov ebp, dword [ecx + eax*4]
test ebx, ebx
je 0x66a6bc
mov ebx, dword [ecx + eax*4]
call fcn.00471830
mov dword [edi], ebx
mov dword [ecx + eax*4], 0
inc dword [esp + 0x2c]
mov dword [esp + 0x1c], ebp
mov dword [esp], ebp
call fcn.00668f70
movzx eax, byte [esp + 4]
test al, al
je 0x66a633
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], ecx
call fcn.0066a150
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x34]
test eax, eax
jne 0x66a731
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x44]
lea edx, [0x6dda40]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.004675f0
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x66a793
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x44]
lea edx, [0x6dda40]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.00467120
mov edi, dword [esp + 0xc]
test byte [edi], al
mov eax, dword [0x93f150]
test eax, eax
je 0x66a784
mov dword [esp + 0x3c], edi
lea eax, [0x6f33a0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
call fcn.0040eb20
mov edi, dword [esp + 0x3c]
lea esi, [esp + 0x20]
call fcn.00471f9a
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x66a5c6
mov byte [esp + 0x13], 0
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
call eax
add esp, 0x50
ret
call fcn.004718b0
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789ee8]
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.004358b0
add esp, 0x50
ret
call fcn.00470430
jmp fcn.0066a4f0