Function at 0x140005970
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x4f0
mov rax, qword [0x140047008]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
cmp qword [0x14004f1e0], 0
mov rbx, rcx
je 0x140005d23
mov rax, qword [0x14004f1e8]
test rax, rax
je 0x140005d23
cmp qword [0x14004f1f8], 0
je 0x140005d23
cmp qword [0x14004f1f0], 0
je 0x140005d23
mov dword [rsp + 0x70], 0x50
lea rcx, [0x140005e50]
mov qword [rsp + 0x78], rcx
mov edx, 0x7f00
mov dword [rsp + 0x74], 3
xor ecx, ecx
mov qword [r11 + 0x10], rsi
xor esi, esi
mov qword [r11 - 0x478], rsi
mov qword [r11 - 0x470], rbx
mov qword [r11 - 0x468], rsi
call qword [0x1400335f0]
movdqa xmm0, xmmword [0x1400417b0]
lea rdi, str.HCONTROL
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x70]
mov rax, qword [0x14004f1f0]
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rsi
call qword [0x1400335f0]
mov rax, qword [0x14004f1f8]
lea r8, str.HControl
mov qword [rsp + 0x58], rsi
mov r9d, 0xcf0000
mov qword [rsp + 0x50], rbx
mov rdx, rdi
mov qword [rsp + 0x48], rsi
xor ecx, ecx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x80000000
call qword [0x1400335f0]
mov rsi, qword [rsp + 0x508]
mov rbx, rax
test rax, rax
je 0x140005d23
mov qword [0x14004d840], rax
mov rax, qword [0x14004e770]
test rax, rax
jne 0x140005b4f
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call fcn.14001c070
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
je 0x140005b43
xor edx, edx
lea rcx, [rsp + 0x2d0]
mov r8d, 0x208
call fcn.14001c070
lea r9, [rsp + 0xc0]
mov edx, 0x104
lea r8, str._sWtsapi32.dll
lea rcx, [rsp + 0x2d0]
call fcn.14000afd0
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov qword [0x14004e770], rax
jmp 0x140005b4a
mov rax, qword [0x14004e770]
test rax, rax
je 0x140005ba3
lea rdx, str.WTSRegisterSessionNotification
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140005ba3
mov rcx, qword [0x14004a6a8]
lea rax, [0x14004a6a8]
cmp rcx, rax
je 0x140005b95
test byte [rcx + 0x1c], 8
je 0x140005b95
mov rcx, qword [rcx + 0x10]
lea rax, str.Get_Wtsapi32_functions_success
mov qword [rsp + 0x20], rax
call fcn.140019c20
xor edx, edx
mov rcx, rbx
mov rax, rdi
call qword [0x1400335f0]
mov rax, qword [0x14004f260]
test rax, rax
je 0x140005cf6
mov edx, dword [0x14004e764]
test edx, edx
je 0x140005bd4
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400335f0]
mov rax, qword [0x14004f260]
mov edx, dword [0x14004e760]
test edx, edx
je 0x140005bf5
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400335f0]
mov rax, qword [0x14004f260]
mov edx, dword [0x14004e75c]
test edx, edx
je 0x140005c16
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400335f0]
mov rax, qword [0x14004f260]
mov edx, dword [0x14004e758]
test edx, edx
je 0x140005c37
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400335f0]
mov rax, qword [0x14004f260]
mov edx, dword [0x14004e73c]
test edx, edx
je 0x140005c58
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400335f0]
mov rax, qword [0x14004f260]
mov edx, dword [0x14004e754]
test edx, edx
je 0x140005c79
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400335f0]
mov rax, qword [0x14004f260]
mov edx, dword [0x14004e750]
test edx, edx
je 0x140005c9a
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400335f0]
mov rax, qword [0x14004f260]
mov edx, dword [0x14004e74c]
test edx, edx
je 0x140005cbb
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400335f0]
mov rax, qword [0x14004f260]
mov edx, dword [0x14004e748]
test edx, edx
je 0x140005cdc
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400335f0]
mov rax, qword [0x14004f260]
mov edx, dword [0x14004e744]
test edx, edx
je 0x140005cf6
xor r9d, r9d
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400335f0]
mov rax, qword [0x14004f250]
test rax, rax
je 0x140005d1c
xor r8d, r8d
lea rdx, [0x140033910]
mov rcx, rbx
call qword [0x1400335f0]
mov qword [0x14004e460], rax
mov eax, 1
jmp 0x140005d25
xor eax, eax
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.14001a990
mov rbx, qword [rsp + 0x510]
add rsp, 0x4f0
pop rdi
ret