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

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140099420
push rbp
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1401737a8]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rcx, qword [0x14018f280]
cmp r8, rcx
jne 0x1400997a7
mov qword [rsp + 0x310], rbx
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [rsp + 0x30], eax
lea ebx, [rax - 1]
cmp ebx, 0xffffffff
je 0x14009948c
nop dword [rax]
mov rcx, qword [0x14018f280]
mov r8d, 0x400
mov edx, ebx
call qword [sym.imp.USER32.dll_DeleteMenu]
dec ebx
cmp ebx, 0xffffffff
jne 0x140099470
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea r8d, [rdx + 1]
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x1400997a3
mov qword [rsp + 0x318], rsi
mov qword [rsp + 0x328], r12
xor r12d, r12d
mov esi, r12d
mov qword [rsp + 0x2f8], r14
mov r14d, r12d
cmp dword [rsp + 0x30], r12d
jbe 0x14009975f
mov qword [rsp + 0x320], rdi
mov qword [rsp + 0x2f0], r15
nop dword [rax]
mov eax, esi
lea r9, [rsp + 0x50]
mov r8d, 5
mov r15d, r14d
lea rcx, [rax + rax*2]
lea rdi, [rcx*8]
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x38]
mov edx, dword [rdi + rax]
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x140099743
lea rax, [rsp + 0x40]
mov r8d, 7
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov edx, dword [rdi + rax]
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x140099739
mov rax, qword [rsp + 0x50]
cmp word [rax], r12w
je 0x14009972f
mov r9, qword [rsp + 0x48]
lea rdx, str._d:__s_s
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x30]
mov rax, qword [rsp + 0x38]
mov r8d, dword [rdi + rax]
call fcn.1400358d0
mov rcx, qword [0x1401896c0]
lea rdx, str.USERS
call qword [sym.imp.USER32.dll_LoadMenuW]
mov rcx, qword [rsp + 0x38]
mov rbx, rax
mov dword [rsp + 0x58], 0x28
mov dword [rsp + 0x5c], 0x80000018
mov dword [rsp + 0x60], 0x8000000
mov edx, dword [rdi + rcx]
mov rcx, rax
mov qword [rsp + 0x78], rdx
lea rdx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_SetMenuInfo]
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rdi + rdx + 0x10]
test r8d, r8d
je 0x140099698
sub r8d, 1
je 0x14009965c
sub r8d, 2
je 0x140099698
cmp r8d, 1
mov rcx, rbx
mov r8d, 1
je 0x140099655
mov edx, 0x9f27
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9eaf
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9eae
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9ead
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9f28
jmp 0x140099689
mov edx, 0x9ead
jmp 0x14009967e
mov edx, 0x9f27
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9eae
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x9eaf
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [0x14018f280]
mov edx, r14d
mov r9, rbx
mov qword [rsp + 0x20], r12
mov r8d, 0x510
inc r14d
call qword [sym.imp.USER32.dll_InsertMenuW]
mov rcx, qword [0x14018f280]
lea r9, [rbp - 0x80]
xorps xmm0, xmm0
mov dword [rbp - 0x80], 0x50
xor eax, eax
mov edx, r15d
movups xmmword [rbp - 0x7c], xmm0
mov qword [rbp - 0x3c], rax
movups xmmword [rbp - 0x6c], xmm0
lea r8d, [rax + 1]
mov dword [rbp - 0x34], eax
movups xmmword [rbp - 0x5c], xmm0
mov dword [rbp - 0x7c], 2
movups xmmword [rbp - 0x4c], xmm0
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x140099719
mov rcx, qword [0x140189c20]
lea r8, [rbp - 0x30]
mov edx, dword [rbp - 0x70]
add rcx, 0xc0
call fcn.14009f3c0
mov rcx, qword [0x140189c20]
mov rdx, rbx
add rcx, 0xc0
call fcn.140074590
mov rcx, qword [rsp + 0x48]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [rsp + 0x50]
call sub.WTSAPI32.dll_WTSFreeMemory
inc esi
cmp esi, dword [rsp + 0x30]
jb 0x1400994f0
mov r15, qword [rsp + 0x2f0]
mov rdi, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x38]
call sub.WTSAPI32.dll_WTSFreeMemory
mov r14, qword [rsp + 0x2f8]
xor eax, eax
mov r12, qword [rsp + 0x328]
mov rsi, qword [rsp + 0x318]
mov rbx, qword [rsp + 0x310]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400e17a0
add rsp, 0x300
pop rbp
ret
xor eax, eax
jmp 0x140099783
xor eax, eax
jmp 0x14009978b