Function at 0x14002d7b0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x260], 0xfffffffffffffffe
mov r15, r9
mov rsi, r8
mov qword [rbp + 0x240], rdx
mov rdi, rcx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14002db29
mov qword [rbp + 0x250], rbx
mov qword [rbp + 0x230], rsi
cmp dword [rdi + 0xa4], 0x7fffffff
je 0x14002db33
mov byte [rdi + 0x104], 0
lea rsi, [rdi + 0x50]
mov r12, qword [rdi + 0x50]
cmp r12, 0xffffffffffffffff
mov qword [rbp + 0x238], rsi
je 0x14002d934
mov qword [rbp + 0x248], r15
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x58], 1
mov qword [rbp + 0x1b0], 0
lea r13d, [r12 + 1]
lea rsi, [rbp + 0x1b0]
lea rbx, [rbp - 0x58]
mov r15, qword [sym.imp.WS2_32.dll_select]
mov r14, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop word cs:[rax + rax]
mov qword [rsp + 0x20], rsi
mov ecx, r13d
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call r15
test eax, eax
jns 0x14002d8b4
call r14
cmp dword [rax], 4
je 0x14002d880
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
mov r15, qword [rbp + 0x248]
jne 0x14002d8c1
jmp 0x14002d8f4
mov r15, qword [rbp + 0x248]
je 0x14002d94b
lea rbx, [rbp - 0x58]
mov rsi, qword [sym.imp.WS2_32.dll_recv]
nop dword [rax]
mov rcx, r12
mov rdx, rbx
mov r8d, 1
mov r9d, 2
call rsi
test eax, eax
jns 0x14002d8f2
call r14
cmp dword [rax], 4
je 0x14002d8d0
jmp 0x14002d8f4
jne 0x14002d94b
mov rax, qword [rdi]
mov rcx, rdi
mov rsi, qword [rbp + 0x238]
mov rdx, rsi
xor r8d, r8d
call qword [rax + 0x18]
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x14002d934
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x14002d934
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi], 0xffffffffffffffff
mov rax, qword [rdi]
mov rcx, rdi
mov rdx, rsi
mov r8, r15
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x14002db05
inc qword [rdi + 0xf8]
call sub.MSVCP140.dll__Thrd_id
mov dword [rdi + 0x100], eax
mov rcx, qword [rbp + 0x250]
call sub.MSVCP140.dll__Mtx_unlock
mov r14, qword [rdi + 0x118]
mov rsi, qword [r14]
cmp rsi, r14
je 0x14002d9fe
mov rax, qword [rbp + 0x240]
lea r12, [rax + 0x40]
lea r13, [rbp - 0x58]
jmp 0x14002d998
mov rax, rsi
mov rsi, rax
cmp rax, r14
je 0x14002d9fe
lea rbx, [rsi + 0x20]
mov rcx, r12
mov rdx, rbx
call fcn.14002dc80
cmp rax, qword [r12]
jne 0x14002d9bb
mov rcx, r12
mov rdx, r13
mov r8, rbx
call fcn.14002de90
mov rcx, qword [rsi + 0x10]
cmp byte [rcx + 0x19], 0
je 0x14002d9f0
nop word cs:[rax + rax]
mov rax, qword [rsi + 8]
cmp byte [rax + 0x19], 0
jne 0x14002d990
mov rcx, rsi
mov rsi, rax
cmp rcx, qword [rax + 0x10]
je 0x14002d9d0
jmp 0x14002d98d
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x14002d9f0
jmp 0x14002d990
mov byte [rbp + 0x25f], 0
movzx eax, byte [rdi + 0x238]
xor al, 1
mov byte [rbp + 0x25e], al
lea rax, vtable.std::_Func_impl_no_alloc_class__private:_bool___cdecl_httplib::ClientImpl::send__struct_httplib::Request____ptr64__struct_httplib::Response____ptr64__enum_httplib::Error____ptr64____ptr64::_1::_lambda_1___void___.0
mov qword [rbp + 0x1b8], rdi
lea rcx, [rbp + 0x25e]
mov qword [rbp + 0x1c0], rcx
mov qword [rbp - 0x58], rax
lea rax, [rbp + 0x25f]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x1b8]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0x1c0]
mov qword [rbp - 0x48], rax
lea rbx, [rbp - 0x58]
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x18], 1
lea rax, vtable.std::_Func_impl_no_alloc_class__private:_bool___cdecl_httplib::ClientImpl::send__struct_httplib::Request____ptr64__struct_httplib::Response____ptr64__enum_httplib::Error____ptr64____ptr64::_1::_lambda_2___bool__class_httplib::Stream____ptr64_.0
mov qword [rbp + 0x1f0], rax
mov qword [rbp + 0x1f8], rdi
mov rax, qword [rbp + 0x240]
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x230]
mov qword [rbp + 0x208], rax
mov qword [rbp + 0x210], rcx
mov qword [rbp + 0x218], r15
lea r8, [rbp + 0x1f0]
mov qword [rbp + 0x228], r8
mov rax, qword [rdi]
mov rcx, rdi
mov rdx, qword [rbp + 0x238]
call qword [rax + 0x20]
mov edi, eax
mov byte [rbp + 0x25f], al
cmp dword [r15], 0
setne al
or al, dil
jne 0x14002dad9
mov dword [r15], 1
cmp byte [rbp - 0x18], 0
je 0x14002daee
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14002db47
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14002db13
cmp rcx, rbx
setne dl
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x14002db13
mov rcx, qword [rbp + 0x250]
call sub.MSVCP140.dll__Mtx_unlock
xor edi, edi
mov eax, edi
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
mov dword [rdi + 0xa4], 0x7ffffffe
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3