Function at 0x140001230
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 - 0x170]
sub rsp, 0x270
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov dword [rsp + 0x48], 0x101
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov r12, 0xffffffffffffffff
mov rdi, r12
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], si
jne 0x1400012b0
movabs r13, 0x7ffffffffffffffe
cmp rdi, r13
ja 0x14000152d
movabs r15, 0x7fffffffffffffff
mov qword [rsp + 0x40], 7
cmp rdi, 8
jae 0x140001309
mov qword [rsp + 0x38], rdi
add rdi, rdi
mov r8, rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.1400074a0
mov word [rsp + rdi + 0x28], si
jmp 0x1400013a8
mov rax, rdi
or rax, 7
cmp rax, r13
jbe 0x14000131b
lea rcx, [r15 + r15]
jmp 0x140001343
mov r13, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r13, rcx
lea rcx, [r13 + 1]
cmp rcx, r15
ja 0x140001527
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000136f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001527
mov rcx, rax
call fcn.140001a30
test rax, rax
je 0x140001521
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140001381
test rcx, rcx
je 0x14000137e
call fcn.140001a30
mov r14, rax
jmp 0x140001381
mov r14, rsi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r13
add rdi, rdi
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400074a0
mov word [rdi + r14], si
lea rcx, [rsp + 0x28]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
cmovae rcx, r8
mov rax, qword [rsp + 0x38]
lea r14, [rcx + rax*2]
lea rdi, [rsp + 0x28]
cmovae rdi, r8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
cmp rdi, r14
jne 0x1400013f0
mov byte [rbx], 0
jmp 0x1400014b7
mov rax, r14
sub rax, rdi
sar rax, 1
cmp rax, r15
ja 0x140001533
cmp rax, 0x10
jb 0x140001474
or rax, 0xf
cmp rax, r15
ja 0x140001420
mov r15, rax
mov ecx, 0x16
cmp rax, rcx
cmovb r15, rcx
mov rcx, r15
add rcx, 1
cmovb rcx, r12
cmp rcx, 0x1000
jb 0x140001460
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001539
mov rcx, rax
call fcn.140001a30
test rax, rax
je 0x14000153f
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000146d
test rcx, rcx
je 0x14000146d
call fcn.140001a30
mov rsi, rax
mov qword [rbx], rsi
mov qword [rbx + 0x18], r15
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140001481
mov rdx, qword [rbx]
movzx ecx, byte [rdi]
mov rax, qword [rbx + 0x10]
mov byte [rdx + rax], cl
inc qword [rbx + 0x10]
mov rax, qword [rbx + 0x10]
add rdi, 2
cmp rdi, r14
jne 0x140001474
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400014a9
mov rcx, qword [rbx]
mov byte [rcx + rax], 0
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
cmp rdx, 8
jb 0x1400014ee
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x1400014e6
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001521
mov rcx, r8
call fcn.140001a6c
mov rax, rbx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140001a10
lea r11, [rsp + 0x270]
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
call fcn.14000a540
int3
call fcn.140001170
int3
call fcn.140001210
nop
call fcn.140001210
nop
call fcn.140001170
int3
call fcn.14000a540
int3