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

Disassembly:
test rcx, rcx
je 0x18000e637
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x18000e614
mov dword [rsp + 0x40], eax
xor edx, edx
mov r8d, 0x24c
lea rcx, [rsp + 0x44]
call fcn.18006f140
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000e614
lea rdx, [0x1800e1f10]
lea rcx, [rsp + 0x20]
call fcn.180042f80
nop
nop dword [rax + rax]
lea rdx, [0x1800e45f4]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000e5ea
lea rdx, [0x1800e45f0]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18000e5ea
lea rdx, [0x1800e1f10]
lea rcx, [rsp + 0x20]
call fcn.180040790
mov rcx, rbx
call fcn.18000b520
test rax, rax
je 0x18000e484
sub rax, rbx
sar rax, 1
cmp rax, 1
jle 0x18000e484
lea r8d, [rax - 1]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.180043110
nop
lea r9, [rsp + 0x6c]
mov r8, qword [rax]
lea rdx, [0x1800e38a8]
lea rcx, [rsp + 0x20]
call fcn.1800415c0
nop
lea rcx, [rsp + 0x30]
call fcn.180040610
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax - 8]
test ecx, ecx
je 0x18000e5ea
cmp ecx, 0x104
jl 0x18000e54c
lea rdx, [0x1800e4658]
lea rcx, [rsp + 0x20]
call fcn.180040af0
lea rcx, [rsp + 0x20]
test eax, eax
jne 0x18000e4cb
lea edx, [rax + 2]
lea r8d, [rax + 0x3f]
call fcn.180040b60
jmp 0x18000e54c
lea rdx, [0x1800e4648]
call fcn.180040af0
test eax, eax
je 0x18000e54c
lea rdx, [0x1800e4648]
lea rcx, [rsp + 0x28]
call fcn.180042f80
nop
lea rdx, [0x1800e463c]
lea rcx, [rsp + 0x20]
call fcn.180040af0
test eax, eax
jne 0x18000e523
lea rdx, [0x1800e4628]
lea rcx, [rsp + 0x28]
call fcn.180040790
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x20]
call fcn.180040bd0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180040950
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.180040720
nop
lea rcx, [rsp + 0x28]
call fcn.180040610
mov edx, dword [rsp + 0x40]
test dl, 0x10
je 0x18000e5c8
bt edx, 0xa
jb 0x18000e58b
lea rdx, [0x1800e4268]
lea rcx, [rsp + 0x20]
call fcn.1800408e0
mov rcx, qword [rsp + 0x20]
call fcn.18000e350
lea rdx, [0x1800e4268]
lea rcx, [rsp + 0x20]
call fcn.1800415f0
mov edx, dword [rsp + 0x40]
test dl, 1
je 0x18000e5a2
and edx, 0xfffffffe
mov dword [rsp + 0x40], edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18000e5ea
mov rcx, qword [rsp + 0x20]
call fcn.18000dd20
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x18000e5ea
mov rcx, qword [rsp + 0x20]
call fcn.18005f810
test eax, eax
jne 0x18000e5ea
mov rcx, qword [rsp + 0x20]
call fcn.18000dd20
mov rcx, qword [rsp + 0x20]
call fcn.18005f810
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18000e3f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x20]
call fcn.180040610
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.18006f110
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
repz ret