Function at 0x140006a10
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 - 0x190]
sub rsp, 0x290
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor r12d, r12d
mov dword [rsp + 0x68], 0x101
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
test eax, eax
jne 0x140006ac4
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
lea r8d, [r12 + 7]
lea rdx, str.unknown
mov rcx, rdi
call fcn.14000b050
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140035d60
lea r11, [rsp + 0x290]
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
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x140006ae0
movabs r14, 0x7ffffffffffffffe
cmp rbx, r14
ja 0x140006d80
movabs r13, 0x7fffffffffffffff
mov qword [rsp + 0x40], 7
cmp rbx, 8
jae 0x140006b3b
mov qword [rsp + 0x38], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140037d00
mov word [rsp + rbx + 0x28], r12w
jmp 0x140006bde
mov rax, rbx
or rax, 7
cmp rax, r14
jbe 0x140006b51
lea rcx, [r13*2]
jmp 0x140006b79
mov r14, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r14, rcx
lea rcx, [r14 + 1]
cmp rcx, r13
ja 0x140006d7a
add rcx, rcx
cmp rcx, 0x1000
jb 0x140006ba5
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140006d7a
mov rcx, rax
call fcn.140036024
test rax, rax
je 0x140006d74
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140006bb7
test rcx, rcx
je 0x140006bb4
call fcn.140036024
mov rsi, rax
jmp 0x140006bb7
mov rsi, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], r14
add rbx, rbx
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140037d00
mov word [rbx + rsi], r12w
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 r15, [rcx + rax*2]
lea rsi, [rsp + 0x28]
cmovae rsi, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov ebx, recv
mov qword [rsp + 0x60], rbx
cmp rsi, r15
jne 0x140006c2d
mov byte [rsp + 0x48], 0
jmp 0x140006d23
mov rax, r15
sub rax, rsi
sar rax, 1
mov r14, r12
cmp rax, r13
ja 0x140006d86
cmp rax, 0x10
jb 0x140006cd0
mov rbx, rax
or rbx, 0xf
cmp rbx, r13
jbe 0x140006c5d
mov rbx, r13
jmp 0x140006c69
mov eax, socket
cmp rbx, rax
cmovb rbx, rax
mov rcx, rbx
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x140006cb3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140006d8c
mov rcx, rax
call fcn.140036024
mov rcx, rax
test rax, rax
je 0x140006d92
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140006cc2
test rcx, rcx
je 0x140006cbf
call fcn.140036024
jmp 0x140006cc2
mov rax, r12
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], rbx
nop dword [rax]
lea rcx, [rsp + 0x48]
cmp rbx, 0x10
cmovae rcx, qword [rsp + 0x48]
movzx eax, byte [rsi]
mov byte [r14 + rcx], al
mov r14, qword [rsp + 0x58]
inc r14
mov qword [rsp + 0x58], r14
add rsi, 2
cmp rsi, r15
je 0x140006d03
mov rbx, qword [rsp + 0x60]
jmp 0x140006cd0
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov byte [r14 + rax], 0
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x10], xmm1
cmp rdx, 8
jb 0x140006a91
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140006d67
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006d74
mov rcx, r8
call fcn.140035d80
jmp 0x140006a91
call fcn.140047b50
int3
call fcn.140002d70
int3
call fcn.140002e10
nop
call fcn.140002e10
int3
call fcn.140002d70
int3
call fcn.140047b50
int3