Function at 0x140002550
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xd60]
sub rsp, 0xe60
mov rax, qword [0x14003e020]
xor rax, rsp
mov qword [rbp + 0xd50], rax
mov rsi, rcx
xor dil, dil
lea rcx, str.InstallPortMonitor__
call fcn.140001cf0
mov dl, 1
call fcn.140002140
test al, al
jne 0x1400025ab
lea rcx, str.InstallPortMonitor::StartStopService_Failed_to_stop_spooler_hence_quitting.
call fcn.140001cf0
xor al, al
jmp 0x1400027ee
xor edx, edx
mov qword [rsp + 0xe78], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1400095e0
xor edx, edx
lea rcx, [rbp + 0x940]
mov r8d, 0x410
call fcn.1400095e0
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8025
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
je 0x140002682
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x800
call fcn.1400095e0
mov r9d, ebx
lea r8, str.InstallPortMonitor::SHGetFolderPath_Failed.
lea rdx, str._s_HRESULT__x
lea rcx, [rbp + 0x140]
call fcn.1400059d0
lea rcx, [rbp + 0x140]
call fcn.140001cf0
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x800
call fcn.1400095e0
movzx r9d, bx
lea r8, str.InstallPortMonitor::SHGetFolderPath_Failed.HRESULT_CODE_
lea rdx, str._s_:_Code:__ul
lea rcx, [rbp + 0x140]
call fcn.1400059d0
lea rcx, [rbp + 0x140]
call fcn.140001cf0
xor al, al
jmp 0x1400027e6
lea rdx, str.SetupAPI.dll
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8, rsi
lea rdx, str.AdobePDFPortMonitor_128__s
lea rcx, [rbp + 0x940]
call fcn.1400054a0
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x800
call fcn.1400095e0
lea r9, [rbp + 0x940]
lea r8, str.Installing_Port_Monitor_with_command_line:
lea rdx, str._s:__s
lea rcx, [rbp + 0x140]
call fcn.1400059d0
lea rcx, [rbp + 0x140]
call fcn.140001cf0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140002786
lea rdx, str.InstallHinfSectionW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000273c
xor r9d, r9d
lea r8, [rbp + 0x940]
xor edx, edx
xor ecx, ecx
call qword [0x140029398]
mov rcx, rbx
mov dil, 1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400027cb
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x800
call fcn.1400095e0
lea r9, [rsp + 0x30]
lea r8, str.Failed_to_locate_proc_InstallHinfSectionW_in
lea rdx, str._s:__s
lea rcx, [rbp + 0x140]
call fcn.1400059d0
lea rcx, [rbp + 0x140]
call fcn.140001cf0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400027cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x800
mov ebx, eax
call fcn.1400095e0
mov r9d, ebx
lea r8, str.Failed_to_load_setupapi.
lea rdx, str._s_:_Code:__ul
lea rcx, [rbp + 0x140]
call fcn.1400059d0
lea rcx, [rbp + 0x140]
call fcn.140001cf0
xor edx, edx
call fcn.140002140
test al, al
jne 0x1400027e2
lea rcx, str.InstallPortMonitor::StartStopService_Failed_to_start_spooler.
call fcn.140001cf0
movzx eax, dil
mov rbx, qword [rsp + 0xe78]
mov rcx, qword [rbp + 0xd50]
xor rcx, rsp
call fcn.140006fd0
lea r11, [rsp + 0xe60]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret