Function at 0x407e80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44aed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x461fe4]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x74]
push 0x45fbd4
push eax
mov dword [ebp - 4], 0
call fcn.0042280b
mov eax, dword [ebp + 8]
add esp, 8
cmp byte [eax], 0
jne 0x407f03
push 0x45fbc0
lea ecx, [ebx + 0x60]
call fcn.004313ab
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00431222
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
lea ecx, [ebp - 0x18]
push str.SELECT__FROM_FCFH_OPT_WHERE_LogID___s
push ecx
mov byte [ebp - 4], 1
call fcn.0042dd0d
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov esi, eax
mov word [ebp - 0x3c], 8
push eax
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x407f3f
test esi, esi
je 0x407f3f
push 0x8007000e
call fcn.0042d648
mov eax, dword [0x4661b0]
mov word [ebp - 0x2c], 9
mov dword [ebp - 0x24], eax
push eax
mov edx, dword [eax]
mov byte [ebp - 4], 2
call dword [edx + 4]
mov eax, dword [ebx + 0x32c]
mov byte [ebp - 4], 3
test eax, eax
jne 0x407f6f
push 0x80004003
call fcn.0042d648
mov edx, dword [ebp - 0x2c]
push 1
push 2
push 2
sub esp, 0x10
mov esi, dword [ebx + 0x32c]
mov ecx, esp
sub esp, 0x10
mov eax, dword [esi]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x3c]
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [ebp - 0x38]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x34]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0xc], edx
call dword [eax + 0xa0]
mov edi, eax
test edi, edi
jge 0x407fce
push 0x45f358
push esi
push edi
call fcn.0042d656
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call esi
test eax, eax
jge 0x407fe8
push eax
call fcn.0042d648
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
push ecx
call esi
test eax, eax
jge 0x407ffc
push eax
call fcn.0042d648
test edi, edi
jge 0x40800a
push 0x45fb84
jmp 0x407ed7
mov eax, dword [ebx + 0x32c]
mov dword [ebp - 4], 0
test eax, eax
jne 0x408025
push 0x80004003
call fcn.0042d648
mov esi, dword [ebx + 0x32c]
lea eax, [ebp + 8]
push eax
push esi
mov edx, dword [esi]
call dword [edx + 0x68]
test eax, eax
jge 0x408045
push 0x45f358
push esi
push eax
call fcn.0042d656
mov eax, dword [ebp + 8]
test eax, eax
je 0x40830e
push str.OptName
mov word [ebp - 0x2c], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x24], eax
jne 0x40807a
mov ecx, str.OptName
test ecx, ecx
je 0x40807a
push 0x8007000e
call fcn.0042d648
mov eax, dword [ebx + 0x32c]
mov byte [ebp - 4], 6
test eax, eax
jne 0x408092
push 0x80004003
call fcn.0042d648
mov ecx, dword [ebx + 0x32c]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x4c]
push edx
push eax
call fcn.0040b740
mov esi, eax
mov dword [ebp + 8], 0
cmp word [esi], 8
mov byte [ebp - 4], 7
jne 0x4080c6
mov ecx, dword [esi + 8]
push ecx
lea ecx, [ebp + 8]
call fcn.0040b0f0
jmp 0x408103
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 8
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.0040b470
mov eax, dword [ebp - 0x34]
lea ecx, [ebp + 8]
push eax
call fcn.0040b0f0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x408103
push eax
call fcn.0042d648
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x408115
call fcn.00402b90
jmp 0x408117
xor eax, eax
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebx + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 8]
call fcn.00402960
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 6
call edi
test eax, eax
jge 0x408159
push eax
call fcn.0042d648
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
push ecx
call edi
test eax, eax
jge 0x40816d
push eax
call fcn.0042d648
push 0x45f748
mov word [ebp - 0x3c], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x408197
mov edx, 0x45f748
test edx, edx
je 0x408197
push 0x8007000e
call fcn.0042d648
mov eax, dword [ebx + 0x32c]
mov byte [ebp - 4], 0xa
test eax, eax
jne 0x4081af
push 0x80004003
call fcn.0042d648
mov ecx, dword [ebx + 0x32c]
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x4c]
push eax
push edx
call fcn.0040b740
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebx + 0x6c], eax
call edi
test eax, eax
jge 0x4081d8
push eax
call fcn.0042d648
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 0
push edx
call edi
test eax, eax
jge 0x4081ec
push eax
call fcn.0042d648
sub esp, 0x10
mov esi, esp
mov dword [ebp + 8], esp
push str.Password
mov word [esi], 8
call fcn.0042d6f5
test eax, eax
mov dword [esi + 8], eax
jne 0x40821d
mov eax, str.Password
test eax, eax
je 0x40821d
push 0x8007000e
call fcn.0042d648
lea ecx, [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.004084e0
test al, al
jne 0x40831f
push 0x20
lea ecx, [ebp - 0x18]
call fcn.0042dd20
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
push edx
push eax
call fcn.0042285d
add esp, 8
test eax, eax
jne 0x4082ff
push str.Rights
mov word [ebp - 0x3c], 8
call fcn.0042d6f5
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x40827c
mov ecx, str.Rights
test ecx, ecx
je 0x40827c
push 0x8007000e
call fcn.0042d648
mov eax, dword [ebx + 0x32c]
mov byte [ebp - 4], 0xb
test eax, eax
jne 0x408294
push 0x80004003
call fcn.0042d648
mov ecx, dword [ebx + 0x32c]
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x4c]
push edx
push eax
call fcn.0040b740
mov ecx, dword [eax + 8]
lea edx, [ebp - 0x4c]
push edx
mov dword [ebx + 0x70], ecx
call edi
test eax, eax
jge 0x4082bd
push eax
call fcn.0042d648
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0
push eax
call edi
test eax, eax
jge 0x4082d1
push eax
call fcn.0042d648
mov ecx, dword [ebx + 0x70]
mov eax, dword [ebp + 0x10]
and ecx, eax
cmp ecx, eax
jne 0x4082f0
push 0x45fb58
lea ecx, [ebx + 0x60]
call fcn.004313ab
mov byte [ebp - 0x11], 1
jmp 0x40831f
push 0x45fb48
lea ecx, [ebx + 0x60]
call fcn.004313ab
jmp 0x40831f
push 0x45fb38
lea ecx, [ebx + 0x60]
call fcn.004313ab
jmp 0x40831f
lea eax, [ebx + 0x74]
push 0x45fbd4
push eax
call fcn.0042280b
add esp, 8
mov eax, dword [ebx + 0x32c]
test eax, eax
jne 0x408333
push 0x80004003
call fcn.0042d648
mov ebx, dword [ebx + 0x32c]
push ebx
mov edx, dword [ebx]
call dword [edx + 0x80]
test eax, eax
jge 0x408352
push 0x45f358
push ebx
push eax
call fcn.0042d656
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00431222
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc