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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x260]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ebx
push eax
mov dword [ebp - 0x25c], edi
call fcn.004a6716
mov esi, dword [ebp - 0x260]
cmp dword [esi - 0xc], ebx
je 0x4c8d17
push 0x529a98
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.004b95df
add esp, 0xc
lea ecx, [ebp - 0x254]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x284]
add ecx, 0xfffffff0
mov dword [ebp - 0x264], eax
call fcn.004a7be5
cmp dword [ebp - 0x264], 0xffffffff
jne 0x4c8ab7
inc ebx
jmp 0x4c8d10
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
je 0x4c8beb
push 0x525680
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4c8ce6
push 0x52566c
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4c8ce6
cmp dword [ebp + 0x24], 0
je 0x4c8b38
lea eax, [ebp - 0x228]
or edi, 1
push eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x25c], edi
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004b95df
add esp, 0xc
lea ecx, [ebp + 0x14]
push dword [eax]
call fcn.004c243d
mov byte [ebp - 0x255], bl
test al, al
jne 0x4c8b3f
mov byte [ebp - 0x255], 1
mov eax, dword [ebp - 0x25c]
test al, 1
je 0x4c8b60
mov ecx, dword [ebp - 0x26c]
and eax, 0xfffffffe
mov dword [ebp - 0x25c], eax
lea ecx, [ecx - 0x10]
call fcn.004a7be5
cmp byte [ebp - 0x255], 0
je 0x4c8ce0
sub esp, 0x18
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
call fcn.004c96b3
push 0x53b478
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.004b95df
add esp, 0xc
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004b95df
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call fcn.004c8a2c
mov ecx, dword [ebp - 0x280]
add esp, 0x24
add ecx, 0xfffffff0
mov edi, eax
call fcn.004a7be5
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.004a7be5
test edi, edi
je 0x4c8d04
jmp 0x4c8ce0
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004b95df
add esp, 0xc
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.004a7be5
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.004b95df
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x274]
mov edi, eax
add ecx, 0xfffffff0
call fcn.004a7be5
test edi, edi
jne 0x4c8ce0
call fcn.004a7279
push eax
lea ecx, [ebp - 0x268]
call fcn.004a6656
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
lea eax, [ebp - 0x268]
push 0x529a9c
push eax
call fcn.004a719c
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004b95df
mov edi, dword [ebp - 0x268]
push edi
push dword [eax]
call fcn.004d72a5
mov ecx, dword [ebp - 0x27c]
add esp, 0x28
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004a7be5
test ebx, ebx
jne 0x4c8cd6
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4c8cd8
xor ebx, ebx
lea ecx, [edi - 0x10]
call fcn.004a7be5
mov edi, dword [ebp - 0x25c]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c8ab7
xor ebx, ebx
inc ebx
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esi - 0x10]
call fcn.004a7be5
lea ecx, [ebp + 0x14]
call fcn.004c9861
lea ecx, [ebp + 0x14]
call fcn.004c9861
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret