Function at 0x47d30c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x40
mov dword [ebx], eax
add ebx, 4
call fcn.00476bc0
cmp byte [eax + 3], 0x17
mov dword [ebp - 0x14], eax
mov edx, eax
mov byte [ebp - 0x15], 1
je 0x47d412
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 3]
mov edi, eax
shr edi, 0xa
cmp edx, 0x4fa001
je 0x47d42f
movsx eax, al
lea ecx, [eax - 0x11]
sar ecx, 1
cmp ecx, 2
je 0x47d468
lea eax, [edi*4 + 0x1e]
and eax, 0x3fffff0
call fcn.004ea990
lea esi, [esp + 0x27]
and esi, 0xfffffff0
test edi, edi
jne 0x47d443
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esp
mov eax, dword [ebp - 0x1c]
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]
lea edx, [eax + 0x1f]
mov ecx, eax
and edx, 0xfffffff0
mov eax, edx
call fcn.004ea990
mov edx, dword [ebp - 0x1c]
lea edi, [esp + 0x27]
and edi, 0xfffffff0
mov dword [ebp - 0xc], edi
lea ecx, [edi + ecx]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov edx, dword [0x4f99d8]
mov dword [ebp - 0x24], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x14], ecx
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 - 0x10], esi
jne 0x47d3fd
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x24]
je 0x47d473
mov dword [esp], str.c:_usr_work_edrive_w32texsrc_clisp249_clisp_2.49_src_pathname.d
mov edi, 0x1800
mov dword [esp + 4], edi
call fcn.00420a64
mov edx, dword [edx + 7]
mov eax, dword [edx + 3]
cmp al, 0x17
jne 0x47d337
mov edx, dword [edx + 7]
mov eax, dword [edx + 3]
cmp al, 0x17
je 0x47d412
jmp 0x47d337
mov dword [ebp - 0x1c], 0
test edi, edi
je 0x47d37c
call fcn.0042a998
cmp ecx, 1
je 0x47d4ee
test ecx, ecx
jne 0x47d3fd
mov dword [esp + 8], edi
lea eax, [edx + 7]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044c124
jmp 0x47d379
add edx, 7
mov dword [ebp - 0x1c], edx
jmp 0x47d37c
mov byte [eax], 0
mov eax, dword [ebx - 4]
mov eax, dword [eax + 0xf]
cmp dword [eax - 3], 0x4fa001
je 0x47d4b5
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 3]
mov ecx, eax
shr ecx, 0xa
je 0x47d3fd
movzx eax, byte [edi + ecx - 1]
cmp al, 0x5c
setne dl
cmp al, 0x2f
setne al
movzx eax, al
test edx, eax
jne 0x47d3fd
mov byte [edi + ecx - 1], 0
mov dword [0x698fa0], ebx
xor esi, esi
mov dword [esp], edi
call sub.KERNEL32.dll_GetFileAttributesA
mov dword [0x698fa0], esi
sub esp, 4
cmp eax, 0xffffffff
je 0x47d506
test al, 0x10
setne al
neg al
and byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x15]
sub ebx, 4
mov esp, dword [ebp - 0x20]
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 0x47d379
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x47d537
call sub.KERNEL32.dll_GetLastError
cmp eax, 3
je 0x47d537
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x35
je 0x47d537
mov eax, dword [ebx - 4]
mov dword [esp], 0x503be1
mov dword [esp + 4], eax
call fcn.004396a0
mov byte [ebp - 0x15], 0
jmp 0x47d4dd