Function at 0x140002b50
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 - 0x40]
sub rsp, 0x140
mov rax, qword [0x140046080]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x70], rax
xor r14d, r14d
lea r15, [0x140048de0]
mov qword [rsp + 0x70], r15
xorps xmm0, xmm0
movups xmmword [0x140048de0], xmm0
mov qword [0x140048df0], r14
mov qword [0x140048df8], 7
mov word [0x140048de0], r14w
movups xmmword [0x140048e00], xmm0
mov qword [0x140048e10], r14
mov qword [0x140048e18], 7
mov word [0x140048e00], r14w
mov dword [rbp - 0x78], 0x41
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rbp - 0x60]
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140002c00
mov rax, qword [0x140048df8]
cmp rdx, rax
ja 0x140002c46
mov rdi, r15
cmp rax, 7
cmova rdi, qword [0x140048de0]
mov qword [0x140048df0], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.140030370
mov word [rbx + rdi], r14w
jmp 0x140002c4f
lea r9, [rbp - 0x60]
call fcn.14000a260
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x70], r14
lea r8, str.USERPROFILE
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call fcn.140018bf4
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rdx, qword [rbp - 0x80]
inc rsi
cmp byte [rdx + rsi], 0
jne 0x140002c80
mov r8, rsi
lea rcx, [rsp + 0x30]
call fcn.14000a6f0
nop
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova r8, qword [rsp + 0x30]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000a5b0
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rax, qword [rsp + 0x50]
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova r8, qword [rsp + 0x30]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, qword [0x140048e18]
cmp rdx, 7
jbe 0x140002d6a
mov rcx, qword [0x140048e00]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002d65
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002e05
mov rcx, r8
call fcn.14000d5d0
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [0x140048e00], xmm0
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [0x140048e10], xmm1
movdqa xmm0, xmmword [0x14003f6d0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140002dcf
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002dca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002e0b
call fcn.14000d5d0
mov rcx, qword [rbp - 0x80]
call fcn.140017cd0
nop
mov rax, r15
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14000d5b0
lea r11, [rsp + 0x140]
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.1400189fc
nop
call fcn.1400189fc
int3