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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6e0
mov rax, qword [0x140307f80]
xor rax, rsp
mov qword [rsp + 0x6d0], rax
lea rax, [rsp + 0x26]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
mov ecx, 1
call fcn.140024e30
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1402468e0
nop
lea rax, [rsp + 0x4c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x6f0]
lea rcx, [rsp + 0x4c0]
call fcn.140246850
lea rdx, [0x1402dee78]
lea rcx, [rsp + 0x4c0]
call fcn.140246820
mov rdx, qword [rsp + 0x6f0]
lea rcx, [rsp + 0x2b0]
call fcn.140246850
lea rdx, [0x1402dee80]
lea rcx, [rsp + 0x2b0]
call fcn.140246820
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x250
rep stosb byte [rdi], al
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x14014056c
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x38]
call fcn.140246a20
movzx eax, byte [rsp + 0x21]
jmp 0x140140732
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140140830
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140240b80
nop
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x4c0]
call fcn.140246850
nop
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1401406be
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x27]
call fcn.140140760
movzx eax, al
test eax, eax
je 0x1401405d2
jmp 0x14014059f
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x2b0]
call fcn.140246820
nop
mov eax, dword [rsp + 0x60]
and eax, 0x10
test eax, eax
je 0x140140651
lea rcx, [rsp + 0x2b0]
call fcn.140140460
movzx eax, al
test eax, eax
jne 0x14014062b
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x28]
call fcn.1401408a0
nop
lea rcx, [rsp + 0x38]
call fcn.140246a20
movzx eax, byte [rsp + 0x22]
jmp 0x140140732
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rdx, [rsp + 0x4c0]
lea rcx, [rsp + 0x2b0]
call fcn.140246850
nop
jmp 0x1401406bc
mov eax, dword [rsp + 0x60]
and eax, 1
test eax, eax
je 0x140140670
mov edx, 0x80
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.ucrtbased.dll__wchmod]
nop
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401406a6
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x28]
call fcn.1401408a0
nop
lea rcx, [rsp + 0x38]
call fcn.140246a20
movzx eax, byte [rsp + 0x23]
jmp 0x140140732
lea rdx, [rsp + 0x4c0]
lea rcx, [rsp + 0x2b0]
call fcn.140246850
nop
jmp 0x1401406ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1401406cb
jmp 0x1401406f1
mov byte [rsp + 0x24], 0
lea rcx, [rsp + 0x28]
call fcn.1401408a0
nop
lea rcx, [rsp + 0x38]
call fcn.140246a20
movzx eax, byte [rsp + 0x24]
jmp 0x140140732
jmp 0x14014059f
mov rcx, qword [rsp + 0x6f0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x14014070a
mov byte [rsp + 0x20], 1
jmp 0x14014070f
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x25], al
lea rcx, [rsp + 0x28]
call fcn.1401408a0
nop
lea rcx, [rsp + 0x38]
call fcn.140246a20
movzx eax, byte [rsp + 0x25]
mov rcx, qword [rsp + 0x6d0]
xor rcx, rsp
call fcn.140257e70
add rsp, 0x6e0
pop rdi
ret