Function at 0x1400ca090
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 - 0x230]
sub rsp, 0x330
mov rax, qword [0x14015ad80]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r12, r9
mov r15, r8
mov r14, rdx
mov rax, rcx
mov qword [rsp + 0x50], rcx
mov rcx, qword [rbp + 0x280]
mov qword [rsp + 0x48], rcx
xor r13b, r13b
mov rax, qword [rax]
nop
cmp rax, 0xffffffffffffffff
je 0x1400ca15c
test r15, r15
je 0x1400ca15c
lea rcx, [rsp + 0x38]
call fcn.140099ae0
mov rbx, qword [rsp + 0x38]
nop word [rax + rax]
mov qword [rbp + 0x18], r14
mov dword [rbp + 0x10], 1
mov dword [rbp - 0x60], 0
mov dword [rbp - 0x5c], 0x2710
nop dword [rax]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10]
lea ecx, [r14 + 1]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x1400ca190
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400ca130
movzx eax, r13b
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400e6d00
lea r11, [rsp + 0x330]
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 0x1400ca274
call sub.MSVCP140.dll__Query_perf_frequency
mov rdi, rax
call sub.MSVCP140.dll__Query_perf_counter
mov rcx, rax
cmp rdi, 0x989680
jne 0x1400ca1b5
imul rcx, rcx, 0x64
jmp 0x1400ca22e
cmp rdi, 0x16e3600
jne 0x1400ca213
movabs rdi, 0xb2f4fc0794908cf3
mov rax, rdi
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, rdi
imul rcx
add rdx, rcx
sar rdx, 0x18
mov rcx, rdx
shr rcx, 0x3f
add rcx, rdx
add rcx, r8
jmp 0x1400ca22e
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, r12, 0x3e8
cmp rdx, rax
jg 0x1400ca15c
mov qword [rsp + 0x40], 1
lea rcx, [rsp + 0x40]
call fcn.140023e00
jmp 0x1400ca110
cmp r15, 1
sete dil
mov byte [rsp + 0x30], 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 rsi, qword [rsp + 0x48]
mov rax, qword [rsi + 0x20]
mov r10, qword [rax]
mov rax, qword [rsi + 0x18]
mov r9, qword [rax]
mov rax, qword [rsi + 0x10]
mov r8, qword [rax]
mov rax, qword [rsi + 8]
mov rdx, qword [rax]
mov rax, qword [rsi]
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
xor r13d, r13d
mov qword [rbp - 0x10], r13
mov edx, 0x1000
lea rcx, [rbp - 0x20]
call fcn.140035b40
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
mov qword [rbp - 8], r13
mov qword [rbp], r13
mov rcx, qword [rsi + 0x28]
mov qword [rbp - 0x68], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
movzx r8d, dil
lea rdx, [rbp - 0x50]
mov rcx, qword [rcx]
call fcn.1400d67d0
movzx r13d, al
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400ca36b
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 0x1400ca3ac
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ca3a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ca3db
call fcn.1400e6bec
test r13b, r13b
je 0x1400ca15c
cmp byte [rsp + 0x30], 0
jne 0x1400ca15c
dec r15
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
nop
cmp rax, 0xffffffffffffffff
jne 0x1400ca0f2
jmp 0x1400ca15c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3