Function at 0x14001d8b0
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4e0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400a6188]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r14, rdx
mov qword [rsp + 0x30], rdx
call fcn.140010cf0
mov rcx, rax
lea r9, [0x140071118]
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
xor edx, edx
call fcn.14002c750
xor r15d, r15d
mov ebx, r15d
mov qword [rsp + 0x30], rbx
call fcn.140010cf0
mov esi, r15d
cmp byte [rax + 0x64], r15b
je 0x14001d97c
lea ecx, [r15 + 0x28]
call fcn.140025d40
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001d971
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::CKeyBoardBridge::GetUsbCAppPath
mov rcx, rbx
call fcn.140027d20
mov rbx, rax
jmp 0x14001d974
mov rbx, r15
mov qword [rsp + 0x30], rbx
mov rsi, rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.14004b830
lea rax, [rbp + 0x1c0]
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]
mov edi, eax
test eax, eax
jns 0x14001da27
call fcn.140010cf0
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, str.SHGetFolderPathW_failed.__Error:_0x_08X
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
mov edx, 5
call fcn.14002c750
call fcn.140010cf0
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, str._hr:0x_08lX_
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
mov edx, 1
call fcn.14002c750
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
xor r8d, r8d
lea rdx, [0x140071118]
mov rcx, r14
call fcn.14000fea0
nop
test rsi, rsi
jmp 0x14001dcf5
lea r8, str.HPHP_NotificationsHpUsbCConfiguration.exe
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.140053554
movdqa xmm0, xmmword [0x1400739d0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r15w
xor r8d, r8d
lea rdx, [0x140071118]
lea rcx, [rsp + 0x48]
call fcn.14000fea0
nop
lea rax, [rbp + 0x1c0]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001da80
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x48]
call fcn.14000fea0
lea rdi, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdi, qword [rsp + 0x48]
call fcn.140010cf0
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9, str.search_from_this_path___s
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
mov edx, 2
call fcn.14002c750
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
cmp rax, rsi
je 0x14001db01
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x14001dc95
lea rax, [rbp + 0x1c0]
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]
mov edi, eax
test eax, eax
jns 0x14001dbdf
call fcn.140010cf0
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, str.SHGetFolderPathW_failed.__Error:_0x_08X
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
mov edx, 5
call fcn.14002c750
call fcn.140010cf0
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, str._hr:0x_08lX_
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
mov edx, 1
call fcn.14002c750
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
xor r8d, r8d
lea rdx, [0x140071118]
mov rcx, r14
call fcn.14000fea0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14001dcde
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001dbd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001dd3b
call fcn.140025d80
jmp 0x14001dcde
lea r8, str.Hewlett_PackardHP_NotificationsHpUsbCConfiguration.exe
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.140053554
lea rax, [rbp + 0x1c0]
nop
inc rsi
cmp word [rax + rsi*2], 0
jne 0x14001dc00
mov r8, rsi
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x48]
call fcn.14000fea0
lea rdi, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdi, qword [rsp + 0x48]
call fcn.140010cf0
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9, str.Try_again_to_search_from_this_path___s
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
mov edx, 2
call fcn.14002c750
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14001dc81
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x14001dc95
xor r8d, r8d
lea rdx, [0x140071118]
lea rcx, [rsp + 0x48]
call fcn.14000fea0
lea rdi, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdi, qword [rsp + 0x48]
call fcn.140010cf0
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9, str.csExeName___s
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
mov edx, 1
call fcn.14002c750
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [r14 + 0x10], xmm1
movdqa xmm0, xmmword [0x1400739d0]
mov word [rsp + 0x48], r15w
movdqu xmmword [rsp + 0x58], xmm0
test rbx, rbx
je 0x14001dd0c
mov rcx, rbx
call fcn.1400287c0
mov edx, 0x28
mov rcx, rbx
call fcn.140025d80
mov rax, r14
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.1400264a0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14004e3b0
nop
int3