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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x14], 0xffffffff
mov edi, ecx
xor ebx, ebx
mov ecx, esi
mov byte [ebp - 1], bl
mov dword [ebp - 0x18], ebx
call fcn.004c4890
test eax, eax
jne 0x4c6132
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4c6128
push 0xffffffffffffffff
xor edx, edx
mov ecx, edi
call fcn.004c6610
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6137
sub ecx, edx
lea eax, [esi - 1]
add eax, ecx
cmp eax, esi
jbe 0x4c615f
nop dword [eax]
mov edx, eax
dec eax
mov dword [ebp - 0x10], edx
cmp byte [eax], 0x2f
je 0x4c6164
cmp eax, esi
ja 0x4c6150
mov edx, eax
mov dword [ebp - 0x10], eax
mov al, byte [edx]
mov byte [ebp - 2], al
mov byte [edx], 0
test ebx, ebx
je 0x4c6175
mov cl, byte [ebp - 1]
mov byte [ebx], cl
mov ecx, edi
mov byte [ebp - 1], al
mov ebx, edx
call fcn.004c5fa0
mov dword [ebp - 8], eax
test eax, eax
jne 0x4c618d
cmp dword [ebp - 0x10], esi
ja 0x4c6132
mov ebx, dword [ebp - 0x10]
mov al, byte [ebx + 1]
lea esi, [ebx + 1]
mov dword [ebp - 0x10], esi
test al, al
je 0x4c61c2
nop dword [eax]
cmp al, 0x2f
je 0x4c623c
call fcn.005401be
push eax
push esi
call fcn.0054013e
add esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
mov al, byte [esi]
test al, al
jne 0x4c61a0
mov dword [ebp - 0x10], 0
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c61d0
sub ecx, edx
add ecx, 0x100
mov esi, dword [ebp - 8]
test esi, esi
je 0x4c63eb
push ecx
call fcn.0052c198
mov edx, eax
add esp, 4
mov dword [ebp - 0xc], edx
test edx, edx
je 0x4c63ed
mov ecx, edx
sub ecx, edi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x4c6204
mov edi, edx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4c6216
mov al, byte [ebp - 2]
sub edi, ecx
mov ecx, ebx
mov dword [ebp - 0x1c], edi
mov byte [ebx], al
call fcn.004c4890
test eax, eax
jne 0x4c6276
or esi, 0xffffffff
xor ebx, ebx
jmp 0x4c63a5
test esi, esi
je 0x4c61c9
mov ecx, edi
mov byte [esi], 0
inc esi
mov dword [ebp - 0x10], esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6250
sub ecx, edx
mov edx, esi
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4c6260
sub edx, esi
add ecx, 0x101
add ecx, edx
jmp 0x4c61df
mov ecx, esi
call fcn.004c6090
mov esi, eax
test esi, esi
je 0x4c6232
mov ecx, 0x5aea3c
mov eax, esi
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c62b0
test dl, dl
je 0x4c62ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c62b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c6290
xor eax, eax
jmp 0x4c62b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c638d
mov ecx, 0x5aea40
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c62e4
test dl, dl
je 0x4c62e0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c62e4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c62c4
xor eax, eax
jmp 0x4c62e9
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c638d
push 0
mov edx, esi
mov ecx, ebx
call fcn.004c4c40
add esp, 4
test eax, eax
je 0x4c638d
mov edx, dword [ebp - 0xc]
add edi, edx
mov ecx, edi
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4c6310
cmp dword [ebp - 0x10], 0
je 0x4c635d
mov ecx, edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6328
sub ecx, edx
mov edx, dword [ebp - 0xc]
add edx, ecx
mov ecx, dword [ebp - 0x10]
mov byte [edx], 0x2f
inc edx
mov esi, edx
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x4c6341
mov ecx, dword [ebp - 0xc]
call fcn.004c60e0
mov esi, eax
mov dword [ebp - 0x14], esi
jmp 0x4c6375
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, dword [ebp - 0xc]
push dword [eax + 8]
call fcn.004c6610
add esp, 4
mov dword [ebp - 0x14], eax
mov esi, eax
mov byte [edi], 0
test esi, esi
jne 0x4c6385
mov dword [ebp - 0x18], 1
jmp 0x4c638a
cmp esi, 0xffffffff
jne 0x4c63a2
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
call fcn.004c6090
mov esi, eax
test esi, esi
jne 0x4c6283
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 8]
call fcn.0052a52b
mov edx, dword [ebp - 0xc]
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c63c9
mov byte [eax - 1], 0x2f
test edx, edx
je 0x4c63d6
push edx
call fcn.0052a52b
add esp, 4
cmp esi, 0xffffffff
jne 0x4c63e2
xor eax, eax
test ebx, ebx
cmovne esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov al, byte [ebp - 2]
or esi, 0xffffffff
mov byte [ebx], al
mov ecx, 4
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp - 0xc], edx
cmovne esi, ecx
xor ebx, ebx
test eax, eax
je 0x4c63be
jmp 0x4c63a8