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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140060010]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r15b, dl
mov rdi, rcx
xor ebx, ebx
mov sil, bl
lea r8, str..
lea rdx, [rsp + 0x70]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t____cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001b4a4
lea rdx, [rbp - 0x14]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, [0x140043750]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_bool___cdecl_Cmm::CStringT_wchar_t_::operator__wchar_t_const____ptr64_const___ptr64]
test al, al
je 0x14001b431
lea rdx, [0x140043754]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_bool___cdecl_Cmm::CStringT_wchar_t_::operator__wchar_t_const____ptr64_const___ptr64]
test al, al
je 0x14001b431
lea r8, [0x1400439c8]
lea rdx, [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t____cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
nop
lea r8, [rbp - 0x14]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t____cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x68]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
test byte [rbp - 0x40], 0x10
je 0x14001b3e8
test r15b, r15b
je 0x14001b3e3
mov dl, r15b
lea rcx, [rsp + 0x20]
call fcn.14001b2dc
test eax, eax
jne 0x14001b4de
jmp 0x14001b425
mov sil, 1
jmp 0x14001b425
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14001b4d7
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14001b4d7
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x14001b34b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14001b4a2
test sil, sil
jne 0x14001b4a4
mov rcx, rdi
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14001b49c
mov rcx, rdi
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001b4a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140037640
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
jmp 0x14001b4a4