Function at 0x1400add00
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x14017d300]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, qword [rcx + 0x3d0]
lea rbx, [rcx + 0x3d8]
mov r14, rcx
mov rdi, rdx
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400adf4f
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x1400adf5a
mov rcx, rsi
mov qword [rsp + 0x100], r15
call sub.libssl_3_x64.dll_SSL_new
mov rcx, rbx
mov rsi, rax
call sub.MSVCP140.dll__Mtx_unlock
test rsi, rsi
je 0x1400ade0f
lea r8, [rbp - 1]
mov dword [rbp - 1], 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 rcx, rax
mov r15, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call sub.libcrypto_3_x64.dll_BIO_ctrl
mov r8, r15
mov rdx, r15
mov rcx, rsi
call sub.libssl_3_x64.dll_SSL_set_bio
mov rcx, qword [r14 + 0x68]
lea r8, [0x1400bc4ed]
mov r9, qword [r14 + 0x60]
mov rdx, rsi
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call fcn.140021660
cmp al, 1
jne 0x1400adef0
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
lea edx, [r9 + 0x66]
call sub.libcrypto_3_x64.dll_BIO_ctrl
lea r8, [rbp - 9]
mov dword [rbp - 9], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor r15b, r15b
test rsi, rsi
je 0x1400adeb3
mov rax, qword [r14 + 0x78]
lea rcx, [r14 + 0x48]
mov r9, qword [r14 + 0x58]
mov rdx, rdi
mov r8, qword [r14 + 0x50]
mov qword [rbp + 0x1f], rax
mov rax, qword [r14 + 0x70]
mov qword [rbp + 0x17], rax
mov rax, qword [r14 + 0x68]
mov qword [rbp + 0xf], rax
mov rax, qword [r14 + 0x60]
mov qword [rbp - 1], rax
lea rax, [rbp + 7]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 9]
mov qword [rbp - 0x41], rax
lea rax, [rbp - 1]
mov qword [rbp - 0x39], rax
lea rax, [rbp + 0xf]
mov qword [rbp - 0x31], rax
lea rax, [rbp + 0x17]
mov qword [rbp - 0x29], rax
lea rax, [rbp + 0x1f]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x59]
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov qword [rbp + 7], rdi
mov qword [rbp - 9], rsi
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], rsi
call fcn.14009b6f0
movzx r8d, al
mov rdx, rsi
mov rcx, rbx
movzx r15d, al
call fcn.14008a630
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, r15b
mov r15, qword [rsp + 0x100]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14011ce50
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, rsi
call sub.libssl_3_x64.dll_SSL_shutdown
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400adf6a
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x1400adf3f
mov rcx, rsi
call sub.libssl_3_x64.dll_SSL_free
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_unlock
lea r8, [rbp + 7]
mov dword [rbp + 7], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor r15b, r15b
jmp 0x1400adeb3
dec eax
mov ecx, 6
mov dword [rbx + 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
dec eax
mov ecx, 6
mov dword [rbx + 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