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

Disassembly:
push 0x2b8
mov eax, 0x5f5f0a
call fcn.0044e95a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.00404479
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0051e690
mov ebx, 0x5fb264
pop ecx
test eax, eax
jne 0x524e64
push ebx
call fcn.005454d1
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004049a5
call fcn.00420994
test al, al
je 0x524e83
push edx
pop ebp
push edi
pop ebx
pop edx
pop esp
push ebx
push eax
push ebx
push edi
pop edi
push esp
pop ecx
pop eax
pop ebp
push esp
push ecx
push ebp
push ebx
pop ebx
push edi
pop esi
and dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.0040222d
mov esi, 0x6070c0
mov byte [ebp - 4], 2
push esi
call fcn.005454d1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.004049a5
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c4], eax
call fcn.0042090a
test al, al
je 0x524f05
push esp
push edi
pop ebx
pop ecx
pop esp
pop ebx
pop ebx
push ecx
pop ebp
pop eax
pop ebp
push ebx
pop ebx
pop edx
push ebp
push ebx
pop edi
pop eax
push ebx
push edx
pop edx
pop eax
pop edi
push ebp
pop edx
push ebp
push ebx
pop ebp
push ebx
pop edx
pop esi
call fcn.004203a6
test al, al
je 0x524f27
pop edx
push ecx
push ebp
pop edx
push esp
push esp
push edx
push esi
pop eax
push esi
pop ebx
pop ecx
pop esi
pop ebx
push edi
pop edi
push ecx
push esi
pop edi
pop edi
push ecx
push esp
pop ebp
push ebp
push edi
call fcn.00420658
test al, al
je 0x524f4c
pop edx
push ecx
pop ebp
pop ebx
pop ebp
pop eax
pop ebx
push edi
push edx
push esi
pop edi
push eax
push edx
push edi
push esi
push esp
pop ebp
push ecx
push edx
pop eax
pop ebp
pop esi
push ecx
pop ecx
push ebx
pop edi
push edi
pop ebp
mov esi, dword [ebp - 0x2c4]
cmp esi, 0xffffffff
je 0x525076
push 0x2e
pop ebx
mov edi, 0x5fb264
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x525076
cmp word [ebp - 0x294], bx
je 0x524f63
cmp word [ebp - 0x292], 0
je 0x524f63
cmp word [ebp - 0x292], bx
jne 0x524f9f
cmp word [ebp - 0x290], 0
je 0x524f63
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x28]
je 0x52501b
push eax
lea ecx, [ebp - 0x58]
call fcn.0040222d
cmp word [ebp - 0x294], 0
mov byte [ebp - 4], 3
jne 0x524fc6
xor eax, eax
jmp 0x524fd3
lea eax, [ebp - 0x294]
push eax
call fcn.005454d1
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x58]
call fcn.004049a5
push edi
call fcn.005454d1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.004049a5
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00524e21
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004037bf
jmp 0x524f63
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.00403b4a
cmp word [ebp - 0x294], 0
jne 0x525036
xor eax, eax
jmp 0x525043
lea eax, [ebp - 0x294]
push eax
call fcn.005454d1
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x40]
call fcn.004049a5
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00404479
call fcn.00525e6b
add esp, 0x18
jmp 0x524f63
call fcn.004204ba
test al, al
je 0x52509e
push esi
pop ebx
pop ecx
push ebp
pop ecx
push ecx
push esi
pop eax
pop ebp
pop eax
push edi
push edx
push esi
push edi
push edi
pop edx
pop ebx
push eax
push edi
push ebp
push edx
pop ebp
pop ebp
push ebx
pop eax
push edx
push ebp
push ebp
push edx
push esp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ebx, ebx
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.004037bf
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004037bf
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004037bf
call fcn.0044e904
ret