Function at 0x6696f0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x74]
cmp eax, dword [ecx + 8]
jbe 0x669de8
sub esp, 0xf4
mov eax, 0
mov dword [esp + 0xf0], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax]
mov ebx, dword [ecx + 0x80]
mov ebp, dword [eax + 8]
test ebx, ebx
je 0x669764
mov ebx, dword [ecx + 0x80]
mov ecx, dword [ecx + 0x84]
jmp 0x669770
lea ebx, [0x78bc44]
lea ecx, [0x93ed20]
mov dword [esp + 0x44], ebp
test ebp, ebp
je 0x6697d7
mov esi, dword [ebp]
test esi, esi
je 0x6697d7
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x100]
test esi, esi
jne 0x6697a2
mov esi, dword [esp + 0x110]
mov edi, dword [esp + 0x10c]
jmp 0x6697b6
mov dword [esp], esi
call fcn.00670e40
mov edi, dword [esp + 4]
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0x44]
mov edx, dword [ebp]
mov eax, dword [edx]
mov dword [esp], edi
mov dword [esp + 4], esi
call eax
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x44]
test ebx, ebx
je 0x669dc3
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ecx
lea eax, [0x7053c0]
mov dword [esp], eax
lea eax, [esp + 0xe8]
mov dword [esp + 4], eax
call fcn.00409d70
mov eax, dword [esp + 8]
lea ecx, [0x78bc60]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ed1e0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x98], edx
lea ebx, [esp + 0x100]
mov dword [esp], ebx
call fcn.0066d270
lea edi, [esp + 0x5c]
lea esi, [esp + 4]
call fcn.00471f9a
lea eax, [0x6d50a0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00405070
mov eax, dword [esp + 8]
mov dword [esp + 0xa4], eax
lea ecx, [0x7072e0]
mov dword [esp], ecx
call fcn.0040bb90
mov eax, dword [0x93f150]
mov edi, dword [esp + 4]
mov dword [esp + 0x40], edi
test eax, eax
je 0x6698b8
lea eax, [0x6fea60]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x100]
mov dword [esp + 8], eax
call fcn.0040eb20
mov edi, dword [esp + 0x40]
lea esi, [esp + 0x100]
call fcn.00471fa4
mov eax, dword [0x93f150]
mov ecx, dword [esp + 0x40]
lea edi, [ecx + 0x18]
test eax, eax
je 0x669937
mov dword [esp + 0xa0], edi
mov eax, edi
call fcn.00471880
mov edx, dword [esp + 0x98]
mov dword [edi], edx
mov ebx, dword [ecx + 0x48]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x9c]
mov dword [edi + 8], ebx
mov ebp, dword [ecx + 0x4c]
mov dword [edi + 0xc], ebp
mov ebp, dword [esp + 0xa4]
mov dword [edi + 0x10], ebp
mov esi, dword [ecx + 0x54]
mov dword [edi + 0x14], esi
lea esi, [0x700260]
mov dword [esp], esi
mov dword [esp + 4], eax
lea esi, [esp + 0x5c]
mov dword [esp + 8], esi
call fcn.0040eb20
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0xa0]
lea esi, [esp + 0x5c]
call fcn.00471f9a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0x98]
mov dword [ecx + 0x48], eax
mov eax, dword [esp + 0x9c]
mov dword [ecx + 0x4c], eax
mov eax, dword [esp + 0xa4]
mov dword [ecx + 0x54], eax
mov eax, dword [0x93f150]
mov edx, dword [0x913270]
test eax, eax
je 0x669986
call fcn.00471840
mov dword [edi], edx
mov eax, dword [ecx + 0x34]
mov dword [edi + 4], eax
mov dword [ecx + 0x34], edx
mov eax, dword [0x93f150]
mov edx, dword [0x913274]
test eax, eax
je 0x6699a6
call fcn.00471840
mov dword [edi], edx
mov eax, dword [ecx + 0x38]
mov dword [edi + 4], eax
mov dword [ecx + 0x38], edx
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
lea eax, [0x669e00]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0x11c]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xc4], eax
lea edx, [esp + 0xb8]
mov dword [esp + 0xf0], edx
mov byte [esp + 0x23], 1
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.006682c0
movzx eax, byte [esp + 8]
test al, al
jne 0x669a39
mov eax, dword [esp + 0xf8]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.00669e50
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0xa4], ecx
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.00471ac8
mov ecx, dword [esp + 0xfc]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
mov edx, dword [edx + 0x10]
mov dword [esp], ebx
call edx
mov ecx, dword [esp + 4]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xb0], edx
lea edx, [esp + 0xc8]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xa8], ecx
lea ecx, [esp + 0xa8]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call fcn.00449a50
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x669d27
lea edi, [esp + 0x5c]
lea esi, [esp + 0xc8]
call fcn.00471f90
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x669c21
mov ecx, dword [eax]
test ecx, ecx
jne 0x669c21
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x669c21
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x669c21
mov dword [esp], eax
call fcn.0066d8a0
movzx eax, byte [esp + 4]
mov byte [esp + 0x22], al
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.00471acb
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
movzx eax, byte [esp + 0x22]
mov byte [esp + 0x84], al
lea edi, [esp + 0x48]
lea esi, [esp + 0x68]
call fcn.00471fae
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
test eax, 0x80000000
je 0x669bb7
shl eax, 1
mov ebx, ecx
shl ecx, 1
mov ebp, ebx
shr ebx, 0x1f
or eax, ebx
mov ebx, eax
shl eax, 1
shr ebx, 0x1f
shr ecx, 0x1f
or ecx, eax
add ecx, 0xd7b17f80
adc ebx, 0xd
jmp 0x669bc3
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov ebp, ecx
mov ecx, eax
test ebx, ebx
sete al
test ecx, ecx
sete cl
and eax, ecx
test al, al
je 0x669bdb
test ebp, 0x3fffffff
je 0x669c0a
mov byte [esp + 0x85], 1
lea edi, [esp]
lea esi, [esp + 0x68]
call fcn.00471fae
call fcn.004af740
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 4]
mov eax, dword [edx]
lea edi, [esp]
lea esi, [esp + 0x7c]
call fcn.00471fae
call eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x669c53
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov ecx, dword [ecx + 0x10]
mov dword [esp], edx
call ecx
mov dword [esp], 0
call fcn.004065d0
movzx eax, byte [esp + 8]
test al, al
jne 0x669c8b
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x120], ebx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xf0]
mov eax, dword [edx]
call eax
add esp, 0xf4
ret
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ed460
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp dword [0x91edf8], eax
jne 0x669cf7
mov dword [esp + 0x30], eax
mov dword [esp + 0x90], ecx
mov edx, dword [0x91edfc]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404430
movzx eax, byte [esp + 0xc]
test al, al
je 0x669cec
mov eax, dword [0x913758]
mov ecx, dword [0x91375c]
jmp 0x669cf7
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xf0]
mov eax, dword [edx]
call eax
add esp, 0xf4
ret
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ed460
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp dword [0x91edf8], eax
jne 0x669d93
mov dword [esp + 0x94], ecx
mov dword [esp + 0x34], eax
mov edx, dword [0x91edfc]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404430
movzx eax, byte [esp + 0xc]
test al, al
je 0x669d88
mov eax, dword [0x913758]
mov ecx, dword [0x91375c]
jmp 0x669d93
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0xf0]
mov eax, dword [edx]
call eax
add esp, 0xf4
ret
lea eax, [0x6db180]
mov dword [esp], eax
lea eax, [0x789ee0]
mov dword [esp + 4], eax
call fcn.0046a9e0
nop
call fcn.004358b0
add esp, 0xf4
ret
call fcn.00470430
jmp fcn.006696f0