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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400bc298]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x34], r12d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
lea r8d, [r12 + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x14004485e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test byte [0x1400bd100], 8
je 0x140044836
mov r8d, eax
lea rdx, [0x14008a490]
lea rcx, [0x1400b61c0]
call fcn.14000e8bc
test byte [0x1400bd340], 8
je 0x140044d52
mov r8d, ebx
lea rdx, [0x14008a490]
lea rcx, [0x1400b6330]
call fcn.14000e8bc
jmp 0x140044d52
mov rax, qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov qword [rbp - 0x69], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x61], rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140060154
mov qword [rsp + 0x38], rax
lea rcx, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__void____cdecl___void____ptr64___struct__WTS_SESSION_INFOW____ptr64____ptr64__.0
mov qword [rax], rcx
movups xmm0, xmmword [rbp - 0x69]
movdqu xmmword [rax + 8], xmm0
mov qword [rbp - 0x79], rax
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x30], r12d
mov esi, r12d
cmp dword [rsp + 0x34], r12d
jbe 0x140044d49
mov ebx, 7
lea r13, str.admin_appman_appvclienthostcommonusermanagerimpl.cpp
lea rdi, vtable.AppV::LogFormatter.0
mov eax, esi
lea r14, [rax + rax*2]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + r14*8 + 0x10]
test ecx, ecx
je 0x1400449c6
call fcn.140046a14
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], rbx
mov word [rbp - 0x49], r12w
lea rdx, str.UserManager_processing_existing_logons__ignoring_session__1__in_state__2_
lea rcx, [rbp - 0x49]
call fcn.1400033fc
nop
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], rbx
mov word [rbp - 0x69], r12w
lea rdx, str.Client
lea rcx, [rbp - 0x69]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rbp - 0x49]
lea rdx, [rbp - 1]
call fcn.1400386d8
mov rbx, rax
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], SafeArrayGetDim
mov byte [rbp - 0x29], r12b
lea r9, str.AppV::Client::Host::UserManagerImpl::EnumSessions
mov edx, 0x31
lea rcx, [rbp - 0x29]
call fcn.1400389a8
mov dword [rbp - 9], SysAllocStringByteLen
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx + r14*8]
mov rcx, rbx
call fcn.140009320
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000e2dc
mov r9, rbx
lea r8, [rbp - 0x69]
mov edx, 4
lea rcx, [rbp - 0x29]
call fcn.140038838
nop
lea rcx, [rbp - 0x29]
call fcn.140006108
nop
mov qword [rbp - 1], rdi
lea rcx, [rbp + 0xf]
call fcn.140003388
nop
lea rcx, [rbp - 0x69]
call fcn.140003388
nop
lea rcx, [rbp - 0x49]
call fcn.140003388
jmp 0x140044d38
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x30], r12d
mov edi, 5
mov dword [rsp + 0x38], edi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x48]
lea r8d, [rdi + 3]
mov edx, dword [rax + r14*8]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x140044a6b
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
test rax, rax
je 0x140044a5d
test rbx, rbx
je 0x140044a2b
cmp rax, 4
ja 0x140044a2b
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edi, dword [rsp + 0x38]
jmp 0x140044a5d
xor edi, edi
test rbx, rbx
jne 0x140044a40
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [rax], SafeArrayGetElement
jmp 0x140044a52
cmp rax, 4
jbe 0x140044a5d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ebx, 7
test edi, edi
je 0x140044b67
mov ecx, edi
call fcn.140046a14
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], rbx
mov word [rbp - 0x69], r12w
lea rdx, str.UserManager_processing_existing_logons__ignoring_session__1__in_state__2_
lea rcx, [rbp - 0x69]
call fcn.1400033fc
nop
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], rbx
mov word [rbp - 0x49], r12w
lea rdx, str.Client
lea rcx, [rbp - 0x49]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rbp - 0x69]
lea rdx, [rbp - 1]
call fcn.1400386d8
mov rbx, rax
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], SafeArrayGetDim
mov byte [rbp - 0x29], r12b
lea r9, str.AppV::Client::Host::UserManagerImpl::EnumSessions
mov edx, 0x31
lea rcx, [rbp - 0x29]
call fcn.1400389a8
mov dword [rbp - 9], 0xa9
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx + r14*8]
mov rcx, rbx
call fcn.140009320
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000e2dc
mov r9, rbx
lea r8, [rbp - 0x49]
mov edx, 4
lea rcx, [rbp - 0x29]
call fcn.140038838
nop
lea rcx, [rbp - 0x29]
call fcn.140006108
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 1], rax
lea rcx, [rbp + 0xf]
call fcn.140003388
nop
lea rcx, [rbp - 0x49]
call fcn.140003388
nop
lea rcx, [rbp - 0x69]
call fcn.140003388
jmp 0x140044d31
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], rbx
mov word [rbp - 0x69], r12w
lea rdx, str.UserManager_processing_existing_logons__found_active_session__1_
lea rcx, [rbp - 0x69]
call fcn.1400033fc
nop
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], rbx
mov word [rbp - 0x49], r12w
lea rdx, str.Client
lea rcx, [rbp - 0x49]
call fcn.1400033fc
nop
call fcn.140007358
lea r8, [rbp - 0x69]
lea rdx, [rbp - 1]
call fcn.1400386d8
mov rbx, rax
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], SafeArrayGetDim
mov byte [rbp - 0x29], r12b
lea r9, str.AppV::Client::Host::UserManagerImpl::EnumSessions
mov edx, 0x31
lea rcx, [rbp - 0x29]
call fcn.1400389a8
mov dword [rbp - 9], 0xaf
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx + r14*8]
mov rcx, rbx
call fcn.140009320
mov r9, rbx
lea r8, [rbp - 0x49]
mov edx, 4
lea rcx, [rbp - 0x29]
call fcn.140038838
nop
lea rcx, [rbp - 0x29]
call fcn.140006108
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp - 1], rax
lea rcx, [rbp + 0xf]
call fcn.140003388
nop
lea rcx, [rbp - 0x49]
call fcn.140003388
nop
lea rcx, [rbp - 0x69]
call fcn.140003388
mov rax, qword [rsp + 0x40]
mov r8b, 1
mov edx, dword [rax + r14*8]
mov rcx, r15
call fcn.140045cb4
mov rbx, rax
mov edi, 0x5c
mov edx, edi
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140044c6e
inc rax
jmp 0x140044c71
mov rax, r13
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
movabs rax, 0x8000000000
test rax, rbx
jne 0x140044d31
mov edx, edi
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140044ca8
inc rax
jmp 0x140044cab
mov rax, r13
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
movabs rax, 0x2000000000
test rax, rbx
jne 0x140044d31
mov edx, edi
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140044cde
inc rax
jmp 0x140044ce1
mov rax, r13
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
mov rax, rbx
shr rax, 0x20
and al, 0x1f
cmp al, 0xe
jne 0x140044d31
mov edx, edi
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140044d12
inc rax
jmp 0x140044d15
mov rax, r13
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
or eax, 0x302
cmp ebx, eax
je 0x140044d49
lea rdi, vtable.AppV::LogFormatter.0
inc esi
cmp esi, dword [rsp + 0x34]
mov ebx, 7
jb 0x1400448c3
lea rcx, [rbp - 0x79]
call fcn.140005b9c
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140060130
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret