Function at 0x42cd56
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x467267
call fcn.00452ab4
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.0041acc8
push ebx
lea eax, [ebp - 0x90]
push eax
push ebx
mov dword [ebp - 4], ebx
call fcn.00429af3
add esp, 0xc
test al, al
mov esi, str.mozsqlite3.dll
je 0x42cdd4
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00418a32
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x14], 1
jb 0x42cdc3
mov eax, dword [eax + 4]
jmp 0x42cdc6
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [ebp - 0xd], bl
jne 0x42cdd8
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x42cde9
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0041b413
cmp byte [ebp - 0xd], bl
je 0x42ce10
push str.__sqlite_not_found
push ebx
call fcn.004418d2
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x472e5a
call fcn.0041c1c2
push ebx
push 1
jmp 0x42d025
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00418a32
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x42ce33
mov eax, dword [eax + 4]
jmp 0x42ce36
add eax, 4
push eax
lea eax, [ebp - 0x74]
call fcn.0042034a
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0041b413
cmp dword [ebp - 0x58], ebx
jne 0x42ce74
push str.__sqlite_not_valid
push ebx
call fcn.004418d2
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x472e5a
call fcn.0041c1c2
jmp 0x42d023
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
call fcn.0041acc8
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.0044dfd0
add esp, 0x14
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x42ceac
mov eax, dword [eax + 4]
jmp 0x42ceaf
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.0041b413
cmp dword [ebp - 0x18], ebx
je 0x42d004
push dword [ebp + 0x10]
lea ecx, [ebp - 0xac]
call fcn.0041c33e
push str._host_
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0041c1c2
push dword [ebp + 0x14]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xac]
push eax
mov byte [ebp - 4], 7
call fcn.0044e0a0
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0041b413
cmp dword [ebp - 0x94], 0x10
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
jae 0x42cf32
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 0x42cfec
jmp 0x42cfb9
push ebx
push dword [ebp - 0x14]
call dword [ebp - 0x64]
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0041c1c2
push 0x47578c
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.004156e1
push esi
push dword [ebp - 0x14]
call dword [ebp - 0x64]
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004156e1
cmp dword [ebp - 0x40], ebx
je 0x42cf9c
push 0x473f68
lea ecx, [ebp - 0x54]
call fcn.004156e1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041ae5c
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0041b413
push dword [ebp - 0x14]
call dword [ebp - 0x68]
cmp eax, 0x64
pop ecx
je 0x42cf55
push dword [ebp - 0x14]
call dword [ebp - 0x60]
cmp dword [ebp - 0x40], ebx
pop ecx
je 0x42cfec
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x42cfdd
lea eax, [ebp - 0x50]
push eax
push str.__cookie_s
push ebx
call fcn.004418d2
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.0041b413
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
call fcn.0041c33e
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.0041b413
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push ebx
push esi
lea ecx, [ebp - 0x90]
call fcn.0041b413
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret