Function at 0x42be00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
cmp dword [ebp + 8], 0
jne 0x42be16
mov eax, 6
jmp 0x42c04f
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
call fcn.004088f0
lea ecx, [ebp - 8]
call fcn.0041f870
lea ecx, [ebp - 8]
call fcn.0041f7b0
lea ecx, [ebp - 8]
call fcn.00408b60
movzx ecx, al
test ecx, ecx
je 0x42be58
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 8]
call fcn.00408870
mov eax, dword [ebp - 0x10]
jmp 0x42c04f
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx]
mov word [ebp - 2], dx
add dword [ebp - 0xc], 2
cmp word [ebp - 2], 0
jne 0x42be67
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
sar eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x102
jbe 0x42bea7
mov dword [ebp - 0x1c], 8
lea ecx, [ebp - 8]
call fcn.00408870
mov eax, dword [ebp - 0x1c]
jmp 0x42c04f
lea ecx, [ebp - 8]
call fcn.00408bc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x42bed1
mov dword [ebp - 0x20], 5
lea ecx, [ebp - 8]
call fcn.00408870
mov eax, dword [ebp - 0x20]
jmp 0x42c04f
lea ecx, [ebp - 8]
call fcn.00408bc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42bf0e
lea ecx, [ebp - 8]
call fcn.00408bc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42bf0e
mov dword [ebp - 0x24], 4
lea ecx, [ebp - 8]
call fcn.00408870
mov eax, dword [ebp - 0x24]
jmp 0x42c04f
lea ecx, [ebp - 8]
push ecx
call fcn.0042c360
add esp, 4
test eax, eax
je 0x42bf35
mov dword [ebp - 0x28], 6
lea ecx, [ebp - 8]
call fcn.00408870
mov eax, dword [ebp - 0x28]
jmp 0x42c04f
push 0
lea ecx, [ebp - 8]
call fcn.004138b0
movzx edx, ax
push edx
call fcn.00419c20
add esp, 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x48]
or eax, dword [ebp - 0x44]
jne 0x42bf70
mov dword [ebp - 0x2c], 0xa
lea ecx, [ebp - 8]
call fcn.00408870
mov eax, dword [ebp - 0x2c]
jmp 0x42c04f
push 0
push 0x100000
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.004aff40
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
ja 0x42bfaf
jb 0x42bf98
cmp dword [ebp - 0x48], 0x32
jae 0x42bfaf
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 8]
call fcn.00408870
mov eax, dword [ebp - 0x30]
jmp 0x42c04f
lea ecx, [ebp - 8]
call fcn.00408bc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c011
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x50]
call fcn.0041a1f0
lea eax, [ebp - 0x34]
push eax
push ecx
mov ecx, esp
lea edx, [ebp - 8]
push edx
call fcn.004089a0
lea ecx, [ebp - 0x50]
call fcn.0041a590
test eax, eax
jne 0x42c009
mov dword [ebp - 0x38], 9
lea ecx, [ebp - 0x50]
call fcn.0041a490
lea ecx, [ebp - 8]
call fcn.00408870
mov eax, dword [ebp - 0x38]
jmp 0x42c04f
lea ecx, [ebp - 0x50]
call fcn.0041a490
push ecx
mov ecx, esp
lea eax, [ebp - 8]
push eax
call fcn.004089a0
call fcn.0041a220
add esp, 4
test eax, eax
jne 0x42c03d
mov dword [ebp - 0x3c], 2
lea ecx, [ebp - 8]
call fcn.00408870
mov eax, dword [ebp - 0x3c]
jmp 0x42c04f
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 8]
call fcn.00408870
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret