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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x4d0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x14028d8b0]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rsi, rdx
mov qword [rsp + 0x40], rdx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call fcn.1400054a0
mov rcx, rax
lea r14, [0x14024c860]
mov r9, r14
lea r8, str.CHPSysInfoDlg::GetUsbCAppPath
xor edx, edx
call fcn.1401a7be0
mov qword [rsp + 0x50], rbx
call fcn.1400054a0
mov ebp, ebx
cmp byte [rax + 0x64], bl
je 0x140003abc
lea ecx, [rbx + 0x28]
call fcn.14000fda4
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140003ab4
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
call fcn.1400054a0
mov rdx, rax
lea r8, str.CHPSysInfoDlg::GetUsbCAppPath
mov rcx, rdi
call fcn.1401a31c0
mov rbx, rax
mov qword [rsp + 0x50], rbx
mov rbp, rbx
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.SHELL32.dll_SHGetFolderPathW]
lea r8, str.HPHP_NotificationsHpUsbCConfiguration.exe
mov edx, 0x104
lea rcx, [rsp + 0x2b0]
call fcn.1401aea68
xor eax, eax
mov qword [rsi], rax
call fcn.1400255f4
mov rcx, rax
test rax, rax
je 0x140003cca
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x2b0]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003b31
mov r8d, eax
lea rdx, [rsp + 0x2b0]
mov rcx, rsi
call fcn.140004190
call fcn.1400054a0
mov rcx, rax
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
lea r9, str.search_from_this_path___s
lea r8, str.CHPSysInfoDlg::GetUsbCAppPath
mov edx, 2
call fcn.1401a7be0
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, rdi
je 0x140003b97
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140003c5c
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.SHELL32.dll_SHGetFolderPathW]
lea r8, str.Hewlett_PackardHP_NotificationsHpUsbCConfiguration.exe
mov edx, 0x104
lea rcx, [rsp + 0x2b0]
call fcn.1401aea68
lea rcx, [rsp + 0x2b0]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003be0
mov r8d, eax
lea rdx, [rsp + 0x2b0]
mov rcx, rsi
call fcn.140004190
call fcn.1400054a0
mov rcx, rax
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
lea r9, str.Try_again_to_search_from_this_path___s
lea r8, str.CHPSysInfoDlg::GetUsbCAppPath
mov edx, 2
call fcn.1401a7be0
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, rdi
je 0x140003c43
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140003c5c
inc rdi
cmp word [r14 + rdi*2], 0
jne 0x140003c43
mov r8d, edi
mov rdx, r14
mov rcx, rsi
call fcn.140004190
call fcn.1400054a0
mov rcx, rax
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
lea r9, str.csExeName___s
lea r8, str.CHPSysInfoDlg::GetUsbCAppPath
mov edx, 1
call fcn.1401a7be0
nop
test rbp, rbp
je 0x140003c9f
mov rcx, rbx
call fcn.1401a3c60
mov edx, 0x28
mov rcx, rbx
call fcn.140002de0
mov rax, rsi
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.14019ee20
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140002b50
int3