Function at 0x140040540
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x500], rbx
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rdi, rdx
add rcx, 0x78
lea rdx, str.text_set_receiv
call qword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____ptr64___cdecl_DuiLib::CPaintManagerUI::FindControl_wchar_t_const____ptr64_const___ptr64]
mov rbx, rax
test rax, rax
je 0x14004092a
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rbp - 0x70], xmm0
xor esi, esi
mov word [rbp - 0x80], si
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
lea rdx, str.hishare
lea rcx, [rsp + 0x30]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.HwFileUtil.dll_public:_bool___cdecl_DE::Registry::ValueExists_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
movzx edi, al
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14004061b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040616
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040616
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
test dil, dil
je 0x140040736
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
lea rdx, str.hishare
lea rcx, [rsp + 0x50]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
lea rdx, str.SOFTWAREHuaweiPCManager_setting
lea rcx, [rsp + 0x30]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
mov dword [rsp + 0x20], 0xf003f
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.HwFileUtil.dll_public:_static_bool___cdecl_DE::Registry::GetValue_struct_HKEY______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64__unsigned_long_int_]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400406d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400406d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400406d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400408cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400408ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400408ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x78], rsi
lea r8, [rsp + 0x78]
mov edx, 5
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400407a1
lea rdx, [rbp - 0x60]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400407a1
mov r8d, 0x104
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
mov r8d, 8
lea rdx, str.HwShare
lea rcx, [rbp - 0x80]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
lea rdx, str.hishare
lea rcx, [rsp + 0x50]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
lea rdx, str.SOFTWAREHuaweiPCManager_setting
lea rcx, [rsp + 0x30]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
mov dword [rsp + 0x20], 0xf003f
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.HwFileUtil.dll_public:_static_bool___cdecl_DE::Registry::SetValue_struct_HKEY______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__unsigned_long_int_]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140040877
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040872
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040872
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400408cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400408ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400408ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
mov rax, qword [rbx]
cmovae rdx, qword [rbp - 0x80]
mov rcx, rbx
call qword [rax + 0x58]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14004092a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040925
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040925
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140093940
mov rbx, qword [rsp + 0x500]
add rsp, 0x4d0
pop rdi
pop rsi
pop rbp
ret