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

Disassembly:
sub esp, 0x670
push esi
mov esi, dword [esp + 0x678]
push edi
xor edi, edi
test esi, esi
je 0x4c1c6d
cmp word [esi], di
je 0x4c1c6d
push ebx
mov ebx, 0x104
lea eax, [esp + 0x14]
push ebx
push esi
push eax
call fcn.005780fa
xor eax, eax
push esi
mov word [esp + 0x22c], ax
call fcn.00461ce3
add esp, 0x10
test eax, eax
je 0x4c19f2
cmp eax, ebx
jge 0x4c19f2
cmp word [esi + eax*2 - 2], 0x5c
je 0x4c19f2
lea eax, [esp + 0x14]
push 0x5ac398
push eax
call fcn.00578446
pop ecx
pop ecx
push ebp
push ebx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x47c]
push eax
call fcn.005780fa
mov ebx, dword [esp + 0x694]
xor eax, eax
add esp, 0xc
mov word [esp + 0x67c], ax
mov esi, 0x5c8e40
test ebx, ebx
je 0x4c1b26
cmp word [ebx], di
je 0x4c1b26
push esi
push ebx
call fcn.005783e4
pop ecx
pop ecx
test eax, eax
je 0x4c1b26
mov ebp, dword [esp + 0x68c]
mov eax, ebp
and eax, 1
mov dword [esp + 0x14], eax
je 0x4c1b20
lea eax, [esp + 0x474]
push eax
push str._s.
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.004c1c7a
add esp, 0x10
lea eax, [esp + 0x224]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c1b1b
lea eax, [esp + 0x250]
push eax
lea eax, [esp + 0x478]
push eax
push str._s_s
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.004c1c7a
add esp, 0x14
test byte [esp + 0x224], 0x10
je 0x4c1b01
lea eax, [esp + 0x250]
push 0x5c8e60
push eax
call fcn.005783e4
pop ecx
pop ecx
test eax, eax
je 0x4c1b01
lea eax, [esp + 0x250]
push 0x5ac248
push eax
call fcn.005783e4
pop ecx
pop ecx
test eax, eax
je 0x4c1b01
push ebp
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.004c198a
lea eax, [esp + 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c1a94
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x4c1b3a
mov esi, dword [esp + 0x10]
jmp 0x4c1b3a
mov ebp, dword [esp + 0x68c]
mov ebx, esi
mov eax, ebp
mov esi, edi
and eax, 1
mov dword [esp + 0x14], eax
push ebx
lea eax, [esp + 0x478]
push eax
push str._s_s
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.004c1c7a
add esp, 0x14
lea eax, [esp + 0x224]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4c1c6b
mov edi, ebp
and edi, 2
lea eax, [esp + 0x250]
push eax
lea eax, [esp + 0x478]
push eax
push str._s_s
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.004c1c7a
add esp, 0x14
test byte [esp + 0x224], 0x10
je 0x4c1bf8
test esi, esi
jne 0x4c1c17
cmp dword [esp + 0x14], esi
je 0x4c1c17
lea eax, [esp + 0x250]
push 0x5c8e60
push eax
call fcn.005783e4
pop ecx
pop ecx
test eax, eax
je 0x4c1c17
lea eax, [esp + 0x250]
push 0x5ac248
push eax
call fcn.005783e4
pop ecx
pop ecx
test eax, eax
je 0x4c1c17
push ebp
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.004c198a
jmp 0x4c1c17
test edi, edi
je 0x4c1c0c
push pe_nt_image_headers32
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x224]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c1b7f
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x4c1c52
push pe_nt_image_headers32
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
je 0x4c1c5b
xor edi, edi
inc edi
jmp 0x4c1c6b
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x670
ret 0xc