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

Disassembly:
push r12
mov eax, 0x3080
push rbp
push rdi
push rsi
push rbx
call fcn.1401d92a0
sub rsp, rax
mov rdi, qword [0x14022c040]
mov rbp, rcx
lea rsi, [rsp + 0x70]
mov rbx, rdx
mov dword [rsp + 0x38], 0
mov rax, qword [rdi]
mov qword [rsp + 0x3078], rax
xor eax, eax
mov dword [rsp + 0x3c], 0
call fcn.1400d1230
mov r9d, 0xffffffff
mov rdx, rbp
mov rcx, rsi
mov r8d, 0x1000
mov r12d, eax
call fcn.1400d25c0
test eax, eax
js 0x1400d9130
mov r9d, r12d
mov r8d, 0x104
mov edx, eax
mov rcx, rsi
call fcn.1400d3b90
test eax, eax
js 0x1400d913e
je case.0x1400d91dc.4
movsxd rdx, eax
lea rdx, [rsi + rdx*2]
jmp 0x1400d8fb3
xor r10d, r10d
sub rdx, 2
mov word [rdx], r10w
test eax, eax
je case.0x1400d91dc.4
movzx ecx, word [rdx - 2]
sub eax, 1
cmp ecx, 0x2f
je 0x1400d8fa0
cmp ecx, 0x5c
je 0x1400d8fa0
xor edx, edx
lea r8, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1400d91b6
mov ecx, dword [rsp + 0x40]
mov edx, ecx
and edx, 0x400
je 0x1400d901c
lea rax, [rsp + 0x38]
xor edx, edx
lea r9, [rsp + 0x3c]
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x2070]
call fcn.1400d2ba0
cmp eax, 0xffffffff
je 0x1400d913e
mov edx, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 8], 1
mov word [rbx + 4], r8w
mov r8, rbp
mov word [rbx + 0xc], r9w
call fcn.1400d8e20
mov r9d, eax
mov word [rbx + 6], ax
and r9w, 0xf000
cmp r9w, 0xa000
je 0x1400d9168
mov eax, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x60]
shl rax, 0x20
or rax, rdx
mov r10, qword [rsp + 0x4c]
mov qword [rbx + 0x18], rax
movabs r8, 0xfe624e212ac18000
movabs rcx, 0xd6bf94d5e57a42bd
mov dword [rbx + 0x10], 0
add r10, r8
mov dword [rbx], 0
mov rax, r10
imul rcx
mov rax, r10
sar rax, 0x3f
add rdx, r10
sar rdx, 0x17
sub rdx, rax
mov qword [rbx + 0x20], rdx
imul rdx, rdx, 0x989680
sub r10, rdx
imul r10d, r10d, 0x64
mov dword [rbx + 0x28], r10d
mov r10, qword [rsp + 0x54]
add r10, r8
add r8, qword [rsp + 0x44]
mov rax, r10
imul rcx
mov rax, r10
sar rax, 0x3f
add rdx, r10
sar rdx, 0x17
sub rdx, rax
mov rax, r8
mov qword [rbx + 0x30], rdx
imul rdx, rdx, 0x989680
sub r10, rdx
imul rcx
mov rax, r8
sar rax, 0x3f
imul r10d, r10d, 0x64
add rdx, r8
sar rdx, 0x17
mov dword [rbx + 0x38], r10d
sub rdx, rax
mov qword [rbx + 0x40], rdx
imul rdx, rdx, 0x989680
sub r8, rdx
imul r8d, r8d, 0x64
mov dword [rbx + 0x48], r8d
cmp r9w, 0x8000
je 0x1400d9178
xor eax, eax
jmp 0x1400d9143
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
je 0x1400d9198
mov eax, 0xffffffff
mov rdx, qword [rsp + 0x3078]
sub rdx, qword [rdi]
jne 0x1400d9271
add rsp, 0x3080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movsxd rax, dword [rsp + 0x3c]
jmp 0x1400d9063
call fcn.1400dd320
test eax, eax
je 0x1400d912c
lea r8, [rbx + 6]
mov rdx, 0xffffffffffffffff
mov rcx, rsi
call fcn.1400dd3a0
xor eax, eax
jmp 0x1400d9143
call rbx
mov dword [rax], 0x26
jmp 0x1400d913e
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 2
jmp 0x1400d913e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x24
ja 0x1400d91ef
cmp eax, 2
jbe case.0x1400d91dc.4
sub eax, 3
cmp eax, 0x21
ja case.0x1400d91dc.4
lea rdx, [0x140205eec]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xd
jmp 0x1400d913e
cmp eax, 0x6f
jne case.0x1400d91dc.4
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x26
jmp 0x1400d913e
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov edx, eax
cdqe
lea rax, [rsi + rax*2 - 2]
test edx, edx
jle case.0x1400d91dc.4
movzx ecx, word [rax]
mov rbp, rax
sub edx, 1
sub rax, 2
mov ebx, ecx
cmp cx, 0x2f
je 0x1400d9234
cmp ecx, 0x5c
jne 0x1400d9216
xor eax, eax
mov rcx, rsi
mov word [rbp], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [rbp], bx
test al, 0x50
jne case.0x1400d91dc.4
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x14
jmp 0x1400d913e
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xc
jmp 0x1400d913e
call fcn.1401d96b0
nop
nop word [rax + rax]