Function at 0x14006ed90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400b2980]
xor rax, rsp
mov qword [rbp], rax
mov rsi, qword [rcx + 0x3d0]
lea r14, [rcx + 0x3d8]
mov r15, rcx
mov rdi, rdx
mov rcx, r14
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14006f023
mov eax, dword [r14 + 0x4c]
cmp eax, 0x7fffffff
je 0x14006f012
mov rcx, rsi
call sub.libssl_3_x64.dll_SSL_new
mov rcx, r14
mov rsi, rax
call sub.MSVCP140.dll__Mtx_unlock
test rsi, rsi
je 0x14006eea7
lea r8, [rbp - 0x38]
mov dword [rbp - 0x38], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, edi
call sub.libcrypto_3_x64.dll_BIO_new_socket
xor r9d, r9d
mov edx, 0x66
mov r8d, 1
mov rcx, rax
mov r12, rax
call sub.libcrypto_3_x64.dll_BIO_ctrl
mov r8, r12
mov rdx, r12
mov rcx, rsi
call sub.libssl_3_x64.dll_SSL_set_bio
mov rcx, qword [r15 + 0x68]
lea r8, [0x140078dd2]
mov r9, qword [r15 + 0x60]
mov rdx, rsi
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call fcn.140018d50
cmp al, 1
jne 0x14006efc3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x66
mov rcx, r12
call sub.libcrypto_3_x64.dll_BIO_ctrl
lea r8, [rbp - 0x38]
mov dword [rbp - 0x38], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor bl, bl
test rsi, rsi
je 0x14006ef81
mov rax, qword [r15 + 0x78]
lea rcx, [r15 + 0x48]
mov r9, qword [r15 + 0x58]
mov rdx, rdi
mov r8, qword [r15 + 0x50]
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], rsi
movaps xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x30], rax
mov rax, qword [r15 + 0x70]
mov qword [rbp - 0x10], rax
mov rax, qword [r15 + 0x68]
mov qword [rbp - 0x18], rax
mov rax, qword [r15 + 0x60]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
movups xmm1, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x80]
movaps xmmword [rbp - 0x70], xmm1
movsd xmm1, qword [rsp + 0x60]
movaps xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [rsp + 0x50]
mov qword [rsp + 0x20], rax
movsd qword [rbp - 0x50], xmm1
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x40], rsi
movaps xmmword [rbp - 0x60], xmm0
call fcn.1400624a0
movzx r8d, al
mov rdx, rsi
mov rcx, r14
movzx ebx, al
call fcn.140051920
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
movzx eax, bl
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400806d0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rcx, rsi
call sub.libssl_3_x64.dll_SSL_shutdown
mov rcx, r14
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14006f023
mov eax, dword [r14 + 0x4c]
cmp eax, 0x7fffffff
je 0x14006f012
mov rcx, rsi
call sub.libssl_3_x64.dll_SSL_free
mov rcx, r14
call sub.MSVCP140.dll__Mtx_unlock
lea r8, [rbp - 0x38]
mov dword [rbp - 0x38], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor bl, bl
jmp 0x14006ef81
dec eax
mov ecx, 6
mov dword [r14 + 0x4c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3