Function at 0x42f420
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x431a56
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x43c510]
xor eax, esp
mov dword [esp + 0x494], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4bc]
mov ebp, dword [esp + 0x4c0]
mov ecx, esi
call fcn.00429750
mov eax, dword [esi + 4]
test eax, eax
jne 0x42f481
mov eax, 0xffffe89d
jmp 0x42f691
push 0
push 0xffffffffffffffff
push 0x433d74
lea ecx, [esp + 0x20]
call fcn.00429b00
push 0
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x4bc], 0
call fcn.00429db0
mov ecx, dword [esp + 0x24]
cmp eax, 0xffffffff
push ecx
setne bl
mov dword [esp + 0x4b8], 0xffffffff
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
test bl, bl
jne 0x42f5ca
mov ecx, esi
call fcn.00429750
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x4c]
push ecx
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x42f603
mov ecx, esi
call fcn.00429750
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x2a0]
push ecx
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x42f5b7
cmp edi, 0x20a
jbe 0x42f538
mov eax, 0xffffe8c1
jmp 0x42f691
push edi
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0x1c]
call fcn.00429620
lea esi, [esp + 0x14]
mov dword [esp + 0x4b4], 1
call fcn.0042f210
test eax, eax
je 0x42f586
xor eax, eax
mov ecx, esi
mov dword [ebp], 2
mov dword [ebp + 4], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
call fcn.00429470
jmp 0x42f68f
mov ax, word [esp + edi*2 + 0x29a]
lea ecx, [esp + edi*2 + 0x29a]
call fcn.0042f1f0
test al, al
jne 0x42f5d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42f5c1
cmp eax, 3
je 0x42f5c1
lea ecx, [esp + 0x14]
call fcn.00429470
mov eax, 1
jmp 0x42f691
lea ecx, [esp + 0x14]
call fcn.00429470
mov eax, 0xffffe8c2
jmp 0x42f691
lea eax, [esp + 0x4c]
mov word [ecx], 0
push eax
lea ecx, [esp + 0x2a0]
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x42f59e
lea ecx, [esp + 0x14]
mov dword [esp + 0x4b4], 0xffffffff
call fcn.00429470
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dl, byte [esp + 0x4c]
and dl, 0x10
neg dl
sbb edx, edx
neg edx
add edx, 1
cmp dword [esp + 0x68], 0
mov dword [ebp], edx
je 0x42f64d
push 0
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], vtable.RSException.0
call fcn.00429b00
push 0x43558c
lea eax, [esp + 0x34]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x60]
push edx
mov dword [ebp + 4], ecx
call fcn.0042f880
add esp, 4
cmp dword [esp + 0x50], 0
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
jne 0x42f67c
cmp dword [esp + 0x54], 0
jne 0x42f67c
mov ecx, edx
mov dword [ebp + 0xc], ecx
jmp 0x42f68c
lea edx, [esp + 0x50]
push edx
call fcn.0042f880
add esp, 4
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], eax
xor eax, eax
mov ecx, dword [esp + 0x4ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.0042fc34
add esp, 0x4a4
ret