Function at 0x1400306a0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x14010c040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edi, edi
lea r15, [0x140192478]
mov dword [rsp + 0x28], 0x101
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
test eax, eax
je 0x14003098c
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], di
jne 0x140030713
movabs rbp, 0x7ffffffffffffffe
cmp rbx, rbp
ja 0x1400309f2
movabs r14, 0x7fffffffffffffff
cmp rbx, 7
ja 0x14003076c
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 7
add rbx, rbx
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x30], di
jmp 0x140030805
mov rax, rbx
or rax, 7
cmp rax, rbp
jbe 0x1400307b1
lea rcx, [r14 + r14]
cmp rcx, 0x1000
jb 0x1400307d7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400309e6
mov rcx, rax
call fcn.14009e630
test rax, rax
je 0x14003097b
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400307df
mov rbp, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, r14
ja 0x1400309e6
add rcx, rcx
jne 0x14003077c
mov rsi, rdi
jmp 0x1400307df
call fcn.14009e630
mov rsi, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
add rbx, rbx
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], di
lea rcx, [rsp + 0x30]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
cmova rcx, r8
mov rax, qword [rsp + 0x40]
lea rbp, [rcx + rax*2]
lea rsi, [rsp + 0x30]
cmova rsi, r8
xorps xmm0, xmm0
movups xmmword [0x140192478], xmm0
mov qword [0x140192488], rdi
mov ebx, 0xf
mov qword [0x140192490], rbx
cmp rsi, rbp
jne 0x14003085c
mov byte [0x140192478], 0
jmp 0x14003094c
sub rbp, rsi
sar rbp, 1
cmp rbp, r14
ja 0x1400309f8
cmp rbp, rbx
jbe 0x140030906
mov rbx, rbp
or rbx, 0xf
cmp rbx, r14
jbe 0x1400308ba
mov rbx, r14
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14009e630
test rax, rax
je 0x1400308e7
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov qword [0x140192478], rdi
mov qword [0x140192490], rbx
jmp 0x14003090d
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
je 0x1400308f6
cmp rcx, 0x1000
jb 0x1400308ee
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400309ec
jmp 0x140030891
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009e630
mov rdi, rax
mov qword [0x140192478], rdi
mov qword [0x140192490], rbx
jmp 0x14003090d
mov rdi, qword [0x140192478]
mov r8, r15
cmp rbx, 0xf
cmova r8, rdi
mov rcx, r8
mov rdx, rbp
test rbp, rbp
je 0x140030936
movzx eax, byte [rsi]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rsi, [rsi + 2]
sub rdx, 1
jne 0x140030923
mov qword [0x140192488], rbp
mov byte [r8 + rbp], 0
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
cmp rdx, 7
jbe 0x1400309b6
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140030982
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140030982
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14009e984
jmp 0x1400309b6
movups xmmword [0x140192478], xmm0
mov qword [0x140192488], rdi
mov qword [0x140192490], rdi
mov r8d, 0xb
lea rdx, str.UnknownUser
mov rcx, r15
call fcn.1400338c0
mov rax, r15
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14009e250
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.140002260
nop
call fcn.140002260
nop
call fcn.14002ec40
nop
call fcn.14002ec40
int3