Function at 0x47efb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x65db30]
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 0x47f103
cmp word [esi], bx
je 0x47f103
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47eff9
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x47f27c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47f01a
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47f045
xor eax, eax
jmp 0x47f05b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x47f041
lea edi, [eax + eax]
mov eax, edi
call fcn.005c5c70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0047eea0
mov ebx, eax
xor eax, eax
jmp 0x47f05b
lea edi, [eax + eax]
mov eax, edi
call fcn.005c5c70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0047eea0
mov edi, dword [ebp + 8]
push ebx
push eax
push edi
call fcn.0048ef00
add esp, 0xc
test eax, eax
jne 0x47f07c
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x47f27c
push edi
call fcn.0048ee70
add esp, 4
test eax, eax
jne 0x47f09b
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x47f27c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 1
jne 0x47f103
test byte [ebp + 0xc], 1
je 0x47f103
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x47f103
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47f0c4
xor eax, eax
jmp 0x47f0da
lea esi, [eax + eax]
mov eax, esi
call fcn.005c5c70
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0047eea0
push eax
call fcn.004950c0
add esp, 4
test eax, eax
jne 0x47f0f9
push 0x10d2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x47f27c
push eax
push edi
call fcn.00494ca0
add esp, 8
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x47f277
cmp word [esi], 0
je 0x47f277
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47efea
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47efea
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x47efea
cmp word [ebx], ax
je 0x47efea
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47efea
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47efea
mov edi, dword [ebp + 0x18]
push edi
call fcn.0045f590
add esp, 4
test eax, eax
je 0x47f1d5
test edi, edi
jne 0x47f18d
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push edi
call fcn.004f5b80
add esp, 8
jmp 0x47f1d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47f1ad
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push edi
call fcn.004f5b80
add esp, 8
jmp 0x47f1d8
lea esi, [eax + eax]
mov eax, esi
call fcn.005c5c70
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0047eea0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push eax
push edi
call fcn.004f5b80
add esp, 8
jmp 0x47f1d8
mov edi, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47f1eb
xor eax, eax
jmp 0x47f204
lea esi, [eax + eax]
mov eax, esi
call fcn.005c5c70
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0047eea0
mov esi, dword [ebp + 0x10]
push 1
push eax
push edi
call fcn.00493150
add esp, 0xc
test eax, eax
jne 0x47f220
push 0x56
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x47f27c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47f233
xor eax, eax
jmp 0x47f24c
lea esi, [eax + eax]
mov eax, esi
call fcn.005c5c70
mov ecx, dword [ebp + 0x10]
mov eax, esp
push 3
push esi
push ecx
push eax
call fcn.0047eea0
push eax
push edi
call fcn.004946a0
add esp, 8
test eax, eax
je 0x47f06d
push edi
call fcn.0048c8f0
add esp, 4
test eax, eax
jne 0x47f277
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x47f27c
mov eax, 1
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c5718
mov esp, ebp
pop ebp
ret 0x18