Function at 0x140144a20
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 [0x1405e3440]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r13, r9
mov r15, r8
mov r14, rdx
mov qword [rsp + 0x50], rcx
mov r12, qword [rbp + 0x270]
xor dil, dil
mov byte [rsp + 0x30], dil
mov rax, qword [rcx]
nop
cmp rax, 0xffffffffffffffff
je 0x140144ae2
nop
test r15, r15
je 0x140144ae2
lea rcx, [rsp + 0x40]
call fcn.1401d6eb0
mov rbx, qword [rsp + 0x40]
mov qword [rbp + 8], r14
mov dword [rbp], 1
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0x2710
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp]
lea ecx, [r14 + 1]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x140144b16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140144ab0
movzx edi, byte [rsp + 0x30]
movzx eax, dil
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140487ca0
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
jne 0x140144bfa
call sub.MSVCP140.dll__Query_perf_frequency
mov rdi, rax
call sub.MSVCP140.dll__Query_perf_counter
mov rcx, rax
cmp rdi, 0x989680
jne 0x140144b3b
imul rcx, rcx, 0x64
jmp 0x140144bb4
cmp rdi, 0x16e3600
jne 0x140144b99
movabs r9, 0xb2f4fc0794908cf3
mov rax, r9
imul rcx
add rdx, rcx
sar rdx, 0x18
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul r8, rdx, 0x3b9aca00
imul rax, rdx, 0x16e3600
sub rcx, rax
imul rcx, rcx, 0x3b9aca00
mov rax, r9
imul rcx
add rdx, rcx
sar rdx, 0x18
mov rcx, rdx
shr rcx, 0x3f
add rcx, rdx
add rcx, r8
jmp 0x140144bb4
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, r13, 0x3e8
cmp rdx, rax
jg 0x140144add
mov qword [rsp + 0x48], 1
lea rcx, [rsp + 0x48]
call fcn.140147150
jmp 0x140144a94
cmp r15, 1
sete dil
mov byte [rsp + 0x31], 0
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 [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], r8
mov qword [rbp - 0x80], r9
mov qword [rbp - 0x78], r10
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
xor esi, esi
mov qword [rbp - 0x60], rsi
mov ecx, 0x1027
call fcn.140487b50
test rax, rax
je 0x140144d60
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rbp - 0x70], rcx
lea rbx, [rcx + 0x1000]
mov qword [rbp - 0x60], rbx
xor edx, edx
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov rax, qword [r12 + 0x28]
mov qword [rbp - 8], rsi
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x31]
movzx r8d, dil
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call fcn.1401df7f0
movzx edi, al
mov byte [rsp + 0x30], al
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140144cef
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
nop
lea rax, vtable.httplib::detail::SocketStream.0
mov qword [rsp + 0x60], rax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140144d31
mov rdx, qword [rbp - 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140144d2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140144d60
call fcn.140487b8c
test dil, dil
je 0x140144ae2
cmp byte [rsp + 0x31], 0
jne 0x140144ae2
dec r15
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
nop
cmp rax, 0xffffffffffffffff
jne 0x140144a80
jmp 0x140144ae2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3