Function at 0x140178652
Capabilities:
Connect socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x338
lea rbp, [rsp + 0x80]
and rsp, 0xffffffffffffff80
mov r13, r8
mov rsi, rdx
mov rbx, rcx
movzx eax, byte [rdx + 0x78]
push 2
pop r15
test eax, eax
je 0x1401786dc
cmp eax, 3
jne 0x140178ffc
lea r12, [rsi + 0x70]
lea r14, [rsi + 0x30]
movzx eax, byte [rsi + 0x70]
test eax, eax
je 0x1401787a5
cmp eax, 3
jne 0x14017900e
mov rax, qword [rsi + 0x68]
mov rdx, qword [rax + 0x10]
lea rdi, [rsp + 0x1a0]
mov rcx, rdi
mov r8, r13
call fcn.1401d2610
mov al, byte [rdi + 9]
cmp al, 3
jne 0x140178ad6
mov byte [r12], 3
jmp 0x140178ebc
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x28], rcx
cmp word [rsi], 0
movzx eax, word [rsi + 0x12]
mov word [rsp + 0xd0], ax
movups xmm0, xmmword [rsi + 2]
movaps xmmword [rsp + 0xc0], xmm0
je 0x1401787d2
mov eax, dword [rsi + 0x14]
mov edx, dword [rsi + 0x18]
movzx r9d, word [rsi + 0x1c]
mov r8, qword [rsp + 0xc2]
mov r10d, dword [rsp + 0xca]
movzx r11d, word [rsp + 0xce]
movzx edi, word [rsp + 0xd0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x1bc], xmm0
movups xmmword [rsp + 0x1cc], xmm0
movups xmmword [rsp + 0x1dc], xmm0
and dword [rsp + 0x21c], 0
movups xmmword [rsp + 0x1ec], xmm0
movups xmmword [rsp + 0x1fc], xmm0
rol r9w, 8
movups xmmword [rsp + 0x20c], xmm0
mov qword [rsp + 0x1a8], r8
mov dword [rsp + 0x1b0], r10d
mov word [rsp + 0x1b4], r11w
mov word [rsp + 0x1b6], di
mov dword [rsp + 0x1b8], edx
push 0x1c
pop r8
mov r10w, 0x17
jmp 0x14017881b
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r14
mov r15, qword [rsi + 0x30]
mov qword [rsp + 0xb8], rsi
mov r13, qword [rsi + 0x38]
jmp 0x1401788a8
lea rdx, [rsp + 0x1a8]
movzx r9d, word [rsp + 0xc4]
mov eax, dword [rsp + 0xc0]
rol r9w, 8
xorps xmm0, xmm0
movups xmmword [rdx + 0x60], xmm0
movups xmmword [rdx + 0x50], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x20], xmm0
and qword [rdx + 0x70], 0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx], xmm0
push 0x10
pop r8
mov r10w, 2
lea rdx, [rsp + 0x1a0]
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 0x14017886c
call fcn.1400d61bd
mov rdi, rax
mov qword [rsp + 0x100], rax
mov rcx, rax
call fcn.1401715bb
cmp al, 0xd
jne 0x140178ac8
lea rcx, [rsp + 0x100]
call fcn.1401486f9
mov qword [rsp + 0xf0], r13
mov r15, qword [rsi + 0x28]
mov qword [rsi + 0x30], r15
and qword [rsi + 0x38], 0
lea rax, [rsi + 0x30]
mov qword [rsp + 0x90], rax
lea rax, [rsi + 0x70]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb8], rsi
mov byte [rsi + 0x70], 0
xor r13d, r13d
mov qword [rsp + 0xb0], rbx
lea rdi, str.C:UsersEFE.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.38.1_src_net_tcp_stream.rs
mov rcx, rdi
call fcn.1401d14db
mov r12, rax
mov r14, rdx
mov qword [rsp + 0x280], r15
mov qword [rsp + 0x288], r13
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x298], rdx
lea rsi, [rdx + 0x120]
lea rax, [rdx + 0xc0]
test r12, r12
mov ecx, 0xc0
mov ebx, 0x120
cmove rbx, rcx
cmove rsi, rax
mov rcx, rsi
mov rdx, rdi
call fcn.1401ceec6
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.14017f50d
cmp byte [rsi + 0x50], 0
je 0x14017894f
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_state
push 0x38
pop r8
mov cl, 0x27
call fcn.1400d5734
mov r15, rax
mov rcx, rdi
call fcn.14017f458
mov rsi, qword [rsp + 0xb8]
jmp 0x140178e60
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0x260], r12
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0x88], r15
lea r15, [rsp + 0x1a0]
and qword [r15 + 0x17], 0
xorps xmm0, xmm0
movups xmmword [r15 + 7], xmm0
mov rax, qword [r15 + 0x1f]
mov qword [rsp + 0x138], rax
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rsp + 0x129], xmm1
movups xmm1, xmmword [r15]
movups xmmword [rsp + 0x119], xmm1
movups xmmword [rsp + 0x109], xmm0
movaps xmmword [rsp + 0x100], xmm0
mov rax, qword [rsp + 0x130]
mov qword [r15 + 0xa0], rax
mov rax, qword [rsp + 0x138]
mov qword [r15 + 0xa8], rax
movaps xmm0, xmmword [rsp + 0x120]
movaps xmmword [r15 + 0x90], xmm0
movaps xmm0, xmmword [rsp + 0x110]
movaps xmmword [r15 + 0x80], xmm0
movaps xmm0, xmmword [rsp + 0x100]
movaps xmmword [r15 + 0x70], xmm0
mov ecx, 0x100
mov edx, pe_nt_image_headers64
call fcn.140019ed9
mov rdi, rax
push 1
pop rax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rcx, [rdi + 0x10]
mov r8d, 0xb0
mov rdx, r15
call sub.msvcrt.dll_memcpy
and qword [rdi + 0xc0], 0
lock inc qword [rdi]
jle 0x14017900c
lea r12, [rdi + 0x80]
mov qword [rsp + 0x100], r12
mov r13, rsi
mov rax, qword [rsi + 0x40]
cmp rax, r12
je 0x140179024
mov qword [rdi + 0x88], rax
and qword [rdi + 0x80], 0
test rax, rax
mov rsi, qword [rsp + 0xb8]
je 0x140178a8a
mov qword [rax], r12
mov qword [r13 + 0x40], r12
cmp qword [r13 + 0x48], 0
jne 0x140178a99
mov qword [r13 + 0x48], r12
mov qword [rsp + 0x268], rdi
mov rcx, qword [rsp + 0xf8]
call fcn.14017f458
cmp qword [rsp + 0xa8], 0
je 0x140178af3
movabs r15, 0xc00000003
jmp 0x140178e24
mov rcx, qword [rsi + 0x28]
call fcn.1401706e0
jmp 0x140178ef4
cmp al, 2
mov qword [rsp + 0x90], r14
jne 0x140178b9f
mov rdi, qword [rsp + 0x1a0]
jmp 0x140178ce7
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + rbx]
lea r15, [rax + 0x18]
mov qword [rsp + 0x278], r15
mov qword [rsp + 0xa8], rax
lea rdx, [rax + 0x20]
lea rbx, [rsp + 0x1a0]
mov rcx, rbx
call fcn.1400d57ff
cmp qword [rbx], 0
jne 0x140179044
mov rbx, qword [rsp + 0x1a8]
mov al, byte [rsp + 0x1b0]
mov qword [rsp + 0xd8], rbx
mov byte [rsp + 0xe0], al
lea rdx, [rbx + 0x10]
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x140178b72
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx + rax*8 - 8]
mov rax, qword [rax]
cmp rax, 0x20
jbe 0x140178c16
mov rcx, qword [r15]
call fcn.1400d6cb7
mov r15, rax
test rax, rax
je 0x140178c16
mov rcx, qword [rsp + 0xd8]
mov dl, byte [rsp + 0xe0]
call fcn.1400d5a24
jmp 0x140178e24
lea rcx, [rsi + 0x40]
call fcn.1401d0fee
mov rcx, qword [rax]
lea r9, [rsp + 0x100]
and dword [r9], 0
mov dword [rsp + 0x1a0], 4
mov qword [rsp + 0x20], rdi
mov edx, 0xffff
mov r8d, 0x1007
call sub.ws2_32.dll_getsockopt
cmp eax, 0xffffffff
je 0x140178cd8
movsxd rdi, dword [rsp + 0x100]
test rdi, rdi
jne 0x140178cdf
mov r15, qword [rsi + 0x40]
mov rdi, qword [rsi + 0x48]
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x2f0], rax
movups xmm0, xmmword [rsi + 0x50]
movaps xmmword [rsp + 0x2e0], xmm0
jmp 0x140178e91
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x140179081
mov rcx, qword [rbx + 0x18]
mov rbx, qword [rcx + rax*8 - 8]
lock inc qword [rbx]
jle 0x14017900c
mov qword [rsp + 0xe8], r12
mov rcx, qword [rsp + 0xd8]
mov dl, byte [rsp + 0xe0]
call fcn.1400d5a24
mov qword [rsp + 0x258], rbx
mov qword [rsp + 0x318], rbx
lea r15, [rsp + 0x100]
mov rcx, r15
mov rdx, qword [rsp + 0x88]
mov r8d, 0x48000022
call fcn.1400d6e48
cmp dword [r15], 0
je 0x140178cf5
xor r12d, r12d
lea r14, [0x14034df10]
lea r15, [rsp + 0x1a0]
cmp r12, 0xc
je 0x140178dff
mov r8d, dword [r12 + r14]
mov rcx, r15
mov rdx, qword [rsp + 0x88]
call fcn.1400d6e48
add r12, 4
cmp dword [rsp + 0x1a0], 0
jne 0x140178c98
mov rbx, qword [rsp + 0x1a8]
cmp rbx, qword [rsp + 0x88]
je 0x140178c98
jmp 0x140178cfd
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
lea rcx, [rsi + 0x40]
call fcn.1401703f5
jmp 0x140178e91
mov rbx, qword [rsp + 0x108]
mov ecx, pe_nt_image_headers64
call fcn.1400d2cd7
mov rcx, rax
push 1
pop rax
mov qword [rcx], rax
mov qword [rcx + 8], rax
and qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
and dword [rcx + 0x20], 0
lea rdx, [rcx + 0x10]
mov rax, qword [rsp + 0x258]
mov qword [rcx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
mov qword [rcx + 0x60], rbx
movups xmmword [rcx + 0x68], xmm0
mov r14, rcx
and word [rcx + 0x78], 0
lea r15, [rsp + 0x1a0]
mov rcx, r15
call fcn.1400c46ef
cmp qword [r15], 0
jne 0x140179155
mov rcx, qword [rsp + 0x1a8]
mov dl, byte [rsp + 0x1b0]
mov dword [rcx + 0x60], 0x19d
mov r12, qword [rsp + 0xe8]
mov qword [rcx + 0x58], r12
call fcn.1400d5a24
mov rbx, qword [rsp + 0xa8]
lock inc qword [rbx]
jle 0x14017900c
lock inc qword [r14]
jle 0x14017900c
lea r15, [rbx + 0x10]
mov qword [rsp + 0x1a0], rbx
mov qword [rsp + 0x1b0], r12
mov byte [rsp + 0x1b8], 3
mov qword [rsp + 0x1a8], r14
mov rcx, r15
mov rdx, r14
call fcn.1400d6ba1
mov rcx, r15
call fcn.1400d6c22
test rax, rax
je 0x140178f2c
mov r15, rax
lea rcx, [rsp + 0x1a0]
call fcn.1400d6eb5
jmp 0x140178e24
mov r15d, dword [rsp + 0x104]
shl r15, 0x20
or r15, 2
lea rcx, [rsp + 0x318]
call fcn.1400d4fa1
mov r12, qword [rsp + 0xe8]
add r13, 0x28
mov qword [rsp + 0x270], r15
mov rdi, qword [rsp + 0xf8]
mov rcx, rdi
call fcn.14017f50d
mov rcx, r13
mov rdx, r12
call fcn.1401cf29c
mov rcx, rdi
call fcn.14017f458
lea rcx, [rsp + 0x268]
call fcn.1401cbcb2
lea rcx, [rsp + 0x290]
call fcn.1401cb4e7
lea rcx, [rsp + 0x280]
call fcn.1401d079c
mov rdi, r15
mov rbx, qword [rsp + 0xb0]
push 2
pop r15
mov r12, qword [rsp + 0x98]
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0x2b0], rax
movaps xmm0, xmmword [rsp + 0x2e0]
movaps xmmword [rsp + 0x2a0], xmm0
mov byte [r12], 1
cmp r15, 3
jne 0x140178ec7
mov qword [rbx], 3
mov al, 3
jmp 0x140178f15
mov rax, qword [rsp + 0x2b0]
mov qword [rsp + 0x2d0], rax
movaps xmm0, xmmword [rsp + 0x2a0]
movaps xmmword [rsp + 0x2c0], xmm0
mov rcx, qword [rsp + 0x90]
call fcn.140178637
mov qword [rbx], r15
mov qword [rbx + 8], rdi
movaps xmm0, xmmword [rsp + 0x2c0]
movups xmmword [rbx + 0x10], xmm0
mov rax, qword [rsp + 0x2d0]
mov qword [rbx + 0x20], rax
mov al, 1
mov byte [rsi + 0x78], al
lea rsp, [rbp + 0x2b8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [rsp + 0x1b0]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x300], xmm0
push 0x20
pop rcx
call fcn.1400d2cd7
mov rcx, rbx
mov rbx, rax
mov qword [rax], rcx
mov qword [rax + 8], r14
movaps xmm0, xmmword [rsp + 0x300]
movups xmmword [rax + 0x10], xmm0
xor ecx, ecx
call fcn.1400d6eea
lea rcx, [rsp + 0x270]
and qword [rcx], 0
call fcn.1401cc7cd
mov rcx, qword [rsp + 0x260]
cmp rcx, 2
jne 0x140178fa7
mov rbx, qword [rsp + 0xb0]
push 2
pop r15
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
jmp 0x140178e91
lea rax, [rsi + 0x40]
mov qword [rsi + 0x40], rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rsi + 0x48], rcx
mov qword [rsi + 0x50], rdi
mov rcx, qword [rsp + 0x88]
mov qword [rsi + 0x58], rcx
mov qword [rsi + 0x60], rbx
mov qword [rsi + 0x68], rax
mov rbx, qword [rsp + 0xb0]
push 2
pop r15
mov r14, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov r13, qword [rsp + 0xf0]
jmp 0x1401786b0
lea rcx, str._async_fn__resumed_after_completion
lea r8, str.h7__
jmp 0x14017901c
ud2
lea rcx, str._async_fn__resumed_after_completion
lea r8, str.C:UsersEFE.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.38.1_src_net_tcp_stream.rs
push 0x23
pop rdx
call fcn.14009e210
add r13, 0x40
lea r8, [rsp + 0x1a0]
and qword [r8], 0
lea rdx, [rsp + 0x100]
mov rcx, r13
call fcn.1401d05f7
mov rax, qword [rsp + 0x1a8]
mov cl, byte [rsp + 0x1b0]
lea r8, [rsp + 0x100]
mov qword [r8], rax
mov byte [r8 + 8], cl
lea rax, str.C:UsersEFE.cargo_registry_srcindex.crates.io_6f17d22bba15001fmio_0.8.11_src_syswindows_selector.rsP
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x14034d658]
jmp 0x14017918d
lea rax, [rsp + 0x278]
lea rdx, [rsp + 0x318]
mov qword [rdx], rax
lea rax, [0x1400d5b1e]
mov qword [rdx + 8], rax
lea rax, [rsp + 0xd8]
mov qword [rdx + 0x10], rax
lea rax, [0x1400d61d3]
mov qword [rdx + 0x18], rax
push 2
pop rax
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1b0], rax
and qword [rsp + 0x1c0], 0
movabs rcx, 0x400000020
mov qword [rsp + 0x1c8], rcx
mov r8b, 3
mov byte [rsp + 0x1d0], r8b
mov qword [rsp + 0x1d8], rax
mov qword [rsp + 0x1e8], rax
mov qword [rsp + 0x1f8], 1
mov qword [rsp + 0x200], rcx
mov byte [rsp + 0x208], r8b
lea r8, str.internal_error:_entered_unreachable_code:_Cannot_acquire_afd____afd_group:
lea rcx, [rsp + 0x100]
mov qword [rcx], r8
mov qword [rcx + 8], rax
lea r8, [rsp + 0x1a0]
mov qword [rcx + 0x20], r8
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
lea rdx, str.C:UsersEFE.cargo_registry_srcindex.crates.io_6f17d22bba15001fmio_0.8.11_src_syswindows_selector.rsP
call fcn.14009d3a0
mov rax, qword [rsp + 0x1a8]
mov cl, byte [rsp + 0x1b0]
lea r8, [rsp + 0x100]
mov qword [r8], rax
mov byte [r8 + 8], cl
lea rax, str.C:UsersEFE.cargo_registry_srcindex.crates.io_6f17d22bba15001fmio_0.8.11_src_syswindows_selector.rsP
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x14034d678]
push 0x2b
pop rdx
call fcn.1400a0120
int3