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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x28], edx
push edi
mov dword [esp + 0x28], esi
mov ebx, dword [esi + 4]
mov dword [esp + 0x18], ebx
cmp byte [ebx + 0x11], 0
je 0x10082201
mov eax, dword [ebx + 8]
mov edi, ebx
test eax, eax
je 0x10081ebe
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x10081eb0
mov edi, dword [esi + 4]
mov cl, byte [esi + 9]
test cl, cl
je 0x10081ed8
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x10081ed8
mov ecx, esi
call fcn.10077eb0
mov cl, byte [esi + 9]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov edi, dword [eax + 0x34]
bswap edi
test cl, cl
je 0x10081ef4
add dword [esi + 0xc], 0xffffffff
jne 0x10081ef4
mov ecx, esi
call fcn.10077e70
lea esi, [edi + 1]
mov edi, esi
mov dword [esp + 0x14], esi
cmp edi, 2
jae 0x10081f06
xor ecx, ecx
jmp 0x10081f3a
mov eax, 0xcccccccd
lea esi, [edi - 2]
mul dword [ebx + 0x28]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x102d49fc]
xor ecx, ecx
sub esi, edx
xor edx, edx
div dword [ebx + 0x24]
dec eax
cmp esi, eax
sete cl
add esi, 2
add ecx, esi
mov esi, dword [esp + 0x14]
cmp edi, ecx
je 0x10081ef4
mov eax, dword [0x102d49fc]
xor edx, edx
div dword [ebx + 0x24]
inc eax
cmp edi, eax
je 0x10081ef4
push 1
lea eax, [esp + 0x24]
mov ecx, ebx
push esi
push eax
lea edx, [esp + 0x1c]
call fcn.1007d990
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x10082002
cmp dword [esp + 0x20], edi
je 0x10082199
mov edi, dword [esp + 0x18]
mov byte [esp + 0x1c], al
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10081f9d
push eax
xor edx, edx
call fcn.100782a0
add esp, 4
mov ebx, eax
jmp 0x10081f9f
xor ebx, ebx
mov edx, dword [esp + 0x10]
test edx, edx
je 0x10081ffe
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10081ff7
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10180ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x24]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x10081ffe
mov ecx, edx
call fcn.1006e3b0
test ebx, ebx
je 0x1008200b
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov edx, esi
push 0
push eax
mov ecx, edi
call fcn.10079920
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10082002
lea eax, [esp + 0x24]
mov edx, esi
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.10078650
mov ebx, eax
add esp, 8
mov al, byte [esp + 0x1c]
cmp al, 1
je 0x10082117
cmp al, 2
je 0x10082117
test ebx, ebx
jne 0x1008213a
mov edx, dword [esp + 0x10]
mov ecx, edi
push ebx
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.1007b560
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100820d4
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100820cd
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10180ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x24]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x100820d4
mov ecx, edx
call fcn.1006e3b0
test ebx, ebx
jne 0x10082002
lea eax, [esp + 0x10]
mov edx, esi
push ebx
push eax
mov ecx, edi
call fcn.10079920
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10082002
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x48]
call fcn.10074400
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x1008219d
mov edx, dword [edi + 0x48]
jmp 0x10082149
push 0x102b4224
push 0x12c84
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.BasicSQLite.dll_sqlite3_log
add esp, 0x14
mov ebx, 0xb
mov edx, dword [esp + 0x10]
test edx, edx
je 0x10082002
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100821f1
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov dword [eax + 0x88], edx
mov esi, dword [eax + 0x3c]
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10180ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push 1
mov edx, esi
call fcn.10078510
mov ebx, dword [esp + 0x28]
add esp, 0xc
test ebx, ebx
je 0x100821c9
test edi, edi
je 0x10082002
mov edx, dword [edi + 0x48]
jmp 0x10082149
mov ecx, dword [esp + 0x28]
mov edx, 4
push esi
call fcn.10082ab0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1008222a
test edi, edi
je 0x10082002
mov edx, dword [edi + 0x48]
jmp 0x10082149
mov ecx, edx
call fcn.1006e3b0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x2c]
mov ecx, ebx
push 1
push eax
lea edx, [esp + 0x1c]
call fcn.1007d990
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10082002
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
test byte [ebp + 8], 1
mov eax, 0xa
mov edx, 0xd
mov ecx, edi
cmove edx, eax
call fcn.10079850
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x1008224e
call fcn.10073c20
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret