Function at 0x140035750
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, r9
mov rdi, r8
mov rbx, rcx
xor eax, eax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
lea esi, [rax - 1]
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x20]
lea r8d, [rsi + 0x1a]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
mov r15d, 8
test eax, eax
je 0x140035893
mov rcx, qword [rbp - 0x20]
cmp dword [rbp - 0x18], 0
jbe 0x1400357c7
cmp dword [rcx], 1
jne 0x1400357c7
mov esi, dword [rcx + 0x10]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
jne 0x140035893
cmp dword [rbx + 0x48], 2
jne 0x140035893
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r15 + rcx]
cmp dword [0x1400e35b0], eax
jle 0x14003583d
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x14003583d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, 0x21
lea rdx, str.WM_POWERBROADCAST:_Session_locked
lea rcx, [rbp - 0x40]
call fcn.14000b750
nop
mov r8d, 2
lea rdx, [rbp - 0x40]
lea rcx, [0x1400e3598]
call fcn.1400322b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000ad90
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x58]
call qword [case.0x14001d9d0.0]
cmp rdi, 0x12
ja 0x140035c2b
je 0x140035b82
lea rax, [rdi - 1]
cmp rax, 9
ja case.0x1400358c2.2
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x35cf8]
add rax, rcx
jmp rax
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r15 + rcx]
cmp dword [0x1400e35b0], eax
jle 0x140035922
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x140035922
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, 0x21
lea rdx, str.WM_POWERBROADCAST:_PBT_APMSUSPEND
lea rcx, [rbp - 0x40]
call fcn.14000b750
nop
mov r8d, 2
lea rdx, [rbp - 0x40]
lea rcx, [0x1400e3598]
call fcn.1400322b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000ad90
cmp dword [rbx + 0x48], 2
jne 0x140035cd6
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x58]
call qword [case.0x14001d9d0.0]
jmp 0x140035cd6
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r15 + rcx]
cmp dword [0x1400e35b0], eax
jle 0x1400359e5
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x1400359e5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, 0x27
lea rdx, str.WM_POWERBROADCAST:_PBT_APMRESUMESUSPEND
lea rcx, [rbp - 0x40]
call fcn.14000b750
nop
mov r8d, 2
lea rdx, [rbp - 0x40]
lea rcx, [0x1400e3598]
call fcn.1400322b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000ad90
jmp 0x140035cd6
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r15 + rcx]
cmp dword [0x1400e35b0], eax
jle 0x140035a8e
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x140035a8e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, 0x2b
lea rdx, str.WM_POWERBROADCAST:_PBT_APMPOWERSTATUSCHANGE
lea rcx, [rbp - 0x40]
call fcn.14000b750
nop
mov r8d, 2
lea rdx, [rbp - 0x40]
lea rcx, [0x1400e3598]
call fcn.1400322b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000ad90
jmp 0x140035cd6
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r15 + rcx]
cmp dword [0x1400e35b0], eax
jle 0x140035b37
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x140035b37
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, 0x77
lea rdx, str.WM_POWERBROADCAST:_PBT_APMQUERYSTANDBY__PBT_APMQUERYSTANDBYFAILED__PBT_APMSTANDBY__PBT_APMRESUMESTANDBY___not_supported
lea rcx, [rbp - 0x40]
call fcn.14000b750
nop
mov r8d, 2
lea rdx, [rbp - 0x40]
lea rcx, [0x1400e3598]
call fcn.1400322b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000ad90
jmp 0x140035cd6
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r15 + rcx]
cmp dword [0x1400e35b0], eax
jle 0x140035be0
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x140035be0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, 0x29
lea rdx, str.WM_POWERBROADCAST:_PBT_APMRESUMEAUTOMATIC
lea rcx, [rbp - 0x40]
call fcn.14000b750
nop
mov r8d, 2
lea rdx, [rbp - 0x40]
lea rcx, [0x1400e3598]
call fcn.1400322b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000ad90
jmp 0x140035cd6
cmp rdi, 0x8013
je 0x140035ccb
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r15 + rcx]
cmp dword [0x1400e35b0], eax
jle 0x140035c96
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x140035c96
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
mov r8, rdi
lea rdx, str.WM_POWERBROADCAST:_UNKNOWN__0x_x_
lea rcx, [rbp - 0x40]
call fcn.1400445a0
nop
mov r8d, 2
mov rdx, rax
lea rcx, [0x1400e3598]
call fcn.1400322b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000ad90
jmp 0x140035cd6
mov r9, r14
mov rcx, rbx
call fcn.140035d20
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400a4d30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret