Function at 0x1401ac740
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov qword [rsp + 0x280], 0xfffffffffffffffe
mov rax, qword [0x14025e510]
xor rax, rsp
mov qword [rsp + 0x288], rax
mov dword [rsp + 0x194], 0
lea rdx, [0x14021b624]
lea rcx, [rsp + 0x48]
call fcn.1400062b0
nop
lea rdx, [0x14021b6c8]
lea rcx, [rsp + 0x40]
call fcn.1400062b0
nop
call fcn.140008c24
mov rdx, rax
lea rcx, [rsp + 0x170]
call fcn.140005310
nop
lea rdx, [0x14021b6cc]
lea rcx, [rsp + 0x188]
call fcn.1400062b0
nop
mov qword [rsp + 0x160], 0
mov dword [rsp + 0x190], 0x100
mov dword [rsp + 0x16c], 0x400
mov dword [rsp + 0x168], 0x400
lea rax, [rsp + 0x60]
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x190], 0x100
mov eax, dword [rsp + 0x168]
mov dword [rsp + 0x1dc], eax
mov edx, dword [rsp + 0x1dc]
lea rcx, [rsp + 0x170]
call fcn.140004f90
lea rdx, [rsp + 0x168]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov r11d, dword [rsp + 0x168]
mov dword [rsp + 0x1e0], r11d
mov edx, dword [rsp + 0x1e0]
lea rcx, [rsp + 0x170]
call fcn.140004f90
mov qword [rsp + 0x1e8], rax
cmp qword [rsp + 0x1e8], 0
jne 0x1401ac880
mov dword [rsp + 0x1e4], 0
jmp 0x1401ac894
mov rcx, qword [rsp + 0x1e8]
call fcn.14002f9b0
mov dword [rsp + 0x1e4], eax
mov r8d, dword [rsp + 0x1e4]
mov rdx, qword [rsp + 0x1e8]
lea rcx, [rsp + 0x48]
call fcn.140005080
mov edx, 0xffffffff
lea rcx, [rsp + 0x170]
call fcn.140006e00
mov r11d, dword [rsp + 0x16c]
mov dword [rsp + 0x200], r11d
mov edx, dword [rsp + 0x200]
lea rcx, [rsp + 0x170]
call fcn.140004f90
mov qword [rsp + 0x208], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x16c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x190]
mov r8, qword [rsp + 0x160]
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edx, dword [rsp + 0x16c]
lea rcx, [rsp + 0x170]
call fcn.140005000
mov qword [rsp + 0x228], rax
cmp qword [rsp + 0x228], 0
jne 0x1401ac964
mov dword [rsp + 0x220], 0
jmp 0x1401ac978
mov rcx, qword [rsp + 0x228]
call fcn.14002f9b0
mov dword [rsp + 0x220], eax
mov r8d, dword [rsp + 0x220]
mov rdx, qword [rsp + 0x228]
lea rcx, [rsp + 0x40]
call fcn.140005080
mov edx, 0xffffffff
lea rcx, [rsp + 0x170]
call fcn.140006e00
mov qword [rsp + 0x178], 0
lea rdx, [rsp + 0x178]
mov rcx, qword [rsp + 0x160]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov r11, qword [rsp + 0x178]
mov qword [rsp + 0x248], r11
cmp qword [rsp + 0x248], 0
jne 0x1401ac9ed
mov dword [rsp + 0x240], 0
jmp 0x1401aca01
mov rcx, qword [rsp + 0x248]
call fcn.14002f9b0
mov dword [rsp + 0x240], eax
mov r8d, dword [rsp + 0x240]
mov rdx, qword [rsp + 0x248]
lea rcx, [rsp + 0x188]
call fcn.140005080
mov rax, qword [rsp + 0x188]
sub rax, 0x18
mov qword [rsp + 0x250], rax
mov rcx, qword [rsp + 0x250]
call fcn.1400049b0
mov qword [rsp + 0x258], rax
mov rcx, qword [rsp + 0x258]
add rcx, 0x18
mov rax, qword [rsp + 0x2a0]
mov qword [rax], rcx
mov eax, dword [rsp + 0x194]
or eax, 1
mov dword [rsp + 0x194], eax
lea rcx, [rsp + 0x188]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x170]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x40]
call fcn.1400053e0
nop
lea rcx, [rsp + 0x48]
call fcn.1400053e0
mov rax, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.14002f990
add rsp, 0x298
ret