Function at 0x1400c0060
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 [0x140330440]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x3d0]
lea r15, [rcx + 0x3d8]
mov qword [rsp + 0x38], r15
mov rcx, r15
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400c00bc
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [r15 + 0x4c]
cmp eax, 0x7fffffff
jne 0x1400c00d9
dec eax
mov dword [r15 + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, rbx
call fcn.140224000
mov r12, rax
mov rcx, r15
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test r12, r12
je 0x1400c018f
mov dword [rbp - 0x50], 1
lea r8, [rbp - 0x50]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r14d
call fcn.140142a90
mov rbx, rax
xor r9d, r9d
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
mov rcx, rax
call fcn.140145fd0
mov r8, rbx
mov rdx, rbx
mov rcx, r12
call fcn.140224810
mov rcx, qword [rsi + 0x68]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsi + 0x60]
lea r8, [0x140222920]
mov rdx, r12
mov rcx, r14
call fcn.1400cdb30
cmp al, 1
jne 0x1400c0333
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x66]
mov rcx, rbx
call fcn.140145fd0
mov dword [rbp - 0x48], 0
lea r8, [rbp - 0x48]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor bl, bl
test r12, r12
je 0x1400c02f2
mov rax, qword [rsi + 0x78]
mov qword [rbp - 0x40], rax
mov rax, qword [rsi + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi + 0x68]
mov qword [rbp - 0x50], rax
mov rax, qword [rsi + 0x60]
mov qword [rbp - 0x48], rax
mov r13, qword [rsi + 0x58]
mov rdi, qword [rsi + 0x50]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r12
mov rax, qword [rsi + 0x48]
mov rcx, r12
cmp rax, 0xffffffffffffffff
je 0x1400c02e3
mov qword [rsp + 0x40], r12
mov r15, qword [rbp - 0x40]
test rdi, rdi
je 0x1400c02d9
mov rdx, r13
mov rcx, r14
call fcn.1400aca60
test al, al
je 0x1400c02d9
cmp rdi, 1
sete bl
mov byte [rbp - 0x58], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
lea rax, vtable.httplib::detail::SSLSocketStream.0
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r12
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x18], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], r15
xor r9d, r9d
lea edx, [r9 + 0x4e]
lea r8d, [r9 + 4]
mov rcx, r12
call fcn.140222bd0
nop
lea rax, [0x140301cf8]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x58]
movzx r8d, bl
lea rdx, [rbp - 0x38]
mov rcx, qword [rsp + 0x50]
call fcn.1400b9780
movzx ebx, al
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400c02be
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
nop
test bl, bl
je 0x1400c02d9
cmp byte [rbp - 0x58], 0
jne 0x1400c02d9
dec rdi
mov rax, qword [rsi + 0x48]
cmp rax, 0xffffffffffffffff
jne 0x1400c01e7
mov r15, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
movzx r8d, bl
mov rdx, rcx
mov rcx, r15
call fcn.1400bfb10
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 + 0x30]
xor rcx, rsp
call fcn.140264720
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, r12
call fcn.140224dd0
mov rcx, r15
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400c0354
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [r15 + 0x4c]
cmp eax, 0x7fffffff
jne 0x1400c0371
dec eax
mov dword [r15 + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, r12
call fcn.140223580
mov rcx, r15
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov dword [rbp - 0x40], 0
lea r8, [rbp - 0x40]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor bl, bl
jmp 0x1400c02f2