Function at 0x47ee90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x180
mov dword [ebp - 0x154], eax
mov eax, dword [eax]
mov dword [ebp - 0x158], edx
call fcn.00476b8c
mov edx, eax
mov eax, dword [edx + 3]
cmp al, 0x17
jne 0x47eeca
mov esi, esi
lea edi, [edi]
mov edx, dword [edx + 7]
mov eax, dword [edx + 3]
cmp al, 0x17
je 0x47eec0
mov edi, eax
shr edi, 0xa
cmp edx, 0x4fa001
je 0x47effe
movsx eax, al
lea ecx, [eax - 0x11]
sar ecx, 1
cmp ecx, 2
je 0x47eff0
lea eax, [edi*4 + 0x1e]
and eax, 0x3fffff0
call fcn.004ea990
lea esi, [esp + 0x27]
and esi, 0xfffffff0
test edi, edi
je 0x47ef2c
cmp ecx, 1
je 0x47f0c2
test ecx, ecx
jne 0x47efdb
mov dword [esp + 8], edi
lea eax, [edx + 7]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044c124
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x164], esp
mov eax, dword [ebp - 0x15c]
mov edx, dword [0x4f99d8]
mov dword [esp + 4], eax
lea esi, [eax + edi*4]
mov dword [esp + 8], esi
mov eax, dword [0x4f99d8]
mov dword [esp], eax
call dword [edx + 0x1f]
mov dword [ebp - 0x160], eax
add eax, 0x1f
and eax, 0xfffffff0
call fcn.004ea990
mov eax, dword [ebp - 0x160]
lea edi, [esp + 0x27]
mov edx, dword [ebp - 0x15c]
and edi, 0xfffffff0
add eax, edi
mov dword [ebp - 0x150], edx
mov edx, dword [0x4f99d8]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x14c], edi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x14c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x150]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [0x4f99d8]
mov dword [esp], eax
call dword [edx + 0x23]
cmp dword [ebp - 0x150], esi
jne 0x47efdb
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x168]
je 0x47f013
mov dword [esp], str.c:_usr_work_edrive_w32texsrc_clisp249_clisp_2.49_src_pathname.d
mov eax, 0x1b6e
mov dword [esp + 4], eax
call fcn.00420a64
add edx, 7
mov dword [ebp - 0x15c], edx
jmp 0x47ef32
xor edx, edx
test edi, edi
mov dword [ebp - 0x15c], edx
je 0x47ef32
call fcn.0042a998
mov byte [eax], 0
mov edx, dword [ebp - 0x160]
cmp byte [edi + edx - 1], 0x5c
je 0x47f0da
mov dword [0x698fa0], ebx
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
cmp eax, 0xffffffff
je 0x47f0e4
mov dword [0x698fa0], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
xor eax, eax
sub esp, 4
mov dword [0x698fa0], eax
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x134]
test eax, eax
jne 0x47f089
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x47f089
lea eax, [ebp - 0x144]
jmp 0x47f08f
lea eax, [ebp - 0x134]
mov dword [esp], eax
xor edi, edi
call fcn.0049a794
mov eax, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x128]
mov ecx, dword [ebp + 8]
mov edx, eax
xor eax, eax
or edx, edi
mov dword [ecx + 4], edx
or eax, esi
mov dword [ecx], eax
mov esp, dword [ebp - 0x164]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
lea eax, [edx + 7]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044c194
jmp 0x47ef2c
mov byte [edi + edx - 1], 0
jmp 0x47f027
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x47f0fd
call sub.KERNEL32.dll_GetLastError
cmp eax, 3
je 0x47f0fd
call sub.KERNEL32.dll_GetLastError
mov edx, dword [ebp - 0x154]
xor eax, eax
mov dword [0x698fa0], eax
mov eax, dword [edx]
mov dword [esp], 0x503be1
mov dword [esp + 4], eax
call fcn.004396a0