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

Disassembly:
push 0x2b4
mov eax, 0x46ef45
call fcn.0044911b
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 [0x49e0ae]
mov byte [ebp - 0x2b1], al
test dl, dl
je 0x4217ed
cmp dword [esi + 0x14], 8
jb 0x4217d5
mov ecx, dword [esi]
jmp 0x4217d7
mov ecx, esi
movzx eax, al
push eax
push ecx
movzx eax, dl
push str.deleteDirectory__S_childrenOnly_d
push eax
call fcn.00410bbc
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 0x47c9f4
mov byte [ebp - 4], al
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00416827
add esp, 0xc
lea ecx, [ebp - 0x44]
push eax
call fcn.004052c7
xor eax, eax
lea ecx, [ebp - 0x5c]
push ebx
inc eax
push eax
call fcn.00409095
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 0x421a01
mov ecx, dword [ebp - 0x2bc]
mov byte [ebp - 4], 2
call fcn.00429741
xor eax, eax
inc eax
cmp word [ebp - 0x280], 0x2e
mov dword [ebp - 4], eax
je 0x42196f
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409fa0
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00416827
add esp, 0xc
lea ecx, [ebp - 0x2c]
push eax
call fcn.004052c7
xor eax, eax
lea ecx, [ebp - 0x5c]
push ebx
inc eax
push eax
call fcn.00409095
test byte [ebp - 0x2ac], 0x10
lea eax, [ebp - 0x2c]
je 0x421925
push 0x4788ac
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00416827
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.00421796
test al, al
jne 0x42190a
cmp byte [ebp - 0x2b0], al
jne 0x42190a
xor eax, eax
mov byte [ebp - 0x2b0], bl
inc eax
jmp 0x421913
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.00409095
jmp 0x42196f
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 0x421946
inc eax
mov byte [ebp - 0x2b0], al
jmp 0x42196f
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 0x421863
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4219c9
cmp byte [ebp - 0x2b1], 0
jne 0x421a01
cmp dword [esi + 0x14], 8
jb 0x4219b7
mov eax, dword [esi]
jmp 0x4219b9
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4219d4
xor ecx, ecx
inc ecx
mov byte [ebp - 0x2b0], cl
jmp 0x421a04
cmp dword [esi + 0x14], 8
jb 0x4219dc
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x421a04
jmp 0x4219cc
xor ecx, ecx
inc ecx
push ebx
push ecx
lea ecx, [ebp - 0x44]
call fcn.00409095
xor eax, eax
lea ecx, [ebp - 0x2c]
push ebx
inc eax
push eax
call fcn.00409095
mov al, byte [ebp - 0x2b0]
call fcn.00449068
ret 8