Function at 0x519f36
Capabilities:
Connect socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x208
mov r15, r8
mov rsi, rdx
mov r12, rcx
movzx eax, byte [rdx + 0x78]
test eax, eax
je 0x519faf
cmp eax, 3
jne 0x51a807
lea rbx, [rsi + 0x30]
lea r14, [rsi + 0x70]
movzx eax, byte [rsi + 0x70]
test eax, eax
je 0x51a068
cmp eax, 3
jne 0x51a81b
mov rax, qword [rsi + 0x68]
mov rdx, qword [rax + 0x10]
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8, r15
call fcn.0059c4aa
mov al, byte [rdi + 9]
cmp al, 3
jne 0x51a35c
mov byte [r14], 3
jmp 0x51a6e2
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x28], rcx
cmp word [rsi], 0
movzx eax, word [rsi + 0x12]
mov word [rsp + 0x50], ax
movups xmm0, xmmword [rsi + 2]
movaps xmmword [rsp + 0x40], xmm0
je 0x51a084
mov eax, dword [rsi + 0x14]
mov edx, dword [rsi + 0x18]
movzx r9d, word [rsi + 0x1c]
mov r8, qword [rsp + 0x42]
mov r10d, dword [rsp + 0x4a]
movzx r11d, word [rsp + 0x4e]
movzx edi, word [rsp + 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0xcc], xmm0
movups xmmword [rsp + 0xdc], xmm0
movups xmmword [rsp + 0xec], xmm0
and dword [rsp + 0x12c], 0
movups xmmword [rsp + 0xfc], xmm0
movups xmmword [rsp + 0x10c], xmm0
rol r9w, 8
movups xmmword [rsp + 0x11c], xmm0
mov qword [rsp + 0xb8], r8
mov dword [rsp + 0xc0], r10d
mov word [rsp + 0xc4], r11w
mov word [rsp + 0xc6], di
mov dword [rsp + 0xc8], edx
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x51a0c9
mov qword [rsp + 0x28], r12
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rbx
jmp 0x51a144
lea rdx, [rsp + 0xb8]
movzx r9d, word [rsp + 0x44]
mov eax, dword [rsp + 0x40]
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
mov r8d, 0x10
mov r10w, 2
lea rdx, [rsp + 0xb0]
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 0x51a114
call fcn.004a1ed9
mov rdi, rax
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.00512683
cmp al, 0xd
jne 0x51a349
lea rcx, [rsp + 0x40]
call fcn.00491f89
mov qword [rsp + 0x28], r12
mov qword [rsp + 0xa0], r15
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x30], rax
and qword [rsi + 0x38], 0
lea rax, [rsi + 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rsi + 0x70]
mov qword [rsp + 0x38], rax
mov byte [rsi + 0x70], 0
mov r13, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x38]
lea rbx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.32.0_src_net_tcp_stream.rs
mov rcx, rbx
call fcn.0059b4b2
mov rbp, rax
mov r15, rdx
mov qword [rsp + 0x140], r13
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], rdx
lea r14, [rdx + 0x138]
lea rax, [rdx + 0xd0]
test rbp, rbp
mov ecx, 0xd0
mov r12d, 0x138
cmove r12, rcx
cmove r14, rax
mov rcx, r14
mov rdx, rbx
call fcn.005982d7
add r14, 0x20
mov rcx, r14
call fcn.0059668d
mov rbx, rax
mov r14d, edx
cmp byte [rax + 0x38], 0
je 0x51a1ef
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
mov r8d, 0x38
mov cl, 0x27
call fcn.004a151b
mov r15, rax
mov rcx, rbx
mov edx, r14d
call fcn.00598751
jmp 0x51a68c
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x150], rbp
and qword [rsp + 0x57], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x47], xmm0
mov rax, qword [rsp + 0x5f]
mov qword [rsp + 0xcf], rax
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0xc0], xmm1
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xb0], xmm1
movups xmmword [rsp + 0x48], xmm0
and qword [rsp + 0x58], 0
mov ecx, 0x100
mov edx, pe_nt_image_headers64
call fcn.004ad1f5
mov r13, rax
mov eax, 1
mov qword [r13], rax
mov qword [r13 + 8], rax
and qword [r13 + 0x80], 0
mov byte [r13 + 0x88], 0
movaps xmm0, xmmword [rsp + 0xb0]
movaps xmm1, xmmword [rsp + 0xc0]
movups xmmword [r13 + 0x89], xmm0
movups xmmword [r13 + 0x99], xmm1
mov rax, qword [rsp + 0xcf]
mov qword [r13 + 0xa8], rax
and qword [r13 + 0xb0], 0
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [r13 + 0xb8], xmm0
movups xmmword [r13 + 0xc8], xmm1
lock inc qword [r13]
jle 0x51a817
lea rdi, [r13 + 0x80]
mov qword [rsp + 0x40], rdi
mov rax, qword [rbx + 0x28]
cmp rax, rdi
mov r15, qword [rsp + 0x90]
je 0x51a835
mov qword [r13 + 0xc8], rax
and qword [r13 + 0xc0], 0
test rax, rax
je 0x51a313
mov qword [rax + 0x40], rdi
mov qword [rbx + 0x28], rdi
cmp qword [rbx + 0x30], 0
jne 0x51a322
mov qword [rbx + 0x30], rdi
mov qword [rsp + 0x158], r13
mov rcx, rbx
mov edx, r14d
call fcn.00598751
test r15, r15
je 0x51a376
movabs r15, 0xc00000003
jmp 0x51a67f
mov rcx, qword [rsi + 0x28]
call fcn.005116bf
mov ebx, 2
jmp 0x51a718
cmp al, 2
mov qword [rsp + 0x30], rbx
jne 0x51a3fe
mov rdi, qword [rsp + 0xb0]
jmp 0x51a561
mov rax, qword [rsp + 0x88]
mov r12, qword [rax + r12]
lea r14, [r12 + 0x18]
mov qword [rsp + 0xa8], r14
lea rdx, [r12 + 0x20]
lea rbx, [rsp + 0xb0]
mov rcx, rbx
call fcn.004a15d3
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.8_src_sys_windows_selector.rs
mov rcx, rbx
call fcn.004a1e91
mov rbx, rax
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x80], dl
lea rdx, [rax + 0x10]
mov rax, qword [rax + 0x20]
test rax, rax
je 0x51a46e
mov rcx, qword [rdx]
mov rax, qword [rcx + rax*8 - 8]
mov rax, qword [rax]
cmp rax, 0x20
jbe 0x51a494
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x78]
lea rdx, [rbx + 0x10]
mov rcx, qword [rax]
jmp 0x51a471
lea rcx, [rsi + 0x40]
call fcn.0059b046
mov rcx, qword [rax]
lea r9, [rsp + 0x40]
and dword [r9], 0
mov dword [rsp + 0xb0], 4
mov qword [rsp + 0x20], rdi
mov edx, 0xffff
mov r8d, 0x1007
call sub.WS2_32.dll_getsockopt
cmp eax, 0xffffffff
je 0x51a552
mov edi, dword [rsp + 0x40]
test rdi, rdi
jne 0x51a559
mov rbx, qword [rsi + 0x40]
mov rdi, qword [rsi + 0x48]
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x1c0], rax
movups xmm0, xmmword [rsi + 0x50]
movaps xmmword [rsp + 0x1b0], xmm0
jmp 0x51a6b8
mov rcx, qword [r14]
call fcn.004a290a
mov r15, rax
test rax, rax
je 0x51a499
mov rcx, qword [rsp + 0x78]
mov dl, byte [rsp + 0x80]
call fcn.00598751
jmp 0x51a67f
mov rbx, qword [rsp + 0x78]
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x51a854
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rcx + rax*8 - 8]
lock inc qword [rbx]
jle 0x51a817
mov qword [rsp + 0x90], r12
mov rcx, qword [rsp + 0x78]
mov dl, byte [rsp + 0x80]
call fcn.00598751
mov rbp, rbx
mov qword [rsp + 0x1e8], rbx
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, qword [rsp + 0x98]
mov r8d, 0x48000022
call fcn.004a2a9b
cmp dword [rbx], 0
je 0x51a574
xor r15d, r15d
lea r12, [0x00606e38]
lea rbx, [rsp + 0xb0]
cmp r15, 0xc
je 0x51a665
mov r8d, dword [r15 + r12]
mov rcx, rbx
mov rdx, qword [rsp + 0x98]
call fcn.004a2a9b
mov rax, qword [rsp + 0x98]
add r15, 4
cmp dword [rsp + 0xb0], 0
jne 0x51a50f
mov r14, qword [rsp + 0xb8]
cmp r14, rax
je 0x51a50f
jmp 0x51a579
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
lea rcx, [rsi + 0x40]
call fcn.00511418
mov ebx, 2
jmp 0x51a6b8
mov r14, qword [rsp + 0x48]
mov ecx, pe_nt_image_headers64
call fcn.004a0b6a
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
and qword [rbx + 0x10], 0
mov byte [rbx + 0x18], 0
and dword [rbx + 0x20], 0
lea rdx, [rbx + 0x10]
mov qword [rbx + 0x28], rbp
xorps xmm0, xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], r14
movups xmmword [rbx + 0x68], xmm0
and word [rbx + 0x78], 0
lea r14, [rsp + 0xb0]
mov rcx, r14
call fcn.00492a7c
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.8_src_sys_windows_selector.rs
mov rcx, r14
call fcn.004a19f5
mov dword [rax + 0x60], 0x19d
mov qword [rax + 0x58], rdi
mov rcx, rax
call fcn.00598751
mov r12, qword [rsp + 0x90]
lock inc qword [r12]
jle 0x51a817
lock inc qword [rbx]
jle 0x51a817
lea r14, [r12 + 0x10]
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xc0], rdi
mov byte [rsp + 0xc8], 3
mov qword [rsp + 0xb8], rbx
mov rcx, r14
mov rdx, rbx
call fcn.004a2802
mov rcx, r14
call fcn.004a284e
test rax, rax
je 0x51a755
mov r15, rax
lea rcx, [rsp + 0xb0]
call fcn.004a2b08
jmp 0x51a67f
mov r15d, dword [rsp + 0x44]
shl r15, 0x20
or r15, 2
lea rcx, [rsp + 0x1e8]
call fcn.004a0da4
lea rcx, [rsp + 0x158]
call fcn.0059647d
mov r12, qword [rsp + 0x28]
lea rcx, [rsp + 0x160]
call fcn.00595c7a
lea rcx, [rsp + 0x140]
call fcn.0059a604
mov ebx, 2
mov rdi, r15
mov r14, qword [rsp + 0x38]
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x180], rax
movaps xmm0, xmmword [rsp + 0x1b0]
movaps xmmword [rsp + 0x170], xmm0
mov byte [r14], 1
cmp rbx, 3
jne 0x51a6ee
mov qword [r12], 3
mov al, 3
jmp 0x51a73e
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x1a0], rax
movaps xmm0, xmmword [rsp + 0x170]
movaps xmmword [rsp + 0x190], xmm0
mov rcx, qword [rsp + 0x30]
call fcn.00519f1b
mov qword [r12], rbx
mov qword [r12 + 8], rdi
movaps xmm0, xmmword [rsp + 0x190]
movups xmmword [r12 + 0x10], xmm0
mov rax, qword [rsp + 0x1a0]
mov qword [r12 + 0x20], rax
mov al, 1
mov byte [rsi + 0x78], al
add rsp, 0x208
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0xc0]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x1d0], xmm0
mov ecx, 0x20
call fcn.004a0b6a
mov r14, rax
mov qword [rax], r12
mov qword [rax + 8], rbx
movaps xmm0, xmmword [rsp + 0x1d0]
movups xmmword [rax + 0x10], xmm0
mov rcx, qword [rsp + 0x148]
call fcn.004a2b3d
mov ebx, 2
mov rbp, qword [rsp + 0x150]
cmp rbp, 2
jne 0x51a7bf
mov r12, qword [rsp + 0x28]
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x88]
jmp 0x51a6b8
mov rcx, qword [rsp + 0x140]
lea rax, [rsi + 0x40]
mov qword [rsi + 0x40], rbp
mov rdx, qword [rsp + 0x88]
mov qword [rsi + 0x48], rdx
mov qword [rsi + 0x50], r13
mov qword [rsi + 0x58], rcx
mov qword [rsi + 0x60], r14
mov qword [rsi + 0x68], rax
mov r12, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0xa0]
jmp 0x519f84
lea rcx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chain_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_util_0.7.9_src_util_poll_buf.rs
lea r8, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.32.0_src_net_tcp_socket.rs
jmp 0x51a829
ud2
lea rcx, str._async_fn__resumed_after_completionunable_to_find_any_user_specified_roots_in_the_final_cert_chain_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_util_0.7.9_src_util_poll_buf.rs
lea r8, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.32.0_src_net_tcp_stream.rs
mov edx, 0x23
call fcn.00464920
ud2
add rbx, 0x28
lea r8, [rsp + 0xb0]
and qword [r8], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.0059a6b4
ud2
lea rax, [rsp + 0xa8]
lea rdx, [rsp + 0x1e8]
mov qword [rdx], rax
lea rax, [0x004a18e5]
mov qword [rdx + 8], rax
lea rax, [rsp + 0x78]
mov qword [rdx + 0x10], rax
lea rax, [0x004a1eef]
mov qword [rdx + 0x18], rax
mov eax, 2
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], rax
and qword [rsp + 0xd0], 0
movabs rcx, 0x400000020
mov qword [rsp + 0xd8], rcx
mov r8b, 3
mov byte [rsp + 0xe0], r8b
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x108], 1
mov qword [rsp + 0x110], rcx
mov byte [rsp + 0x118], r8b
lea r8, str.internal_error:_entered_unreachable_code:_Cannot_acquire_afd____afd_group:
lea rcx, [rsp + 0x40]
mov qword [rcx], r8
mov qword [rcx + 8], rax
lea r8, [rsp + 0xb0]
mov qword [rcx + 0x20], r8
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_mio_0.8.8_src_sys_windows_selector.rs
call fcn.00463750
ud2