Function at 0x42afd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5bbfb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
cmp esi, ebx
je 0x42b123
cmp word [esi], bx
je 0x42b123
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b019
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42b29c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42b03a
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42b065
xor eax, eax
jmp 0x42b07b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x42b061
lea edi, [eax + eax]
mov eax, edi
call fcn.00538880
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0042af70
mov ebx, eax
xor eax, eax
jmp 0x42b07b
lea edi, [eax + eax]
mov eax, edi
call fcn.00538880
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0042af70
mov edi, dword [ebp + 8]
push ebx
push eax
push edi
call fcn.004328b0
add esp, 0xc
test eax, eax
jne 0x42b09c
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42b29c
push edi
call fcn.004328a0
add esp, 4
test eax, eax
jne 0x42b0bb
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42b29c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 1
jne 0x42b123
test byte [ebp + 0xc], 1
je 0x42b123
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42b123
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42b0e4
xor eax, eax
jmp 0x42b0fa
lea esi, [eax + eax]
mov eax, esi
call fcn.00538880
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0042af70
push eax
call fcn.00436120
add esp, 4
test eax, eax
jne 0x42b119
push 0x10d2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42b29c
push eax
push edi
call fcn.00435f80
add esp, 8
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42b297
cmp word [esi], 0
je 0x42b297
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b00a
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42b00a
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x42b00a
cmp word [ebx], ax
je 0x42b00a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b00a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42b00a
mov edi, dword [ebp + 0x18]
push edi
call fcn.00428aa0
add esp, 4
test eax, eax
je 0x42b1f5
test edi, edi
jne 0x42b1ad
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push edi
call fcn.004321d0
add esp, 8
jmp 0x42b1f8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42b1cd
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push edi
call fcn.004321d0
add esp, 8
jmp 0x42b1f8
lea esi, [eax + eax]
mov eax, esi
call fcn.00538880
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0042af70
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push eax
push edi
call fcn.004321d0
add esp, 8
jmp 0x42b1f8
mov edi, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42b20b
xor eax, eax
jmp 0x42b224
lea esi, [eax + eax]
mov eax, esi
call fcn.00538880
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0042af70
mov esi, dword [ebp + 0x10]
push 1
push eax
push edi
call fcn.00434e50
add esp, 0xc
test eax, eax
jne 0x42b240
push 0x56
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42b29c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42b253
xor eax, eax
jmp 0x42b26c
lea esi, [eax + eax]
mov eax, esi
call fcn.00538880
mov ecx, dword [ebp + 0x10]
mov eax, esp
push 3
push esi
push ecx
push eax
call fcn.0042af70
push eax
push edi
call fcn.00435ab0
add esp, 8
test eax, eax
je 0x42b08d
push edi
call fcn.00430de0
add esp, 4
test eax, eax
jne 0x42b297
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42b29c
mov eax, 1
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00538458
mov esp, ebp
pop ebp
ret 0x18