Function at 0x10080660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push edi
xor edi, edi
lea edx, [esi + ecx]
lea ecx, [eax + ebx]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edi
cmp dword [ebp + 8], edi
je 0x100806e4
add eax, 0xa
mov dword [esp + 0x1c], eax
call sym.SQLite3Encrypt.dll_sqlite3_initialize
test eax, eax
jne 0x100806d8
mov eax, dword [esp + 0x1c]
cmp eax, edi
jle 0x100806d8
cdq
push edx
push eax
call fcn.10003d80
add esp, 8
mov dword [esp + 0x1c], eax
cmp eax, edi
jne 0x100806e8
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
cmp esi, dword [esp + 0x24]
jae 0x10080718
lea eax, [esp + 0x70]
push eax
mov eax, esi
call fcn.1007cd40
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
add esp, 4
lea edi, [esi + eax]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x14], edi
cmp ebx, dword [esp + 0x28]
jb 0x10080726
xor esi, esi
jmp 0x10080748
lea eax, [esp + 0x70]
push eax
mov eax, ebx
call fcn.1007cd40
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
add esp, 4
lea esi, [ebx + eax]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x10], esi
test edi, edi
je 0x100809d5
jmp 0x10080764
mov ebx, dword [esp + 0x2c]
test esi, esi
je 0x100809d5
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
xor eax, eax
cmp dword [ebp + 8], eax
sete al
sub ecx, dword [esp + 0x40]
sbb ebx, dword [esp + 0x44]
push ebx
push ecx
lea eax, [eax + eax - 1]
cdq
push edx
push eax
call fcn.100aa3a0
mov ecx, eax
or ecx, edx
jne 0x100808fd
cmp dword [ebp + 8], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x34], ecx
je 0x100807d6
test ecx, ecx
je 0x100807d6
sub edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
sbb edi, ebx
mov ecx, edx
mov esi, edi
jmp 0x100807e4
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
sub ecx, edx
mov esi, ebx
sbb esi, edi
mov dl, cl
shrd ecx, esi, 7
or dl, 0x80
mov byte [eax], dl
shr esi, 7
mov edx, ecx
inc eax
or edx, esi
jne 0x100807e4
and byte [eax - 1], 0x7f
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
push 1
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x38], 1
call fcn.1007fbd0
add esp, 0x18
test eax, eax
jne 0x10080858
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x24]
jb 0x1008086a
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x100808a3
lea eax, [esp + 0x50]
push eax
mov eax, edi
call fcn.1007cd40
add edi, eax
add esp, 4
cmp dword [ebp + 8], 0
mov dword [esp + 0x14], edi
je 0x10080893
mov ecx, dword [esp + 0x50]
sub dword [esp + 0x38], ecx
sbb ebx, dword [esp + 0x54]
jmp 0x1008089f
mov eax, dword [esp + 0x50]
add dword [esp + 0x38], eax
adc ebx, dword [esp + 0x54]
mov dword [esp + 0x3c], ebx
mov esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x28]
jb 0x100808b8
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x100809c9
lea edx, [esp + 0x58]
push edx
mov eax, esi
call fcn.1007cd40
add esi, eax
add esp, 4
cmp dword [ebp + 8], 0
mov dword [esp + 0x10], esi
je 0x100808e8
mov eax, dword [esp + 0x58]
sub dword [esp + 0x40], eax
mov ecx, dword [esp + 0x5c]
sbb dword [esp + 0x44], ecx
jmp 0x100809c9
mov edx, dword [esp + 0x58]
add dword [esp + 0x40], edx
mov eax, dword [esp + 0x5c]
adc dword [esp + 0x44], eax
jmp 0x100809c9
test edx, edx
jg 0x10080967
jl 0x10080907
test eax, eax
jae 0x10080967
mov cl, byte [edi]
test cl, cl
je 0x1008091d
lea ecx, [ecx]
inc edi
mov al, cl
mov cl, byte [edi]
and al, 0x80
mov dl, cl
or dl, al
jne 0x10080910
inc edi
cmp edi, dword [esp + 0x24]
jae 0x100809d1
lea eax, [esp + 0x60]
push eax
mov eax, edi
call fcn.1007cd40
add edi, eax
add esp, 4
cmp dword [ebp + 8], 0
mov dword [esp + 0x14], edi
je 0x10080955
mov ecx, dword [esp + 0x60]
sub dword [esp + 0x38], ecx
mov edx, dword [esp + 0x64]
sbb dword [esp + 0x3c], edx
jmp 0x100809c9
mov eax, dword [esp + 0x60]
add dword [esp + 0x38], eax
mov ecx, dword [esp + 0x64]
adc dword [esp + 0x3c], ecx
jmp 0x100809c9
mov cl, byte [esi]
test cl, cl
je 0x1008097d
lea ecx, [ecx]
inc esi
mov al, cl
mov cl, byte [esi]
and al, 0x80
mov dl, cl
or dl, al
jne 0x10080970
inc esi
cmp esi, dword [esp + 0x28]
jb 0x1008098c
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x100809c9
lea eax, [esp + 0x68]
push eax
mov eax, esi
call fcn.1007cd40
add esi, eax
add esp, 4
cmp dword [ebp + 8], 0
mov dword [esp + 0x10], esi
je 0x100809b9
mov ecx, dword [esp + 0x68]
sub dword [esp + 0x40], ecx
mov edx, dword [esp + 0x6c]
sbb dword [esp + 0x44], edx
jmp 0x100809c9
mov eax, dword [esp + 0x68]
add dword [esp + 0x40], eax
mov ecx, dword [esp + 0x6c]
adc dword [esp + 0x44], ecx
test edi, edi
jne 0x10080760
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x1c]
cmp dword [ebp + 8], 0
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
je 0x100809fa
push ebx
call sym.SQLite3Encrypt.dll_sqlite3_free
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret