Function at 0x1400af1d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14011c028]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov r14, rdx
mov r15, rcx
lea rbx, [rcx + 0x3d8]
mov qword [rsp + 0x48], rbx
mov rdi, qword [rcx + 0x3d0]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400af229
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov rcx, rdi
call qword [sym.imp.libssl_3_x64.dll_SSL_new]
mov r12, rax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test r12, r12
je 0x1400af2e4
mov dword [rbp - 0x48], 1
lea r8, [rbp - 0x48]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.libcrypto_3_x64.dll_BIO_new_socket]
mov rdi, rax
xor r9d, r9d
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
mov r8, rdi
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.libssl_3_x64.dll_SSL_set_bio]
mov rcx, qword [r15 + 0x68]
mov qword [rsp + 0x20], rcx
mov r9, qword [r15 + 0x60]
mov r8, qword [sym.imp.libssl_3_x64.dll_SSL_accept]
mov rdx, r12
mov rcx, r14
call fcn.140040380
cmp al, 1
jne 0x1400af46d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x66]
mov rcx, rdi
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
mov dword [rbp - 0x40], 0
lea r8, [rbp - 0x40]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor dil, dil
test r12, r12
je 0x1400af4ce
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r12
mov rax, qword [r15 + 0x78]
mov qword [rbp - 0x40], rax
mov rax, qword [r15 + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [r15 + 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [r15 + 0x60]
mov qword [rbp - 0x48], rax
mov rax, qword [r15 + 0x58]
mov qword [rbp - 0x38], rax
mov rsi, qword [r15 + 0x50]
mov rax, qword [r15 + 0x48]
mov r13, r12
cmp rax, 0xffffffffffffffff
je 0x1400af449
mov qword [rsp + 0x50], r12
mov rbx, qword [rbp - 0x38]
mov r13, qword [rbp - 0x40]
test rsi, rsi
je 0x1400af43f
mov rdx, rbx
mov rcx, r14
call fcn.1400a6fc0
test al, al
je 0x1400af43f
cmp rsi, 1
sete dil
mov byte [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
lea rax, vtable.httplib::detail::SSLSocketStream.0
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], r12
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x10], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 8], rax
mov qword [rbp], r13
xor r9d, r9d
lea edx, [r9 + 0x4e]
lea r8d, [r9 + 4]
mov rcx, r12
call qword [sym.imp.libssl_3_x64.dll_SSL_ctrl]
nop
lea rax, [0x1400f8518]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
movzx r8d, dil
lea rdx, [rbp - 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.1400aded0
movzx edi, al
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400af422
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
test dil, dil
je 0x1400af43f
cmp byte [rsp + 0x30], 0
jne 0x1400af43f
dec rsi
mov rax, qword [r15 + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x1400af346
mov rbx, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
test dil, dil
je 0x1400af457
mov rcx, r13
call qword [sym.imp.libssl_3_x64.dll_SSL_shutdown]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400af4bc
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov rcx, r12
call qword [sym.imp.libssl_3_x64.dll_SSL_shutdown]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400af48c
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov rcx, r12
call qword [sym.imp.libssl_3_x64.dll_SSL_free]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov dword [rbp - 0x38], 0
lea r8, [rbp - 0x38]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor dil, dil
jmp 0x1400af4ce
mov rcx, r13
call qword [sym.imp.libssl_3_x64.dll_SSL_free]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov edx, 2
mov rcx, r14
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
movzx eax, dil
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400d1560
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret