Function at 0x661f80
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x6626ca
sub esp, 0x84
mov eax, 0
mov dword [esp + 0x80], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov byte [esp + 0x26], 0
lea eax, [0x6626e0]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x26]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x80], ecx
mov byte [esp + 0x27], 1
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x662020
xor ebx, ebx
xor edx, edx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
jmp 0x662415
mov dword [esp], eax
call fcn.00662970
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + 4]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 8]
mov dword [esp + 0x50], ebx
test ecx, ecx
je 0x6621e4
mov ecx, dword [eax + 0x28]
cmp dword [ecx + 4], 7
jne 0x6621e4
mov ecx, dword [ecx]
cmp dword [ecx], 0x6e756863
jne 0x6621e4
cmp word [ecx + 4], 0x656b
jne 0x6621e4
cmp byte [ecx + 6], 0x64
jne 0x6621e4
mov ecx, dword [esp + 0x8c]
lea ebp, [0x78aaf0]
cmp ecx, ebp
jne 0x662095
mov ebp, dword [esp + 0x90]
jmp 0x66209a
mov ebp, 0
jne 0x6620ec
movzx esi, byte [eax + 0x3c]
xchg esi, eax
test al, al
xchg esi, eax
je 0x6620af
mov ebp, dword [esp + 0x90]
jmp 0x6620f3
mov dword [esp + 0x4c], ebp
lea eax, [0x70c720]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [0x93f150]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x6620d5
mov eax, dword [esp + 0x4c]
jmp 0x6620e0
call fcn.00471830
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov dword [ecx], eax
mov ebp, ecx
lea ecx, [0x78ab70]
jmp 0x6620f3
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], ebp
lea eax, [0x6e7740]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov edx, dword [0x93f150]
test edx, edx
jne 0x662123
mov edx, dword [esp + 0x48]
jmp 0x66212e
call fcn.00471830
mov edx, dword [esp + 0x48]
mov dword [edi], edx
mov dword [esp + 0x7c], eax
mov dword [eax + 4], edx
mov ecx, dword [0x78b518]
lea ebx, [0x9141c8]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.00409f00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
call fcn.00662760
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
test eax, eax
jne 0x6621d3
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x71b2b7]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
call fcn.00498440
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
xor ebx, ebx
xor edx, edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
jmp 0x662406
mov ecx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x20]
cmp ecx, 0xffffffff
xchg esi, ebx
sete bl
xchg esi, ebx
cmp ebp, 0xffffffff
xchg edi, ebx
sete bl
xchg edi, ebx
and edi, esi
xchg edi, eax
test al, al
xchg edi, eax
je 0x6622ee
cmp dword [eax + 4], 7
jne 0x6622a5
mov ecx, dword [eax]
cmp dword [ecx], 0x4e4e4f43
jne 0x662295
cmp word [ecx + 4], 0x4345
jne 0x662285
cmp byte [ecx + 6], 0x54
je 0x66223c
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
jmp 0x6622b3
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x78], ecx
lea edx, [0x6f02c0]
mov dword [esp], edx
lea edx, [esp + 0x74]
mov dword [esp + 4], edx
call fcn.00409d70
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x50]
lea ecx, [0x78ab80]
mov ebp, eax
mov eax, dword [esp + 0x88]
jmp 0x6622b3
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
jmp 0x6622b3
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
jmp 0x6622b3
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.00662760
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
jmp 0x6623f8
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebp
lea eax, [0x6ed0c0]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
mov edx, dword [0x93f150]
test edx, edx
jne 0x66231e
mov edx, dword [esp + 0x50]
jmp 0x662329
call fcn.00471830
mov edx, dword [esp + 0x50]
mov dword [edi], edx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x90]
mov dword [esp + 8], ebp
lea esi, [0x78aaa0]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
call fcn.00662760
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
test eax, eax
jne 0x6626a7
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edx
mov eax, dword [0x9135b0]
mov ecx, dword [0x9135b4]
mov edx, dword [esp + 0x88]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
call fcn.00662760
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov eax, dword [esp + 0x30]
add edx, eax
mov eax, dword [esp + 0x34]
adc ebx, eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
test ebp, ebp
jne 0x662690
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
mov ebp, dword [esp + 0x88]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x662469
mov byte [esp + 0x26], 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
test eax, eax
jne 0x662667
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x88]
movzx esi, byte [ebp + 0x18]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x66257d
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
cmp esi, 0xffffffff
setne cl
cmp edi, 0xffffffff
setne al
or ecx, eax
test cl, cl
je 0x662575
cmp edx, esi
setne al
cmp ebx, edi
setne cl
or ecx, eax
test cl, cl
jne 0x6624b0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
jmp 0x66257d
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00465e60
mov eax, dword [esp + 8]
lea ecx, [0x6db340]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00465e60
mov eax, dword [esp + 8]
lea ecx, [0x6db340]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
lea eax, [0x72c3f1]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004c2050
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov ebx, dword [ebp + 0x2c]
test ebx, ebx
je 0x662650
mov ebx, dword [ebp + 0x28]
cmp dword [ebx + 4], 7
jne 0x662650
mov ebx, dword [ebx]
cmp dword [ebx], 0x6e756863
jne 0x662650
cmp word [ebx + 4], 0x656b
jne 0x662650
cmp byte [ebx + 6], 0x64
jne 0x662650
mov edx, dword [ebp + 0x38]
test edx, edx
je 0x6625f1
nop
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00659f00
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x662627
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x71b219]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
call fcn.00498440
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
jmp 0x662650
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
call fcn.00470430
jmp fcn.00661f80