Function at 0x140012240
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x188]
mov eax, 0x288
call fcn.1400473e0
sub rsp, rax
mov rax, qword [0x1400826b8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rax, qword [rbp + 0x1f0]
mov r13, r9
mov r15d, dword [rbp + 0x1f8]
mov rdi, r8
mov qword [rsp + 0x50], rax
mov r12, rcx
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
mov esi, 1
mov r14d, eax
cmp r15d, 0xffffffff
je 0x1400122b7
xor r9d, r9d
lea edx, [rsi + 0x65]
mov r8d, esi
call sub.libcrypto_1_1_x64.dll_BIO_ctrl
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea edx, [r9 + 0x65]
call sub.libcrypto_1_1_x64.dll_BIO_ctrl
mov ebx, eax
test eax, eax
jg 0x140012300
cmp r15d, 0xffffffff
je 0x1400122e6
mov edx, 8
mov rcx, r12
call sub.libcrypto_1_1_x64.dll_BIO_test_flags
test eax, eax
jne 0x140012300
mov rcx, qword [0x1400827b8]
lea rdx, str.Error_connecting_BIO_n
call sub.libcrypto_1_1_x64.dll_BIO_puts
xor eax, eax
jmp 0x14001250f
xor r8d, r8d
lea r9, [rsp + 0x30]
mov rcx, r12
lea edx, [r8 + 0x69]
call sub.libcrypto_1_1_x64.dll_BIO_ctrl
test eax, eax
jns 0x140012324
lea rdx, str.Cant_get_connection_fd_n
jmp 0x1400124f6
cmp r15d, 0xffffffff
je 0x140012380
test ebx, ebx
jg 0x140012380
mov ecx, dword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x68], rcx
inc ecx
mov dword [rsp + 0x60], esi
xor r9d, r9d
mov dword [rsp + 0x3c], ebx
lea r8, [rsp + 0x60]
mov dword [rsp + 0x38], r15d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x140012382
mov rcx, qword [0x1400827b8]
lea rdx, str.Timeout_on_connect_n
call sub.libcrypto_1_1_x64.dll_BIO_puts
xor eax, eax
jmp 0x14001250f
xor ebx, ebx
mov r9d, 0xffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call sub.libcrypto_1_1_x64.dll_OCSP_sendreq_new
mov r14, rax
test rax, rax
je 0x1400122f9
mov rcx, r13
call sub.libcrypto_1_1_x64.dll_OPENSSL_sk_num
test eax, eax
jle 0x140012408
nop
mov edx, ebx
mov rcx, r13
call sub.libcrypto_1_1_x64.dll_OPENSSL_sk_value
mov rdi, rax
cmp esi, 1
jne 0x1400123dd
mov rdx, qword [rax + 8]
lea rcx, str.host
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
mov eax, 0
cmove esi, eax
mov r8, qword [rdi + 0x10]
mov rcx, r14
mov rdx, qword [rdi + 8]
call sub.libcrypto_1_1_x64.dll_OCSP_REQ_CTX_add1_header
test eax, eax
je 0x140012502
mov rcx, r13
inc ebx
call sub.libcrypto_1_1_x64.dll_OPENSSL_sk_num
cmp ebx, eax
jl 0x1400123b0
cmp esi, 1
jne 0x140012424
mov r8, qword [rsp + 0x48]
lea rdx, str.Host
mov rcx, r14
call sub.libcrypto_1_1_x64.dll_OCSP_REQ_CTX_add1_header
test eax, eax
je 0x140012502
mov rdx, qword [rsp + 0x50]
mov rcx, r14
call sub.libcrypto_1_1_x64.dll_OCSP_REQ_CTX_set1_req
test eax, eax
je 0x140012502
mov rdx, r14
lea rcx, [rsp + 0x40]
call sub.libcrypto_1_1_x64.dll_OCSP_sendreq_nbio
cmp eax, 0xffffffff
jne 0x140012502
nop
cmp r15d, 0xffffffff
je 0x1400124c5
mov eax, dword [rsp + 0x30]
mov rcx, r12
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], r15d
lea edx, [rax + 1]
call sub.libcrypto_1_1_x64.dll_BIO_test_flags
test eax, eax
je 0x14001248b
xor r8d, r8d
lea rdx, [rsp + 0x60]
jmp 0x1400124a3
mov edx, 2
mov rcx, r12
call sub.libcrypto_1_1_x64.dll_BIO_test_flags
test eax, eax
je 0x1400124ef
lea r8, [rsp + 0x60]
xor edx, edx
mov ecx, dword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
inc ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x1400124e6
cmp eax, 0xffffffff
je 0x1400124dd
mov rdx, r14
lea rcx, [rsp + 0x40]
call sub.libcrypto_1_1_x64.dll_OCSP_sendreq_nbio
cmp eax, 0xffffffff
je 0x140012450
jmp 0x140012502
lea rdx, str.Select_error_n
jmp 0x1400124f6
lea rdx, str.Timeout_on_request_n
jmp 0x1400124f6
lea rdx, str.Unexpected_retry_condition_n
mov rcx, qword [0x1400827b8]
call sub.libcrypto_1_1_x64.dll_BIO_puts
mov rcx, r14
call sub.libcrypto_1_1_x64.dll_OCSP_REQ_CTX_free
mov rax, qword [rsp + 0x40]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400474c0
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret