Function at 0x4cf5c0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x18
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4cf823
cmp byte [edi], 0
je 0x4cf823
mov ecx, dword [esp + 0x24]
push ebx
push ebp
or ebx, 0xffffffff
test ecx, ecx
push esi
je 0x4cf6a0
call fcn.00497d20
mov esi, eax
call fcn.004cb0e0
test al, al
je 0x4cf676
push 0x5481a0
lea ecx, [esp + 0x14]
call fcn.00435980
push edi
lea ecx, [esp + 0x14]
call fcn.00435140
cmp esi, 5
jle 0x4cf629
mov eax, dword [esp + 0x10]
push eax
call fcn.004b8000
add esp, 4
mov esi, eax
jmp 0x4cf651
mov ecx, dword [esp + 0x10]
push 0
push 6
push ecx
call fcn.004b8440
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4cf667
push ebp
call fcn.004b8000
push ebp
mov esi, eax
call fcn.00439d00
add esp, 8
test esi, esi
je 0x4cf667
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call fcn.00439d00
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call fcn.00439d00
add esp, 4
jmp 0x4cf6a9
cmp esi, 5
jle 0x4cf6a0
push 0
push edi
call fcn.004d9d70
mov esi, eax
add esp, 8
test esi, esi
je 0x4cf6b2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov ebx, eax
call fcn.00439d00
add esp, 4
jmp 0x4cf6a9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4cf7fd
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cf6b7
sub eax, edx
xor esi, esi
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jle 0x4cf704
cmp byte [esi + edi], 0x5c
jne 0x4cf6f0
test esi, esi
je 0x4cf6f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004cf4c0
add esp, 8
xor edx, edx
mov dl, byte [esi + edi]
lea ecx, [esp + 0x10]
push edx
call fcn.00434e00
inc esi
cmp esi, ebp
jl 0x4cf6d4
test ebp, ebp
je 0x4cf71f
cmp byte [edi + ebp - 1], 0x5c
je 0x4cf71f
mov esi, dword [esp + 0x30]
push esi
push edi
call fcn.004cf4c0
add esp, 8
jmp 0x4cf723
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4cf7e2
mov ecx, esi
call fcn.00497d20
mov esi, eax
call fcn.004cb0e0
test al, al
je 0x4cf7b8
push 0x5481a0
lea ecx, [esp + 0x20]
call fcn.00435980
push edi
lea ecx, [esp + 0x20]
call fcn.00435140
cmp esi, 5
jle 0x4cf76b
mov eax, dword [esp + 0x1c]
push eax
call fcn.004b8000
add esp, 4
mov esi, eax
jmp 0x4cf793
mov ecx, dword [esp + 0x1c]
push 0
push 6
push ecx
call fcn.004b8440
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4cf7a9
push edi
call fcn.004b8000
push edi
mov esi, eax
call fcn.00439d00
add esp, 8
test esi, esi
je 0x4cf7a9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call fcn.00439d00
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call fcn.00439d00
add esp, 4
jmp 0x4cf7eb
cmp esi, 5
jle 0x4cf7e2
push 0
push edi
call fcn.004d9d70
mov esi, eax
add esp, 8
test esi, esi
je 0x4cf80c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov ebx, eax
call fcn.00439d00
add esp, 4
jmp 0x4cf7eb
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4cf80c
mov eax, dword [esp + 0x10]
push eax
call fcn.00439d00
add esp, 4
pop esi
mov eax, ebx
pop ebp
shr eax, 4
pop ebx
and al, 1
pop edi
add esp, 0x18
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00439d00
add esp, 4
pop esi
pop ebp
pop ebx
xor al, al
pop edi
add esp, 0x18
ret
xor al, al
pop edi
add esp, 0x18
ret