Function at 0x1000dda0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018d6e5
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 4], 0
mov dword [ebx], 0
call fcn.1004cb70
push edi
push str.Creating_PIM_instance_for_path:__s
push 0x101aee58
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x54]
mov ecx, esi
call dword [0x1019a4f8]
call esi
mov ecx, edi
mov dword [ebp - 0x6c], 0
add esp, 0x10
mov dword [ebp - 0x68], 7
xor eax, eax
mov word [ebp - 0x7c], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000de20
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x7c]
call fcn.10001d60
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.1000d100
mov byte [ebp - 4], 0
mov esi, eax
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x1000de85
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000de7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e287
push edx
push ecx
call fcn.1015cbd5
add esp, 8
test esi, esi
jne 0x1000e233
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
push esi
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 2
mov ecx, edi
call fcn.101012c0
add esp, 4
test al, al
jne 0x1000ded3
push str.Error_Failed_to_convert_NativeString_to_String.
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d700
add esp, 0xc
mov esi, 1
jmp 0x1000e22b
lea ecx, [ebp - 0x44]
call fcn.100fd7b0
push ecx
lea ecx, [ebp - 0x44]
call fcn.100fe320
add esp, 4
test al, al
jne 0x1000df12
push edi
push str.Error_could_not_create_directory_for_PIM:__s
push 0x101aee58
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004dc40
add esp, 0x10
mov esi, 0x2c
jmp 0x1000e22b
push 0x5c
call fcn.1015c88b
mov edi, eax
add esp, 4
mov dword [ebp - 0x80], edi
mov dword [edi], 0
mov dword [edi + 4], 3
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0xf
mov byte [edi + 0xc], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea esi, [edi + 0x30]
mov byte [ebp - 4], 5
push 0xa8
mov dword [ebp - 0x64], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1015c88b
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [ebp - 0x44]
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0xf
mov byte [edi + 0x40], 0
mov dword [edi + 0x38], 0
mov word [edi + 0x3c], 0
mov dword [edi + 0x58], 0
mov dword [ebx], edi
cmp ecx, eax
je 0x1000dfd0
cmp dword [ebp - 0x30], 0x10
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.10018930
mov edx, dword [ebx]
lea ecx, [ebp - 0x2c]
push 0x101b28f8
add edx, 0xc
call fcn.10018a90
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
mov eax, dword [ebx]
add eax, 0xc
push eax
call fcn.10018740
push 0xf
push str.pim.db_journal
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.1000ae20
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000e035
mov eax, dword [ebx]
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1000e02d
mov eax, dword [eax]
push eax
push str.Detected_db_journal_file__Application_is_in_corrupted_state:__s
jmp 0x1000e07b
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.10002700
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
cmovae eax, dword [ebp - 0x2c]
mov ecx, dword [ebx]
push eax
add ecx, 0x38
call fcn.10046cb0
test al, al
jne 0x1000e208
cmp byte [ebp + 8], 0
lea eax, [ebp - 0x2c]
je 0x1000e094
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_open_pim.db_at_path__s
push 0x101aedac
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004d700
jmp 0x1000e1be
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Error_could_not_Create_pim.db_file_at_path__s_first_attempt._pim.db_is_corrupted
push 0x101aedac
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004d400
mov ecx, dword [ebx]
add esp, 0x10
add ecx, 0x38
call fcn.10046f50
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10018700
push ecx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.100ffcf0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x7c]
mov bl, al
call fcn.1000ad20
test bl, bl
jne 0x1000e140
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_delete__corrupt_pim.db_file_at_path__s
push 0x101aedac
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004d700
mov esi, dword [ebp - 0x60]
add esp, 0x10
mov ecx, dword [esi]
test ecx, ecx
je 0x1000e130
push ecx
call fcn.1000e2a0
mov dword [esi], 0
mov esi, 0x40
jmp 0x1000e21b
call fcn.1004cb70
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov esi, dword [eax]
push ecx
push str.Successfully_deleted_corrupt_pim.db_file_at_path__s
push 0x101aedac
mov esi, dword [esi + 0x50]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
sub esp, 8
mov ecx, esp
push 0x101ace0c
call fcn.10001cb0
mov ebx, dword [ebp - 0x60]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push 0
cmovae eax, dword [ebp - 0x2c]
mov ecx, dword [ebx]
push eax
add ecx, 0x38
call fcn.10046cb0
test al, al
jne 0x1000e1da
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Error_could_not_Create_pim.db_file_at_path__s_second_attempt._pim.db_is_corrupted
push 0x101aedac
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004d400
mov ecx, dword [ebx]
add esp, 0x10
test ecx, ecx
je 0x1000e1cd
push ecx
call fcn.1000e2a0
mov dword [ebx], 0
mov esi, 0x3e
jmp 0x1000e21b
call fcn.1004cb70
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov esi, dword [eax]
push ecx
push str.Successfully_created__pim.db_file_at_path__s
push 0x101aedac
mov esi, dword [esi + 0x50]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x10
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
lea edx, [eax + 0x30]
lea ecx, [eax + 0x38]
call fcn.1000d350
xor esi, esi
lea ecx, [ebp - 0x5c]
call fcn.1000ad20
lea ecx, [ebp - 0x2c]
call fcn.1000ad20
lea ecx, [ebp - 0x44]
call fcn.1000ad20
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x1000e269
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000e25f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e28c
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 edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
call fcn.101686f5
call fcn.101686f5
int3