Function at 0x14009fe70
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rcx
cmp qword [rcx + 0x10], 0
jne 0x14009ff51
lea rax, str.MakeDirectory
mov qword [rsp + 0x20], rax
lea r9, str.FileUtils__s:_path_is_empty
mov edx, 0x100
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x70]
call fcn.14001f090
test eax, eax
js 0x14009ff47
lea rcx, [rsp + 0x70]
call fcn.14001f120
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::FileUtils::MakeDirectory
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, [rsp + 0x70]
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, [rsp + 0x70]
call fcn.14001f1f0
mov eax, 0x10016
jmp 0x1400a0202
call fcn.14009e390
test eax, eax
je 0x1400a0202
mov dword [rsp + 0x58], 0x18
mov dword [rsp + 0x68], 0
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [r9 + 1]
lea rcx, str.D:_A_OICI_GA___SY__A_OICI_GA___BA_
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov edi, eax
test eax, eax
jne 0x1400a002e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, str.CreateDACL
mov qword [rsp + 0x20], rax
lea r9, str.FileUtils__s:_Failed_to_create__error:__lu
mov edx, 0x100
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x70]
call fcn.14001f090
test eax, eax
js 0x1400a002e
lea rcx, [rsp + 0x70]
call fcn.14001f120
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::CreateDACL
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, [rsp + 0x70]
lea edx, [rdi + 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, [rsp + 0x70]
call fcn.14001f1f0
test edi, edi
jne 0x1400a00d7
lea rax, str.MakeDirectory
mov qword [rsp + 0x20], rax
lea r9, str.FileUtils__s:_Failed_to_create_DACL
mov edx, 0x100
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x70]
call fcn.14001f090
test eax, eax
js 0x14009ff47
lea rcx, [rsp + 0x70]
call fcn.14001f120
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::FileUtils::MakeDirectory
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, [rsp + 0x70]
lea edx, [rdi + 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, [rsp + 0x70]
call fcn.14001f1f0
mov eax, 0x10016
jmp 0x1400a0202
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.14009de80
cmp qword [rax + 0x18], 8
jb 0x1400a00ee
mov rax, qword [rax]
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400a0147
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a0142
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a0142
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401eb394
test dil, dil
je 0x1400a01ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, str.MakeDirectory
mov qword [rsp + 0x20], rax
lea r9, str.FileUtils__s:_Failed_to_create_directory__error:__lu
mov edx, 0x100
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x70]
call fcn.14001f090
test eax, eax
js 0x1400a01ef
lea rcx, [rsp + 0x70]
call fcn.14001f120
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.140020a40
mov rcx, rax
lea rdx, [0x140216b10]
call fcn.140020db0
mov rcx, rax
lea rdx, str.HarmonyOS::DistributedFs::FileUtils::MakeDirectory
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, [rsp + 0x70]
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, [rsp + 0x70]
call fcn.14001f1f0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call fcn.14009e390
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401eb080
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret