Function at 0x406e1c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004068ff
test byte [ebp + 0xc], 8
mov dword [ebp - 0xc], eax
je 0x406e4f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x472e88], eax
jmp 0x40704e
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
push esi
mov dword [ebp - 4], ebx
je 0x406e6e
test eax, eax
je 0x406fcc
test byte [ebp + 0xc], 2
je 0x406fcc
push edi
mov esi, 0x45c928
push esi
call fcn.0040618a
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406e8e
push str..
push esi
call ebx
jmp 0x406e94
push edi
call fcn.004068d2
cmp word [edi], 0
jne 0x406ea4
cmp word [0x45c928], 0x5c
jne 0x406eac
push 0x408850
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [edi + eax*2]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x406fbc
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.00405e87
xor ebx, ebx
cmp word [eax], bx
je 0x406ef3
cmp word [ebp - 0x28], bx
je 0x406ef3
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406f15
movzx eax, word [esi + 2]
cmp ax, bx
je 0x406f99
cmp eax, 0x2e
jne 0x406f15
cmp word [esi + 4], bx
je 0x406f99
push esi
push dword [ebp - 8]
call fcn.0040618a
test byte [ebp - 0x25c], 0x10
je 0x406f3c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406f99
push dword [ebp + 0xc]
push edi
call fcn.00406e1c
jmp 0x406f99
push edi
push str.Delete:_DeleteFile___s__
call fcn.00406424
pop ecx
pop ecx
push edi
call fcn.00405fb1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
test eax, eax
jne 0x406f92
test byte [ebp + 0xc], 4
je 0x406f7e
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406424
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004050f3
push ebx
push edi
call fcn.00406de9
jmp 0x406f99
push str.Delete:_DeleteFile_failed___s__
call fcn.00406424
inc dword [0x472e88]
pop ecx
pop ecx
jmp 0x406f99
push 0xfffffffffffffff2
call fcn.004050f3
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406ed3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406fbe
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x406fcc
mov ecx, dword [ebp - 8]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40704c
push edi
cmp dword [ebp - 0xc], esi
jne 0x406fe0
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x407036
call fcn.00406456
test eax, eax
je 0x40704c
push edi
call fcn.004068a3
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406424
pop ecx
pop ecx
push edi
call fcn.00405fb1
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
test eax, eax
jne 0x407045
test byte [ebp + 0xc], 4
je 0x407031
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406424
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004050f3
push esi
push edi
call fcn.00406de9
jmp 0x40704c
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406424
inc dword [0x472e88]
pop ecx
pop ecx
jmp 0x40704c
push 0xffffffffffffffe5
call fcn.004050f3
pop esi
pop ebx
pop edi
leave
ret 8