Function at 0x426451
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x45bed4
call fcn.004485c4
sub esp, 0xa0
push ebx
push esi
push edi
push 0xf
pop edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push ebx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x78], edi
call fcn.004173b7
push ebx
lea eax, [ebp - 0x90]
push eax
push ebx
mov dword [ebp - 4], ebx
call fcn.004233d0
add esp, 0xc
test al, al
mov esi, str.mozsqlite3.dll
je 0x4264cf
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004152b2
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x14], 1
jb 0x4264be
mov eax, dword [eax + 4]
jmp 0x4264c1
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [ebp - 0xd], bl
jne 0x4264d3
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x4264e4
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00417a85
cmp byte [ebp - 0xd], bl
je 0x42650b
push str.__sqlite_not_found
push ebx
call fcn.00437bbc
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x465cf2
call fcn.00418739
push ebx
push 1
jmp 0x426720
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004152b2
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x42652e
mov eax, dword [eax + 4]
jmp 0x426531
add eax, 4
push eax
lea eax, [ebp - 0x74]
call fcn.0041afb6
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00417a85
cmp dword [ebp - 0x58], ebx
jne 0x42656f
push str.__sqlite_not_valid
push ebx
call fcn.00437bbc
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x465cf2
call fcn.00418739
jmp 0x42671e
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
call fcn.004173b7
push ebx
push 0xfde9
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x18], ebx
call fcn.00444100
add esp, 0x14
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x4265a7
mov eax, dword [eax + 4]
jmp 0x4265aa
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [ebp - 0x70]
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00417a85
cmp dword [ebp - 0x18], ebx
je 0x4266ff
push dword [ebp + 0x10]
lea ecx, [ebp - 0xac]
call fcn.004188b1
push str._host_
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00418739
push dword [ebp + 0x14]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xac]
push eax
mov byte [ebp - 4], 7
call fcn.004441d0
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00417a85
cmp dword [ebp - 0x94], 0x10
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
jae 0x42662d
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x98]
push eax
push dword [ebp - 0x18]
call dword [ebp - 0x6c]
add esp, 0x14
cmp dword [ebp - 0x14], ebx
je 0x4266e7
jmp 0x4266b4
push ebx
push dword [ebp - 0x14]
call dword [ebp - 0x64]
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00418739
push 0x468100
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.00411ae1
push esi
push dword [ebp - 0x14]
call dword [ebp - 0x64]
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00411ae1
cmp dword [ebp - 0x40], ebx
je 0x426697
push 0x466be8
lea ecx, [ebp - 0x54]
call fcn.00411ae1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041754b
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00417a85
push dword [ebp - 0x14]
call dword [ebp - 0x68]
cmp eax, 0x64
pop ecx
je 0x426650
push dword [ebp - 0x14]
call dword [ebp - 0x60]
cmp dword [ebp - 0x40], ebx
pop ecx
je 0x4266e7
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x4266d8
lea eax, [ebp - 0x50]
push eax
push str.__cookie_s
push ebx
call fcn.00437bbc
add esp, 0xc
push dword [ebp - 0x18]
call dword [ebp - 0x5c]
pop ecx
push ebx
push esi
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 4
call fcn.00417a85
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
call fcn.004188b1
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.00417a85
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push esi
lea ecx, [ebp - 0x90]
call fcn.00417a85
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret