Function at 0x1000d100
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018d5d0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x74
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
jb 0x1000d15e
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x2c]
call fcn.101012c0
add esp, 4
test al, al
jne 0x1000d191
push str.Failed_to_convert_path_from_native_string_to_string.
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d580
add esp, 0xc
mov esi, 1
jmp 0x1000d2f4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call fcn.10018740
push 0xf
push str.pim.db_journal
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.1000ae20
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000d2ea
push str.Detected_db_journal_file_trying_to_repair_it...
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d400
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.100ffcf0
add esp, 4
test al, al
jne 0x1000d213
push str.Failed_to_delete__db_journal_file.
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d400
add esp, 0xc
mov esi, 0x40
jmp 0x1000d2ec
push str.Successfully_deleted_old_db_journal_file_...
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d400
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 0x44], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x48], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x7c]
call fcn.10018740
push 7
push 0x101b28f8
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.1000ae20
sub esp, 0x18
mov ecx, esp
push 0x101ace0c
call fcn.10001cb0
cmp dword [ebp - 0x68], 0x10
lea eax, [ebp - 0x7c]
push 0
cmovae eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x4c]
push eax
call fcn.10046cb0
test al, al
je 0x1000d2c2
call fcn.1004cb70
push str.Sqlite_Successfully_recovered_from_journal_file.
push 0x101aedac
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x1019a4f8]
call esi
jmp 0x1000d2d7
push str.Error_Sqlite_Failed_to_recover_from_journal_file__trying_to_delete_journal_file...
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d580
add esp, 0xc
lea ecx, [ebp - 0x7c]
call fcn.1000ad20
lea ecx, [ebp - 0x4c]
call fcn.10046c00
xor esi, esi
lea ecx, [ebp - 0x64]
call fcn.1000ad20
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1000d324
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d31a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d343
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.101686f5
int3