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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
cmp byte [ecx + 0x44], 0
jns 0x10007f17
mov edx, dword [esi + 0x40]
test edx, edx
je 0x10007f56
mov al, byte [esi]
cmp al, 3
jae 0x10007f60
movzx eax, byte [esi + 2]
lea edi, [esi + 0x74]
mov ecx, dword [esi + 0x14]
push eax
push edi
call fcn.10140270
add esp, 8
test eax, eax
jne 0x1000808a
mov byte [esi + 0x44], 0
mov ecx, dword [esi + 0x74]
mov al, byte [ecx + 1]
mov byte [esi + 0x45], al
cmp byte [ecx], 0
je 0x10008008
cmp dword [esi + 0x70], 0
sete al
cmp byte [ecx + 1], al
jne 0x10008008
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
and byte [esi + 1], 0xf1
cmp word [ecx + 0x18], ax
je 0x10007f4c
mov byte [esi], 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x74]
je 0x10007edf
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x10008030
call fcn.10140100
mov al, byte [esi + 0x44]
dec al
mov byte [esi + 0x44], al
je 0x10007f44
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov ecx, dword [eax + 0x48]
jmp 0x10007f1f
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x74], ecx
jmp 0x10007ef8
cmp byte [ecx + 8], 0
je 0x10008092
mov byte [esi], 1
mov eax, 0x10
jmp 0x10007f0f
cmp al, 4
je 0x100080c5
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10007ff6
cmp dword [0x101ef020], 0
je 0x100080cd
mov ebx, dword [0x101f2140]
test ebx, ebx
je 0x10007fa3
mov ecx, dword [0x101ef070]
cmp ecx, 0x10137ef0
jne 0x100080e4
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [0x101ef04c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
sub dword [0x101f20ec], eax
dec dword [0x101f2110]
mov ecx, dword [0x101ef044]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov edi, dword [0x101f2140]
test edi, edi
je 0x10007ff6
mov ecx, dword [0x101ef078]
cmp ecx, 0x10137ee0
jne 0x100080d3
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [esi + 0x10], 0
mov byte [esi], 1
mov edx, dword [esi + 0x40]
jmp 0x10007eb6
push 0x101cff9b
push 0x12063
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
jmp 0x10007f0f
mov ebx, dword [ecx + 0x14]
dec dword [ebx + 0x80]
mov eax, dword [ebx + 0x90]
mov dword [ecx + 0x10], eax
mov dword [ebx + 0x90], ecx
mov edi, dword [ecx + 0x18]
dec edi
mov eax, edi
mul dword [ebx + 0xa8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0xac]
imul eax, edi
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
add edx, eax
mov edi, edx
mov ebx, dword [ebx + 0x40]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x14]
push ebx
call ecx
add esp, 0x10
jmp 0x10007f2e
mov byte [esi], 1
jmp 0x10007f0f
cmp dword [ecx + 4], 1
jne 0x100080b6
mov eax, dword [ecx + 0x38]
movzx ecx, byte [ecx + 9]
mov edx, dword [ecx + eax + 8]
bswap edx
mov byte [esi], 0
mov ecx, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1000ed10
push 0x101cff9b
push 0x1206f
jmp 0x10008012
mov eax, dword [esi + 4]
jmp 0x10007f0f
mov ecx, dword [0x101ef044]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
jmp 0x10007ff6
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
jmp 0x10007fa3