Function at 0x140055650
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov edi, edx
mov rbx, rcx
xor esi, esi
mov dword [rbp + 0x90], esi
lea rax, [0x1400c09a8]
mov qword [rsp + 0x50], rax
mov dword [rbp + 0x90], 2
lea r12, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x28], r12
lea rcx, [rbp - 0x28]
call fcn.1400053d0
lea r11, [rsp + 0x58]
mov qword [rbp + 0x20], r11
mov qword [rbp + 0x28], rsi
mov dl, 0x20
lea rcx, [rbp - 0x28]
call fcn.140007710
mov word [rbp + 0x30], ax
cmp qword [rbp + 0x20], rsi
jne 0x1400556e4
mov edx, dword [rbp - 0x18]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.140005240
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x50], r13
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140006790
nop
lea rax, [rbp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 5
mov edx, edi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x14005576d
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov dword [rbp + 0x90], 3
lea rax, [rbp - 0x28]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r13
lea rcx, [rsp + 0x58]
call fcn.1400057c0
nop
jmp 0x140055884
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140055844
cmp word [rcx], 0
je 0x140055844
lea rax, [rbp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov r8d, 7
mov edx, edi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x1400557d1
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov dword [rbp + 0x90], 3
lea rcx, [rsp + 0x50]
call fcn.140007270
jmp 0x1400558a6
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140055803
cmp word [rcx], 0
je 0x140055803
mov edi, 0x5c
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140012430
mov rcx, rax
movzx edx, di
call fcn.140055160
mov rcx, qword [rsp + 0x38]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140012430
mov rcx, qword [rsp + 0x30]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000a430
mov dword [rbp + 0x90], 3
lea rcx, [rsp + 0x50]
call fcn.140007270
jmp 0x1400558a6
call sub.WTSAPI32.dll_WTSFreeMemory
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov dword [rbp + 0x90], 3
lea rax, [rbp - 0x28]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r13
lea rcx, [rsp + 0x58]
call fcn.1400057c0
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r12
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.14007610c
mov rax, rbx
mov rbx, qword [rsp + 0x188]
add rsp, 0x150
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret