Function at 0x140060860
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x1401470c0]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rsi, rcx
mov qword [rbp + 0x10], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov dword [rsp + 0x30], 1
mov dword [rbp + 0xa0], 0x200
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0xf0]
call qword [sym.imp.advapi32.dll_GetUserNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp + 0xf0]
mov r13, 0xffffffffffffffff
mov r8, r13
inc r8
cmp word [rax + r8*2], 0
jne 0x140060900
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x40]
call fcn.14003d570
mov edi, 0x401
mov dword [rsp + 0x30], edi
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
sub rax, r8
mov r12d, 9
cmp rax, r12
jb 0x1400609de
lea rax, [r8 + 9]
mov qword [rsp + 0x50], rax
lea r14, [rsp + 0x40]
cmp rcx, 7
cmova r14, qword [rsp + 0x40]
lea rax, [0x14012c802]
lea rcx, [0x14012c7f0]
cmp rax, r14
jbe 0x140060988
lea rax, [r14 + r8*2]
cmp rcx, rax
ja 0x140060988
cmp r14, rcx
jbe 0x14006098b
mov r15, r14
sub r15, rcx
sar r15, 1
jmp 0x14006098b
mov r15, r12
lea rcx, [r14 + 0x12]
lea r8, [r8*2 + 2]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy_1
lea rbx, [r15 + r15]
mov r8, rbx
lea rdx, [0x14012c7f0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [0x14012c7f0]
lea rdx, [rdx + 0x12]
lea rdx, [rdx + r15*2]
lea rcx, [rbx + r14]
sub r12, r15
lea r8, [r12 + r12]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x40]
xor r15d, r15d
jmp 0x1400609f0
mov qword [rsp + 0x28], r12
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140061cb0
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x18], 7
mov qword [rax + 0x10], r15
mov word [rax], r15w
bts edi, 0xb
mov dword [rsp + 0x30], edi
mov r8d, 0x1a
lea rdx, [0x14012c808]
lea rcx, [rbp - 0x10]
call fcn.140061190
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xc0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xd0], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
bts edi, 0xc
mov dword [rsp + 0x30], edi
lea rcx, [rbp - 0x10]
call fcn.14003c6e0
nop
lea rcx, [rsp + 0x40]
call fcn.14003c6e0
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 7
cmova rdx, qword [rbp + 0xc0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
mov r8, qword [rbp + 0xd0]
lea rcx, [rsp + 0x70]
call fcn.14003d570
or edi, 0x6000
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x90]
call fcn.140060630
nop
lea rcx, [rsp + 0x70]
call fcn.14003c6e0
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
mov rbx, qword [rbp + 0x98]
test rbx, rbx
je 0x140060b18
lock inc dword [rbx + 8]
mov rbx, qword [rbp + 0x98]
mov edi, dword [rsp + 0x30]
movaps xmm0, xmmword [rbp + 0x90]
movdqa xmmword [rbp + 0xb0], xmm0
test rbx, rbx
je 0x140060b3b
lock inc dword [rbx + 8]
mov rbx, qword [rbp + 0x98]
mov edi, dword [rsp + 0x30]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xe0], xmm1
test rbx, rbx
je 0x140060b81
mov eax, r13d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140060b76
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140060b76
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov edi, dword [rsp + 0x30]
mov rbx, qword [rbp + 0x98]
mov r14, qword [rbp + 0xb0]
test r14, r14
je 0x140060dd2
lea r12, [0x14012c848]
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.140060100
mov rax, qword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x140060bc9
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x140060e8a
cmp eax, 2
jne 0x140060d23
call fcn.1401066d8
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 4
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.140037f30
or edi, 0x60
or edi, 2
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x70]
lea rcx, [r14 + 0x20]
call fcn.14005fe70
mov rcx, rax
or edi, 4
mov dword [rsp + 0x30], edi
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rax, qword [rbp - 0x50]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp + 0x20], xmm0
lea rdx, [rbp + 0x20]
call fcn.14005fc60
test eax, eax
jne 0x140060d23
lea rcx, [r14 + 0x20]
cmp qword [r14 + 0x38], 7
jbe 0x140060c56
mov rcx, qword [r14 + 0x20]
mov rax, qword [r14 + 0x30]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.14005f900
cmp rax, r11
je 0x140060cab
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140060c7f
cmp cx, 0x2f
jne 0x140060c88
add rax, 2
cmp rax, r11
jne 0x140060c70
cmp rax, r11
je 0x140060cab
nop dword [rax]
lea rdx, [r10 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x140060cab
cmp cx, 0x2f
je 0x140060cab
mov r10, rdx
cmp rax, rdx
jne 0x140060c90
sub r11, r10
sar r11, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], r15
mov r8, r11
mov rdx, r10
lea rcx, [rbp - 0x70]
call fcn.14003d570
or edi, 0x380
or edi, 8
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140042dd0
or edi, 0x10
mov dword [rsp + 0x30], edi
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140060cfe
mov rax, qword [rax]
mov qword [rsp + 0x20], 6
lea r9, [0x14012c840]
xor r8d, r8d
mov rcx, rax
call fcn.140002740
cmp rax, 0xffffffffffffffff
je 0x140060d23
mov bl, 1
jmp 0x140060d25
xor bl, bl
test dil, 0x10
je 0x140060d3c
and edi, 0xffffffef
mov dword [rsp + 0x30], edi
lea rcx, [rbp + 0x50]
call fcn.140002630
nop
test dil, 8
je 0x140060d53
and edi, 0xfffffff7
mov dword [rsp + 0x30], edi
lea rcx, [rbp - 0x70]
call fcn.14003c6e0
nop
test dil, 4
je 0x140060d6a
and edi, 0xfffffffb
mov dword [rsp + 0x30], edi
lea rcx, [rbp + 0x70]
call fcn.14003c6e0
nop
test dil, 2
je 0x140060d80
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
lea rcx, [rbp - 0x50]
call fcn.14003c6e0
test bl, bl
je 0x140060daf
lea r8, [r14 + 0x20]
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x140060da4
mov rdx, r8
mov rcx, rax
call fcn.14003be80
add qword [rsi + 8], 0x20
jmp 0x140060daf
mov rdx, rax
mov rcx, rsi
call fcn.1400619d0
lea rcx, [rbp + 0xb0]
call fcn.140060760
mov r14, qword [rbp + 0xb0]
test r14, r14
jne 0x140060ba0
mov rbx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x140060e1b
mov eax, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140060e14
mov rbx, qword [rbp + 0xb8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140060e14
mov rcx, qword [rbp + 0xb8]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x98]
test rbx, rbx
je 0x140060e4b
mov eax, r13d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140060e4b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r13d
cmp r13d, 1
jne 0x140060e4b
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
nop
lea rcx, [rbp + 0xc0]
call fcn.14003c6e0
mov rax, rsi
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140107250
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [r14 + 0x20]
lea rcx, [0x14012c778]
call fcn.1400384c0
int3