Function at 0x1400b8db0
Capabilities:
Connect socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x228
movaps xmmword [rsp + 0x210], xmm6
mov r15, r8
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [rdx + 0x78]
test eax, eax
je 0x1400b8e40
cmp eax, 3
jne 0x1400b9b09
lea r13, [rsi + 0x70]
movzx eax, byte [rsi + 0x70]
lea r14, [rsi + 0x30]
test eax, eax
je 0x1400b8f0e
cmp eax, 3
jne 0x1400b9b2c
mov rcx, qword [rsi + 0x68]
mov rdx, qword [rcx + 0x10]
mov r8, qword [r15]
lea rbx, [rsp + 0x78]
mov rcx, rbx
mov r9b, 1
call fcn.1400e7550
movzx eax, byte [rsp + 0x81]
cmp al, 3
jne 0x1400b91b0
mov byte [r13], 3
mov qword [rdi], 3
mov al, 3
jmp 0x1400b9443
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x28], rcx
cmp word [rsi], 0
movzx eax, word [rsi + 0x12]
mov word [rsp + 0x110], ax
movups xmm0, xmmword [rsi + 2]
movaps xmmword [rsp + 0x100], xmm0
je 0x1400b8f23
mov edx, dword [rsi + 0x14]
mov r8d, dword [rsi + 0x18]
movzx eax, word [rsi + 0x1c]
mov r9, qword [rsp + 0x102]
mov r10d, dword [rsp + 0x10a]
movzx r11d, word [rsp + 0x10e]
rol ax, 8
movzx ebx, word [rsp + 0x110]
mov qword [rsp + 0x80], r9
mov dword [rsp + 0x88], r10d
mov word [rsp + 0x8c], r11w
mov word [rsp + 0x8e], bx
mov dword [rsp + 0x90], r8d
xorps xmm0, xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0xd4], xmm0
movups xmmword [rsp + 0xe4], xmm0
mov dword [rsp + 0xf4], 0
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400b8f88
mov qword [rsp + 0x168], r15
mov r12, qword [rsi + 0x30]
mov r15, qword [rsi + 0x38]
jmp 0x1400b8ff5
movzx eax, word [rsp + 0x104]
rol ax, 8
mov edx, dword [rsp + 0x100]
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], 0
mov r8d, 0x10
mov r9w, 2
mov word [rsp + 0x78], r9w
mov word [rsp + 0x7a], ax
mov dword [rsp + 0x7c], edx
mov dword [rsp + 0xf8], r8d
lea rdx, [rsp + 0x78]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x1400b8fce
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.14001a320
cmp al, 0xd
jne 0x1400b919c
mov qword [rsp + 0x168], r15
mov r12, qword [rsi + 0x28]
lea r14, [rsi + 0x30]
mov qword [rsi + 0x30], r12
mov qword [rsi + 0x38], 0
lea r13, [rsi + 0x70]
mov byte [rsi + 0x70], 0
xor r15d, r15d
mov eax, dword [0x14017d2b4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x120]
cmp eax, 1
je 0x1400b9049
test eax, eax
jne 0x1400b9b15
mov eax, dword [0x14017d2b4]
mov rcx, qword gs:[0x58]
mov rbx, qword [rcx + rax*8]
lea rcx, [rbx + 0xd0]
lea rdx, [0x1400e46c0]
call fcn.1400d3ad0
mov byte [rbx + 0x120], 1
mov eax, dword [0x14017d2b4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0xd0]
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x1400b9ab4
lea rcx, [rax + 1]
mov edx, dword [0x14017d2b4]
mov r8, qword gs:[0x58]
mov rdx, qword [r8 + rdx*8]
mov qword [rdx + 0xd0], rcx
mov rcx, qword [rdx + 0xd8]
cmp rcx, 2
je 0x1400b9ac0
mov eax, dword [0x14017d2b4]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov rbx, qword [rax + 0xe0]
mov eax, 1
mov edx, 1
lock xadd qword [rbx], rdx
test rcx, rcx
mov qword [rsp + 0x50], r12
je 0x1400b90e8
mov r12d, 0x118
test rdx, rdx
jns 0x1400b90f9
jmp 0x1400b9ab2
test rdx, rdx
js 0x1400b9ab2
mov r12d, 0xb8
xor eax, eax
mov ecx, dword [0x14017d2b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
dec qword [rcx + 0xd0]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], rbx
cmp qword [rbx + r12], 0
je 0x1400b9af1
mov cl, 1
xor eax, eax
lock cmpxchg byte [rbx + r12 + 0x20], cl
jne 0x1400b924a
cmp byte [rbx + r12 + 0x50], 0
je 0x1400b9263
call fcn.1400e5e80
mov rbp, rax
xor ecx, ecx
mov al, 1
lock cmpxchg byte [rbx + r12 + 0x20], cl
jne 0x1400b983d
mov r12, qword [rsp + 0x50]
lea rcx, [rsp + 0x128]
cmp qword [rsp + 0x120], 0
je 0x1400b938e
mov rax, qword [rsp + 0x128]
lock dec qword [rax]
jne 0x1400b93a1
call fcn.1400e47d0
jmp 0x1400b93a1
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.ws2_32.dll_closesocket]
mov ebx, 2
jmp 0x1400b9422
cmp al, 2
jne 0x1400b91be
mov rbp, qword [rsp + 0x78]
jmp 0x1400b982f
mov rcx, qword [rsi + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x1400b9b6a
mov dword [rsp + 0x130], 0
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x130]
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.ws2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400b981f
movsxd rbp, dword [rsp + 0x130]
test rbp, rbp
jne 0x1400b9827
mov rbx, qword [rsi + 0x40]
mov rbp, qword [rsi + 0x48]
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x1d0], rax
movups xmm0, xmmword [rsi + 0x50]
movaps xmmword [rsp + 0x1c0], xmm0
mov byte [rsi + 0x70], 1
cmp rbx, 3
je 0x1400b8e32
jmp 0x1400b93fa
lea rcx, [rbx + r12]
add rcx, 0x20
call fcn.1401076d0
cmp byte [rbx + r12 + 0x50], 0
jne 0x1400b914b
mov qword [rsp + 0x68], r13
movzx eax, byte [0x14017d2b0]
mov edx, 0x180
xor ecx, ecx
call fcn.1400e0010
test rax, rax
je 0x1400b9b38
mov r13, rax
mov qword [rsp + 0x58], r14
and r13, 0xffffffffffffff80
mov qword [r13 + 0x78], rax
mov qword [r13 + 0x80], 1
mov qword [r13 + 0x88], 1
mov qword [r13 + 0x140], 0
xorps xmm0, xmm0
movaps xmmword [r13 + 0x100], xmm0
movaps xmmword [r13 + 0x110], xmm0
movaps xmmword [r13 + 0x120], xmm0
mov qword [r13 + 0x130], 0
lock inc qword [r13 + 0x80]
jle 0x1400b9ab2
lea r14, [r13 + 0x100]
mov qword [rsp + 0x130], r14
mov rax, qword [rbx + r12 + 0x40]
cmp r14, rax
je 0x1400b9b47
sub r13, 0xffffffffffffff80
mov qword [r13 + 0x88], rax
mov qword [r13 + 0x80], 0
test rax, rax
je 0x1400b9324
mov qword [rax], r14
mov qword [rbx + r12 + 0x40], r14
cmp qword [rbx + r12 + 0x48], 0
je 0x1400b9462
xor ecx, ecx
mov al, 1
lock cmpxchg byte [rbx + r12 + 0x20], cl
jne 0x1400b9478
test r15, r15
je 0x1400b948e
movabs rbp, 0xc00000003
mov rax, qword [rsp + 0x128]
lock dec qword [rax]
jne 0x1400b93a1
call fcn.1400e4710
test r15, r15
je 0x1400b93e7
lea rbx, [r15 + 8]
mov rcx, qword [r15 + 8]
call fcn.140048130
mov rax, qword [r15]
lock dec qword [rax]
jne 0x1400b93c4
mov rcx, r15
call fcn.140005910
mov rax, qword [rbx]
lock dec qword [rax]
jne 0x1400b93d5
mov rcx, rbx
call fcn.1400e54f0
mov rcx, qword [0x14017d208]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.ws2_32.dll_closesocket]
mov byte [r13], 1
mov ebx, 2
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x1b0], rax
movaps xmm0, xmmword [rsp + 0x1c0]
movaps xmmword [rsp + 0x1a0], xmm0
mov rcx, r14
call fcn.1400b8ca0
mov qword [rdi], rbx
mov qword [rdi + 8], rbp
movaps xmm0, xmmword [rsp + 0x1a0]
movups xmmword [rdi + 0x10], xmm0
mov rax, qword [rsp + 0x1b0]
mov qword [rdi + 0x20], rax
mov al, 1
mov byte [rsi + 0x78], al
movaps xmm6, xmmword [rsp + 0x210]
add rsp, 0x228
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rbx + r12 + 0x48], r14
xor ecx, ecx
mov al, 1
lock cmpxchg byte [rbx + r12 + 0x20], cl
je 0x1400b9346
lea rcx, [rbx + r12]
add rcx, 0x20
call fcn.140107330
test r15, r15
jne 0x1400b934f
mov rbp, qword [rbx + r12]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x70], rax
lea rbx, [rbp + 0x20]
mov cl, 1
xor eax, eax
lock cmpxchg byte [rbp + 0x20], cl
jne 0x1400b9924
mov rax, qword [0x14017d2a8]
shl rax, 1
test rax, rax
jne 0x1400b993f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebp, eax
shl rbp, 0x20
or rbp, 2
lea rcx, [rsi + 0x40]
call fcn.1400adf40
jmp 0x1400b93f0
lea rcx, [rbx + r12]
add rcx, 0x20
call fcn.140107330
jmp 0x1400b9164
mov rcx, rbx
call fcn.14010c7c0
mov rax, qword [0x14017d2a8]
mov eax, dword [0x14017d2a8]
lea rcx, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.36.0_src_runtimecontextcurrent.rs
call fcn.140104950
nop
scasb al, byte [rdi]
add al, 0