Function at 0x4287a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x67e4d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x4287d5
mov eax, 6
jmp 0x428a77
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040aca0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040ee00
lea ecx, [ebp - 0x14]
call fcn.0040ed40
lea ecx, [ebp - 0x14]
call fcn.0040f180
movzx ecx, al
test ecx, ecx
je 0x428825
mov dword [ebp - 0x1c], 3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov eax, dword [ebp - 0x1c]
jmp 0x428a77
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 0x428834
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
sar eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x102
jbe 0x42887b
mov dword [ebp - 0x28], 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov eax, dword [ebp - 0x28]
jmp 0x428a77
lea ecx, [ebp - 0x14]
call fcn.0040f210
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4288ac
mov dword [ebp - 0x2c], 5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov eax, dword [ebp - 0x2c]
jmp 0x428a77
lea ecx, [ebp - 0x14]
call fcn.0040f210
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4288f0
lea ecx, [ebp - 0x14]
call fcn.0040f210
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4288f0
mov dword [ebp - 0x30], 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov eax, dword [ebp - 0x30]
jmp 0x428a77
lea ecx, [ebp - 0x14]
push ecx
call fcn.00428a90
add esp, 4
test eax, eax
je 0x42891e
mov dword [ebp - 0x34], 6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov eax, dword [ebp - 0x34]
jmp 0x428a77
push 0
lea ecx, [ebp - 0x14]
call fcn.0042ac10
movzx edx, ax
push edx
call fcn.0043f190
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x64]
or eax, dword [ebp - 0x60]
jne 0x428960
mov dword [ebp - 0x38], 0xa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov eax, dword [ebp - 0x38]
jmp 0x428a77
push 0
push 0x100000
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.00537400
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 0
ja 0x4289a6
jb 0x428988
cmp dword [ebp - 0x64], 0x32
jae 0x4289a6
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov eax, dword [ebp - 0x3c]
jmp 0x428a77
lea ecx, [ebp - 0x14]
call fcn.0040f210
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x428a23
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x6c]
call fcn.00428b60
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.0040f140
lea ecx, [ebp - 0x6c]
call fcn.0043f7f0
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x428a17
mov dword [ebp - 0x48], 9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0043ef60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov eax, dword [ebp - 0x48]
jmp 0x428a77
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0043ef60
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp - 0x14]
push eax
call fcn.0040f140
call fcn.0043ff40
add esp, 4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x428a5e
mov dword [ebp - 0x50], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov eax, dword [ebp - 0x50]
jmp 0x428a77
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ac80
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret