Function at 0x14005fcb0
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 [0x140113480]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov r14, rdx
mov rsi, rcx
mov rdi, qword [rcx + 0x3d0]
lea r13, [rcx + 0x3d8]
mov qword [rsp + 0x68], r13
mov rcx, r13
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14005ffec
mov eax, dword [r13 + 0x4c]
cmp eax, 0x7fffffff
je 0x14005ffa8
mov rcx, rdi
call qword [sym.imp.libssl_3_x64.dll_SSL_new]
mov r15, rax
mov rcx, r13
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test r15, r15
je 0x14005fdd2
mov dword [rbp - 0x38], 1
lea r8, [rbp - 0x38]
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
mov edx, 0x66
mov r8d, 1
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
mov r8, rdi
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.libssl_3_x64.dll_SSL_set_bio]
mov rcx, qword [rsi + 0x68]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsi + 0x60]
mov r8, qword [sym.imp.libssl_3_x64.dll_SSL_accept]
mov rdx, r15
mov rcx, r14
call fcn.1400413e0
cmp al, 1
jne 0x14005ff87
xor r9d, r9d
xor r8d, r8d
mov edx, 0x66
mov rcx, rdi
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
mov dword [rbp - 0x38], 0
lea r8, [rbp - 0x38]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor bl, bl
test r15, r15
je 0x14005ff46
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r15
mov rax, qword [rsi + 0x78]
mov qword [rbp - 0x38], rax
mov rax, qword [rsi + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rsi + 0x68]
mov qword [rsp + 0x58], rax
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x50], rax
mov r12, qword [rsi + 0x58]
mov rdi, qword [rsi + 0x50]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
mov rax, qword [rsi + 0x48]
mov rcx, r15
cmp rax, 0xffffffffffffffff
je 0x14005ff37
mov qword [rsp + 0x40], r15
mov r13, qword [rbp - 0x38]
test rdi, rdi
je 0x14005ff2d
mov rdx, r12
mov rcx, r14
call fcn.1400568f0
test al, al
je 0x14005ff2d
cmp rdi, 1
sete bl
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], r15
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x18], rax
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x10], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp - 8], rax
mov qword [rbp], r13
xor r9d, r9d
mov edx, Ordinal_79
mov r8d, 4
mov rcx, r15
call qword [sym.imp.libssl_3_x64.dll_SSL_ctrl]
nop
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_19360138a36c0fef71838a2fe71c257f___void__struct_httplib::Request____ptr64_.0
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
movzx r8d, bl
lea rdx, [rbp - 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.14005eff0
movzx ebx, al
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14005ff11
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
nop
test bl, bl
je 0x14005ff2d
cmp byte [rsp + 0x30], 0
jne 0x14005ff2d
dec rdi
mov rax, qword [rsi + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x14005fe37
mov r13, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
movzx r8d, bl
mov rdx, rcx
mov rcx, r13
call fcn.14001ef00
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, bl
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400d0f00
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, r15
call qword [sym.imp.libssl_3_x64.dll_SSL_shutdown]
mov rcx, r13
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14005ffec
mov eax, dword [r13 + 0x4c]
cmp eax, 0x7fffffff
jne 0x14005ffba
dec eax
mov dword [r13 + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, r15
call qword [sym.imp.libssl_3_x64.dll_SSL_free]
mov rcx, r13
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 bl, bl
jmp 0x14005ff46
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3