Function at 0x140002c40
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 [0x140045080]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x70], rax
xor r14d, r14d
lea r15, [0x140047db0]
mov qword [rsp + 0x70], r15
xorps xmm0, xmm0
movups xmmword [0x140047db0], xmm0
mov qword [0x140047dc0], r14
mov qword [0x140047dc8], 7
mov word [0x140047db0], r14w
movups xmmword [0x140047dd0], xmm0
mov qword [0x140047de0], r14
mov qword [0x140047de8], 7
mov word [0x140047dd0], 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 0x140002cf0
mov rax, qword [0x140047dc8]
cmp rdx, rax
ja 0x140002d36
mov rdi, r15
cmp rax, 7
cmova rdi, qword [0x140047db0]
mov qword [0x140047dc0], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.14002fb20
mov word [rbx + rdi], r14w
jmp 0x140002d3f
lea r9, [rbp - 0x60]
call fcn.1400086c0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x70], r14
lea r8, str.USERPROFILE
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call fcn.140017e5c
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 0x140002d70
mov r8, rsi
lea rcx, [rsp + 0x30]
call fcn.140008b50
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.140008a10
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 [0x140047de8]
cmp rdx, 7
jbe 0x140002e5a
mov rcx, qword [0x140047dd0]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002e55
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002ef5
mov rcx, r8
call fcn.14000cd50
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [0x140047dd0], xmm0
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [0x140047de0], xmm1
movdqa xmm0, xmmword [0x14003e750]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140002ebf
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002eba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002efb
call fcn.14000cd50
mov rcx, qword [rbp - 0x80]
call fcn.140017260
nop
mov rax, r15
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14000cd30
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.140017c64
nop
call fcn.140017c64
int3