Function at 0x100006e44
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0xc0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x10000b138]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, rdx
mov r12, rcx
lea r15, [0x10000b160]
mov rcx, qword [0x10000b160]
cmp rcx, r15
je 0x100006eae
test byte [rcx + 0x1c], 1
je 0x100006eae
cmp byte [rcx + 0x19], 5
jb 0x100006eae
mov edx, 0x12
lea r8, [0x1000018c0]
mov rcx, qword [rcx + 0x10]
call fcn.100002038
mov edx, 0x7fff
mov dword [rsp + 0x20], edx
mov rax, qword [rbp]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or eax, ecx
jge 0x100006ed4
mov rcx, rbp
call fcn.100005c94
lea r8, [rsp + 0x20]
mov rdx, qword [rbp]
mov ecx, 2
call sub.SspiCli.dll_GetUserNameExW
movzx esi, al
mov rcx, qword [0x10000b160]
cmp rcx, r15
je 0x100006f1a
test byte [rcx + 0x1c], 2
je 0x100006f1a
cmp byte [rcx + 0x19], 4
jb 0x100006f1a
mov edx, 0x13
mov r9d, esi
lea r8, [0x1000018c0]
mov rcx, qword [rcx + 0x10]
call fcn.10000205c
mov rdx, qword [rbp]
xor ebx, ebx
cmp rdx, rbx
jne 0x100006f29
mov ecx, ebx
jmp 0x100006f43
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, ebx
jl 0x1000070e1
cmp ecx, dword [rdx - 0xc]
jg 0x1000070e1
mov dword [rdx - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [rbp]
mov word [rax + rcx*2], bx
lea rcx, [rsp + 0x30]
call fcn.100006974
nop
cmp esi, 1
jne 0x1000070a2
mov rcx, qword [0x10000b160]
cmp rcx, r15
je 0x100006f9d
test byte [rcx + 0x1c], 2
je 0x100006f9d
cmp byte [rcx + 0x19], 4
jb 0x100006f9d
lea edx, [rsi + 0x13]
mov r9, qword [rbp]
lea r8, [0x1000018c0]
mov rcx, qword [rcx + 0x10]
call fcn.1000067a0
mov rdi, qword [rbp]
mov dword [rsp + 0x80], 7
lea rcx, [rsp + 0x88]
call fcn.100005b14
lea rcx, [rsp + 0x90]
call fcn.100005b14
lea rcx, [rsp + 0x98]
call fcn.100005b14
lea rcx, [rsp + 0xa0]
call fcn.100005b14
mov byte [rsp + 0x7c], bl
cmp rdi, rbx
jne 0x100006fed
mov al, bl
jmp 0x100006ffa
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.100006ae4
movzx esi, al
mov rcx, qword [0x10000b160]
cmp rcx, r15
je 0x100007034
test byte [rcx + 0x1c], 2
je 0x100007034
cmp byte [rcx + 0x19], 4
jb 0x100007034
mov edx, 0x15
mov r9d, esi
lea r8, [0x1000018c0]
mov rcx, qword [rcx + 0x10]
call fcn.10000205c
mov rcx, qword [0x10000b160]
cmp esi, 1
jne 0x1000070a9
lea rcx, [rsp + 0x30]
call fcn.100006dc4
mov rdx, rax
cmp rax, rbx
je 0x10000705d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea ebx, [rcx - 1]
mov r8d, ebx
mov rcx, r12
call fcn.100005ce4
mov rcx, qword [0x10000b160]
cmp rcx, r15
je 0x1000070d3
test byte [rcx + 0x1c], 2
je 0x1000070a9
cmp byte [rcx + 0x19], 4
jb 0x1000070a9
mov edx, 0x16
mov r9, qword [r12]
lea r8, [0x1000018c0]
mov rcx, qword [rcx + 0x10]
call fcn.1000067a0
mov rcx, qword [0x10000b160]
jmp 0x1000070a9
mov rcx, qword [0x10000b160]
cmp rcx, r15
je 0x1000070d3
test byte [rcx + 0x1c], 1
je 0x1000070d3
cmp byte [rcx + 0x19], 5
jb 0x1000070d3
mov edx, 0x17
mov r9d, esi
lea r8, [0x1000018c0]
mov rcx, qword [rcx + 0x10]
call fcn.10000205c
nop
lea rcx, [rsp + 0x30]
call fcn.100006a40
mov eax, esi
jmp 0x1000070ec
mov ecx, 0x80070057
call fcn.100005f10
int3
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.100007a20
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret