Function at 0x140047180
Capabilities:
Connect socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov r14, r8
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [rdx + 0x78]
test eax, eax
je 0x1400471d3
cmp eax, 3
jne 0x1400478ba
lea r12, [rsi + 0x70]
lea rbp, [rsi + 0x30]
movzx eax, byte [rsi + 0x70]
test eax, eax
je 0x14004728f
cmp eax, 3
jne 0x1400478e9
mov rax, qword [rsi + 0x68]
jmp 0x1400475b8
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 0x14004729c
mov edx, dword [rsi + 0x14]
mov r8d, dword [rsi + 0x18]
movzx eax, word [rsi + 0x1c]
mov r9, qword [rsp + 0x52]
mov r10d, dword [rsp + 0x5a]
movzx r11d, word [rsp + 0x5e]
movzx ebx, word [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rsp + 0xdc], xmm0
movups xmmword [rsp + 0xec], xmm0
movups xmmword [rsp + 0xfc], xmm0
movups xmmword [rsp + 0x10c], xmm0
movups xmmword [rsp + 0x11c], xmm0
movups xmmword [rsp + 0x12c], xmm0
rol ax, 8
mov dword [rsp + 0x13c], 0
mov qword [rsp + 0xc8], r9
mov dword [rsp + 0xd0], r10d
mov word [rsp + 0xd4], r11w
mov word [rsp + 0xd6], bx
mov dword [rsp + 0xd8], r8d
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400472e9
mov r15, qword [rsi + 0x30]
mov r13, qword [rsi + 0x38]
jmp 0x14004735b
lea r8, [rsp + 0xc8]
movzx eax, word [rsp + 0x54]
rol ax, 8
mov edx, dword [rsp + 0x50]
xorps xmm0, xmm0
movups xmmword [r8 + 0x60], xmm0
movups xmmword [r8 + 0x50], xmm0
movups xmmword [r8 + 0x40], xmm0
movups xmmword [r8 + 0x30], xmm0
movups xmmword [r8 + 0x20], xmm0
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8], xmm0
mov qword [r8 + 0x70], 0
mov r8d, 0x10
mov r9w, 2
mov word [rsp + 0xc0], r9w
mov word [rsp + 0xc2], ax
mov dword [rsp + 0xc4], edx
mov dword [rsp + 0x140], r8d
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x14004733c
call qword [sym.imp.kernel32.dll_GetLastError]
mov r15d, eax
shl r15, 0x20
or r15, 2
mov rcx, r15
call case.0x14000bbb2.329
cmp al, 0xd
jne 0x14004757c
mov r15, qword [rsi + 0x28]
lea rbp, [rsi + 0x30]
mov qword [rsi + 0x30], r15
mov qword [rsi + 0x38], 0
lea r12, [rsi + 0x70]
mov byte [rsi + 0x70], 0
xor r13d, r13d
mov eax, dword [0x140214214]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x120]
cmp eax, 1
je 0x1400473af
test eax, eax
jne 0x1400478d2
mov eax, dword [0x140214214]
mov rcx, qword gs:[0x58]
mov rbx, qword [rcx + rax*8]
lea rcx, [rbx + 0xd0]
lea rdx, [0x14017f090]
call fcn.14014b400
mov byte [rbx + 0x120], 1
mov eax, dword [0x140214214]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax + 0xd0]
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
ja 0x140047863
lea rax, [rcx + 1]
mov edx, dword [0x140214214]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
mov qword [rdx + 0xd0], rax
mov rax, qword [rdx + 0xd8]
cmp rax, 2
je 0x14004786f
mov ecx, dword [0x140214214]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov rbx, qword [rcx + 0xe0]
mov ecx, 1
mov edx, 1
lock xadd qword [rbx], rdx
test rax, rax
mov qword [rsp + 0x78], r12
je 0x140047448
test rdx, rdx
jns 0x140047453
jmp 0x1400478a0
test rdx, rdx
js 0x1400478a0
xor ecx, ecx
mov edx, dword [0x140214214]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
dec qword [rdx + 0xd0]
lea r12, [rbx + 0x128]
lea rdx, [rbx + 0xc8]
test rax, rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rbx
mov eax, 0xc8
mov r13d, 0x128
cmove r13, rax
cmove r12, rdx
cmp qword [rbx + r13], 0
je 0x1400478a2
mov cl, 1
xor eax, eax
lock cmpxchg byte [r12 + 0x20], cl
jne 0x140047674
lea rcx, [r12 + 0x28]
call fcn.1401834a0
mov rcx, rax
xor r8d, r8d
mov al, 1
lock cmpxchg byte [r12 + 0x20], r8b
mov r15, rdx
sete al
test rcx, rcx
je 0x1400474fe
test al, al
jne 0x14004772a
add r12, 0x20
mov rcx, r12
call fcn.1401b69a0
jmp 0x14004772a
mov qword [rsp + 0x70], rbp
test al, al
je 0x1400476a2
mov rbp, r15
sub rbp, 0xffffffffffffff80
mov rdx, qword [rbx + r13]
lea rcx, [rsp + 0x40]
mov r8, rbp
mov r9b, 3
call fcn.140131850
test rax, rax
je 0x140047590
mov r13, rax
mov cl, 1
xor eax, eax
lock cmpxchg byte [r12 + 0x20], cl
jne 0x1400476b1
mov rax, qword [rbp]
test rax, rax
je 0x1400476c8
mov rcx, qword [r15 + 0x88]
mov qword [rax + 8], rcx
mov rax, qword [r15 + 0x88]
test rax, rax
jne 0x1400476e4
cmp qword [r12 + 0x48], rbp
jne 0x140047703
lea rax, [r12 + 0x48]
jmp 0x1400476e4
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.ws2_32.dll_closesocket]
mov ebx, 2
jmp 0x14004780b
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
lea rax, [rsi + 0x40]
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0x50], r15
movups xmmword [rsi + 0x58], xmm1
mov qword [rsi + 0x68], rax
mov rbp, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rdx, qword [rax + 0x10]
lea r15, [rsp + 0x30]
mov rcx, r15
mov r8, r14
mov r9b, 1
call fcn.140183160
movzx eax, byte [rsp + 0x39]
cmp al, 3
jne 0x1400475eb
mov byte [r12], 3
mov qword [rdi], 3
mov al, 3
jmp 0x14004782c
cmp al, 2
jne 0x1400475f9
mov r15, qword [rsp + 0x30]
jmp 0x140047694
mov rcx, qword [rsi + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x140047901
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.ws2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x140047683
movsxd r15, dword [rsp + 0x40]
test r15, r15
jne 0x14004768c
mov rbx, qword [rsi + 0x40]
mov r15, qword [rsi + 0x48]
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rsi + 0x50]
movaps xmmword [rsp + 0x80], xmm0
mov byte [rsi + 0x70], 1
cmp rbx, 3
je 0x1400475dd
jmp 0x1400477e3
lea rcx, [r12 + 0x20]
call fcn.1401b6dc0
jmp 0x1400474c1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r15d, eax
shl r15, 0x20
or r15, 2
lea rcx, [rsi + 0x40]
call fcn.140037de0
jmp 0x1400477b9
lea rcx, [r12 + 0x20]
call fcn.1401b69a0
jmp 0x14004750b
lea rcx, [r12 + 0x20]
call fcn.1401b6dc0
mov rax, qword [rbp]
test rax, rax
jne 0x14004754c
cmp qword [r12 + 0x40], rbp
jne 0x140047703
mov rax, qword [r15 + 0x88]
mov qword [r12 + 0x40], rax
test rax, rax
je 0x140047567
mov rcx, qword [r15 + 0x80]
mov qword [rax], rcx
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
lock dec qword [r15]
jne 0x140047703
mov rcx, r15
call fcn.14012cd20
xor ecx, ecx
mov al, 1
lock cmpxchg byte [r12 + 0x20], cl
jne 0x140047843
lock dec qword [r15]
mov rbp, qword [rsp + 0x70]
jne 0x140047727
mov rcx, r15
call fcn.14012cd20
mov r15, r13
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x30], 0
je 0x140047749
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140047759
call fcn.14017f1a0
jmp 0x140047759
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140047759
call fcn.14017f0e0
mov r12, qword [rsp + 0x48]
test r12, r12
je 0x1400477a9
lea r14, [r12 + 8]
mov rcx, qword [r12 + 8]
call fcn.140130870
mov rax, qword [r12]
lock dec qword [rax]
jne 0x140047784
mov rcx, r12
call fcn.14019adf0
mov rax, qword [r14]
lock dec qword [rax]
jne 0x140047795
mov rcx, r14
call fcn.140040600
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x140214150]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ws2_32.dll_closesocket]
mov r12, qword [rsp + 0x78]
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0x80], xmm0
mov byte [r12], 1
mov ebx, 2
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xa0], xmm0
mov rcx, rbp
call fcn.14003cb10
mov qword [rdi], rbx
mov qword [rdi + 8], r15
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rdi + 0x10], xmm0
mov rax, qword [rsp + 0xb0]
mov qword [rdi + 0x20], rax
mov al, 1
mov byte [rsi + 0x78], al
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add r12, 0x20
mov rcx, r12
call fcn.1401b69a0
lock dec qword [r15]
mov rbp, qword [rsp + 0x70]
je 0x14004771f
jmp 0x140047727
lea rcx, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_src_runtimecontextcurrent.rs
call fcn.1401b2140
mov eax, dword [0x140214214]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov qword [rax + 0xd0], rcx
xor eax, eax
mov byte [rsp + 0x30], al
lea rdx, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_src_net_tcp_stream.rs
lea rcx, [rsp + 0x30]
call fcn.1401b0a30
ud2
lea rcx, str.A_Tokio_1.x_context_was_found__but_IO_is_disabled._Call__enable_io__on_the_runtime_builder_to_enable_IO.A_Tokio_1.x_context_was_found__but_timers_are_disabled._Call__enable_time__on_the_runtime_builder_to_enable_timers.Oh_no__We_never_placed_the_Core_back__this_is_a_bug_
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_src_net_tcp_stream.rs
mov edx, 0x68
call fcn.1401b2260
lea rcx, str._async_fn__resumed_after_completion
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_src_net_tcp_socket.rs
mov edx, 0x23
call fcn.1401b1e10
mov al, 1
mov byte [rsp + 0x30], al
lea rdx, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_src_net_tcp_stream.rs
lea rcx, [rsp + 0x30]
call fcn.1401b0a30
lea rcx, str._async_fn__resumed_after_completion
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_src_net_tcp_stream.rs
mov edx, 0x23
call fcn.1401b1e10
lea rcx, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_srciopoll_evented.rs
call fcn.1401b2240
int3