Function at 0x66db50
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x66ddc0
sub esp, 0x38
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x66ddac
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x60]
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00405d80
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0066d7b0
mov eax, dword [esp + 4]
test eax, eax
jne 0x66dd9c
mov eax, dword [esp + 0x40]
test byte [eax], al
lea ecx, [eax + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp], ecx
call fcn.004868a0
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
mov dword [esp], edx
call fcn.00486c20
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x66dd8c
mov eax, dword [esp + 0x4c]
cmp dword [0x913740], eax
jne 0x66dc18
mov ecx, dword [0x913744]
mov dword [esp], eax
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00404430
movzx eax, byte [esp + 0xc]
test al, al
jne 0x66dd78
mov eax, dword [esp + 0x4c]
lea ecx, [0x78ad10]
cmp eax, ecx
jne 0x66dc88
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
cmp dword [edx + 0x3c], ecx
sete cl
mov ebx, dword [esp + 0x48]
cmp dword [edx + 0x40], ebx
sete dl
and ecx, edx
test cl, cl
je 0x66dc78
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
lea eax, [0x6f8840]
mov dword [esp], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00409d70
mov eax, dword [esp + 8]
lea ecx, [0x78ad00]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
add esp, 0x38
ret
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
add esp, 0x38
ret
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0066d750
movzx eax, byte [esp + 4]
test al, al
je 0x66dd64
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + 0x3c], eax
sete al
mov edx, dword [esp + 0x48]
cmp dword [ecx + 0x40], edx
sete cl
and eax, ecx
test al, al
jne 0x66dd28
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x66dcda
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
lea eax, [0x72ec9d]
mov dword [esp], eax
mov dword [esp + 4], 0x32
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c2050
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
add esp, 0x38
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
lea eax, [0x6f8840]
mov dword [esp], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00409d70
mov eax, dword [esp + 8]
lea ecx, [0x78ad00]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
add esp, 0x38
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
add esp, 0x38
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
add esp, 0x38
ret
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
add esp, 0x38
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
add esp, 0x38
ret
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
add esp, 0x38
ret
call fcn.00470430
jmp fcn.0066db50