Function at 0x14001b868
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1f8]
sub rsp, 0x2f0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rsp + 0x20], 1
call fcn.140012b90
test al, al
je 0x14001b9e3
movdqa xmm0, xmmword [0x1400c6420]
movdqa xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], sil
movdqa xmm1, xmm0
movdqa xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], sil
lea rcx, [rbp - 0x50]
call fcn.1400129a0
nop
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14003e024
lea rcx, [rsp + 0x50]
cmp rcx, rax
je 0x14001b91f
mov r8b, sil
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000d398
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x14001b95a
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b955
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bb81
call fcn.140046b80
movdqa xmm0, xmmword [0x1400c6420]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], sil
lea rcx, [rbp - 0x50]
call fcn.1400045e4
lea rdx, str._PII_USERID_
lea rcx, [rsp + 0x70]
call fcn.140004768
mov rdi, qword [rbx + 8]
cmp qword [rbx + 0x10], rdi
je 0x14001b9c8
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400048cc
nop
lea rcx, [rdi + 0x20]
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
lea rdx, [rsp + 0x70]
call fcn.1400048cc
nop
add qword [rbx + 8], 0x40
jmp 0x14001b9d9
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.14001ebf8
nop
lea rcx, [rsp + 0x50]
call fcn.14000bbb8
xor edx, edx
mov r8d, 0x202
lea rcx, [rbp - 0x30]
call fcn.1400659b0
mov dword [rsp + 0x28], 0x101
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14001bb50
movdqa xmm0, xmmword [0x1400c6420]
movdqa xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], sil
movdqa xmm1, xmm0
movdqa xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], sil
movdqa xmm0, xmmword [0x1400c6410]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], si
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14001ba4d
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.140004670
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.14003e024
lea rcx, [rsp + 0x50]
cmp rcx, rax
je 0x14001ba8c
mov r8b, sil
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000d398
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x14001bac7
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bac2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bb7b
call fcn.140046b80
movdqa xmm0, xmmword [0x1400c6420]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], sil
lea rcx, [rbp - 0x50]
call fcn.1400045e4
lea rdx, str._PII_USERNAME_
lea rcx, [rsp + 0x70]
call fcn.140004768
mov rdi, qword [rbx + 8]
cmp qword [rbx + 0x10], rdi
je 0x14001bb35
mov qword [rsp + 0x40], rdi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400048cc
nop
lea rcx, [rdi + 0x20]
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
lea rdx, [rsp + 0x70]
call fcn.1400048cc
nop
add qword [rbx + 8], 0x40
jmp 0x14001bb46
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.14001ebf8
nop
lea rcx, [rsp + 0x50]
call fcn.14000bbb8
mov rax, rbx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140046b20
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14006b7b8
nop
call fcn.14006b7b8
int3