Function at 0x140008fa0
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 + 0x324b0], 0
jne 0x140008ff7
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 + 0x324b0], 1
lea rsi, [rbx*8]
cmp qword [rsi + r14 + 0x32410], 0
jne 0x140009045
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 + 0x32410], rax
test rax, rax
jne 0x140009037
lea rcx, str.tcp_tls_connect:_SSL_CTX_new___failed_to_create_TLS_v1.0_context_n
call fcn.14000a330
jmp 0x140009147
mov edx, 0x20800
mov rcx, rax
call qword [sym.imp.libssl_1_1_x64.dll_SSL_CTX_set_options]
mov rcx, qword [rsi + r14 + 0x32320]
test rcx, rcx
je 0x140009058
call qword [sym.imp.libssl_1_1_x64.dll_SSL_free]
mov rcx, qword [rsi + r14 + 0x32410]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_new]
mov qword [rsi + r14 + 0x32320], rax
test rax, rax
jne 0x140009084
lea rcx, str.tcp_tls_connect:_SSL_new___failed_n
call fcn.14000a330
jmp 0x140009147
movsxd rcx, dword [r14 + rbx*4 + 0x32b50]
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 + 0x32b50]
mov rcx, qword [rsi + r14 + 0x32320]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_set_fd]
cmp eax, 1
jge 0x1400090d0
lea rcx, str.tcp_tls_connect:_SSL_set_fd___failed_r_n
call fcn.14000a330
jmp 0x140009147
xor ecx, ecx
mov qword [rsp + 0x48], rdi
call fcn.14000f850
lea rdi, [rax + 4]
mov rcx, qword [rsi + r14 + 0x32320]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_connect]
xor ecx, ecx
mov ebx, eax
call fcn.14000f850
cmp rdi, rax
jl 0x140009113
mov rcx, qword [rsi + r14 + 0x32320]
mov edx, ebx
call qword [sym.imp.libssl_1_1_x64.dll_SSL_get_error]
cmp eax, 2
je 0x1400090e0
jmp 0x14000911f
lea rcx, str.SSL_protocol_error___connect_timeout_r_n
call fcn.14000a030
mov rdi, qword [rsp + 0x48]
test ebx, ebx
jns 0x14000918c
call fcn.140008a60
mov rdx, rax
lea rcx, str.SSL_protocol_error____s_r_n
mov rbx, rax
call fcn.14000a030
mov rcx, rbx
call fcn.14000f890
mov rcx, qword [rsi + r14 + 0x32320]
test rcx, rcx
je 0x14000915a
call qword [sym.imp.libssl_1_1_x64.dll_SSL_free]
mov rcx, qword [rsi + r14 + 0x32410]
test rcx, rcx
je 0x14000916d
call qword [sym.imp.libssl_1_1_x64.dll_SSL_CTX_free]
mov qword [rsi + r14 + 0x32320], 0
xor eax, eax
mov qword [rsi + r14 + 0x32410], 0
jmp 0x14000920d
mov rcx, qword [rsi + r14 + 0x32320]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_get_peer_certificate]
test rax, rax
jne 0x1400091af
lea rdx, str.SSL___cant_get_certificate_n
xor ecx, ecx
call fcn.14000a300
jmp 0x140009208
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 0x1400091de
lea rdx, str.SSL___cant_get_certificate_subject_name_n
xor ecx, ecx
call fcn.14000a300
jmp 0x140009208
mov r8, rax
lea rdx, str.subject___s_n
mov ecx, 1
call fcn.14000a300
mov r8d, 0x238
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.14000a520
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret