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

Disassembly:
push 0x2b8
mov eax, 0x5f6be3
call fcn.0044ea40
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.0051e846
mov ebx, 0x5fc284
pop ecx
test eax, eax
jne 0x524e51
push ebx
call fcn.00546031
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004049a5
call fcn.00420a29
test al, al
je 0x524e70
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, 0x6080e0
mov byte [ebp - 4], 2
push esi
call fcn.00546031
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.0042099f
test al, al
je 0x524ef2
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.0042043b
test al, al
je 0x524f14
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.004206ed
test al, al
je 0x524f39
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 0x525063
push 0x2e
pop ebx
mov edi, 0x5fc284
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x525063
cmp word [ebp - 0x294], bx
je 0x524f50
cmp word [ebp - 0x292], 0
je 0x524f50
cmp word [ebp - 0x292], bx
jne 0x524f8c
cmp word [ebp - 0x290], 0
je 0x524f50
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x28]
je 0x525008
push eax
lea ecx, [ebp - 0x58]
call fcn.0040222d
cmp word [ebp - 0x294], 0
mov byte [ebp - 4], 3
jne 0x524fb3
xor eax, eax
jmp 0x524fc0
lea eax, [ebp - 0x294]
push eax
call fcn.00546031
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x58]
call fcn.004049a5
push edi
call fcn.00546031
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.00524e0e
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004037bf
jmp 0x524f50
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.00403b4a
cmp word [ebp - 0x294], 0
jne 0x525023
xor eax, eax
jmp 0x525030
lea eax, [ebp - 0x294]
push eax
call fcn.00546031
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.005268ef
add esp, 0x18
jmp 0x524f50
call fcn.0042054f
test al, al
je 0x52508b
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.0044e9ea
ret