Function at 0x10046cb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10191730
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
test edi, edi
jne 0x10046d11
push str.PIMSqlite::initWithDBPath_NULL_parameter
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d400
add esp, 0xc
xor bl, bl
jmp 0x10046eec
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046d16
sub ecx, edx
lea esi, [ebx + 8]
push ecx
push edi
mov ecx, esi
call fcn.10018930
cmp dword [esi + 0x14], 0x10
jb 0x10046d33
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov ecx, 1
push 0
sete al
mov edx, ebx
cmp byte [ebp + 0xc], 0
mov byte [ebx + 4], al
mov eax, 6
cmovne eax, ecx
mov ecx, edi
push eax
call fcn.100deff0
add esp, 8
test eax, eax
jne 0x10046ec6
call fcn.1004cb70
push edi
push str.Success_sqlite3_open_from_the_path:__s
push 0x101aedac
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x40]
mov ecx, esi
call dword [0x1019a4f8]
call esi
mov esi, dword [ebx]
push esi
push 0x100dd630
push esi
call fcn.100dd6a0
add esp, 0x1c
mov dword [esi + 0x1d8], 0x3e8
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x38]
push eax
call fcn.10002700
mov byte [ebp - 4], 1
call fcn.1004cb70
push str.trying_to_createOrUpdatePIMDbSchema.
push 0x101aedac
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push 0x10046840
push str.select_count___from_pim_meta
call fcn.1004c640
mov bl, al
call fcn.1004cb70
mov ecx, eax
movzx eax, bl
push eax
push str.Inside_isPIMMetaTablePresent._Result:__d
push 0x101aedac
mov esi, dword [ecx]
push ecx
mov esi, dword [esi + 0x50]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x10
lea eax, [ebp - 0x38]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10002700
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
push eax
test bl, bl
jne 0x10046e3d
call fcn.1004bf20
jmp 0x10046e42
call fcn.1004c240
mov byte [ebp - 4], 0
mov bl, al
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x10046e82
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10046e78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046f42
push edx
push ecx
call fcn.1015cbd5
add esp, 8
test bl, bl
je 0x10046eac
mov bl, 1
call fcn.1004cb70
push str.PIM_Database_is_Up_To_Date.
push 0x101aedac
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
jmp 0x10046eec
push str.Could_not_createOrUpdatePIMDbSchema.
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d580
add esp, 0xc
jmp 0x10046ee9
call fcn.1004cb70
push edi
push str.Error_unable_to_open_Sqlite_Data_base_from_the_path:__s.
push 0x101aedac
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x40]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x10
mov bl, byte [ebp - 0x15]
mov edx, dword [ebp + 0x24]
cmp edx, 8
jb 0x10046f22
mov ecx, dword [ebp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10046f18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046f47
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret 0x20
call fcn.101686f5
call fcn.101686f5
int3