Function at 0x42c7ea
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x466cf7
call fcn.00452544
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.0041a911
push ebx
lea eax, [ebp - 0x90]
push eax
push ebx
mov dword [ebp - 4], ebx
call fcn.00429587
add esp, 0xc
test al, al
mov esi, str.mozsqlite3.dll
je 0x42c868
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0041867b
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x14], 1
jb 0x42c857
mov eax, dword [eax + 4]
jmp 0x42c85a
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [ebp - 0xd], bl
jne 0x42c86c
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x42c87d
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0041b05c
cmp byte [ebp - 0xd], bl
je 0x42c8a4
push str.__sqlite_not_found
push ebx
call fcn.00441366
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x471e5a
call fcn.0041be0b
push ebx
push 1
jmp 0x42cab9
push esi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0041867b
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x42c8c7
mov eax, dword [eax + 4]
jmp 0x42c8ca
add eax, 4
push eax
lea eax, [ebp - 0x74]
call fcn.0041ff93
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0041b05c
cmp dword [ebp - 0x58], ebx
jne 0x42c908
push str.__sqlite_not_valid
push ebx
call fcn.00441366
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x471e5a
call fcn.0041be0b
jmp 0x42cab7
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
call fcn.0041a911
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.0044da60
add esp, 0x14
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x42c940
mov eax, dword [eax + 4]
jmp 0x42c943
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.0041b05c
cmp dword [ebp - 0x18], ebx
je 0x42ca98
push dword [ebp + 0x10]
lea ecx, [ebp - 0xac]
call fcn.0041bf87
push str._host_
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0041be0b
push dword [ebp + 0x14]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xac]
push eax
mov byte [ebp - 4], 7
call fcn.0044db30
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0041b05c
cmp dword [ebp - 0x94], 0x10
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
jae 0x42c9c6
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 0x42ca80
jmp 0x42ca4d
push ebx
push dword [ebp - 0x14]
call dword [ebp - 0x64]
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0041be0b
push 0x474710
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.0041532a
push esi
push dword [ebp - 0x14]
call dword [ebp - 0x64]
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0041532a
cmp dword [ebp - 0x40], ebx
je 0x42ca30
push 0x472f4c
lea ecx, [ebp - 0x54]
call fcn.0041532a
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041aaa5
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0041b05c
push dword [ebp - 0x14]
call dword [ebp - 0x68]
cmp eax, 0x64
pop ecx
je 0x42c9e9
push dword [ebp - 0x14]
call dword [ebp - 0x60]
cmp dword [ebp - 0x40], ebx
pop ecx
je 0x42ca80
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x42ca71
lea eax, [ebp - 0x50]
push eax
push str.__cookie_s
push ebx
call fcn.00441366
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.0041b05c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
call fcn.0041bf87
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.0041b05c
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push ebx
push esi
lea ecx, [ebp - 0x90]
call fcn.0041b05c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret