Function at 0x1400136c0
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x2e8
mov r13, rcx
lea rsi, [rcx + 0xa8]
mov qword [rbp - 0x50], rsi
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
xor r12d, r12d
test eax, eax
je 0x140013713
lea ecx, [r12 + 5]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rsi + 0x4c]
mov ebx, 0x7fffffff
cmp eax, ebx
jne 0x140013730
dec eax
mov dword [rsi + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rdi, [r13 + 0x58]
mov qword [rsp + 0x38], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140013b20
lea r15, [rdi + 0x4c]
mov eax, dword [r15]
cmp eax, ebx
je 0x140013a6c
mov byte [r13 + 0x104], r12b
lea r14, [r13 + 0x50]
mov rax, qword [r14]
cmp rax, 0xffffffffffffffff
je 0x1400137f2
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x30], 1
mov qword [rsp + 0x30], r12
lea esi, [rax + 1]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x30]
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x1400137b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140013784
test ebx, ebx
lea rsi, [r13 + 0xa8]
jg 0x140013818
mov rax, qword [r13]
xor r8d, r8d
mov rdx, r14
mov rcx, r13
call qword [rax + 0x18]
cmp qword [r14], 0xffffffffffffffff
je 0x1400137f2
mov edx, 2
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_shutdown]
cmp qword [r14], 0xffffffffffffffff
je 0x1400137f2
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_closesocket]
or qword [r14], 0xffffffffffffffff
mov rax, qword [r13]
mov r8, qword [rbp + 0x248]
mov rdx, r14
mov rcx, r13
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x140013818
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
jmp 0x140013b00
inc qword [r13 + 0xf8]
call qword [sym.imp.MSVCP140.dll__Thrd_id]
mov dword [r13 + 0x100], eax
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rbx, qword [r13 + 0x108]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], r12b
jne 0x1400139e4
mov r15, qword [rbp + 0x238]
add r15, 0x40
mov qword [rsp + 0x38], r15
lea rcx, [rbx + 0x20]
mov r14, qword [r15]
mov r15, qword [r14 + 8]
mov rax, r14
mov qword [rsp + 0x30], rax
cmp byte [r15 + 0x19], r12b
jne 0x1400138aa
lea rdx, [r15 + 0x20]
lea r8, [rbx + 0x20]
call fcn.1400035dc
test al, al
je 0x14001388e
mov r15, qword [r15 + 0x10]
mov rax, qword [rsp + 0x30]
jmp 0x140013899
mov rax, r15
mov qword [rsp + 0x30], rax
mov r15, qword [r15]
cmp byte [r15 + 0x19], r12b
je 0x140013872
lea rsi, [r13 + 0xa8]
lea rcx, [rbx + 0x20]
cmp byte [rax + 0x19], r12b
jne 0x1400138cc
lea r8, [rax + 0x20]
mov rdx, rcx
call fcn.1400035dc
test al, al
jne 0x1400138cc
mov rax, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
jmp 0x1400138d4
mov r15, qword [rsp + 0x38]
mov rax, qword [r15]
cmp rax, r14
jne 0x14001398f
mov r15, qword [r15]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r12
mov ecx, 0x60
call fcn.1400598e8
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x68], rax
lea r14, [rax + 0x20]
mov qword [rsp + 0x40], r14
lea rdx, [rbx + 0x20]
mov rcx, r14
call fcn.14001d644
nop
lea rdx, [rbx + 0x40]
lea rcx, [r14 + 0x20]
call fcn.14001d644
nop
mov rax, qword [rsp + 0x30]
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov word [rax + 0x18], r12w
mov r8, r14
lea rdx, [rbp - 0x48]
mov r15, qword [rsp + 0x38]
mov rcx, r15
call fcn.140033d10
movups xmm1, xmmword [rax]
movsd xmm0, qword [rax + 0x10]
movsd qword [rsp + 0x50], xmm0
movabs rax, 0x2aaaaaaaaaaaaaa
cmp qword [r15 + 8], rax
je 0x140013b2c
mov qword [rsp + 0x68], r12
movdqu xmmword [rsp + 0x40], xmm1
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14002b1ec
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
je 0x1400139b7
mov rax, qword [rbx + 8]
jmp 0x1400139ac
cmp rbx, qword [rax + 0x10]
jne 0x1400139b2
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x14001399f
mov rbx, rax
jmp 0x1400139d2
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r12b
jne 0x1400139d2
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r12b
je 0x1400139c3
cmp byte [rbx + 0x19], r12b
je 0x140013859
lea r14, [r13 + 0x50]
lea r15, [rdi + 0x4c]
cmp byte [r13 + 0x1e8], r12b
sete byte [rbp + 0x230]
lea rax, 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 + 0x70], rax
mov qword [rsp + 0x78], r13
mov rax, qword [rbp + 0x238]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x240]
mov qword [rbp - 0x78], rax
lea rax, [rbp + 0x230]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x248]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
mov rax, qword [r13]
lea r8, [rsp + 0x70]
mov rdx, r14
mov rcx, r13
call qword [rax + 0x20]
mov bl, al
mov qword [rsp + 0x40], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140013b20
mov eax, dword [r15]
cmp eax, 0x7fffffff
jne 0x140013a7d
dec eax
mov dword [r15], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
or r15, 0xffffffffffffffff
add qword [r13 + 0xf8], r15
jne 0x140013a91
mov dword [r13 + 0x100], r12d
cmp byte [r13 + 0x104], r12b
jne 0x140013aa7
cmp byte [rbp + 0x230], r12b
jne 0x140013aa7
test bl, bl
jne 0x140013ade
mov rax, qword [r13]
mov r8b, 1
mov rdx, r14
mov rcx, r13
call qword [rax + 0x18]
mov rcx, qword [r13 + 0x50]
cmp rcx, r15
je 0x140013acb
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [r13 + 0x50]
cmp rcx, r15
je 0x140013ade
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r13 + 0x50], r15
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test bl, bl
jne 0x140013afd
mov rax, qword [rbp + 0x248]
cmp dword [rax], r12d
jne 0x140013afd
mov dword [rax], 1
mov r12b, bl
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov al, r12b
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.1400035c8
int3