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

Disassembly:
push 0x2b4
mov eax, 0x43ce3b
call fcn.004380ca
mov edx, ecx
mov dword [ebp - 0x2bc], edx
mov esi, dword [ebp + 8]
xor eax, eax
mov bl, byte [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2ad], bl
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x2b4], eax
jbe 0x4270ad
mov ecx, dword [esi]
movzx eax, bl
push eax
push ecx
lea eax, [edx + 0x150]
push str.deleteDirectory__S_childrenOnly_d
push eax
call fcn.004026dd
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
xor ecx, ecx
push 7
pop edx
mov bl, cl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ecx
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x44], ax
inc eax
lea ecx, [ebp - 0x5c]
push 0x44ad20
mov edx, esi
mov byte [ebp - 4], al
call fcn.0042a0b7
add esp, 0x14
lea ecx, [ebp - 0x44]
push eax
call fcn.0040bb2c
lea ecx, [ebp - 0x5c]
call fcn.00402ab8
cmp dword [ebp - 0x30], 7
lea ecx, [ebp - 0x2ac]
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b8], eax
cmp eax, 0xffffffff
je 0x4272ab
mov edi, dword [ebp - 0x2bc]
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0042870f
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp word [ebp - 0x280], 0x2e
je 0x42724e
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
mov edx, esi
cmova eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042a0b7
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040bb2c
lea ecx, [ebp - 0x5c]
call fcn.00402ab8
test byte [ebp - 0x2ac], 0x10
je 0x427211
push 0x4444a8
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.0042a0b7
pop ecx
mov byte [ebp - 4], 4
xor edx, edx
mov ecx, dword [ebp - 0x2b4]
inc edx
or ecx, edx
push 0
mov dword [ebp - 0x2b4], ecx
mov dword [ebp - 0x2c0], ecx
mov ecx, edi
push eax
call fcn.00427072
test al, al
jne 0x4271ec
test bl, bl
jne 0x4271ec
xor ecx, ecx
inc ecx
jmp 0x4271f1
xor ecx, ecx
inc ecx
mov bl, cl
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x2b4]
test cl, al
je 0x42724e
and eax, 0xfffffffe
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2b4], eax
call fcn.00402ab8
jmp 0x42724e
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0x80
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x427231
lea ebx, [eax + 1]
jmp 0x42724e
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
movzx ebx, bl
push 1
pop eax
cmove ebx, eax
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor edx, edx
inc edx
cmp eax, edx
je 0x42714a
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4272a6
cmp byte [ebp - 0x2ad], 0
jne 0x4272ab
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x427296
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4272f1
xor eax, eax
lea ebx, [eax + 1]
mov edx, dword [ebp - 0x30]
push 7
pop esi
cmp edx, esi
jbe 0x4272c4
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
call fcn.00403293
and dword [ebp - 0x34], 0
xor eax, eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], esi
mov word [ebp - 0x44], ax
cmp edx, esi
jbe 0x4272e7
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
call fcn.00403293
mov al, bl
call fcn.0043801c
ret 8
cmp dword [esi + 0x14], 7
jbe 0x4272f9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4272ab
jmp 0x4272a6