Function at 0x42a150
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ffd0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x68e4d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x42a185
mov eax, 6
jmp 0x42a427
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ab00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040ec60
lea ecx, [ebp - 0x14]
call fcn.0040eba0
lea ecx, [ebp - 0x14]
call fcn.0040efe0
movzx ecx, al
test ecx, ecx
je 0x42a1d5
mov dword [ebp - 0x1c], 3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x1c]
jmp 0x42a427
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
mov dx, word [ecx]
mov word [ebp - 0xe], dx
add dword [ebp - 0x18], 2
cmp word [ebp - 0xe], 0
jne 0x42a1e4
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
sar eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x102
jbe 0x42a22b
mov dword [ebp - 0x28], 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x28]
jmp 0x42a427
lea ecx, [ebp - 0x14]
call fcn.0040f070
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x42a25c
mov dword [ebp - 0x2c], 5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x2c]
jmp 0x42a427
lea ecx, [ebp - 0x14]
call fcn.0040f070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a2a0
lea ecx, [ebp - 0x14]
call fcn.0040f070
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42a2a0
mov dword [ebp - 0x30], 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x30]
jmp 0x42a427
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042a440
add esp, 4
test eax, eax
je 0x42a2ce
mov dword [ebp - 0x34], 6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x34]
jmp 0x42a427
push 0
lea ecx, [ebp - 0x14]
call fcn.0042c610
movzx edx, ax
push edx
call fcn.0051b640
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x64]
or eax, dword [ebp - 0x60]
jne 0x42a310
mov dword [ebp - 0x38], 0xa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x38]
jmp 0x42a427
push 0
push 0x100000
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.00537be0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 0
ja 0x42a356
jb 0x42a338
cmp dword [ebp - 0x64], 0x32
jae 0x42a356
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x3c]
jmp 0x42a427
lea ecx, [ebp - 0x14]
call fcn.0040f070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a3d3
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x6c]
call fcn.0042a510
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea edx, [ebp - 0x14]
push edx
call fcn.0040efa0
lea ecx, [ebp - 0x6c]
call fcn.0051bca0
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x42a3c7
mov dword [ebp - 0x48], 9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0051b410
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x48]
jmp 0x42a427
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0051b410
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp - 0x14]
push eax
call fcn.0040efa0
call fcn.0051c3f0
add esp, 4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x42a40e
mov dword [ebp - 0x50], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x50]
jmp 0x42a427
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret