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

Disassembly:
push 0x1ac
mov eax, 0x41a2be
call fcn.0041974f
mov ebx, ecx
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
xor edx, edx
push 0xf
pop esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x30], dl
mov dword [ebp - 4], edx
lea edi, [ebp - 0x48]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x48], dl
mov byte [ebp - 4], 1
mov al, 0x77
mov dword [ebp - 0x18], 0x35316377
mov ecx, edx
mov word [ebp - 0x14], 0x31
movsx eax, al
and eax, 0x8000000f
jns 0x40a65b
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 4
jae 0x40a66a
mov al, byte [ebp - 0x18]
jmp 0x40a64c
lea eax, [ebp - 0x17]
mov byte [ebp - 0x13], dl
push eax
mov edx, ebx
lea ecx, [ebp - 0x60]
call fcn.00409d3e
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00405b98
lea ecx, [ebp - 0x60]
call fcn.0040357e
cmp dword [ebp - 0x34], esi
lea ecx, [ebp - 0x1b8]
lea eax, [ebp - 0x48]
cmova eax, dword [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a7d0
cmp byte [ebp - 0x18c], 0x2e
je 0x40a78c
xor edx, edx
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
mov cl, 0x79
mov dword [ebp - 0x20], edx
cmova eax, dword [ebp - 0x30]
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x16], dl
mov byte [eax], dl
mov al, 0x25
xor al, cl
mov edx, ebx
mov byte [ebp - 0x17], al
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x17]
push eax
call fcn.00409d3e
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 2
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a6fb
sub ecx, esi
lea eax, [ebp - 0x18c]
push ecx
push eax
mov ecx, edx
call fcn.00404849
push eax
lea ecx, [ebp - 0x60]
call fcn.004035a1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405b98
lea ecx, [ebp - 0x60]
call fcn.0040357e
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.0040357e
test byte [ebp - 0x1b8], 0x10
je 0x40a75a
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.0040a5fa
mov esi, eax
test esi, esi
jne 0x40a7d2
push 0xf
pop esi
jmp 0x40a78c
push 0xf
pop esi
cmp dword [ebp - 0x1c], esi
lea eax, [ebp - 0x30]
push 0x80
cmova eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40a7d0
cmp dword [ebp - 0x1c], esi
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40a7d0
lea eax, [ebp - 0x1b8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a6b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
cmp dword [ebx + 0x14], esi
jbe 0x40a7b2
mov eax, dword [ebx]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40a7d0
cmp dword [ebx + 0x14], esi
jbe 0x40a7c9
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor esi, esi
mov edx, dword [ebp - 0x34]
push 0xf
pop edi
cmp edx, edi
jbe 0x40a7e5
mov ecx, dword [ebp - 0x48]
inc edx
call fcn.00403777
and dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x48], 0
cmp edx, edi
jbe 0x40a800
mov ecx, dword [ebp - 0x30]
inc edx
call fcn.00403777
mov eax, esi
call fcn.0041970d
ret