Function at 0x66f110
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x66f4c7
sub esp, 0x48
mov eax, dword [esp + 0x64]
test eax, eax
je 0x66f16b
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x66f16b
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], 1
call fcn.0061ccf0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x66f167
cmp dword [esp + 0xc], 1
jne 0x66f167
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
xor edx, edx
jmp 0x66f177
mov ecx, ebp
mov edx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax + 0x34]
mov ebp, dword [esp + 0x50]
mov ebp, dword [ebp]
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0065c970
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x66f4b7
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], eax
mov ebx, dword [ecx + 8]
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x66f208
cmp ebx, 0x64
jne 0x66f208
mov esi, dword [esp + 0x64]
test esi, esi
je 0x66f1e6
mov edi, dword [esi + 0x10]
test edi, edi
je 0x66f1e6
mov eax, dword [edi]
mov edx, edi
call eax
mov ebp, dword [esp + 0x34]
mov dword [esp], ebp
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
call fcn.00405240
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x34], ebp
lea esi, [ebx - 0x64]
cmp esi, 0x63
ja 0x66f30b
cmp ebx, 0x65
je 0x66f30b
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 5
jg 0x66f2d0
mov esi, dword [esp + 0x4c]
mov edi, dword [esi + 8]
mov edx, dword [edi + 0xbc]
mov edi, dword [edi + 0xc0]
test edx, edx
setne bl
test edi, edi
setne cl
or ecx, ebx
test cl, cl
je 0x66f25a
mov ecx, dword [esp + 0x64]
test ecx, ecx
jmp 0x66f26a
mov ecx, dword [esp + 0x64]
test ecx, ecx
mov edi, 0
mov edx, 0xa00000
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], edi
je 0x66f173
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x66f173
mov dword [esp + 0x24], eax
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 8]
test eax, eax
jne 0x66f2b8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x4c]
jmp 0x66f173
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
add esp, 0x48
ret
lea eax, [0x6e6720]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2e
lea ecx, [0x72d7a7]
mov dword [eax], ecx
mov dword [esp + 0x68], 0
lea ecx, [0x78aa3c]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
add esp, 0x48
ret
cmp dword [ecx + 8], 0x65
je 0x66f315
xor ebx, ebx
jmp 0x66f337
mov eax, dword [ecx + 0x1c]
mov dword [esp], eax
call fcn.0065d150
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
mov ebx, eax
mov eax, dword [esp + 0x28]
test bl, bl
je 0x66f446
mov ebx, dword [esp + 0x4c]
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x34]
mov dword [esp + 0x38], edi
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x2c], edx
test esi, esi
je 0x66f371
mov eax, dword [esi + 4]
lea ecx, [0x914288]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409f00
mov esi, dword [esp + 8]
mov dword [esp + 0x40], esi
lea eax, [0x700860]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [0x93f150]
mov ecx, dword [esp + 4]
test eax, eax
je 0x66f39a
mov eax, dword [ecx]
call fcn.00471830
mov dword [edi], eax
mov dword [ecx], 0
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [0x93f150]
test eax, eax
jne 0x66f3b7
mov eax, dword [esp + 0x2c]
jmp 0x66f3c8
call fcn.00471840
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
mov edx, dword [ecx + 8]
mov dword [edi + 4], edx
mov dword [esp + 0x3c], ecx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x18]
cmp dword [eax + 0x14], edx
je 0x66f3f3
mov edx, dword [0x93f150]
test edx, edx
je 0x66f3f1
call fcn.00471840
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
mov eax, dword [0x78baa8]
lea ecx, [0x914298]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409f00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x20], eax
mov eax, dword [0x93f150]
test eax, eax
jne 0x66f426
mov eax, dword [esp + 0x3c]
jmp 0x66f437
call fcn.00471840
mov eax, dword [esp + 0x3c]
mov dword [edi], eax
mov edx, dword [ecx + 0x24]
mov dword [edi + 4], edx
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x66f486
movzx ebx, byte [ecx + 0x3c]
test bl, bl
jne 0x66f460
mov ebx, dword [esp + 0x50]
mov ebx, dword [ebx]
movzx ebx, byte [ebx + 0x40]
test bl, bl
je 0x66f46a
mov dword [esp], ebp
call fcn.00405a70
jmp 0x66f47a
mov dword [esp], ebp
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
call fcn.00405240
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov ebx, dword [0x93f150]
mov ebp, dword [esp + 0x4c]
mov ebp, dword [ebp + 0x30]
test ebx, ebx
je 0x66f4a4
call fcn.00471840
mov dword [edi], ebp
mov ebx, dword [ecx + 0x48]
mov dword [edi + 4], ebx
mov dword [ecx + 0x48], ebp
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
add esp, 0x48
ret
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
add esp, 0x48
ret
call fcn.00470430
jmp fcn.0066f110