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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x1401339d8]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r14, rdx
mov qword [rsp + 0x30], rdx
call fcn.140014190
mov rcx, rax
lea r9, [0x1400e8328]
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
xor edx, edx
call fcn.14009cf00
xor r15d, r15d
mov ebx, r15d
mov qword [rsp + 0x30], rbx
mov esi, r15d
call fcn.140014190
cmp byte [rax + 0x64], r15b
je 0x14003ffaf
lea ecx, [r15 + 0x28]
call fcn.140095e50
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003ffa4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
call fcn.140014190
mov rdx, rax
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
mov rcx, rbx
call fcn.140098570
mov rbx, rax
jmp 0x14003ffa7
mov rbx, r15
mov qword [rsp + 0x30], rbx
mov rsi, rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.1400a57c0
lea rax, [rbp + 0x1b0]
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 0x14004005d
call fcn.140014190
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.14009cf00
call fcn.140014190
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.14009cf00
mov qword [r14], r15
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
xor r8d, r8d
lea rdx, [0x1400e8328]
mov rcx, r14
call fcn.140013240
nop
test rsi, rsi
jmp 0x14004032a
lea r8, str.HPHP_NotificationsHpUsbCConfiguration.exe
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.1400bb8dc
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
xor r8d, r8d
lea rdx, [0x1400e8328]
lea rcx, [rsp + 0x40]
call fcn.140013240
nop
lea rax, [rbp + 0x1b0]
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp word [rax + r8*2], 0
jne 0x1400400b4
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x40]
call fcn.140013240
lea rdi, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdi, qword [rsp + 0x40]
call fcn.140014190
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.14009cf00
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
cmp rax, rsi
je 0x140040135
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x1400402ca
lea rax, [rbp + 0x1b0]
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 0x140040216
call fcn.140014190
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.14009cf00
call fcn.140014190
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.14009cf00
mov qword [r14], r15
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
xor r8d, r8d
lea rdx, [0x1400e8328]
mov rcx, r14
call fcn.140013240
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140040313
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004020c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040370
call fcn.140095e90
jmp 0x140040313
lea r8, str.Hewlett_PackardHP_NotificationsHpUsbCConfiguration.exe
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.1400bb8dc
lea rax, [rbp + 0x1b0]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140040235
mov r8, rsi
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x40]
call fcn.140013240
lea rdi, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdi, qword [rsp + 0x40]
call fcn.140014190
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.14009cf00
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400402b6
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x1400402ca
xor r8d, r8d
lea rdx, [0x1400e8328]
lea rcx, [rsp + 0x40]
call fcn.140013240
lea rdi, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdi, qword [rsp + 0x40]
call fcn.140014190
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9, str.csExeName___s
lea r8, str.RpcServer::CKeyBoardBridge::GetUsbCAppPath
mov edx, 1
call fcn.14009cf00
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [r14 + 0x10], xmm1
mov word [rsp + 0x40], r15w
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r15
test rbx, rbx
je 0x140040341
mov rcx, rbx
call fcn.140099040
mov edx, 0x28
mov rcx, rbx
call fcn.140095e90
mov rax, r14
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400964b0
lea r11, [rsp + 0x4d0]
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.1400b1720
nop
int3