Function at 0x10046280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101914e0
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 0x100462e1
push str.PIMSqlite::initWithDBPath_NULL_parameter
push 0x101aee2c
call fcn.1004c140
push eax
call fcn.1004c9d0
add esp, 0xc
xor bl, bl
jmp 0x100464bc
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100462e6
sub ecx, edx
lea esi, [ebx + 8]
push ecx
push edi
mov ecx, esi
call fcn.100187e0
cmp dword [esi + 0x14], 0x10
jb 0x10046303
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.100de5b0
add esp, 8
test eax, eax
jne 0x10046496
call fcn.1004c140
push edi
push str.Success_sqlite3_open_from_the_path:__s
push 0x101aee2c
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 0x100dcbf0
push esi
call fcn.100dcc60
add esp, 0x1c
mov dword [esi + 0x1d8], 0x3e8
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x38]
push eax
call fcn.10002820
mov byte [ebp - 4], 1
call fcn.1004c140
push str.trying_to_createOrUpdatePIMDbSchema.
push 0x101aee2c
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 0x10045e10
push str.select_count___from_pim_meta
call fcn.1004bc10
mov bl, al
call fcn.1004c140
mov ecx, eax
movzx eax, bl
push eax
push str.Inside_isPIMMetaTablePresent._Result:__d
push 0x101aee2c
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.10002820
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
push eax
test bl, bl
jne 0x1004640d
call fcn.1004b4f0
jmp 0x10046412
call fcn.1004b810
mov byte [ebp - 4], 0
mov bl, al
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x10046452
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10046448
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046512
push edx
push ecx
call fcn.1015cb05
add esp, 8
test bl, bl
je 0x1004647c
mov bl, 1
call fcn.1004c140
push str.PIM_Database_is_Up_To_Date.
push 0x101aee2c
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
jmp 0x100464bc
push str.Could_not_createOrUpdatePIMDbSchema.
push 0x101aee2c
call fcn.1004c140
push eax
call fcn.1004cb50
add esp, 0xc
jmp 0x100464b9
call fcn.1004c140
push edi
push str.Error_unable_to_open_Sqlite_Data_base_from_the_path:__s.
push 0x101aee2c
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 0x100464f2
mov ecx, dword [ebp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100464e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046517
push edx
push ecx
call fcn.1015cb05
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.1015c7a5
mov esp, ebp
pop ebp
ret 0x20
call fcn.10168635
call fcn.10168635
int3