Function at 0x42bd81
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x465900
call fcn.00451324
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.0041a131
push ebx
lea eax, [ebp - 0x90]
push eax
push ebx
mov dword [ebp - 4], ebx
call fcn.00428b37
add esp, 0xc
test al, al
mov esi, str.mozsqlite3.dll
je 0x42bdff
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00417e9b
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x14], 1
jb 0x42bdee
mov eax, dword [eax + 4]
jmp 0x42bdf1
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [ebp - 0xd], bl
jne 0x42be03
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x42be14
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0041a87c
cmp byte [ebp - 0xd], bl
je 0x42be3b
push str.__sqlite_not_found
push ebx
call fcn.0043fb8a
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x470e4a
call fcn.0041b5d0
push ebx
push 1
jmp 0x42c050
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00417e9b
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x42be5e
mov eax, dword [eax + 4]
jmp 0x42be61
add eax, 4
push eax
lea eax, [ebp - 0x74]
call fcn.0041f74c
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0041a87c
cmp dword [ebp - 0x58], ebx
jne 0x42be9f
push str.__sqlite_not_valid
push ebx
call fcn.0043fb8a
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x470e4a
call fcn.0041b5d0
jmp 0x42c04e
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
call fcn.0041a131
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.0044c280
add esp, 0x14
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x42bed7
mov eax, dword [eax + 4]
jmp 0x42beda
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.0041a87c
cmp dword [ebp - 0x18], ebx
je 0x42c02f
push dword [ebp + 0x10]
lea ecx, [ebp - 0xac]
call fcn.0041b74c
push str._host_
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0041b5d0
push dword [ebp + 0x14]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xac]
push eax
mov byte [ebp - 4], 7
call fcn.0044c350
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0041a87c
cmp dword [ebp - 0x94], 0x10
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
jae 0x42bf5d
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 0x42c017
jmp 0x42bfe4
push ebx
push dword [ebp - 0x14]
call dword [ebp - 0x64]
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0041b5d0
push 0x4736c4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.00414b4a
push esi
push dword [ebp - 0x14]
call dword [ebp - 0x64]
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00414b4a
cmp dword [ebp - 0x40], ebx
je 0x42bfc7
push 0x471f2c
lea ecx, [ebp - 0x54]
call fcn.00414b4a
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041a2c5
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0041a87c
push dword [ebp - 0x14]
call dword [ebp - 0x68]
cmp eax, 0x64
pop ecx
je 0x42bf80
push dword [ebp - 0x14]
call dword [ebp - 0x60]
cmp dword [ebp - 0x40], ebx
pop ecx
je 0x42c017
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x42c008
lea eax, [ebp - 0x50]
push eax
push str.__cookie_s
push ebx
call fcn.0043fb8a
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.0041a87c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
call fcn.0041b74c
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.0041a87c
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push ebx
push esi
lea ecx, [ebp - 0x90]
call fcn.0041a87c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret