Function at 0x490aec
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f3612
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5550ec]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x5550ec]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov eax, dword [0x55a320]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x55a320
mov ecx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x298], ebx
mov eax, dword [0x55a320]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
push edi
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2a0], 1
call fcn.00402d02
lea eax, [esp + 0x14]
push eax
call fcn.0049085e
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push str._s.
call fcn.00401a17
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x490cfc
mov edi, dword [sym.imp.MSVCR80.dll_wcscmp]
lea eax, [esp + 0x60]
push 0x517a40
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x490cd3
lea eax, [esp + 0x60]
push 0x520014
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x490cd3
test byte [esp + 0x34], 0x10
je 0x490c50
mov eax, dword [0x55a320]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x29c], 2
push dword [esp + 0x18]
lea eax, [esp + 0x2c]
push str._s_s_
call fcn.00401a17
push dword [ebp + 0xc]
mov edi, dword [esp + 0x34]
push edi
call fcn.00490aec
add esp, 0x14
test eax, eax
jne 0x490c3b
cmp dword [ebp + 0xc], ebx
je 0x490d54
lea eax, [edi - 0x10]
mov byte [esp + 0x298], 1
call fcn.004012f9
jmp 0x490cd3
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00402cc5
lea eax, [esp + 0x1c]
mov byte [esp + 0x298], 3
call fcn.0042407f
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040646d
or dword [esp + 0x20], 1
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x490c9f
cmp dword [ebp + 0xc], ebx
jne 0x490c9f
mov bl, 1
jmp 0x490ca1
xor bl, bl
test byte [esp + 0x18], 1
je 0x490cb9
mov eax, dword [esp + 0x30]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
call fcn.004012f9
mov byte [esp + 0x298], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004012f9
test bl, bl
jne 0x490cf2
xor ebx, ebx
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x490bb5
mov dword [esp + 0x28], 1
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
lea ecx, [esp + 0x14]
call fcn.004908e8
mov edi, dword [esp + 0x14]
push edi
call esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [edi - 0x10]
call fcn.004012f9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004d6e66
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0x10]
mov byte [esp + 0x298], 1
call fcn.004012f9
jmp 0x490cf2