Function at 0x140030330
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 [0x14010b040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edi, edi
lea r15, [0x140191478]
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 0x14003061c
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 0x1400303a3
movabs rbp, 0x7ffffffffffffffe
cmp rbx, rbp
ja 0x140030682
movabs r14, 0x7fffffffffffffff
cmp rbx, 7
ja 0x1400303fc
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 0x140030495
mov rax, rbx
or rax, 7
cmp rax, rbp
jbe 0x140030441
lea rcx, [r14 + r14]
cmp rcx, 0x1000
jb 0x140030467
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140030676
mov rcx, rax
call fcn.14009e1e0
test rax, rax
je 0x14003060b
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14003046f
mov rbp, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, r14
ja 0x140030676
add rcx, rcx
jne 0x14003040c
mov rsi, rdi
jmp 0x14003046f
call fcn.14009e1e0
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 [0x140191478], xmm0
mov qword [0x140191488], rdi
mov ebx, 0xf
mov qword [0x140191490], rbx
cmp rsi, rbp
jne 0x1400304ec
mov byte [0x140191478], 0
jmp 0x1400305dc
sub rbp, rsi
sar rbp, 1
cmp rbp, r14
ja 0x140030688
cmp rbp, rbx
jbe 0x140030596
mov rbx, rbp
or rbx, 0xf
cmp rbx, r14
jbe 0x14003054a
mov rbx, r14
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14009e1e0
test rax, rax
je 0x140030577
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov qword [0x140191478], rdi
mov qword [0x140191490], rbx
jmp 0x14003059d
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
je 0x140030586
cmp rcx, 0x1000
jb 0x14003057e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14003067c
jmp 0x140030521
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009e1e0
mov rdi, rax
mov qword [0x140191478], rdi
mov qword [0x140191490], rbx
jmp 0x14003059d
mov rdi, qword [0x140191478]
mov r8, r15
cmp rbx, 0xf
cmova r8, rdi
mov rcx, r8
mov rdx, rbp
test rbp, rbp
je 0x1400305c6
movzx eax, byte [rsi]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rsi, [rsi + 2]
sub rdx, 1
jne 0x1400305b3
mov qword [0x140191488], rbp
mov byte [r8 + rbp], 0
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
cmp rdx, 7
jbe 0x140030646
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140030612
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140030612
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14009e534
jmp 0x140030646
movups xmmword [0x140191478], xmm0
mov qword [0x140191488], rdi
mov qword [0x140191490], rdi
mov r8d, 0xb
lea rdx, str.UnknownUser
mov rcx, r15
call fcn.140033470
mov rax, r15
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14009de00
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.14002e8d0
nop
call fcn.14002e8d0
int3