Function at 0x14000760c
Capabilities:
Check if file exists
Get common file path
Link many functions at runtime
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x7a8]
sub rsp, 0x890
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov r14d, 0x206
lea rcx, [rbp + 0x572]
xor esi, esi
mov r8d, r14d
xor edx, edx
mov word [rbp + 0x570], si
call fcn.140009540
lea rcx, [rbp + 0x362]
mov r8d, r14d
xor edx, edx
mov word [rbp + 0x360], si
call fcn.140009540
lea rcx, [rsp + 0x42]
mov r8d, r14d
xor edx, edx
mov word [rsp + 0x40], si
call fcn.140009540
cmp dword [0x14001b5a4], esi
jne 0x140007987
lea rcx, [rbp + 0x360]
call fcn.140007550
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or rdi, 0xffffffffffffffff
mov r15d, 0x104
test eax, eax
je 0x140007737
lea r8, [rbp + 0x360]
lea rcx, [rsp + 0x40]
mov edx, r15d
call fcn.140009b60
lea rdx, str.wfapi64.dll
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x40]
mov r8d, r15d
xor edx, edx
mov rbx, rax
call fcn.140009540
test rbx, rbx
jne 0x140007866
lea rdx, str.wfapi.dll
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x140007866
call fcn.1400074bc
or rdi, 0xffffffffffffffff
test eax, eax
je 0x1400078a0
lea rcx, [rbp + 0x152]
mov r8, r14
xor edx, edx
mov qword [rsp + 0x38], rsi
mov word [rbp + 0x150], si
call fcn.140009540
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWARECitrixPortICAInstall
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400077d2
lea rax, [rsp + 0x30]
lea rdx, str.Location
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x150]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbp + 0x150], si
je 0x1400078a0
lea r8, [rbp + 0x150]
lea rdx, str.path
mov rcx, rdi
call fcn.140002570
lea rdx, str.Path_for_wfapi
mov rcx, rdi
call fcn.1400012b0
lea r8, [rbp + 0x150]
lea rcx, [rsp + 0x40]
mov rdx, r15
call fcn.140009b60
lea rdx, str.wfapi64.dll
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x140007866
lea rdx, str.wfapi.dll
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400078a0
lea rdx, str.WFQuerySessionInformationA
mov rcx, rbx
mov dword [0x14001b5f0], 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WFQuerySessionInformationW
mov rcx, rbx
mov qword [0x14001b608], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WFFreeMemory
jmp 0x140007918
lea rcx, [rbp + 0x570]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rbp + 0x570]
test eax, eax
je 0x1400078c9
lea r8, str.wtsapi32.dll
call fcn.140006704
jmp 0x1400078d5
lea r8, str.C:WindowsSystem32wtsapi32.dll
call fcn.1400066dc
lea rcx, [rbp + 0x570]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140007931
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSQuerySessionInformationW
mov rcx, rbx
mov qword [0x14001b608], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSFreeMemory
mov rcx, rbx
mov qword [0x14001b600], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001b5f8], rax
jmp 0x140007958
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140014528]
mov rcx, rdi
mov r8d, eax
call fcn.1400013fc
lea rdx, str.LoadLibraryW_failed_to_load_wtsapi32.dll__error
mov rcx, rdi
call fcn.1400012b0
mov r8d, dword [0x14001b5f0]
lea rdx, str.use_wfapi
mov rcx, rdi
mov dword [0x14001b5a4], 1
call fcn.14000140c
lea rdx, str.Citrix
mov rcx, rdi
call fcn.1400012b0
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.140009450
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret