Function at 0x41fa21
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49f15d
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x4de270]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push esi
push edi
mov eax, dword [0x4de270]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
push 7
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 8]
pop eax
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], dx
mov dword [esp + 0x328], ebx
mov dword [esp + 0xa4], eax
xor eax, eax
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], ax
push ecx
lea esi, [esp + 0xac]
mov byte [esp + 0x32c], 1
call fcn.00404db2
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x94]
mov byte [esp + 0x330], 2
call fcn.004048ce
push str..
lea eax, [esp + 0x90]
push eax
call fcn.004048a5
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x41fafd
lea eax, [esp + 0x90]
lea ecx, [esp + 0xc4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x41fcc3
cmp word [esp + 0xf0], 0x2e
je 0x41fc9f
push 0xffffffffffffffff
xor edi, edi
lea esi, [esp + 0x74]
call fcn.00404a73
push 0x4ad4a0
lea esi, [esp + 0x3c]
call fcn.00404db2
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x334], 3
call fcn.0040c524
lea ecx, [esp + 0xfc]
push ecx
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x340], 4
call fcn.00403cd2
add esp, 0x18
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0x330], 5
call fcn.00404ae1
push ebx
push 1
lea esi, [esp + 0x24]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x40]
mov byte [esp + 0x330], 2
call fcn.00404f5a
test byte [esp + 0xc4], 0x10
je 0x41fbef
cmp byte [ebp + 0xc], bl
je 0x41fbef
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x41fbdd
lea eax, [esp + 0x74]
push dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0041fa21
jmp 0x41fc9f
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x41fc01
lea eax, [esp + 0x74]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41fc9f
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x41fc27
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x41fc9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CDirectory::Delete__fail_to_delete._err
lea esi, [esp + 0x20]
mov edi, eax
call fcn.00404db2
push edi
mov ecx, esi
mov byte [esp + 0x32c], 6
call fcn.00408b56
pop ecx
push ebx
push 1
mov byte [esp + 0x330], 2
call fcn.00404f5a
push str.CDirectory::Delete__fail_to_delete_file
lea esi, [esp + 0x20]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [esp + 0x74]
mov byte [esp + 0x32c], 7
call fcn.00404975
pop ecx
push 0
push 1
mov byte [esp + 0x330], 2
call fcn.00404f5a
xor ebx, ebx
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41fb19
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, ebx
jne 0x41fd5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CDirectory::Delete__fail_to_delete_directory._err
lea esi, [esp + 0x20]
mov edi, eax
call fcn.00404db2
push edi
mov ecx, esi
mov byte [esp + 0x32c], 8
call fcn.00408b56
pop ecx
push ebx
push 1
mov byte [esp + 0x330], 2
call fcn.00404f5a
push str.CDirectory::Delete__fail_to_delete_directory
lea esi, [esp + 0x20]
call fcn.00404db2
push dword [esp + 0x14]
lea esi, [esp + 0x3c]
mov byte [esp + 0x32c], 9
call fcn.00404db2
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
mov byte [esp + 0x32c], 0xa
call fcn.00404975
pop ecx
push 0
push 1
call fcn.00404f5a
push 0
push 1
lea esi, [esp + 0x24]
call fcn.00404f5a
xor ebx, ebx
push ebx
push 1
lea esi, [esp + 0xb0]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x94]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x78]
call fcn.00404f5a
mov al, 1
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.004812cc
mov esp, ebp
pop ebp
ret 8