Function at 0x14006cc30
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.1401f4630
sub rsp, rax
mov rax, qword [0x1402defb8]
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 0x14006cca7
xor r9d, r9d
lea edx, [rsi + 0x65]
mov r8d, esi
call fcn.1400e86e0
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea edx, [r9 + 0x65]
call fcn.1400e86e0
mov ebx, eax
test eax, eax
jg 0x14006ccf0
cmp r15d, 0xffffffff
je 0x14006ccd6
mov edx, 8
mov rcx, r12
call fcn.1400e9750
test eax, eax
jne 0x14006ccf0
mov rcx, qword [0x1402dfba8]
lea rdx, str.Error_connecting_BIO_n
call fcn.1400e9470
xor eax, eax
jmp 0x14006ceff
xor r8d, r8d
lea r9, [rsp + 0x30]
mov rcx, r12
lea edx, [r8 + 0x69]
call fcn.1400e86e0
test eax, eax
jns 0x14006cd14
lea rdx, str.Cant_get_connection_fd_n
jmp 0x14006cee6
cmp r15d, 0xffffffff
je 0x14006cd70
test ebx, ebx
jg 0x14006cd70
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 0x14006cd72
mov rcx, qword [0x1402dfba8]
lea rdx, str.Timeout_on_connect_n
call fcn.1400e9470
xor eax, eax
jmp 0x14006ceff
xor ebx, ebx
mov r9d, 0xffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call fcn.14013ddd0
mov r14, rax
test rax, rax
je 0x14006cce9
mov rcx, r13
call fcn.1400e7ca0
test eax, eax
jle 0x14006cdf7
nop
mov edx, ebx
mov rcx, r13
call fcn.1400e7ed0
mov rdi, rax
cmp esi, 1
jne 0x14006cdcc
mov rdx, qword [rax + 8]
lea rcx, str.host
call fcn.1401f7cec
test eax, eax
mov eax, 0
cmove esi, eax
mov r8, qword [rdi + 0x10]
mov rcx, r14
mov rdx, qword [rdi + 8]
call fcn.14013d650
test eax, eax
je 0x14006cef2
mov rcx, r13
inc ebx
call fcn.1400e7ca0
cmp ebx, eax
jl 0x14006cda0
cmp esi, 1
jne 0x14006ce13
mov r8, qword [rsp + 0x48]
lea rdx, str.Host
mov rcx, r14
call fcn.14013d650
test eax, eax
je 0x14006cef2
mov rdx, qword [rsp + 0x50]
mov rcx, r14
call fcn.14013dcb0
test eax, eax
je 0x14006cef2
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14013dd40
cmp eax, 0xffffffff
jne 0x14006cef2
nop
cmp r15d, 0xffffffff
je 0x14006ceb5
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 fcn.1400e9750
test eax, eax
je 0x14006ce7b
xor r8d, r8d
lea rdx, [rsp + 0x60]
jmp 0x14006ce93
mov edx, 2
mov rcx, r12
call fcn.1400e9750
test eax, eax
je 0x14006cedf
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 0x14006ced6
cmp eax, 0xffffffff
je 0x14006cecd
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14013dd40
cmp eax, 0xffffffff
je 0x14006ce40
jmp 0x14006cef2
lea rdx, str.Select_error_n
jmp 0x14006cee6
lea rdx, str.Timeout_on_request_n
jmp 0x14006cee6
lea rdx, str.Unexpected_retry_condition_n
mov rcx, qword [0x1402dfba8]
call fcn.1400e9470
mov rcx, r14
call fcn.14013d6f0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401f4710
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret