Function at 0x140006bb0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsxd rbx, ecx
lea r14, [0x140000000]
cmp dword [r14 + rbx*4 + 0x2a590], 0
jne 0x140006c07
xor edx, edx
mov ecx, 0x200002
call qword [sym.imp.libssl_1_1_x64.dll_OPENSSL_init_ssl]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.libssl_1_1_x64.dll_OPENSSL_init_ssl]
mov dword [r14 + rbx*4 + 0x2a590], 1
lea rsi, [rbx*8]
cmp qword [rsi + r14 + 0x2a4e0], 0
jne 0x140006c55
call qword [sym.imp.libssl_1_1_x64.dll_TLSv1_client_method]
mov rcx, rax
call qword [sym.imp.libssl_1_1_x64.dll_SSL_CTX_new]
mov qword [rsi + r14 + 0x2a4e0], rax
test rax, rax
jne 0x140006c47
lea rcx, str.tcp_tls_connect:_SSL_CTX_new___failed_to_create_TLS_v1.0_context_n
call fcn.140008260
jmp 0x140006d57
mov edx, 0x20800
mov rcx, rax
call qword [sym.imp.libssl_1_1_x64.dll_SSL_CTX_set_options]
mov rcx, qword [rsi + r14 + 0x2a350]
test rcx, rcx
je 0x140006c68
call qword [sym.imp.libssl_1_1_x64.dll_SSL_free]
mov rcx, qword [rsi + r14 + 0x2a4e0]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_new]
mov qword [rsi + r14 + 0x2a350], rax
test rax, rax
jne 0x140006c94
lea rcx, str.tcp_tls_connect:_SSL_new___failed_n
call fcn.140008260
jmp 0x140006d57
movsxd rcx, dword [r14 + rbx*4 + 0x2b820]
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [r14 + rbx*4 + 0x2b820]
mov rcx, qword [rsi + r14 + 0x2a350]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_set_fd]
cmp eax, 1
jge 0x140006ce0
lea rcx, str.tcp_tls_connect:_SSL_set_fd___failed_n
call fcn.140008260
jmp 0x140006d57
xor ecx, ecx
mov qword [rsp + 0x48], rdi
call fcn.14000d5c4
lea rdi, [rax + 3]
mov rcx, qword [rsi + r14 + 0x2a350]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_connect]
xor ecx, ecx
mov ebx, eax
call fcn.14000d5c4
cmp rdi, rax
jl 0x140006d23
mov rcx, qword [rsi + r14 + 0x2a350]
mov edx, ebx
call qword [sym.imp.libssl_1_1_x64.dll_SSL_get_error]
cmp eax, 2
je 0x140006cf0
jmp 0x140006d2f
lea rcx, str.UNKNOWN___SSL_protocol_error___connect_timeout_r_n
call fcn.140007ea0
mov rdi, qword [rsp + 0x48]
test ebx, ebx
jns 0x140006d97
call fcn.1400065d0
mov rdx, rax
lea rcx, str.UNKNOWN___SSL_protocol_error____s_r_n
mov rbx, rax
call fcn.140007ea0
mov rcx, rbx
call fcn.14000da14
mov rcx, qword [rsi + r14 + 0x2a350]
test rcx, rcx
je 0x140006d6a
call qword [sym.imp.libssl_1_1_x64.dll_SSL_free]
mov rcx, qword [rsi + r14 + 0x2a4e0]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_CTX_free]
xor eax, eax
mov qword [rsi + r14 + 0x2a350], 0
mov qword [rsi + r14 + 0x2a4e0], 0
jmp 0x140006e18
mov rcx, qword [rsi + r14 + 0x2a350]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_get_peer_certificate]
test rax, rax
jne 0x140006dba
lea rdx, str.SSL___cant_get_certificate_n
xor ecx, ecx
call fcn.140008230
jmp 0x140006e13
mov rcx, rax
call qword [sym.imp.libcrypto_1_1_x64.dll_X509_get_subject_name]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.libcrypto_1_1_x64.dll_X509_NAME_oneline]
mov rbx, rax
test rax, rax
jne 0x140006de9
lea rdx, str.SSL___cant_get_certificate_subject_name_n
xor ecx, ecx
call fcn.140008230
jmp 0x140006e13
mov r8, rax
lea rdx, str.subject___s_n
mov ecx, 1
call fcn.140008230
mov r8d, 0x227
lea rdx, str..._tcp.c
mov rcx, rbx
call qword [sym.imp.libcrypto_1_1_x64.dll_CRYPTO_free]
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400083c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret