Function at 0x14014d045
Capabilities:
Connect socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2b8
lea rbp, [rsp + 0x80]
and rsp, 0xffffffffffffff80
mov r15, r8
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [rdx + 0x78]
test eax, eax
je 0x14014d0d3
cmp eax, 3
jne 0x14014d8c3
lea r14, [rsi + 0x70]
movzx eax, byte [rsi + 0x70]
lea r13, [rsi + 0x30]
test eax, eax
je 0x14014d18a
cmp eax, 3
jne 0x14014d8d5
mov rax, qword [rsi + 0x68]
mov rdx, qword [rax + 0x10]
lea rbx, [rsp + 0x130]
mov rcx, rbx
mov r8, r15
call sym.tokio::runtime::io::registration::Registration::poll_write_ready::h33e72e0c06b55f58
mov al, byte [rbx + 9]
cmp al, 3
jne 0x14014d468
mov byte [r14], 3
mov qword [rdi], 3
mov al, 3
jmp 0x14014d81d
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x28], rcx
cmp word [rsi], 0
movzx eax, word [rsi + 0x12]
mov word [rsp + 0x60], ax
movups xmm0, xmmword [rsi + 2]
movaps xmmword [rsp + 0x50], xmm0
je 0x14014d1a6
mov eax, dword [rsi + 0x14]
mov edx, dword [rsi + 0x18]
movzx r9d, word [rsi + 0x1c]
mov r8, qword [rsp + 0x52]
mov r10d, dword [rsp + 0x5a]
movzx r11d, word [rsp + 0x5e]
movzx ebx, word [rsp + 0x60]
rol r9w, 8
mov qword [rsp + 0x138], r8
mov dword [rsp + 0x140], r10d
mov word [rsp + 0x144], r11w
mov word [rsp + 0x146], bx
mov dword [rsp + 0x148], edx
xorps xmm0, xmm0
movups xmmword [rsp + 0x14c], xmm0
movups xmmword [rsp + 0x15c], xmm0
movups xmmword [rsp + 0x16c], xmm0
movups xmmword [rsp + 0x17c], xmm0
and dword [rsp + 0x1ac], 0
movups xmmword [rsp + 0x18c], xmm0
movups xmmword [rsp + 0x19c], xmm0
push 0x1c
pop r8
mov r10w, 0x17
jmp 0x14014d202
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x40], r14
mov rbx, qword [rsi + 0x30]
mov r15, qword [rsi + 0x38]
jmp 0x14014d27e
movzx r9d, word [rsp + 0x54]
mov eax, dword [rsp + 0x50]
rol r9w, 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x138], xmm0
movups xmmword [rsp + 0x148], xmm0
movups xmmword [rsp + 0x158], xmm0
movups xmmword [rsp + 0x168], xmm0
movups xmmword [rsp + 0x178], xmm0
and qword [rsp + 0x1a8], 0
movups xmmword [rsp + 0x188], xmm0
movups xmmword [rsp + 0x198], xmm0
push 0x10
pop r8
mov r10w, 2
lea rdx, [rsp + 0x130]
mov word [rdx], r10w
mov word [rdx + 2], r9w
mov dword [rdx + 4], eax
mov dword [rdx + 0x80], r8d
call sub.ws2_32.dll_connect
test eax, eax
je 0x14014d253
call sym._ZN3std2io5error5Error13last_os_error17hb635cf4583fc11f5E.1193
mov r12, rax
mov qword [rsp + 0x80], rax
mov rcx, rax
call sym._ZN3std2io5error5Error4kind17hc7978a4119a3c2fcE.1917
cmp al, 0xd
jne 0x14014d457
lea rcx, [rsp + 0x80]
call sym.core::ptr::drop_in_place_std::io::error::Error_::hc7dbe3573e0a570c
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x78], r15
mov rbx, qword [rsi + 0x28]
mov qword [rsi + 0x30], rbx
and qword [rsi + 0x38], 0
lea r13, [rsi + 0x30]
lea rax, [rsi + 0x70]
mov qword [rsp + 0x40], rax
mov byte [rsi + 0x70], 0
xor r15d, r15d
lea r14, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_net_tcp_stream.rs
mov rcx, r14
call sym.tokio::runtime::scheduler::Handle::current::hacb856b1a1f1b3e7
mov rdi, rax
mov r12, rdx
mov qword [rsp + 0x1e8], rbx
mov qword [rsp + 0x1f0], r15
mov qword [rsp + 0x220], rax
mov qword [rsp + 0x228], rdx
lea rbx, [rdx + 0x118]
lea rax, [rdx + 0xb8]
test rdi, rdi
cmove rbx, rax
mov rcx, rbx
mov rdx, r14
call sym.tokio::runtime::driver::Handle::io::ha1cdfd514b47abd9
lea r14, [rbx + 0x20]
mov rcx, r14
call sym._ZN78__LT_parking_lot..raw_mutex..RawMutex_u20_as_u20_lock_api..mutex..RawMutex_GT_4lock17h42310aac37e2e330E.1884
cmp byte [rbx + 0x50], 0
je 0x14014d307
lea rdx, str.A_Tokio_1.x_context_was_found__but_it_is_being_shutdown._mark_pending_called_when_the_timer_entry_is_in_an_invalid_stateq
push 0x38
pop r8
mov cl, 0x27
call sym.std::io::error::Error::new::h1a9b7fb29b793043
mov r15, rax
mov rcx, r14
call sym.__parking_lot::raw_mutex::RawMutex_as_lock_api::mutex::RawMutex_::unlock::h11e352a4a5494f2f
jmp 0x14014d7a6
mov qword [rsp + 0x208], rdi
mov qword [rsp + 0x48], r13
lea r15, [rsp + 0x130]
and qword [r15 + 0x17], 0
xorps xmm0, xmm0
movups xmmword [r15 + 7], xmm0
movaps xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x89], xmm0
mov rax, qword [r15 + 0x1f]
mov qword [rsp + 0xb8], rax
movups xmm0, xmmword [r15 + 0x10]
movups xmmword [rsp + 0xa9], xmm0
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x99], xmm0
mov rax, qword [rsp + 0xb0]
mov qword [r15 + 0xa0], rax
mov rax, qword [rsp + 0xb8]
mov qword [r15 + 0xa8], rax
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmmword [r15 + 0x90], xmm0
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [r15 + 0x80], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [r15 + 0x70], xmm0
mov ecx, 0x100
mov edx, pe_nt_image_headers64
call sym._ZN5alloc5alloc15exchange_malloc17h0460a90bbf52bd83E.1386
mov r13, rax
push 1
pop rax
mov qword [r13], rax
mov qword [r13 + 8], rax
lea rcx, [r13 + 0x10]
mov r8d, 0xb0
mov rdx, r15
call sym.memcpy
and qword [r13 + 0xc0], 0
lock inc qword [r13]
jle 0x14014d8d3
lea rdi, [r13 + 0x80]
mov qword [rsp + 0x80], rdi
mov rax, qword [rbx + 0x40]
cmp rax, rdi
je 0x14014d8eb
mov qword [r13 + 0x88], rax
and qword [r13 + 0x80], 0
test rax, rax
je 0x14014d41e
mov qword [rax], rdi
mov qword [rbx + 0x40], rdi
cmp qword [rbx + 0x48], 0
jne 0x14014d42d
mov qword [rbx + 0x48], rdi
mov qword [rsp + 0x210], r13
mov rcx, r14
call sym.__parking_lot::raw_mutex::RawMutex_as_lock_api::mutex::RawMutex_::unlock::h11e352a4a5494f2f
cmp qword [rsp + 0x1f0], 0
je 0x14014d47d
movabs r15, 0xc00000003
jmp 0x14014d794
mov rcx, qword [rsi + 0x28]
call sym.core::ptr::drop_in_place_std::net::tcp::TcpStream_::h13c8683dc2506f12
push 2
pop rbx
jmp 0x14014d7fc
cmp al, 2
jne 0x14014d52c
mov r12, qword [rsp + 0x130]
jmp 0x14014d661
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x1e8]
mov rax, qword [rbx]
lea r15, [rax + 0x18]
mov qword [rsp + 0x218], r15
mov qword [rsp + 0x200], rax
lea rdx, [rax + 0x20]
lea r14, [rsp + 0x130]
mov rcx, r14
call sym.std::sync::mutex::Mutex_T_::lock::h14d88b108600a28f
cmp qword [r14], 0
jne 0x14014d90b
mov rbx, qword [rsp + 0x138]
mov r8b, byte [rsp + 0x140]
mov qword [rsp + 0x230], rbx
mov byte [rsp + 0x238], r8b
lea rdx, [rbx + 8]
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14014d502
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx + rax*8 - 8]
mov rax, qword [rax]
cmp rax, 0x20
jbe 0x14014d5b1
mov rcx, qword [r15]
mov r15d, r8d
call sym.mio::sys::windows::selector::AfdGroup::_alloc_afd_group::h0c73efb241bbf71c
mov r8d, r15d
mov r15, rax
test rax, rax
je 0x14014d5b1
mov rcx, rbx
mov edx, r8d
call sym._ZN4core3ptr102drop_in_place_LT_std..sync..mutex..MutexGuard_LT_dyn_u20_std..io..Write_u2b_core..marker..Send_GT__GT_17hc98d6b
jmp 0x14014d794
lea rcx, [rsi + 0x40]
call sym.__tokio::io::poll_evented::PollEvented_E__as_core::ops::deref::Deref_::deref::he12ffdd13a0f61b6
mov rcx, qword [rax]
lea r9, [rsp + 0x80]
and dword [r9], 0
mov dword [rsp + 0x130], 4
mov qword [rsp + 0x20], rbx
mov edx, 0xffff
mov r8d, 0x1007
call sub.ws2_32.dll_getsockopt
cmp eax, 0xffffffff
je 0x14014d651
movsxd r12, dword [rsp + 0x80]
test r12, r12
jne 0x14014d659
mov rbx, qword [rsi + 0x40]
mov r12, qword [rsi + 0x48]
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x270], rax
movups xmm0, xmmword [rsi + 0x50]
movaps xmmword [rsp + 0x260], xmm0
mov byte [rsi + 0x70], 1
cmp rbx, 3
je 0x14014d0c5
jmp 0x14014d7d4
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14014d948
mov rcx, qword [rbx + 0x10]
mov r15, qword [rcx + rax*8 - 8]
lock inc qword [r15]
jle 0x14014d8d3
mov rcx, rbx
mov edx, r8d
call sym._ZN4core3ptr102drop_in_place_LT_std..sync..mutex..MutexGuard_LT_dyn_u20_std..io..Write_u2b_core..marker..Send_GT__GT_17hc98d6b
mov qword [rsp + 0x298], r15
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x48000022
call sym.mio::sys::windows::selector::try_get_base_socket::hf5f435865cb81155
cmp dword [rbx], 0
je 0x14014d66f
mov qword [rsp + 0x1f8], r15
xor r15d, r15d
lea rbx, [rsp + 0x130]
cmp r15, 0xc
je 0x14014d679
lea rax, [0x1402bc3f0]
mov r8d, dword [r15 + rax]
mov rcx, rbx
mov rdx, rdi
call sym.mio::sys::windows::selector::try_get_base_socket::hf5f435865cb81155
cmp dword [rsp + 0x130], 0
jne 0x14014d64b
mov rax, rdi
mov r14, qword [rsp + 0x138]
cmp r14, rdi
jne 0x14014d69b
add r15, 4
jmp 0x14014d615
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
shl r12, 0x20
or r12, 2
lea rcx, [rsi + 0x40]
call sym.core::ptr::drop_in_place_tokio::net::tcp::stream::TcpStream_::ha5dff80a5f7106fd
jmp 0x14014d7cd
mov r14, qword [rsp + 0x88]
jmp 0x14014d6a3
mov r15d, dword [rsp + 0x84]
shl r15, 0x20
or r15, 2
lea rcx, [rsp + 0x298]
call sym.core::ptr::drop_in_place_alloc::sync::Arc_mio::sys::windows::afd::Afd__::hb15af9553bc139a2
jmp 0x14014d794
mov r15, qword [rsp + 0x1f8]
push 0x78
pop rcx
call sym._ZN5alloc5alloc15exchange_malloc17h0460a90bbf52bd83E.1162
mov rbx, rax
push 1
pop rax
mov qword [rbx], rax
mov qword [rbx + 8], rax
and word [rbx + 0x10], 0
and dword [rbx + 0x18], 0
lea rdx, [rbx + 0x10]
mov qword [rbx + 0x20], r15
xorps xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
movups xmmword [rbx + 0x38], xmm0
movups xmmword [rbx + 0x48], xmm0
mov qword [rbx + 0x58], r14
movups xmmword [rbx + 0x60], xmm0
and word [rbx + 0x70], 0
lea r15, [rsp + 0x130]
mov rcx, r15
call sym.std::sync::mutex::Mutex_T_::lock::h3109e11e4907b880
cmp qword [r15], 0
jne 0x14014da14
mov rcx, qword [rsp + 0x138]
mov dl, byte [rsp + 0x140]
mov dword [rcx + 0x58], 0x19d
mov rax, qword [rsp + 0x70]
mov qword [rcx + 0x50], rax
call sym._ZN4core3ptr102drop_in_place_LT_std..sync..mutex..MutexGuard_LT_dyn_u20_std..io..Write_u2b_core..marker..Send_GT__GT_17hc98d6b
mov r14, qword [rsp + 0x200]
lock inc qword [r14]
jle 0x14014d8d3
lock inc qword [rbx]
jle 0x14014d8d3
lea r15, [r14 + 0x10]
mov qword [rsp + 0x130], r14
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x148], 3
mov qword [rsp + 0x138], rbx
mov rcx, r15
mov rdx, rbx
call sym.mio::sys::windows::selector::SelectorInner::queue_state::h982caf5907db9457
mov rcx, r15
call sym.mio::sys::windows::selector::SelectorInner::update_sockets_events_if_polling::h51078a301fb61f8d
test rax, rax
je 0x14014d834
mov r15, rax
lea rcx, [rsp + 0x130]
call sym.core::ptr::drop_in_place_mio::sys::windows::InternalState_::h2457a2f8d3f6e956
lea rcx, [rsp + 0x210]
call sym.core::ptr::drop_in_place_alloc::sync::Arc_tokio::runtime::io::scheduled_io::ScheduledIo__::h1c939db3a71629c1
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x220]
call sym.core::ptr::drop_in_place_tokio::runtime::scheduler::Handle_::h5b1edeb274978f41
lea rcx, [rsp + 0x1e8]
call sym.core::ptr::drop_in_place_mio::net::tcp::stream::TcpStream_::hd73f77162b5c289b
mov r12, r15
mov r14, qword [rsp + 0x40]
mov byte [r14], 1
push 2
pop rbx
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0x250], rax
movaps xmm0, xmmword [rsp + 0x260]
movaps xmmword [rsp + 0x240], xmm0
mov rcx, r13
call sym._ZN4core3ptr97drop_in_place_LT_tokio..net..tcp..stream..TcpStream..connect_mio.._u7b__u7b_closure_u7d__u7d__GT_17h45c8de11bf89
mov qword [rdi], rbx
mov qword [rdi + 8], r12
movaps xmm0, xmmword [rsp + 0x240]
movups xmmword [rdi + 0x10], xmm0
mov rax, qword [rsp + 0x250]
mov qword [rdi + 0x20], rax
mov al, 1
mov byte [rsi + 0x78], al
lea rsp, [rbp + 0x238]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [rsp + 0x140]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x280], xmm0
push 0x20
pop rcx
call sym._ZN5alloc5alloc15exchange_malloc17h0460a90bbf52bd83E.1162
mov r15, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
movaps xmm0, xmmword [rsp + 0x280]
movups xmmword [rax + 0x10], xmm0
xor ecx, ecx
call sym._ZN4core3ptr106drop_in_place_LT_core..option..Option_LT_alloc..boxed..Box_LT_mio..sys..windows..InternalState_GT__GT__GT_17hb1
mov rcx, qword [rsp + 0x208]
cmp rcx, 2
jne 0x14014d88e
mov r13, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
jmp 0x14014d7cd
lea rax, [rsi + 0x40]
mov qword [rsi + 0x40], rcx
mov qword [rsi + 0x48], r12
mov qword [rsi + 0x50], r13
mov qword [rsi + 0x58], rdi
mov qword [rsi + 0x60], r15
mov qword [rsi + 0x68], rax
mov r13, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x38]
jmp 0x14014d09f
lea rcx, str._async_fn__resumed_after_completionMiddleware_error:
lea r8, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_net_tcp_socket.rs
jmp 0x14014d8e3
ud2
lea rcx, str._async_fn__resumed_after_completionMiddleware_error:
lea r8, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_net_tcp_stream.rs
push 0x23
pop rdx
call dbg.panic
add rbx, 0x40
lea r8, [rsp + 0x130]
and qword [r8], 0
lea rdx, [rsp + 0x80]
mov rcx, rbx
call sym.core::panicking::assert_failed::hd3616eecfc55b974
mov rax, qword [rsp + 0x138]
mov cl, byte [rsp + 0x140]
lea r8, [rsp + 0x80]
mov qword [r8], rax
mov byte [r8 + 8], cl
lea rax, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.10_src_sys_windows_selector.rs
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, sym._ZN4core3ptr125drop_in_place_LT_std..sync..poison..PoisonError_LT_std..sync..mutex..MutexGuard_LT_hyper..proto..h2..ping..Shar
jmp 0x14014da4c
lea rax, [rsp + 0x218]
lea rdx, [rsp + 0x298]
mov qword [rdx], rax
lea rax, [sym.__T_as_core::fmt::Debug_::fmt::hae9f592e70e99485]
mov qword [rdx + 8], rax
lea rax, [rsp + 0x230]
mov qword [rdx + 0x10], rax
lea rax, [sym.__std::sync::mutex::MutexGuard_T__as_core::fmt::Debug_::fmt::h7d8c3ccb85437d20]
mov qword [rdx + 0x18], rax
push 2
pop rax
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x140], rax
and qword [rsp + 0x150], 0
movabs rcx, 0x400000020
mov qword [rsp + 0x158], rcx
mov r8b, 3
mov byte [rsp + 0x160], r8b
mov qword [rsp + 0x168], rax
mov qword [rsp + 0x178], rax
mov qword [rsp + 0x188], 1
mov qword [rsp + 0x190], rcx
mov byte [rsp + 0x198], r8b
lea r8, str.internal_error:_entered_unreachable_code:_Cannot_acquire_afd____afd_group:
lea rcx, [rsp + 0x80]
mov qword [rcx], r8
mov qword [rcx + 8], rax
mov qword [rcx + 0x20], r14
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
lea rdx, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.10_src_sys_windows_selector.rs
call dbg.panic_fmt
mov rax, qword [rsp + 0x138]
mov cl, byte [rsp + 0x140]
lea r8, [rsp + 0x80]
mov qword [r8], rax
mov byte [r8 + 8], cl
lea rax, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.10_src_sys_windows_selector.rs
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, sym._ZN4core3ptr125drop_in_place_LT_std..sync..poison..PoisonError_LT_std..sync..mutex..MutexGuard_LT_hyper..proto..h2..ping..Shar
push 0x2b
pop rdx
call sym.core::result::unwrap_failed::hddfc22b4e89ee7e6
int3