Function at 0x1400e682b
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x70], 0xfffffffffffffffe
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400e6c7a
lea rsi, str.127.0.0.1:34254
lea rcx, [rbp + 0x50]
mov qword [rcx], rsi
mov qword [rcx + 8], 0xf
call fcn.140037fb0
mov rdi, rax
test dil, 1
je 0x1400e68f7
mov rbx, qword [rbp + 0x58]
test rbx, rbx
je 0x1400e68c8
mov rax, qword [rbp + 0x50]
lea rcx, [rbx - 1]
mov dl, byte [rax]
inc rax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rcx
cmp dl, 0x3a
jne 0x1400e68c8
lea rdx, [rbp - 0x10]
mov dword [rdx + 0x10], 0xa
and qword [rdx], 0
mov byte [rdx + 0x14], 1
lea rcx, [rbp + 0x50]
call fcn.140038970
cmp ax, 1
jne 0x1400e68ca
jmp 0x1400e68d3
xor eax, eax
mov qword [rbp + 0x58], rbx
test ax, ax
je 0x1400e68f7
movabs rax, 0xffffffff00
and rdi, rax
shr rdi, 8
movzx eax, dx
shl rax, 0x30
shl rdi, 0x10
or rdi, rax
push 1
pop rax
jmp 0x1400e68fb
xor edi, edi
xor eax, eax
or rax, rdi
test ax, ax
je 0x1400e6b32
movzx eax, ax
cmp eax, 1
jne 0x1400e6b3e
cmp qword [rbp + 0x58], 0
jne 0x1400e6b3e
mov eax, dword [rbp - 8]
mov dword [rbp - 0x28], eax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov al, byte [0x14023eaf0]
push 0x20
pop rcx
push 4
pop rdx
call fcn.140027a60
test rax, rax
je 0x1400e6c92
and word [rax], 0
mov rcx, rdi
shr rcx, 0x10
shr rdi, 0x30
mov word [rax + 6], di
mov dword [rax + 2], ecx
mov rcx, qword [rbp - 0x30]
mov qword [rax + 8], rcx
mov ecx, dword [rbp - 0x28]
mov dword [rax + 0x10], ecx
and dword [rax + 0x14], 0
mov rcx, rax
add rcx, 0x20
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 1
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rcx
mov rax, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
mov qword [rbp], rdx
mov rdx, qword [rbp + 0x38]
mov qword [rbp + 8], rdx
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rcx
mov rax, qword [rbp]
mov rcx, qword [rbp + 8]
mov qword [rbp - 0x38], rcx
xor r12d, r12d
cmp rax, qword [rbp - 0x38]
je 0x1400e6bf7
lea r14, [rax + 0x20]
mov qword [rbp], r14
movzx ebx, word [rax]
cmp bx, 2
je 0x1400e6bf7
mov edi, dword [rax + 0x14]
mov r15d, dword [rax + 0x18]
movzx esi, word [rax + 0x1c]
movzx eax, word [r14 - 0xe]
mov word [rbp + 0x30], ax
movups xmm0, xmmword [r14 - 0x1e]
movaps xmmword [rbp + 0x20], xmm0
mov rax, qword [0x14023ea50]
cmp rax, 3
je 0x1400e6a0a
mov qword [rbp - 0x20], r12
call fcn.14015f4a0
mov dword [rbp + 0x4c], r15d
mov qword [rbp - 0x18], r12
push 2
pop r13
test bx, bx
je 0x1400e6a1f
push 0x17
pop r13
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, r13d
push 2
pop rdx
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400e6a57
test bx, bx
je 0x1400e6ab7
mov ax, 0x17
movups xmm0, xmmword [rbp + 0x22]
push 0x1c
jmp 0x1400e6ac7
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1400e6a72
mov r12d, eax
cmp eax, 0x2726
jne 0x1400e6b0a
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, r13d
push 2
pop rdx
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400e6b27
mov r15, rax
mov rcx, rax
push 1
pop rdx
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x1400e6a46
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1400e6afe
movzx esi, word [rbp + 0x24]
mov edi, dword [rbp + 0x20]
xorps xmm0, xmm0
mov ax, 2
push 0x10
pop r8
rol si, 8
mov word [rbp + 0x50], ax
mov word [rbp + 0x52], si
mov dword [rbp + 0x54], edi
movups xmmword [rbp + 0x58], xmm0
mov eax, dword [rbp + 0x4c]
mov dword [rbp + 0x68], eax
mov rcx, r15
lea rdx, [rbp + 0x50]
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400e6c19
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
mov rcx, r15
call qword [sym.imp.ws2_32.dll_closesocket]
shl r12, 0x20
or r12, 2
mov qword [rbp - 0x20], r12
mov rcx, qword [rbp - 0x18]
call fcn.14006b5c4
mov rax, r14
jmp 0x1400e69b8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
jmp 0x1400e6b0a
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], 0xf
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 0xf
and qword [rbp], 0
mov qword [rbp + 0x10], 1
movabs rax, 0x3a0000003a
mov qword [rbp + 0x18], rax
push 0xf
pop rdi
mov cl, 0x3a
mov rdx, rsi
mov r8, rdi
call fcn.14003b5d0
cmp rax, 1
jne 0x1400e6b96
mov rdi, rdx
cmp rdx, 0xf
jae 0x1400e6b8c
mov al, byte [rdi + rsi]
cmp al, byte [rbp + 0x18]
je 0x1400e6bb7
mov qword [rbp + 8], rdi
cmp rdi, 0xf
jbe 0x1400e6b68
lea rcx, str.invalid_socket_address
call fcn.14006b859
nop
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rdi + rsi]
inc rcx
push 0xe
pop rdx
sub rdx, rdi
call fcn.14003cfa0
test al, 1
jne 0x1400e6c10
shr eax, 0x10
lea rdx, [rbp - 0x10]
mov qword [rdx], rsi
mov qword [rdx + 8], rdi
mov word [rdx + 0x10], ax
lea rsi, [rbp + 0x50]
mov rcx, rsi
call fcn.1400f5080
cmp qword [rsi], 0
je 0x1400e6c48
mov rcx, qword [rbp + 0x58]
jmp 0x1400e6b9d
lea rcx, [rbp - 0x10]
call fcn.1400e67f6
test r12, r12
lea rcx, [0x1401c2ee0]
cmovne rcx, r12
jmp 0x1400e6b9d
lea rcx, str.invalid_port_value
jmp 0x1400e6b9d
lea rcx, [rbp - 0x10]
call fcn.1400e67f6
mov rcx, qword [rbp - 0x18]
call fcn.14006b5c4
mov rcx, r15
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp qword [sym.imp.ws2_32.dll_closesocket]
mov rax, qword [rbp + 0x58]
movups xmm0, xmmword [rbp + 0x60]
lea rdx, [rbp - 0x50]
movups xmmword [rdx + 8], xmm0
mov qword [rdx], rax
lea rsi, [rbp + 0x20]
mov rcx, rsi
call fcn.1400f5270
cmp qword [rsi], 0
jne 0x1400e6989
mov rcx, qword [rbp + 0x28]
jmp 0x1400e6b9d
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str._rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_std_src_synconce.rs
push 0x2b
pop rdx
call fcn.14015cc80
ud2
push 4
pop rcx
push 0x20
pop rdx
call fcn.14015c6e0
ud2