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

Disassembly:
push 0x2b8
mov eax, 0x446694
call fcn.0044101e
mov edx, ecx
mov dword [ebp - 0x2c0], edx
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xc]
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x2c4], edi
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x2b1], al
jb 0x42a38e
mov ecx, dword [esi]
jmp 0x42a390
mov ecx, esi
movzx eax, al
push eax
push ecx
lea eax, [edx + 0x150]
push str.deleteDirectory__S_childrenOnly_d
push eax
call fcn.00402357
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 0x453d00
mov edx, esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], al
call fcn.0042e4a4
add esp, 0x14
lea ecx, [ebp - 0x44]
push eax
call fcn.0040be8f
xor eax, eax
push ebx
inc eax
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040253d
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 - 0x2bc], eax
cmp eax, 0xffffffff
je 0x42a5de
mov ecx, dword [ebp - 0x2c0]
mov byte [ebp - 4], 2
call fcn.0042ba94
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp word [ebp - 0x280], 0x2e
je 0x42a4f6
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403017
lea eax, [ebp - 0x280]
push eax
mov edx, esi
lea ecx, [ebp - 0x5c]
call fcn.0042e4a4
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be8f
xor eax, eax
push ebx
inc eax
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040253d
test byte [ebp - 0x2ac], 0x10
je 0x42a542
push 0x44cc54
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.0042e4a4
pop ecx
xor ecx, ecx
inc ecx
or edi, ecx
mov ecx, dword [ebp - 0x2c0]
push ebx
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x2b8], edi
mov dword [ebp - 0x2c4], edi
call fcn.0042a357
test al, al
jne 0x42a4c7
cmp byte [ebp - 0x2b0], al
jne 0x42a4c7
xor ecx, ecx
mov byte [ebp - 0x2b0], bl
inc ecx
jmp 0x42a4d0
xor ecx, ecx
inc ecx
mov byte [ebp - 0x2b0], cl
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x2b8]
test cl, al
je 0x42a4f0
push ebx
and eax, 0xfffffffe
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2b8], eax
call fcn.0040253d
mov edi, dword [ebp - 0x2b8]
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42a41c
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x42a5a6
cmp byte [ebp - 0x2b1], 0
jne 0x42a5de
cmp dword [esi + 0x14], 8
jb 0x42a594
mov eax, dword [esi]
jmp 0x42a596
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42a566
inc eax
mov byte [ebp - 0x2b0], al
jmp 0x42a4f6
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]
movzx ecx, cl
test eax, eax
push 1
pop eax
cmove ecx, eax
mov dword [ebp - 0x2b0], ecx
jmp 0x42a4f6
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42a5b1
xor ecx, ecx
inc ecx
mov byte [ebp - 0x2b0], cl
jmp 0x42a5e1
cmp dword [esi + 0x14], 8
jb 0x42a5b9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x42a5e1
jmp 0x42a5a9
xor ecx, ecx
inc ecx
push ebx
push ecx
lea ecx, [ebp - 0x44]
call fcn.0040253d
xor eax, eax
push ebx
inc eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040253d
mov al, byte [ebp - 0x2b0]
call fcn.00440f6e
ret 8