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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x30], rdx
mov r15, rcx
lea rdi, [rcx + 0xa8]
mov qword [rbp - 0x48], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
xor r14d, r14d
test eax, eax
je 0x1400066dc
lea ecx, [r14 + 5]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rdi + 0x4c]
mov esi, 0x7fffffff
cmp eax, esi
jne 0x1400066f9
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rbx, [r15 + 0x58]
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140006b05
lea rax, [rbx + 0x4c]
mov ecx, dword [rax]
cmp ecx, esi
je 0x140006a41
mov byte [r15 + 0x104], r14b
lea rsi, [r15 + 0x50]
mov r12, qword [rsi]
cmp r12, 0xffffffffffffffff
je 0x140006803
mov qword [rbp - 8], r12
mov dword [rbp - 0x10], 1
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea ecx, [r12 + 1]
call qword [sym.imp.WS2_32.dll_select]
mov r13d, eax
test eax, eax
jns 0x140006778
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140006748
test r13d, r13d
lea rdi, [r15 + 0xa8]
je 0x140006826
jns 0x140006795
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x1400067cd
lea rdi, [rbp - 0x27]
mov r9d, 2
lea r8d, [r9 - 1]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
mov r13d, eax
test eax, eax
jns 0x1400067c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140006799
test r13d, r13d
lea rdi, [r15 + 0xa8]
jg 0x140006826
mov rax, qword [r15]
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call qword [rax + 0x18]
cmp qword [rsi], 0xffffffffffffffff
je 0x140006803
mov edx, 2
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_shutdown]
cmp qword [rsi], 0xffffffffffffffff
je 0x140006803
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
or qword [rsi], 0xffffffffffffffff
mov rax, qword [r15]
mov r8, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x140006826
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
jmp 0x140006acf
inc qword [r15 + 0xf8]
call qword [sym.imp.MSVCP140.dll__Thrd_id]
mov dword [r15 + 0x100], eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rbx, qword [r15 + 0x118]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], r14b
jne 0x1400069bc
mov r12, qword [rsp + 0x30]
add r12, 0x40
lea rax, [rbx + 0x20]
mov r13, qword [r12]
mov rsi, qword [r13 + 8]
cmp byte [rsi + 0x19], r14b
jne 0x1400068a0
lea rdx, [rsi + 0x20]
lea r8, [rbx + 0x20]
call fcn.140001ed0
test al, al
je 0x140006889
mov rsi, qword [rsi + 0x10]
jmp 0x14000688f
mov r13, rsi
mov rsi, qword [rsi]
cmp byte [rsi + 0x19], r14b
je 0x140006872
lea rdi, [r15 + 0xa8]
lea rax, [rbx + 0x20]
cmp byte [r13 + 0x19], r14b
jne 0x1400068c8
lea r8, [r13 + 0x20]
mov rdx, rax
call fcn.140001ed0
test al, al
jne 0x1400068c8
mov rax, qword [r12]
cmp r13, rax
jne 0x14000696f
mov r13, rax
jmp 0x1400068cc
mov r13, qword [r12]
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r14
mov ecx, 0x60
call fcn.140019f48
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x70], rax
lea rsi, [rax + 0x20]
mov qword [rsp + 0x40], rsi
lea rdx, [rbx + 0x20]
mov rcx, rsi
call fcn.14000e044
nop
lea rcx, [rsi + 0x20]
lea rdx, [rbx + 0x40]
call fcn.14000e044
nop
mov rsi, qword [rbp - 0x20]
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov word [rsi + 0x18], r14w
lea r8, [rsi + 0x20]
lea rdx, [rbp - 0x40]
mov rcx, r12
call fcn.140015510
movups xmm1, xmmword [rax]
movsd xmm0, qword [rax + 0x10]
movsd qword [rsp + 0x50], xmm0
movabs rax, 0x2aaaaaaaaaaaaaa
cmp qword [r12 + 8], rax
je 0x140006b11
mov qword [rsp + 0x70], r14
movdqu xmmword [rsp + 0x40], xmm1
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.140012814
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r14b
je 0x140006997
mov rax, qword [rbx + 8]
jmp 0x14000698c
cmp rbx, qword [rax + 0x10]
jne 0x140006992
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r14b
je 0x14000697f
mov rbx, rax
jmp 0x1400069b2
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r14b
jne 0x1400069b2
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r14b
je 0x1400069a3
cmp byte [rbx + 0x19], r14b
je 0x140006860
cmp byte [r15 + 0x1f8], r14b
sete byte [rbp - 0x28]
mov rax, qword [r15]
lea rcx, vtable.std::_Func_impl_no_alloc_class__public:_bool___cdecl_httplib::ClientImpl::send_struct_httplib::Request____ptr64__struct_httplib::Response____ptr64__enum_httplib::Error____ptr64____ptr64::_2::_lambda_1___bool__class_httplib::Stream____ptr64_.0
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], r15
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x78], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x68], rcx
mov r12, qword [rsp + 0x38]
mov qword [rbp - 0x60], r12
lea rcx, [rsp + 0x78]
mov qword [rbp - 0x50], rcx
lea rdx, [r15 + 0x50]
lea r8, [rsp + 0x78]
mov rcx, r15
call qword [rax + 0x20]
mov sil, al
lea rbx, [r15 + 0x58]
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140006b05
mov ecx, dword [rbx + 0x4c]
cmp ecx, 0x7fffffff
jne 0x140006a51
lea rax, [rbx + 0x4c]
dec ecx
mov dword [rax], ecx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
sub qword [r15 + 0xf8], 1
jne 0x140006a62
mov dword [r15 + 0x100], r14d
cmp byte [r15 + 0x104], r14b
jne 0x140006a76
cmp byte [rbp - 0x28], r14b
jne 0x140006a76
test sil, sil
jne 0x140006ab0
mov rax, qword [r15]
lea rdx, [r15 + 0x50]
mov r8b, 1
mov rcx, r15
call qword [rax + 0x18]
mov rcx, qword [r15 + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140006a9b
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [r15 + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140006ab0
call qword [sym.imp.WS2_32.dll_closesocket]
or qword [r15 + 0x50], 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test sil, sil
jne 0x140006acc
cmp dword [r12], r14d
jne 0x140006acc
mov dword [r12], 1
mov r14b, sil
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov al, r14b
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140019e00
mov rbx, qword [rsp + 0x360]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140001ebc
int3