Function at 0x140023fa0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x14029a040]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov r13, rcx
mov rax, qword [rbp + 0x280]
mov qword [rsp + 0x50], rax
xor r12b, r12b
mov rax, qword [rcx]
cmp rax, 0xffffffffffffffff
je 0x14002405b
nop dword [rax]
test r14, r14
je 0x14002405b
lea rcx, [rsp + 0x38]
call fcn.140005740
mov rbx, qword [rsp + 0x38]
mov qword [rbp + 0x18], rsi
mov dword [rbp + 0x10], 1
mov dword [rbp - 0x58], 0
mov dword [rbp - 0x54], 0x2710
nop dword [rax]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10]
lea ecx, [rsi + 1]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x14002408f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140024030
movzx eax, r12b
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140085780
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
jne 0x14002413a
lea rcx, [rsp + 0x40]
call fcn.140005740
mov rcx, qword [rsp + 0x40]
sub rcx, rbx
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, r15, 0x3e8
cmp rdx, rax
jg 0x14002405b
lea rcx, [rsp + 0x48]
call fcn.140005740
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
movabs rdx, 0x7ffffffffff0bdbf
cmp rax, rdx
je 0x14002411c
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x14002411c
add rax, 0xf4240
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.1400223e0
jmp 0x140024014
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.1400223e0
jmp 0x140024014
cmp r14, 1
sete dil
mov byte [rbp - 0x60], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov r12, qword [rsp + 0x50]
mov rax, qword [r12 + 0x20]
mov r10, qword [rax]
mov rax, qword [r12 + 0x18]
mov r9, qword [rax]
mov rax, qword [r12 + 0x10]
mov r8, qword [rax]
mov rax, qword [r12 + 8]
mov rdx, qword [rax]
mov rax, qword [r12]
mov rcx, qword [rax]
lea rax, vtable.httplib::detail::SocketStream.0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], r8
mov qword [rbp - 0x30], r9
mov qword [rbp - 0x28], r10
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
mov edx, 0x1000
lea rcx, [rbp - 0x20]
call fcn.140026220
mov rbx, qword [rbp - 0x20]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rax, [rbx + 0x1000]
mov qword [rbp - 0x18], rax
xor ebx, ebx
mov qword [rbp - 8], rbx
mov qword [rbp], rbx
mov rax, qword [r12 + 0x28]
mov qword [rbp - 0x68], rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x60]
movzx r8d, dil
lea rdx, [rbp - 0x50]
mov rcx, qword [rax]
call fcn.140011cf0
movzx r12d, al
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140024238
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
lea rax, vtable.httplib::detail::SocketStream.0
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140024279
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024274
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400242a2
call fcn.140085c14
test r12b, r12b
je 0x14002405b
cmp byte [rbp - 0x60], 0
jne 0x14002405b
dec r14
mov rax, qword [r13]
cmp rax, 0xffffffffffffffff
jne 0x140024000
jmp 0x14002405b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3