Function at 0x1400e338b
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 0x1400e37da
lea rsi, str.127.0.0.1:34254
lea rcx, [rbp + 0x50]
mov qword [rcx], rsi
mov qword [rcx + 8], 0xf
call fcn.140034b10
mov rdi, rax
test dil, 1
je 0x1400e3457
mov rbx, qword [rbp + 0x58]
test rbx, rbx
je 0x1400e3428
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 0x1400e3428
lea rdx, [rbp - 0x10]
mov dword [rdx + 0x10], 0xa
and qword [rdx], 0
mov byte [rdx + 0x14], 1
lea rcx, [rbp + 0x50]
call fcn.1400354d0
cmp ax, 1
jne 0x1400e342a
jmp 0x1400e3433
xor eax, eax
mov qword [rbp + 0x58], rbx
test ax, ax
je 0x1400e3457
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 0x1400e345b
xor edi, edi
xor eax, eax
or rax, rdi
test ax, ax
je 0x1400e3692
movzx eax, ax
cmp eax, 1
jne 0x1400e369e
cmp qword [rbp + 0x58], 0
jne 0x1400e369e
mov eax, dword [rbp - 8]
mov dword [rbp - 0x28], eax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov al, byte [0x14023aaf0]
push 0x20
pop rcx
push 4
pop rdx
call fcn.140024570
test rax, rax
je 0x1400e37f2
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 0x1400e3757
lea r14, [rax + 0x20]
mov qword [rbp], r14
movzx ebx, word [rax]
cmp bx, 2
je 0x1400e3757
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 [0x14023aa50]
cmp rax, 3
je 0x1400e356a
mov qword [rbp - 0x20], r12
call fcn.14015c080
mov dword [rbp + 0x4c], r15d
mov qword [rbp - 0x18], r12
push 2
pop r13
test bx, bx
je 0x1400e357f
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 0x1400e35b7
test bx, bx
je 0x1400e3617
mov ax, 0x17
movups xmm0, xmmword [rbp + 0x22]
push 0x1c
jmp 0x1400e3627
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1400e35d2
mov r12d, eax
cmp eax, 0x2726
jne 0x1400e366a
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 0x1400e3687
mov r15, rax
mov rcx, rax
push 1
pop rdx
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x1400e35a6
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1400e365e
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 0x1400e3779
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.140068124
mov rax, r14
jmp 0x1400e3518
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
jmp 0x1400e366a
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.140038130
cmp rax, 1
jne 0x1400e36f6
mov rdi, rdx
cmp rdx, 0xf
jae 0x1400e36ec
mov al, byte [rdi + rsi]
cmp al, byte [rbp + 0x18]
je 0x1400e3717
mov qword [rbp + 8], rdi
cmp rdi, 0xf
jbe 0x1400e36c8
lea rcx, str.invalid_socket_address
call fcn.1400683b9
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.140039b00
test al, 1
jne 0x1400e3770
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.1400f1be0
cmp qword [rsi], 0
je 0x1400e37a8
mov rcx, qword [rbp + 0x58]
jmp 0x1400e36fd
lea rcx, [rbp - 0x10]
call fcn.1400e3356
test r12, r12
lea rcx, [0x1401bfbe0]
cmovne rcx, r12
jmp 0x1400e36fd
lea rcx, str.invalid_port_value
jmp 0x1400e36fd
lea rcx, [rbp - 0x10]
call fcn.1400e3356
mov rcx, qword [rbp - 0x18]
call fcn.140068124
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.1400f1dd0
cmp qword [rsi], 0
jne 0x1400e34e9
mov rcx, qword [rbp + 0x28]
jmp 0x1400e36fd
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.140159860
ud2
push 4
pop rcx
push 0x20
pop rdx
call fcn.1401592c0
ud2