Function at 0x4c86a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x390], edi
mov dword [ebp - 0x38c], 1
test edi, edi
je 0x4c88dc
cmp byte [edi], 0
je 0x4c88dc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push esi
lea eax, [ebp - 0x248]
push eax
push edi
xor esi, esi
call ebx
cmp eax, 0xffffffff
je 0x4c870a
test byte [ebp - 0x248], 0x10
je 0x4c86ff
mov esi, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x4c8720
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x108]
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4c8730
lea ecx, [ebp - 0x108]
push ecx
call fcn.004bf2e0
lea edi, [ebp - 0x108]
add esp, 4
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4c8750
mov edx, dword [0x550fc0]
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov dword [edi], edx
call ebx
mov dword [ebp - 0x394], eax
cmp eax, 0xffffffff
je 0x4c88b8
lea ebx, [ebp - 0x20c]
sub ebx, dword [ebp - 0x390]
jmp 0x4c8790
mov eax, dword [ebp - 0x390]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x4c8796
lea edx, [ebp - 0x20c]
push edx
call fcn.004bf2e0
lea eax, [ebp - 0x35c]
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c87b7
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c87c7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [ebp - 0x388], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x4c8861
mov ecx, 0x5509cc
lea eax, [ebp - 0x35c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c8813
test dl, dl
je 0x4c880f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c8813
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c87f3
xor eax, eax
jmp 0x4c8818
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c8886
mov ecx, 0x550fbc
lea eax, [ebp - 0x35c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c8847
test dl, dl
je 0x4c8843
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c8847
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c8827
xor eax, eax
jmp 0x4c884c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c8886
lea eax, [ebp - 0x20c]
push eax
call fcn.004c86a0
add esp, 4
jmp 0x4c8880
push 0x80
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x38c], eax
cmp dword [ebp - 0x38c], 0
je 0x4c88ab
mov ecx, dword [ebp - 0x394]
lea eax, [ebp - 0x388]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4c8790
mov edx, dword [ebp - 0x394]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x390]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x38c]
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret