Function at 0x140028030
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14020a688]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov r13, rcx
mov rax, qword [rbp + 0x270]
mov qword [rsp + 0x40], rax
xor r12b, r12b
mov rax, qword [rcx]
cmp rax, 0xffffffffffffffff
nop
je 0x1400282b4
test r14, r14
je 0x1400282b4
call sub.MSVCP140.dll__Query_perf_frequency
mov rbx, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rbx, 0x989680
jne 0x1400280b6
imul rbx, rax, 0x64
jmp 0x1400280d2
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
lea rbx, [rax + rcx]
mov qword [rbp + 8], rsi
mov dword [rbp], 1
mov dword [rbp - 0x70], 0
mov dword [rbp - 0x6c], 0x2710
nop dword [rax + rax]
lea ecx, [rsi + 1]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp]
call qword [sym.imp.WS2_32.dll_select]
movsxd rdi, eax
test eax, eax
jns 0x14002811e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400280f0
test rdi, rdi
js 0x1400282b4
jne 0x1400281a6
call sub.MSVCP140.dll__Query_perf_frequency
mov rdi, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rdi, 0x989680
jne 0x140028145
imul rcx, rax, 0x64
jmp 0x140028160
cqo
idiv rdi
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
add rcx, rax
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 0x1400282b4
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x38]
call fcn.14002af50
jmp 0x1400280d2
cmp r14, 1
sete bl
mov byte [rsp + 0x30], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov rdi, qword [rsp + 0x40]
mov rax, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov r9, qword [r9]
mov r8, qword [r8]
mov rdx, qword [rdx]
lea rcx, [rbp - 0x60]
call fcn.1400316a0
nop
mov rax, qword [rdi + 0x28]
mov qword [rbp - 0x78], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
movzx r8d, bl
lea rdx, [rbp - 0x60]
mov rcx, qword [rax]
call fcn.1400cc4e0
movzx r12d, al
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140028254
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
nop
lea rax, vtable.httplib::detail::SocketStream.0
mov qword [rbp - 0x60], rax
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140028295
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028290
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400282ad
call fcn.140176cb0
test r12b, r12b
je 0x1400282b4
cmp byte [rsp + 0x30], 0
jne 0x1400282b4
dec r14
mov rax, qword [r13]
jmp 0x140028086
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movzx eax, r12b
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140177020
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret