Function at 0x14001aaf0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x1400a9040]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], r8
xor edi, edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x28], 7
mov word [rcx + 0x10], di
movups xmmword [rcx + 0x30], xmm0
mov qword [rcx + 0x40], rdi
mov qword [rcx + 0x48], 7
mov word [rcx + 0x30], di
mov byte [rcx + 0x50], dil
add rcx, 0x58
call fcn.14001ae50
nop
mov qword [rsi + 0x180], rdi
mov qword [rsi + 0x188], rdi
mov qword [rsi + 0x190], rdi
xorps xmm0, xmm0
movups xmmword [rsi + 0x198], xmm0
mov qword [rsi + 0x1a8], rdi
mov ebp, reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x1b0], rbp
mov byte [rsi + 0x198], dil
lea rbx, [rsi + 0x1b8]
mov qword [rsp + 0x20], rbx
movzx eax, word [rsp + 0x20]
mov word [rbx], ax
mov ecx, 0x18
call fcn.14006a430
mov qword [rax + 0x10], rdi
mov qword [rax], rdi
mov qword [rbx + 0x208], rax
mov dword [rbx + 0x218], edi
mov qword [rbx + 0x228], 8
mov dword [rbx + 0x230], 0x40800000
lea rcx, [rbx + 8]
xor edx, edx
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbx + 0x208]
mov rcx, rbx
call fcn.140027360
nop
cmp qword [rbx + 0x228], 8
ja 0x14001ac30
bsr rcx, rbp
mov dword [rsp + 0x20], ecx
mov eax, 1
shl rax, cl
mov qword [rbx + 0x228], rax
lea rbx, [rsi + 0x3f0]
mov qword [rsp + 0x20], rbx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov ecx, 0x60
call fcn.14006a430
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [rsi + 0x400], rdi
lea rcx, [rsi + 0x408]
mov dword [rcx], edi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rdi
mov edx, 2
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
mov qword [rsi + 0x458], rdi
mov rbp, 0xffffffffffffffff
cmp qword [r14], 0
jne 0x14001acfa
mov ecx, 0x140
call fcn.14006a430
mov rdi, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, [0x14009a6f0]
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov edx, 4
mov rcx, rbx
call fcn.140017920
nop
mov qword [rsi], rbx
mov rbx, qword [rsi + 8]
mov qword [rsi + 8], rdi
jmp 0x14001ad19
mov rax, qword [r14 + 8]
test rax, rax
je 0x14001ad07
lock inc dword [rax + 8]
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
mov qword [rsi], rax
mov rbx, qword [rsi + 8]
mov qword [rsi + 8], rcx
test rbx, rbx
je 0x14001ad47
mov eax, ebp
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14001ad47
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, ebp
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14001ad47
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
mov rdx, r12
lea rcx, [rsi + 0x58]
call fcn.14001b270
mov dword [rsp + 0x28], 0x100
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rax, [rsp + 0x40]
mov r8, rbp
inc r8
cmp byte [rax + r8], 0
jne 0x14001ad73
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0x198]
call fcn.140023c00
call qword [sym.imp.libcrypto_3_x64.dll_BIO_s_mem]
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_BIO_new]
mov rdi, rax
lea rdx, [0x1400ac2f8]
cmp qword [0x1400ac310], 0xf
cmova rdx, qword [0x1400ac2f8]
mov r8d, dword [0x1400ac308]
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_BIO_write]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.libcrypto_3_x64.dll_PEM_read_bio_PUBKEY]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.libcrypto_3_x64.dll_BIO_free]
mov qword [rsi + 0x458], rbx
mov rbx, qword [r14 + 8]
test rbx, rbx
je 0x14001ae1b
mov eax, ebp
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14001ae1b
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], ebp
cmp ebp, 1
jne 0x14001ae1b
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + ioctlsocket]
mov rax, rsi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14006a2e0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret