Function at 0x14004f183
Capabilities:
Connect socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x238
lea rbp, [rsp + 0x80]
and rsp, 0xffffffffffffff80
mov r13, r8
mov rsi, rdx
mov r15, rcx
movzx eax, byte [rdx + 0x70]
test eax, eax
je 0x14004f20d
cmp eax, 3
jne 0x14004f9e5
lea r14, [rsi + 0x68]
movzx eax, byte [rsi + 0x68]
lea r12, [rsi + 0x30]
test eax, eax
je 0x14004f2c4
cmp eax, 3
jne 0x14004f9f7
mov rax, qword [rsi + 0x60]
mov rdx, qword [rax + 8]
lea rdi, [rsp + 0xe0]
mov rcx, rdi
mov r8, r13
call fcn.1400ae8de
mov al, byte [rdi + 9]
cmp al, 3
jne 0x14004f5a3
push 1
pop rax
mov byte [r14], 3
mov cl, 3
jmp 0x14004f951
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x28], rcx
cmp word [rsi], 0
movzx eax, word [rsi + 0x12]
mov word [rsp + 0x70], ax
movups xmm0, xmmword [rsi + 2]
movaps xmmword [rsp + 0x60], xmm0
je 0x14004f2e5
mov eax, dword [rsi + 0x14]
mov edx, dword [rsi + 0x18]
movzx r9d, word [rsi + 0x1c]
mov r8, qword [rsp + 0x62]
mov r10d, dword [rsp + 0x6a]
movzx r11d, word [rsp + 0x6e]
movzx edi, word [rsp + 0x70]
rol r9w, 8
mov qword [rsp + 0xe8], r8
mov dword [rsp + 0xf0], r10d
mov word [rsp + 0xf4], r11w
mov word [rsp + 0xf6], di
mov dword [rsp + 0xf8], edx
xorps xmm0, xmm0
movups xmmword [rsp + 0xfc], xmm0
movups xmmword [rsp + 0x10c], xmm0
movups xmmword [rsp + 0x11c], xmm0
movups xmmword [rsp + 0x12c], xmm0
and dword [rsp + 0x15c], 0
movups xmmword [rsp + 0x13c], xmm0
movups xmmword [rsp + 0x14c], xmm0
push 0x1c
pop r8
mov r10w, 0x17
jmp 0x14004f341
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x38], r15
mov rbx, qword [rsi + 0x30]
mov r14, qword [rsi + 0x38]
jmp 0x14004f3c2
movzx r9d, word [rsp + 0x64]
mov eax, dword [rsp + 0x60]
rol r9w, 8
xorps xmm0, xmm0
movups xmmword [rsp + 0xe8], xmm0
movups xmmword [rsp + 0xf8], xmm0
movups xmmword [rsp + 0x108], xmm0
movups xmmword [rsp + 0x118], xmm0
movups xmmword [rsp + 0x128], xmm0
and qword [rsp + 0x158], 0
movups xmmword [rsp + 0x138], xmm0
movups xmmword [rsp + 0x148], xmm0
push 0x10
pop r8
mov r10w, 2
lea rdx, [rsp + 0xe0]
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 0x14004f392
call fcn.140034376
mov rbx, rax
mov qword [rsp + 0x80], rax
mov rcx, rax
call fcn.140014285
cmp al, 0xd
jne 0x14004f593
lea rcx, [rsp + 0x80]
call fcn.140024c85
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x38], r15
mov rbx, qword [rsi + 0x28]
mov qword [rsi + 0x30], rbx
and qword [rsi + 0x38], 0
lea rax, [rsi + 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rsi + 0x68]
mov qword [rsp + 0x58], rax
mov byte [rsi + 0x68], 0
xor r14d, r14d
lea rdi, str._home_zed_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.38.0_src_net_tcp_stream.rs
mov rcx, rdi
call fcn.1400adf0b
mov r12, rax
mov qword [rsp + 0x198], rbx
mov qword [rsp + 0x1a0], r14
mov qword [rsp + 0x1c0], rax
lea rbx, [rax + 0xb8]
mov rcx, rbx
mov rdx, rdi
call fcn.1400abfd7
lea rdi, [r12 + 0xd8]
mov rcx, rdi
call fcn.1400abe59
mov r15, rax
mov r13d, edx
and r13b, 1
cmp byte [rax + 0x30], 0
je 0x14004f448
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.140033829
mov rbx, rax
mov rcx, r15
mov edx, r13d
call fcn.1400ac040
mov r15, qword [rsp + 0x38]
jmp 0x14004f906
mov qword [rsp + 0x1b8], rdi
lea rdi, [rsp + 0xe0]
and qword [rdi + 0x16], 0
xorps xmm0, xmm0
movups xmmword [rdi + 6], xmm0
movaps xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x8a], xmm0
mov rax, qword [rdi + 0x1e]
mov qword [rsp + 0xb8], rax
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rsp + 0xaa], xmm0
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x9a], xmm0
mov rax, qword [rsp + 0xb0]
mov qword [rdi + 0xa0], rax
mov rax, qword [rsp + 0xb8]
mov qword [rdi + 0xa8], rax
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rdi + 0x90], xmm0
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rdi + 0x80], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rdi + 0x70], xmm0
mov ecx, 0x100
mov edx, pe_nt_image_headers64
call fcn.1400aa7de
mov r14, rax
push 1
pop rax
mov qword [r14], rax
mov qword [r14 + 8], rax
lea rcx, [r14 + 0x10]
mov r8d, 0xb0
mov rdx, rdi
call sub.msvcrt.dll_memcpy
and qword [r14 + 0xc0], 0
lock inc qword [r14]
jle 0x14004f9f5
lea rcx, [r14 + 0x80]
mov qword [rsp + 0x80], rcx
mov rax, qword [r15 + 0x20]
cmp rax, rcx
je 0x14004fa0d
mov qword [r14 + 0x88], rax
and qword [r14 + 0x80], 0
test rax, rax
je 0x14004f552
mov qword [rax], rcx
mov qword [r15 + 0x20], rcx
cmp qword [r15 + 0x28], 0
jne 0x14004f561
mov qword [r15 + 0x28], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x1c8], r14
mov rcx, r15
mov edx, r13d
call fcn.1400ac040
cmp qword [rsp + 0x1a0], 0
je 0x14004f5b8
movabs rbx, 0xc00000003
jmp 0x14004f8bc
mov rcx, qword [rsi + 0x28]
call fcn.140047b56
xor edi, edi
jmp 0x14004f938
cmp al, 2
jne 0x14004f65d
mov rbx, qword [rsp + 0xe0]
jmp 0x14004f781
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x40], rax
mov rbx, qword [rbx]
lea rdi, [rbx + 0x18]
mov qword [rsp + 0x1d8], rdi
lea rdx, [rbx + 0x20]
lea r15, [rsp + 0xe0]
mov rcx, r15
call fcn.140033927
cmp qword [r15], 0
jne 0x14004fa2d
mov qword [rsp + 0x1b0], rbx
mov r15, qword [rsp + 0xe8]
mov r13b, byte [rsp + 0xf0]
mov qword [rsp + 0x1e0], r15
mov byte [rsp + 0x1e8], r13b
lea rdx, [r15 + 8]
mov rax, qword [r15 + 0x18]
test rax, rax
je 0x14004f63d
mov rcx, qword [r15 + 0x10]
mov rax, qword [rcx + rax*8 - 8]
mov rax, qword [rax]
cmp rax, 0x20
jbe 0x14004f6c8
mov rcx, qword [rdi]
call fcn.140034d98
mov rbx, rax
test rax, rax
je 0x14004f6c8
mov rcx, r15
mov edx, r13d
call fcn.1400ac040
jmp 0x14004f8bc
lea rcx, [rsi + 0x40]
call fcn.1400ada2b
mov rcx, qword [rax]
lea r9, [rsp + 0x80]
and dword [r9], 0
mov dword [rsp + 0xe0], 4
mov qword [rsp + 0x20], rdi
mov edx, 0xffff
mov r8d, 0x1007
call sub.ws2_32.dll_getsockopt
cmp eax, 0xffffffff
je 0x14004f772
movsxd rbx, dword [rsp + 0x80]
test rbx, rbx
jne 0x14004f779
mov rdi, qword [rsi + 0x40]
mov rbx, qword [rsi + 0x48]
movups xmm0, xmmword [rsi + 0x50]
movaps xmmword [rsp + 0x1f0], xmm0
jmp 0x14004f92c
mov rax, qword [r15 + 0x18]
test rax, rax
je 0x14004fa6a
mov rcx, qword [r15 + 0x10]
mov rdi, qword [rcx + rax*8 - 8]
lock inc qword [rdi]
jle 0x14004f9f5
mov rcx, r15
mov edx, r13d
call fcn.1400ac040
mov qword [rsp + 0x1a8], rdi
mov qword [rsp + 0x218], rdi
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
mov r8d, 0x48000022
call fcn.140034f29
cmp dword [rdi], 0
je 0x14004f791
xor r15d, r15d
lea r13, [0x1400f56b8]
lea rdi, [rsp + 0xe0]
cmp r15, 0xc
je 0x14004f8a0
mov r8d, dword [r15 + r13]
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
call fcn.140034f29
mov rax, qword [rsp + 0x40]
cmp dword [rsp + 0xe0], 0
jne 0x14004f76c
mov rbx, qword [rsp + 0xe8]
cmp rbx, rax
jne 0x14004f799
add r15, 4
jmp 0x14004f735
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
lea rcx, [rsi + 0x40]
call fcn.140047886
xor edi, edi
jmp 0x14004f92c
mov rbx, qword [rsp + 0x88]
push 0x78
pop rcx
call fcn.140033793
mov r15, rax
push 1
pop rax
mov qword [r15], rax
mov qword [r15 + 8], rax
and word [r15 + 0x10], 0
and dword [r15 + 0x18], 0
lea rdx, [r15 + 0x10]
mov rax, qword [rsp + 0x1a8]
mov qword [r15 + 0x20], rax
xorps xmm0, xmm0
movups xmmword [r15 + 0x28], xmm0
movups xmmword [r15 + 0x38], xmm0
movups xmmword [r15 + 0x48], xmm0
mov qword [r15 + 0x58], rbx
movups xmmword [r15 + 0x60], xmm0
and word [r15 + 0x70], 0
lea rdi, [rsp + 0xe0]
mov rcx, rdi
call fcn.140043bfc
cmp qword [rdi], 0
mov r13, qword [rsp + 0x78]
jne 0x14004fb3e
mov rcx, qword [rsp + 0xe8]
mov dl, byte [rsp + 0xf0]
mov dword [rcx + 0x58], 0x19d
mov rax, qword [rsp + 0x50]
mov qword [rcx + 0x50], rax
call fcn.1400ac040
mov rbx, qword [rsp + 0x1b0]
lock inc qword [rbx]
jle 0x14004f9f5
lock inc qword [r15]
jle 0x14004f9f5
lea rdi, [rbx + 0x10]
mov qword [rsp + 0xe0], rbx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xf0], rax
mov byte [rsp + 0xf8], 3
mov qword [rsp + 0xe8], r15
mov rcx, rdi
mov rdx, r15
call fcn.140034c82
mov rcx, rdi
call fcn.140034d03
test rax, rax
je 0x14004f96b
mov rbx, rax
lea rcx, [rsp + 0xe0]
call fcn.140034f96
jmp 0x14004f8bc
mov ebx, dword [rsp + 0x84]
shl rbx, 0x20
or rbx, 2
lea rcx, [rsp + 0x218]
call fcn.140032f04
mov r15, qword [rsp + 0x38]
mov qword [rsp + 0x1d0], rbx
mov rcx, qword [rsp + 0x1b8]
call fcn.1400abe59
mov rdi, rax
mov r14d, edx
and r14b, 1
lea rcx, [rax + 8]
mov rdx, qword [rsp + 0x50]
call fcn.1400ae6b7
mov rcx, rdi
mov edx, r14d
call fcn.1400ac040
lea rcx, [rsp + 0x1c8]
call fcn.1400aa4c3
mov r12, qword [rsp + 0x48]
lea rcx, [rsp + 0x1c0]
call fcn.1400a9d7b
lea rcx, [rsp + 0x198]
call fcn.1400ad009
xor edi, edi
mov r14, qword [rsp + 0x58]
mov byte [r14], 1
mov rcx, r12
call fcn.14004f168
mov qword [r15 + 8], rdi
mov qword [r15 + 0x10], rbx
movaps xmm0, xmmword [rsp + 0x1f0]
movups xmmword [r15 + 0x18], xmm0
mov cl, 1
xor eax, eax
mov qword [r15], rax
mov byte [rsi + 0x70], cl
lea rsp, [rbp + 0x1b8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [rsp + 0xf0]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x200], xmm0
push 0x20
pop rcx
call fcn.140033793
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], r15
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [rax + 0x10], xmm0
xor ecx, ecx
call fcn.140034fcb
lea rcx, [rsp + 0x1d0]
and qword [rcx], 0
call fcn.1400aab8f
lea rax, [rsi + 0x40]
mov qword [rsi + 0x40], r12
mov qword [rsi + 0x48], r14
mov rcx, qword [rsp + 0x40]
mov qword [rsi + 0x50], rcx
mov qword [rsi + 0x58], rdi
mov qword [rsi + 0x60], rax
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x48]
jmp 0x14004f1dd
lea rcx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chain_home_zed_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_util_0.7.11_src_util_poll_buf.rs
lea r8, str._home_zed_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.38.0_src_net_tcp_socket.rs
jmp 0x14004fa05
ud2
lea rcx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chain_home_zed_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_util_0.7.11_src_util_poll_buf.rs
lea r8, str._home_zed_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.38.0_src_net_tcp_stream.rs
push 0x23
pop rdx
call fcn.1400087a0
add r15, 0x20
lea r8, [rsp + 0xe0]
and qword [r8], 0
lea rdx, [rsp + 0x80]
mov rcx, r15
call fcn.1400acd9f
mov rax, qword [rsp + 0xe8]
mov cl, byte [rsp + 0xf0]
lea r8, [rsp + 0x80]
mov qword [r8], rax
mov byte [r8 + 8], cl
lea rax, str._home_zed_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.11_src_sys_windows_selector.rs
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x1400f4ee8]
jmp 0x14004fb76
lea rax, [rsp + 0x1d8]
lea rdx, [rsp + 0x218]
mov qword [rdx], rax
lea rax, [0x140033987]
mov qword [rdx + 8], rax
lea rax, [rsp + 0x1e0]
mov qword [rdx + 0x10], rax
lea rax, [0x14003438c]
mov qword [rdx + 0x18], rax
push 2
pop rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xf0], rax
and qword [rsp + 0x100], 0
movabs rcx, 0x400000020
mov qword [rsp + 0x108], rcx
mov r8b, 3
mov byte [rsp + 0x110], r8b
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x138], 1
mov qword [rsp + 0x140], rcx
mov byte [rsp + 0x148], 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
lea r8, [rsp + 0xe0]
mov qword [rcx + 0x20], r8
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
lea rdx, str._home_zed_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.11_src_sys_windows_selector.rs
call fcn.140007a70
mov rax, qword [rsp + 0xe8]
mov cl, byte [rsp + 0xf0]
lea r8, [rsp + 0x80]
mov qword [r8], rax
mov byte [r8 + 8], cl
lea rax, str._home_zed_.cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.11_src_sys_windows_selector.rs
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x1400f4ec8]
push 0x2b
pop rdx
call fcn.14000a9d0
int3