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

Disassembly:
push 0x2b4
mov eax, 0x46f224
call fcn.0044931d
mov dword [ebp - 0x2bc], ecx
mov al, byte [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, ebx
mov dword [ebp - 0x2c0], edi
mov dl, byte [0x49d082]
mov byte [ebp - 0x2b1], al
test dl, dl
je 0x421665
cmp dword [esi + 0x14], 8
jb 0x42164d
mov ecx, dword [esi]
jmp 0x42164f
mov ecx, esi
movzx eax, al
push eax
push ecx
movzx eax, dl
push str.deleteDirectory__S_childrenOnly_d
push eax
call fcn.00410896
add esp, 0x10
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x2b0], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
inc eax
push 0x47c914
mov byte [ebp - 4], al
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.004165c0
add esp, 0xc
lea ecx, [ebp - 0x44]
push eax
call fcn.00404e69
xor eax, eax
lea ecx, [ebp - 0x5c]
push ebx
inc eax
push eax
call fcn.00408c9a
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x2ac]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b8], eax
cmp eax, 0xffffffff
je 0x421879
mov ecx, dword [ebp - 0x2bc]
mov byte [ebp - 4], 2
call fcn.00429622
xor eax, eax
inc eax
cmp word [ebp - 0x280], 0x2e
mov dword [ebp - 4], eax
je 0x4217e7
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409b93
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.004165c0
add esp, 0xc
lea ecx, [ebp - 0x2c]
push eax
call fcn.00404e69
xor eax, eax
lea ecx, [ebp - 0x5c]
push ebx
inc eax
push eax
call fcn.00408c9a
test byte [ebp - 0x2ac], 0x10
lea eax, [ebp - 0x2c]
je 0x42179d
push 0x4787f8
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004165c0
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 4], 4
inc ecx
or edi, ecx
mov ecx, dword [ebp - 0x2bc]
push ebx
push eax
mov dword [ebp - 0x2c0], edi
call fcn.0042160e
test al, al
jne 0x421782
cmp byte [ebp - 0x2b0], al
jne 0x421782
xor eax, eax
mov byte [ebp - 0x2b0], bl
inc eax
jmp 0x42178b
xor eax, eax
inc eax
mov byte [ebp - 0x2b0], al
push ebx
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], eax
and edi, 0xfffffffe
call fcn.00408c9a
jmp 0x4217e7
cmp dword [ebp - 0x18], 8
push 0x80
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4217be
inc eax
mov byte [ebp - 0x2b0], al
jmp 0x4217e7
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x2b0]
test eax, eax
push 1
movzx ecx, cl
pop eax
cmove ecx, eax
mov dword [ebp - 0x2b0], ecx
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4216db
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x421841
cmp byte [ebp - 0x2b1], 0
jne 0x421879
cmp dword [esi + 0x14], 8
jb 0x42182f
mov eax, dword [esi]
jmp 0x421831
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42184c
xor ecx, ecx
inc ecx
mov byte [ebp - 0x2b0], cl
jmp 0x42187c
cmp dword [esi + 0x14], 8
jb 0x421854
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x42187c
jmp 0x421844
xor ecx, ecx
inc ecx
push ebx
push ecx
lea ecx, [ebp - 0x44]
call fcn.00408c9a
xor eax, eax
lea ecx, [ebp - 0x2c]
push ebx
inc eax
push eax
call fcn.00408c9a
mov al, byte [ebp - 0x2b0]
call fcn.0044926a
ret 8