Function at 0x140077f30
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 - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400a8010]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov r13, rcx
mov rax, qword [rbp + 0x260]
mov qword [rsp + 0x38], rax
xor r12b, r12b
mov rax, qword [rcx]
cmp rax, 0xffffffffffffffff
je 0x14007801e
test r14, r14
je 0x14007801e
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140077fb7
imul rbx, rax, 0x64
jmp 0x140077fd3
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 - 0x10], 1
mov dword [rbp - 0x78], 0
mov dword [rbp - 0x74], 0x2710
nop dword [rax]
lea ecx, [rsi + 1]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_select]
cdqe
test rax, rax
jns 0x140078052
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140077ff0
movzx eax, r12b
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140083df0
lea r11, [rsp + 0x310]
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 0x1400780d3
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x140078072
imul rcx, rax, 0x64
jmp 0x14007808d
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 0x14007801e
mov qword [rsp + 0x30], 1
lea rcx, [rsp + 0x30]
call fcn.14006e6a0
jmp 0x140077fd3
cmp r14, 1
sete dil
mov byte [rbp - 0x80], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
mov r12, qword [rsp + 0x38]
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 - 0x70], rax
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], r8
mov qword [rbp - 0x50], r9
mov qword [rbp - 0x48], r10
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], 0
mov edx, 0x1000
lea rcx, [rbp - 0x40]
call fcn.140074bf0
mov rbx, qword [rbp - 0x40]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rax, [rbx + 0x1000]
mov qword [rbp - 0x38], rax
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov rcx, qword [r12 + 0x28]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
movzx r8d, dil
lea rdx, [rbp - 0x70]
mov rcx, qword [rcx]
call fcn.140047ec0
movzx r12d, al
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400781d3
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
lea rax, vtable.httplib::detail::SocketStream.0
mov qword [rbp - 0x70], rax
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140078224
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007820f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078243
call fcn.1400840ac
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], 0
test r12b, r12b
je 0x14007801e
cmp byte [rbp - 0x80], 0
jne 0x14007801e
dec r14
mov rax, qword [r13]
jmp 0x140077f86
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3