Function at 0x140065394
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 [0x1401600b0]
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.0x14007c430.0]
nop
cmp dword [rbp + 0x50], esi
je 0x140065515
movdqa xmm0, xmmword [0x14012ad50]
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.140044ef8
lea rdx, str._PII_USERID_
lea rcx, [rsp + 0x70]
call fcn.140005fac
mov rdi, qword [rbx + 8]
cmp qword [rbx + 0x10], rdi
je 0x140065488
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 0x140065498
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.140066740
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.140044ef8
lea rdx, str._PII_EXTERNALUSERID_
lea rcx, [rsp + 0x70]
call fcn.140005fac
mov rdi, qword [rbx + 8]
cmp qword [rbx + 0x10], rdi
je 0x1400654fa
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 0x14006550b
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.140066740
nop
lea rcx, [rsp + 0x50]
call fcn.1400178b4
xor edx, edx
mov r8d, 0x202
lea rcx, [rbp + 0x60]
call fcn.1400b4430
mov dword [rsp + 0x28], 0x101
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14006567e
movdqa xmm0, xmmword [0x14012ad50]
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 [0x14012ad40]
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 0x14006557e
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140005dd4
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.140090b90
lea rcx, [rbp - 0x70]
cmp rcx, rax
je 0x1400655bd
mov r8b, sil
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140031970
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400655f8
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400655f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400656ac
call fcn.140095470
movdqa xmm0, xmmword [0x14012ad50]
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 0x140065664
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 0x140065674
lea r8, [rbp - 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.140066740
nop
lea rcx, [rbp - 0x70]
call fcn.1400178b4
nop
lea rcx, [rbp - 0x10]
call fcn.14000d4ac
mov rax, rbx
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140095410
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x380
pop rdi
pop rsi
pop rbp
ret
call fcn.1400bb190
int3