Function at 0x140012b50
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r15d, r15d
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 0x140012d89
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x140012bd0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140026380
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 rsi, [rsp + 0x50]
cmova rsi, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov ebx, 0xf
mov qword [rsp + 0x48], rbx
cmp rsi, r14
jne 0x140012c39
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], 0
jmp 0x140012d38
sub r14, rsi
sar r14, 1
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x140012dd5
cmp r14, rbx
jbe 0x140012cf4
mov rbx, r14
or rbx, 0xf
cmp rbx, rax
jbe 0x140012ca0
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400480c0
mov rcx, rax
test rax, rax
je 0x140012cdc
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rbx
jmp 0x140012cf9
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140012cc4
mov rax, r15
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rbx
jmp 0x140012cf9
cmp rcx, 0x1000
jb 0x140012ce3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140012ddb
jmp 0x140012c78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400480c0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rbx
jmp 0x140012cf9
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x30]
cmp rbx, 0xf
cmova r8, rax
mov rcx, r8
mov rdx, r14
test r14, r14
je 0x140012d24
movzx eax, byte [rsi]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rsi, [rsi + 2]
sub rdx, 1
jne 0x140012d11
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 [rdi], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm1
cmp rdx, 7
jbe 0x140012da6
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140012d7f
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012d7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140048104
jmp 0x140012da6
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
xor r8d, r8d
lea rdx, [0x14004ffc2]
mov rcx, rdi
call fcn.140026770
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400480a0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14000d150
nop
call fcn.140001180
int3