Function at 0x14006d9d4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x270
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor edi, edi
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
mov r15d, edi
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x34]
mov r13d, 0x104
mov qword [rsp + 0x28], rax
lea r9, str.Location
lea rax, [rsp + 0x50]
mov dword [rsp + 0x34], r13d
lea r8, str.SOFTWARECitrixInstall
mov qword [rsp + 0x20], rax
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x30]
call fcn.1400720c8
lea r12d, [rdi + 1]
test al, al
je 0x14006db3a
call fcn.140041790
lea rcx, [rsp + 0x50]
mov edx, r13d
lea r8, str.System32WFAPI.DLL
test al, al
jne 0x14006da8b
lea r8, str.ICAServiceWFAPI.DLL
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x900
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
je 0x14006db3a
lea rdx, str.WFQuerySessionInformationA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WFFreeMemory
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rbx, rbx
je 0x14006db2c
test rax, rax
je 0x14006db2c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rax, rbx
mov dword [rsp + 0x38], edi
mov r8d, 8
or edx, 0xffffffff
xor ecx, ecx
call qword [0x140086148]
test eax, eax
je 0x14006db2c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14006db2c
mov ebx, dword [rcx]
mov rax, r14
call qword [0x140086148]
cmp ebx, r12d
setle r15b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15d, r15d
jne 0x14006dbb5
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
mov esi, edi
call sub.VCRUNTIME140.dll_memset
mov edx, r13d
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14006dbba
lea r8, str._vdp_rdpvcbridge.dll
mov rdx, r13
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14006dbba
lea rdx, str.VDP_IsViewSession
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14006dba8
or ecx, 0xffffffff
call qword [0x140086148]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x14006dbba
mov edi, r12d
jmp 0x14006dc15
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 5]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14006dc15
mov r8d, r12d
lea rdx, str.BrokerAgent
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
jne 0x14006dc00
mov r8d, r12d
lea rdx, str.WSNM
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14006dc0c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, r12d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14007e630
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret