Function at 0x1400653f4
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x298]
sub rsp, 0x380
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rbp + 0x270], 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
mov rcx, qword [rdx]
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
mov rax, qword [rax + 8]
call qword [case.0x14007ca24.0]
nop
cmp dword [rbp + 0x50], esi
je 0x140065575
movdqa xmm0, xmmword [0x14012d4e0]
movdqa xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], sil
movdqa xmm1, xmm0
movdqa xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], sil
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140044f54
lea rdx, str._PII_USERID_
lea rcx, [rsp + 0x70]
call fcn.140005fac
mov rdi, qword [rbx + 8]
cmp qword [rbx + 0x10], rdi
je 0x1400654e8
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140006110
nop
lea rcx, [rdi + 0x20]
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
lea rdx, [rsp + 0x70]
call fcn.140006110
nop
add qword [rbx + 8], 0x40
jmp 0x1400654f8
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.1400667a0
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.140044f54
lea rdx, str._PII_EXTERNALUSERID_
lea rcx, [rsp + 0x70]
call fcn.140005fac
mov rdi, qword [rbx + 8]
cmp qword [rbx + 0x10], rdi
je 0x14006555a
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140006110
nop
lea rcx, [rdi + 0x20]
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
lea rdx, [rsp + 0x70]
call fcn.140006110
nop
add qword [rbx + 8], 0x40
jmp 0x14006556b
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.1400667a0
nop
lea rcx, [rsp + 0x50]
call fcn.140017930
xor edx, edx
mov r8d, 0x202
lea rcx, [rbp + 0x60]
call fcn.1400b6460
mov dword [rsp + 0x28], 0x101
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400656de
movdqa xmm0, xmmword [0x14012d4e0]
movdqa xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], sil
movdqa xmm1, xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], sil
movdqa xmm0, xmmword [0x14012d4d0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
lea rax, [rbp + 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x1400655de
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140005dd4
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.140092bc0
lea rcx, [rbp - 0x70]
cmp rcx, rax
je 0x14006561d
mov r8b, sil
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400319e0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140065658
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065653
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006570c
call fcn.1400974a0
movdqa xmm0, xmmword [0x14012d4e0]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], sil
lea rcx, [rsp + 0x50]
call fcn.140005cfc
lea rdx, str._PII_USERNAME_
lea rcx, [rbp - 0x50]
call fcn.140005fac
mov rdi, qword [rbx + 8]
cmp qword [rbx + 0x10], rdi
je 0x1400656c4
mov qword [rsp + 0x40], rdi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.140006110
nop
lea rcx, [rdi + 0x20]
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
lea rdx, [rbp - 0x50]
call fcn.140006110
nop
add qword [rbx + 8], 0x40
jmp 0x1400656d4
lea r8, [rbp - 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.1400667a0
nop
lea rcx, [rbp - 0x70]
call fcn.140017930
nop
lea rcx, [rbp - 0x10]
call fcn.14000d4ac
mov rax, rbx
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140097440
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x380
pop rdi
pop rsi
pop rbp
ret
call fcn.1400bd1c0
int3