Function at 0x140010990
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor esi, esi
lea r15, [0x1400512c0]
mov dword [rsp + 0x28], 0x101
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
test eax, eax
je 0x140010bc1
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140010a10
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14001ccd0
nop
lea rcx, [rsp + 0x50]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
cmova rcx, r8
mov rax, qword [rsp + 0x60]
lea r14, [rcx + rax*2]
lea rdi, [rsp + 0x50]
cmova rdi, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov ebx, 0xf
mov qword [rsp + 0x48], rbx
cmp rdi, r14
jne 0x140010a79
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x30], 0
jmp 0x140010b69
sub r14, rdi
sar r14, 1
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x140010c17
cmp r14, rbx
jbe 0x140010b25
mov rbx, r14
or rbx, 0xf
cmp rbx, rax
jbe 0x140010add
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14003c5c0
test rax, rax
je 0x140010b0a
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x48], rbx
jmp 0x140010b2a
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
je 0x140010b19
cmp rcx, 0x1000
jb 0x140010b11
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140010c1d
jmp 0x140010ab8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003c5c0
mov rsi, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x48], rbx
jmp 0x140010b2a
mov rsi, qword [rsp + 0x30]
lea r8, [rsp + 0x30]
cmp rbx, 0xf
cmova r8, rsi
mov rcx, r8
mov rdx, r14
test r14, r14
je 0x140010b55
movzx eax, byte [rdi]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rdi, [rdi + 2]
sub rdx, 1
jne 0x140010b42
mov qword [rsp + 0x40], r14
mov byte [r8 + r14], 0
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x50]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [0x1400512c0], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400512d0], xmm1
cmp rdx, 7
jbe 0x140010be8
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140010bb7
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010bb7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14003c604
jmp 0x140010be8
movups xmmword [0x1400512c0], xmm0
mov qword [0x1400512d0], rsi
mov qword [0x1400512d8], rsi
xor r8d, r8d
lea rdx, [0x140042db9]
mov rcx, r15
call fcn.14001d0c0
mov rax, r15
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14003c5a0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14000cf70
nop
call fcn.140001150
int3