Function at 0x1400a0680
Capabilities:
Delete directory

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x2f8]
sub rsp, 0x3e0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rbx, rcx
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x30], r15d
cmp qword [rcx + 0x10], rdi
jne 0x1400a0772
lea rsi, str.ForceRemoveDirectory
mov qword [rsp + 0x20], rsi
lea r9, str.FileUtils__s:_path_is_empty
mov edx, 0x100
lea r8, [r15 - 1]
lea rcx, [rbp + 0x1d0]
call fcn.14001f090
test eax, eax
js 0x1400a0768
lea rcx, [rbp - 0x60]
call fcn.14001f120
nop
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x50]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::FileUtils::ForceRemoveDirectory
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b0c]
call fcn.140020db0
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x60]
lea edx, [r15 + 4]
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rbp - 0x60]
call fcn.14001f1f0
mov eax, 0x10016
jmp 0x1400a0b28
lea r8, [0x14022640c]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.14002f7c0
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
lea rdx, [rbp + 0xa0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findfirst64i32]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a084b
lea rsi, str.ForceRemoveDirectory
mov qword [rsp + 0x20], rsi
lea r9, str.FileUtils__s:_cant_access
mov edx, 0x100
mov r8, rax
lea rcx, [rbp + 0x1d0]
call fcn.14001f090
test eax, eax
js 0x1400a0841
lea rcx, [rbp - 0x60]
call fcn.14001f120
nop
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x50]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::FileUtils::ForceRemoveDirectory
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b0c]
call fcn.140020db0
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x60]
lea edx, [r14 + 5]
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rbp - 0x60]
call fcn.14001f1f0
mov ebx, 0x10005
jmp 0x1400a0b1d
lea rdx, [rbp + 0xa0]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findnext64i32]
test eax, eax
jne 0x1400a0b0a
lea rsi, str.ForceRemoveDirectory
nop word [rax + rax]
movzx edx, byte [rbp + 0xc4]
movzx ecx, byte [rbp + 0xc5]
cmp dl, byte [0x1402263e8]
jne 0x1400a08a1
cmp cl, byte [0x1402263e9]
jne 0x1400a08a1
movzx eax, byte [rbp + 0xc6]
cmp al, byte [0x1402263ea]
je 0x1400a0af2
cmp dl, byte [0x1402263e4]
jne 0x1400a08b5
cmp cl, byte [0x1402263e5]
je 0x1400a0af2
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
or edi, 2
mov dword [rsp + 0x30], edi
mov rdx, qword [rbx + 0x10]
inc rdx
lea rcx, [rsp + 0x38]
call fcn.14002ff60
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400a08ed
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x38]
call fcn.14001eac0
mov r8d, 1
lea rdx, [0x140217908]
lea rcx, [rsp + 0x38]
call fcn.14001eac0
lea rax, [rbp + 0xc4]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400a0920
lea rdx, [rbp + 0xc4]
lea rcx, [rsp + 0x38]
call fcn.14001eac0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or edi, 4
and edi, 0xfffffffd
lea rcx, [rsp + 0x38]
call fcn.14001cb10
lea rcx, [rsp + 0x60]
test byte [rbp + 0xa0], 0x10
je 0x1400a0a3c
call fcn.1400a0680
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__rmdir]
test eax, eax
je 0x1400a0ae8
mov qword [rsp + 0x20], rsi
lea r9, str.FileUtils__s:_Failed_to_remove_dir
mov edx, 0x100
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x1d0]
call fcn.14001f090
test eax, eax
js 0x1400a0ae8
lea rcx, [rbp - 0x60]
call fcn.14001f120
nop
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x50]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::FileUtils::ForceRemoveDirectory
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b0c]
call fcn.140020db0
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x60]
mov edx, 4
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
jmp 0x1400a0ade
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
test eax, eax
je 0x1400a0ae8
mov qword [rsp + 0x20], rsi
lea r9, str.FileUtils__s:_Failed_to_remove_file
mov edx, 0x100
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x1d0]
call fcn.14001f090
test eax, eax
js 0x1400a0ae8
lea rcx, [rbp - 0x60]
call fcn.14001f120
nop
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x50]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::FileUtils::ForceRemoveDirectory
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b0c]
call fcn.140020db0
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x60]
mov edx, 4
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rbp - 0x60]
call fcn.14001f1f0
nop
lea rcx, [rsp + 0x60]
call fcn.14001cb10
lea rdx, [rbp + 0xa0]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findnext64i32]
test eax, eax
je 0x1400a0870
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findclose]
mov rcx, rbx
call fcn.1400a0480
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.14001cb10
mov eax, ebx
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1401eb080
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret