Function at 0x140017160
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x4d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400a6188]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rdi, rdx
mov qword [rsp + 0x48], rdx
xor esi, esi
mov dword [rsp + 0x30], esi
call fcn.140010cf0
mov rcx, rax
lea r9, [0x140071118]
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetUsbCAppPath
xor edx, edx
call fcn.14002c750
mov ebx, esi
mov qword [rsp + 0x38], rbx
call fcn.140010cf0
cmp byte [rax + 0x64], sil
je 0x14001721d
lea ecx, [rsi + 0x28]
call fcn.140025d40
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140017215
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
call fcn.140010cf0
mov rdx, rax
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetUsbCAppPath
mov rcx, rbx
call fcn.140027d20
mov rbx, rax
jmp 0x140017218
mov rbx, rsi
mov qword [rsp + 0x38], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x2b0]
call fcn.14004b830
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x2a]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
lea r8, str.HPHP_NotificationsHpUsbCConfiguration.exe
mov edx, 0x104
lea rcx, [rsp + 0x2b0]
call fcn.140053554
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
lea rax, [rsp + 0x2b0]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140017290
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call fcn.14000fea0
mov dword [rsp + 0x30], 1
mov rbp, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400172c0
mov rbp, qword [rdi]
call fcn.140010cf0
mov rcx, rax
mov qword [rsp + 0x20], rbp
lea r9, str.Search_USB_TypeC_App_in_this_path___s
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetUsbCAppPath
mov edx, 2
call fcn.14002c750
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400172f2
mov rcx, qword [rdi]
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140017311
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x1400173fb
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x2a]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
lea r8, str.Hewlett_PackardHP_NotificationsHpUsbCConfiguration.exe
mov edx, 0x104
lea rcx, [rsp + 0x2b0]
call fcn.140053554
lea rax, [rsp + 0x2b0]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140017351
mov r8, rsi
lea rdx, [rsp + 0x2b0]
mov rcx, rdi
call fcn.14000fea0
mov rsi, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001737b
mov rsi, qword [rdi]
call fcn.140010cf0
mov rcx, rax
mov qword [rsp + 0x20], rsi
lea r9, str.Try_again_USB_TypeC_App_search_in_this_path___s
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetUsbCAppPath
mov edx, 2
call fcn.14002c750
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400173ad
mov rcx, qword [rdi]
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400173c9
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x1400173fb
call fcn.140010cf0
mov rcx, rax
lea r9, str.Failed_to_find_HpUsbCConfiguration.exe_in_the_system
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetUsbCAppPath
mov edx, 5
call fcn.14002c750
xor r8d, r8d
lea rdx, [0x140071118]
mov rcx, rdi
call fcn.14000fea0
mov rsi, rdi
cmp qword [rdi + 0x18], 8
jb 0x140017408
mov rsi, qword [rdi]
call fcn.140010cf0
mov rcx, rax
mov qword [rsp + 0x20], rsi
lea r9, str.csExeName___s
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetUsbCAppPath
mov edx, 1
call fcn.14002c750
nop
test rbx, rbx
je 0x140017448
mov rcx, rbx
call fcn.1400287c0
mov edx, 0x28
mov rcx, rbx
call fcn.140025d80
mov rax, rdi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.1400264a0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret