Function at 0x1400dd4c0
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 [0x14022d988]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, qword [rcx + 0x3d0]
lea rbx, [rcx + 0x3d8]
mov r14, rcx
mov rsi, rdx
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400dd709
mov rcx, rdi
mov qword [rsp + 0x100], r15
call sub.libssl_3_x64.dll_SSL_new
mov rcx, rbx
mov rdi, rax
call sub.MSVCP140.dll__Mtx_unlock
test rdi, rdi
je 0x1400dd5c1
lea r8, [rbp - 1]
mov dword [rbp - 1], 1
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, esi
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, rdi
call sub.libssl_3_x64.dll_SSL_set_bio
mov rcx, qword [r14 + 0x68]
lea r8, [0x140136c10]
mov r9, qword [r14 + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.1400312a0
cmp al, 1
jne 0x1400dd6bf
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, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor r15b, r15b
test rdi, rdi
je 0x1400dd682
mov rax, qword [r14 + 0x78]
lea rcx, [r14 + 0x48]
mov r9, qword [r14 + 0x58]
mov rdx, rsi
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], rsi
mov qword [rbp - 9], rdi
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], rdi
call fcn.14002e4c0
movzx r15d, al
test al, al
je 0x1400dd662
mov rcx, rdi
call sub.libssl_3_x64.dll_SSL_shutdown
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400dd711
mov rcx, rdi
call sub.libssl_3_x64.dll_SSL_free
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_unlock
mov edx, 2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rsi
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.140195e30
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, rdi
call sub.libssl_3_x64.dll_SSL_shutdown
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400dd701
mov rcx, rdi
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, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor r15b, r15b
jmp 0x1400dd682
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3