Function at 0x180054ad0
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x178]
sub rsp, 0x278
mov qword [rbp + 0x90], 0xfffffffffffffffe
mov rsi, rdx
mov r15, rcx
xor r13d, r13d
mov dword [rsp + 0x58], r13d
mov qword [rdx], r13
lea edi, [r13 + 1]
mov dword [rsp + 0x58], edi
mov r12d, r13d
mov qword [rsp + 0x38], r13
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
lea r14, [r15 + 0x138]
mov qword [rsp + 0x48], r14
mov rcx, r14
call fcn.1800ad5e4
test eax, eax
je 0x180054b43
mov ecx, eax
call fcn.1800ad178
mov byte [rsp + 0x50], dil
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
movzx edi, r13b
test eax, eax
mov eax, 1
cmove edi, eax
mov byte [rbp + 0x1c0], dil
test dil, dil
je 0x180054bd8
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x38]
mov edx, 8
lea r8d, [rdx - 7]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x180054bd8
mov dword [rbp + 0x1d0], r13d
mov r9d, 4
mov dword [rsp + 0x60], r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x1d0]
lea edx, [r9 + 8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180054bcc
mov eax, dword [rbp + 0x1d0]
test eax, eax
cmovne ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test dil, dil
je 0x180054be6
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
nop
mov rcx, r14
call fcn.1800ad608
test eax, eax
je 0x180054bfa
mov ecx, eax
call fcn.1800ad178
nop
mov dword [rbp + 0x1d8], ebx
mov edi, 7
lea r14, [0x180160200]
cmp dword [0x1801b1e18], ebx
je 0x180054d1c
call fcn.18003dd04
cmp dword [rax + 0x20], 5
jl 0x180054d10
lea rax, [rbp + 0x10]
mov qword [rbp + 0x1d0], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], r13
mov word [rbp + 0x10], r13w
mov rcx, r14
call fcn.1800d9868
mov r8, rax
mov rdx, r14
lea rcx, [rbp + 0x10]
call fcn.18001eca0
nop
mov qword [rbp + 8], rdi
mov qword [rbp], r13
mov word [rbp - 0x10], r13w
lea rcx, str.Nvidia::UXDriver::Core::SyncProxy::GetDataObject
call fcn.1800d9868
mov r8, rax
lea rdx, str.Nvidia::UXDriver::Core::SyncProxy::GetDataObject
lea rcx, [rbp - 0x10]
call fcn.18001eca0
nop
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x50], rax
lea rax, str.GetDataObject_for_session_id__
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov eax, dword [rbp + 0x1d8]
mov dword [rbp - 0x40], eax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x38], rax
lea rax, [0x18015c2f8]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x28], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rax
call fcn.18003dd04
mov rcx, rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x59
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x20]
lea edx, [rdi - 2]
call fcn.180019ae4
mov eax, dword [rbp + 0x1d8]
mov dword [0x1801b1e18], eax
lea rax, [r15 + 0xb8]
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], r13b
lea rcx, [rbp - 0x50]
call fcn.18001df24
nop
mov ebx, r13d
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, 0x1d
mov edx, dword [rbp + 0x1d8]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180054d7f
cmp dword [rsp + 0x30], r13d
jbe 0x180054d7f
movzx ebx, word [rcx]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov edx, dword [rbp + 0x1d8]
cmp edx, 0xffffffff
je 0x1800553d3
test ebx, ebx
jne 0x180054d9f
cmp dword [r15 + 0xf8], edx
jne 0x1800553d3
lea rdi, [r15 + 0xd8]
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov r8, rax
jmp 0x180054dc3
cmp dword [rcx + 0x20], edx
jae 0x180054dbd
mov rcx, qword [rcx + 0x10]
jmp 0x180054dc3
mov r8, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], r13b
je 0x180054db2
cmp r8, rax
je 0x180054dd4
cmp edx, dword [r8 + 0x20]
jae 0x180054dd7
mov r8, rax
cmp r8, rax
jne 0x18005530f
xor edx, edx
mov rcx, qword [0x1801fa4a0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180055246
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, 8
mov edx, dword [rbp + 0x1d8]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18005517d
cmp dword [rsp + 0x30], r13d
jbe 0x18005517d
mov ebx, dword [rcx]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, 1
cmp ebx, eax
ja 0x18005517d
call fcn.18003dd04
cmp dword [rax + 0x20], 6
jl 0x180054f51
lea rax, [rbp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x60], rax
mov ebx, 7
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x60], r13
mov word [rbp + 0x50], r13w
mov rcx, r14
call fcn.1800d9868
mov r8, rax
mov rdx, r14
lea rcx, [rbp + 0x50]
call fcn.18001eca0
nop
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x80], r13
mov word [rbp + 0x70], r13w
lea rbx, str.Nvidia::UXDriver::Core::SyncProxy::GetDataObject
mov rcx, rbx
call fcn.1800d9868
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x70]
call fcn.18001eca0
nop
lea rax, [rbp + 0x1c0]
mov qword [rbp - 8], rax
lea rax, str.Sync_object_for_session
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x1d8]
mov dword [rbp - 0x30], eax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rax
lea rax, str.not_found._Waiting_for_initialization
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x38], rax
lea rax, method.Nvidia::Logging::Loggable.virtual_0
mov qword [rbp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0x38], rax
call fcn.18003dd04
mov rcx, rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x86
lea r9, [rbp + 0x70]
lea r8, [rbp + 0x30]
mov edx, 6
call fcn.180019ae4
jmp 0x180054f58
lea rbx, str.Nvidia::UXDriver::Core::SyncProxy::GetDataObject
mov qword [rsp + 0x38], 0xf4240
lea rcx, [r15 + 0x100]
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x50]
call fcn.1800580e8
test al, al
jne 0x180054faa
xor edx, edx
mov rcx, qword [0x1801fa4d8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18005514e
add r12d, 0x3e8
cmp r12d, 0x3a98
jae 0x18005508b
jmp 0x180055080
call fcn.18003dd04
cmp dword [rax + 0x20], 6
jl 0x180055080
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
mov rcx, r14
call fcn.1800d9868
mov r8, rax
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.18001eca0
nop
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r13
mov word [rbp - 0x70], r13w
mov rcx, rbx
call fcn.1800d9868
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.18001eca0
nop
lea rax, [rbp + 0x1d0]
mov qword [rbp + 0x18], rax
lea rax, str.Initialization_object_signalled.
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x10]
mov qword [rbp + 0x48], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____33____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x50], rax
call fcn.18003dd04
mov rcx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x9c
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x48]
mov edx, 6
call fcn.180019ae4
mov edx, dword [rbp + 0x1d8]
jmp 0x180054da6
call fcn.18003dd04
cmp dword [rax + 0x20], 3
jl 0x18005511a
lea rax, [rbp - 0x70]
mov qword [rbp + 0x1c0], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x1d0], rax
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.18001c564
mov rsi, rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.18001c564
mov rdi, rax
lea rcx, [rbp + 0x10]
call fcn.18001365c
mov rcx, rax
lea rdx, [rbp - 0x10]
call fcn.1800582f4
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180058308
mov rbx, rax
call fcn.18003dd04
mov rcx, rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x95
mov r9, rdi
mov r8, rbx
mov edx, 3
call fcn.180019ae4
call fcn.18003e404
mov edx, 0x800706ba
lea rcx, [rbp + 0xe0]
call fcn.18003db24
nop
mov r9d, 0x97
lea r8, str.SyncProxy.cpp
lea rdx, str.class_ATL::CComPtr_struct_IStateData____cdecl_Nvidia::UXDriver::Core::SyncProxy::GetDataObject_void_
mov rcx, rax
call fcn.18004ce8c
nop
mov edx, 0x800706ba
lea rcx, [rbp + 0x98]
call fcn.18003db24
nop
mov r9d, 0x8d
lea r8, str.SyncProxy.cpp
lea rdx, str.class_ATL::CComPtr_struct_IStateData____cdecl_Nvidia::UXDriver::Core::SyncProxy::GetDataObject_void_
mov rcx, rax
call fcn.18004ce8c
nop
call fcn.18003dd04
cmp dword [rax + 0x20], 3
jl 0x180055217
lea rax, [rbp - 0x70]
mov qword [rbp + 0x1c0], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x1d0], rax
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.18001c564
mov rsi, rax
lea rdx, str.Nvidia::UXDriver::Core::SyncProxy::GetDataObject
lea rcx, [rsp + 0x70]
call fcn.18001c564
mov rdi, rax
lea rcx, [rbp + 0x10]
call fcn.18001365c
mov rcx, rax
lea r8, str.Session_is_not_active._Pending_Sync_Access_request_is_cancelled
lea rdx, [rbp - 0x10]
call fcn.18004cdd8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800580d4
mov rbx, rax
call fcn.18003dd04
mov rcx, rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x82
mov r9, rdi
mov r8, rbx
mov edx, 3
call fcn.180019ae4
mov edx, 0x80070005
lea rcx, [rbp + 0x98]
call fcn.18003db24
nop
mov r9d, 0x83
lea r8, str.SyncProxy.cpp
lea rdx, str.class_ATL::CComPtr_struct_IStateData____cdecl_Nvidia::UXDriver::Core::SyncProxy::GetDataObject_void_
mov rcx, rax
call fcn.18004ce8c
nop
call fcn.18003dd04
cmp dword [rax + 0x20], 3
jl 0x1800552e0
lea rax, [rbp - 0x70]
mov qword [rbp + 0x1c0], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x1d0], rax
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.18001c564
mov rsi, rax
lea rdx, str.Nvidia::UXDriver::Core::SyncProxy::GetDataObject
lea rcx, [rsp + 0x70]
call fcn.18001c564
mov rdi, rax
lea rcx, [rbp + 0x10]
call fcn.18001365c
mov rcx, rax
lea r8, str.Nvapi_Initialization_failure
lea rdx, [rbp - 0x10]
call fcn.18004cdd8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18004cde4
mov rbx, rax
call fcn.18003dd04
mov rcx, rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], WSAStartup
mov r9, rdi
mov r8, rbx
mov edx, 3
call fcn.180019ae4
mov edx, 0x800706ba
lea rcx, [rbp + 0x98]
call fcn.18003db24
nop
mov r9d, reloc.WS2_32.dll_WSAStartup
lea r8, str.SyncProxy.cpp
lea rdx, str.class_ATL::CComPtr_struct_IStateData____cdecl_Nvidia::UXDriver::Core::SyncProxy::GetDataObject_void_
mov rcx, rax
call fcn.18004ce8c
nop
mov rcx, qword [rax + 8]
mov rbx, rax
jmp 0x180055329
cmp dword [rcx + 0x20], edx
jae 0x180055323
mov rcx, qword [rcx + 0x10]
jmp 0x180055329
mov rbx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], r13b
je 0x180055318
cmp rbx, rax
je 0x180055339
cmp edx, dword [rbx + 0x20]
jae 0x180055378
lea rax, [rbp + 0x1d8]
mov qword [rbp + 0x1c0], rax
lea r8, [rbp + 0x1c0]
mov rcx, rdi
call fcn.180058ab8
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rbp + 0x1c0]
mov rcx, rdi
call fcn.180058aec
mov rbx, qword [rbp + 0x1c0]
mov rdi, qword [rbx + 0x28]
cmp qword [rsi], rdi
je 0x1800553bc
test rdi, rdi
je 0x18005539b
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.18000e000]
mov rcx, rdi
call rbx
mov rbx, qword [rsi]
mov qword [rsi], rdi
test rbx, rbx
je 0x1800553bc
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.18000e000]
mov rcx, rbx
call rdi
nop
cmp byte [rbp - 0x48], r13b
je 0x1800553cb
mov rcx, qword [rbp - 0x50]
call fcn.180019efc
mov rax, rsi
jmp 0x18005549c
call fcn.18003dd04
cmp dword [rax + 0x20], 3
jl 0x18005546d
lea rax, [rbp - 0x70]
mov qword [rbp + 0x1c0], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x1d0], rax
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.18001c564
mov rsi, rax
lea rdx, str.Nvidia::UXDriver::Core::SyncProxy::GetDataObject
lea rcx, [rsp + 0x70]
call fcn.18001c564
mov rdi, rax
lea rcx, [rbp + 0x10]
call fcn.18001365c
mov rcx, rax
lea r8, str.Session_is_changing._Pending_Sync_Access_request_is_cancelled
lea rdx, [rbp - 0x10]
call fcn.18004cdd8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800580c0
mov rbx, rax
call fcn.18003dd04
mov rcx, rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], WSAGetLastError
mov r9, rdi
mov r8, rbx
mov edx, 3
call fcn.180019ae4
mov edx, 0x80070005
lea rcx, [rbp + 0x128]
call fcn.18003db24
nop
mov r9d, WSAGetLastError
lea r8, str.SyncProxy.cpp
lea rdx, str.class_ATL::CComPtr_struct_IStateData____cdecl_Nvidia::UXDriver::Core::SyncProxy::GetDataObject_void_
mov rcx, rax
call fcn.18004ce8c
nop
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret