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

Disassembly:
push rbp
sub rsp, 0x130
mov rbp, rsp
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0xe0], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0x110], 0
mov qword [rbp + 0xe8], rbp
mov qword [rbp + 0x140], rcx
mov rcx, qword [rbp + 0x140]
call fcn.000207e0
nop
xor ecx, ecx
xor edx, edx
mov r8d, 1
lea r9, [rbp + 0x120]
lea rax, [rbp + 0x104]
mov qword [rsp + 0x20], rax
call sub.Wtsapi32.dll_WTSEnumerateSessionsW
nop
cmp dword [rbp + 0x104], 0
jbe 0x2a279d
lea rcx, [rbp + 0xd0]
lea rdx, [0x002a2848]
lea r8, [0x002a2860]
mov r9d, 0x2749
call fcn.002a1020
mov rcx, qword [rbp + 0xd0]
call fcn.00021b20
lea rcx, [rbp + 0xc8]
mov rdx, rax
call fcn.00021bb0
lea rcx, [rbp + 0xd8]
mov rdx, qword [rbp + 0xc8]
call fcn.000522b0
lea rcx, [rbp + 0xc0]
lea rdx, [0x002a2880]
lea r8, [0x002a2860]
mov r9d, 0xc66b
call fcn.002a1020
mov rcx, qword [rbp + 0xc0]
call fcn.00021b20
lea rcx, [rbp + 0xb8]
mov rdx, rax
call fcn.00021bb0
lea rcx, [rbp + 0xb0]
lea rdx, [0x002a2890]
lea r8, [0x002a2860]
mov r9d, 0x8ba3
call fcn.002a1020
mov rcx, qword [rbp + 0xb0]
call fcn.00021b20
lea rcx, [rbp + 0xa8]
mov rdx, rax
call fcn.00021bb0
lea rcx, [rbp + 0xe0]
mov edx, 3
mov r8, qword [rbp + 0xd8]
mov r9, qword [rbp + 0xb8]
mov rax, qword [rbp + 0xa8]
mov qword [rsp + 0x20], rax
call fcn.000220b0
lea rcx, [rbp + 0xa0]
lea rdx, [0x002a28ac]
lea r8, [0x002a2860]
mov r9d, 0x50cb
call fcn.002a1020
mov rcx, qword [rbp + 0xa0]
call fcn.00021b20
lea rcx, [rbp + 0x98]
mov rdx, rax
call fcn.00021bb0
mov rcx, qword [rbp + 0xe0]
mov rdx, qword [rbp + 0x98]
call fcn.001940d0
mov rax, qword [rbp + 0x120]
mov qword [rbp + 0x108], rax
xor eax, eax
mov ecx, dword [rbp + 0x104]
sub ecx, 1
mov dword [rbp + 0x3c], ecx
mov dword [rbp + 0x100], eax
mov ecx, dword [rbp + 0x3c]
cmp dword [rbp + 0x100], ecx
ja 0x2a266f
mov ecx, dword [rbp + 0x3c]
sub ecx, eax
add ecx, 1
mov dword [rbp + 0x3c], ecx
mov rax, qword [rbp + 0x108]
cmp byte [rax + 0x10], 0
jne 0x2a264c
xor ecx, ecx
mov rax, qword [rbp + 0x108]
mov edx, dword [rax]
mov r8b, 5
lea r9, [rbp + 0x128]
lea rax, [rbp + 0xfc]
mov qword [rsp + 0x20], rax
call sub.Wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x2a264c
nop
lea rcx, [rbp + 0x90]
mov rdx, qword [rbp + 0x128]
call fcn.00021bb0
mov rcx, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x140]
call fcn.00022190
test eax, eax
jne 0x2a2617
mov rax, qword [rbp + 0x108]
mov eax, dword [rax]
mov dword [0x00378cb0], eax
mov byte [rbp + 0x11f], 1
jmp 0x2a264c
lea rcx, [0x00378c78]
mov rdx, qword [rbp + 0x128]
call fcn.00021bb0
jmp 0x2a264c
add qword [rbp + 0x108], 0x18
add dword [rbp + 0x100], 1
mov eax, dword [rbp + 0x3c]
sub eax, 1
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
test eax, eax
jne 0x2a2599
nop
jmp 0x2a279d
nop
lea rcx, [rbp + 0x40]
mov edx, 0x15
call fcn.00020730
lea rcx, [rbp + 0x110]
call fcn.00020650
lea rcx, [rbp + 0x140]
call fcn.00020650
movzx rax, byte [rbp + 0x11f]
lea rsp, [rbp + 0x130]
pop rbp
ret