Function at 0x1400c7159
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, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], 0xfffffffffffffffe
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400c78c8
lea rsi, str.127.0.0.1:34254could_not_resolve_to_any_addresses
lea rcx, [rbp + 0x98]
mov qword [rcx], rsi
mov qword [rcx + 8], 0xf
call fcn.14000f910
mov rdi, rax
test dil, 1
je 0x1400c724c
mov r8, qword [rbp + 0x98]
mov r9, qword [rbp + 0xa0]
test r9, r9
je 0x1400c7237
xor ebx, ebx
cmp byte [r8], 0x3a
jne 0x1400c7237
lea r10, [r8 + 1]
lea r11, [r9 - 1]
mov r15w, 0xa
mov r14, r11
mov r12, r10
xor ecx, ecx
test r14, r14
je 0x1400c720e
lea rdx, [r12 + 1]
movzx r13d, byte [r12]
add r13d, 0xffffffd0
xor eax, eax
cmp r13d, 0xa
setb al
cmovb r12, rdx
sub r14, rax
jmp 0x1400c7210
xor eax, eax
cmp eax, 1
jne 0x1400c7264
mov eax, ecx
mul r15w
jo 0x1400c7252
add ax, r13w
setb dl
cmp r13d, 0xffff
ja 0x1400c7252
test dl, dl
jne 0x1400c7252
inc ebx
mov ecx, eax
jmp 0x1400c71e9
xor eax, eax
mov qword [rbp + 0x98], r8
mov qword [rbp + 0xa0], r9
test ax, ax
jne 0x1400c7281
xor edi, edi
xor eax, eax
jmp 0x1400c72a3
xor eax, eax
mov qword [rbp + 0x98], r10
mov qword [rbp + 0xa0], r11
jmp 0x1400c727b
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], r14
xor eax, eax
test ebx, ebx
setne al
je 0x1400c7254
cmp ax, 1
jne 0x1400c7239
movabs rax, 0xffffffff00
and rdi, rax
shr rdi, 8
movzx eax, cx
shl rax, 0x30
shl rdi, 0x10
or rdi, rax
push 1
pop rax
movzx ecx, di
or rcx, rax
cmp rcx, 1
jne 0x1400c7506
cmp qword [rbp + 0xa0], 0
jne 0x1400c7521
mov esi, edi
shr esi, 0x10
shr rdi, 0x18
xor r15d, r15d
mov eax, dword [rbp + 8]
mov dword [rbp + 0x28], eax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
mov al, byte [0x1401a72e8]
push 0x20
pop rdx
xor ecx, ecx
call fcn.1400cfc90
test rax, rax
je 0x1400c78d4
mov word [rax], r15w
mov rcx, rdi
shl rcx, 8
movzx edx, sil
or rdx, rcx
shr rdi, 0x18
mov word [rax + 6], di
mov dword [rax + 2], edx
mov rcx, qword [rbp + 0x20]
mov qword [rax + 8], rcx
mov ecx, dword [rbp + 0x28]
mov dword [rax + 0x10], ecx
and dword [rax + 0x14], 0
mov dword [rax + 0x18], ebx
mov word [rax + 0x1c], r14w
mov rcx, rax
add rcx, 0x20
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], 1
mov qword [rbp + 0x88], rcx
mov rax, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x80]
mov qword [rbp + 0x50], rdx
mov rdx, qword [rbp + 0x88]
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rcx
xor r12d, r12d
mov rax, qword [rbp + 0x48]
cmp rax, qword [rbp + 0x58]
je 0x1400c7742
lea rcx, [rax + 0x20]
mov qword [rbp + 0x48], rcx
movzx esi, word [rax]
cmp si, 2
je 0x1400c7742
mov ebx, dword [rax + 0x14]
mov r14d, dword [rax + 0x18]
movzx edi, word [rax + 0x1c]
movzx ecx, word [rax + 0x12]
mov word [rbp + 0x80], cx
movups xmm0, xmmword [rax + 2]
movaps xmmword [rbp + 0x70], xmm0
mov rax, qword [0x1401a7268]
cmp rax, 3
je 0x1400c73cc
mov qword [rbp + 0x30], r12
call fcn.1400ed490
mov qword [rbp + 0xb8], r12
push 2
pop r13
test si, si
je 0x1400c73e0
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 qword [sym.imp.ws2_32.dll_WSASocketW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400c7419
test si, si
je 0x1400c747b
mov ax, 0x17
movups xmm0, xmmword [rbp + 0x72]
push 0x1c
jmp 0x1400c748b
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1400c7434
mov r12d, eax
cmp eax, 0x2726
jne 0x1400c74de
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, r13d
push 2
pop rdx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400c74fb
mov r15, rax
mov rcx, rax
push 1
pop rdx
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x1400c7408
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1400c74d2
movzx edi, word [rbp + 0x74]
mov ebx, dword [rbp + 0x70]
mov ax, 2
xorps xmm0, xmm0
push 0x10
pop r8
rol di, 8
mov word [rbp + 0x98], ax
mov word [rbp + 0x9a], di
mov dword [rbp + 0x9c], ebx
movups xmmword [rbp + 0xa0], xmm0
mov dword [rbp + 0xb0], r14d
mov rcx, r15
lea rdx, [rbp + 0x98]
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400c776a
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 + 0x30], r12
mov rcx, qword [rbp + 0xb8]
call fcn.1400c7a0b
jmp 0x1400c7375
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
jmp 0x1400c74de
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], 0xf
test rcx, rcx
je 0x1400c75db
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], 0xf
and qword [rbp + 0x50], 0
mov byte [rbp + 0x68], 1
movabs rax, 0x3a0000003a
mov qword [rbp + 0x60], rax
mov bl, 0x3a
push 0xf
pop rdi
mov cl, 0x3a
mov rdx, rsi
mov r8, rdi
call fcn.140012590
cmp rax, 1
jne 0x1400c7574
mov rdi, rdx
cmp rdx, 0xf
jae 0x1400c756e
cmp byte [rdi + rsi], bl
je 0x1400c76cc
cmp rdi, 0xf
jbe 0x1400c7549
lea r8, str.invalid_socket_address
mov eax, r8d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400c75c6
test rax, rax
je 0x1400c75c6
lea rax, [r8 - 1]
mov qword [rbp + 0xb8], rax
mov rcx, qword [r8 - 1]
mov rax, qword [r8 + 7]
mov qword [rbp + 0x38], r8
call qword [rax]
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax - 1]
mov rdx, qword [rax + 7]
call fcn.14004b4d8
mov rcx, qword [rbp + 0xb8]
call fcn.14000c046
nop
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0xa0]
test rax, rax
je 0x1400c7521
mov rcx, qword [rbp + 0x98]
dec rax
mov dl, byte [rcx]
inc rcx
mov qword [rbp + 0x98], rcx
mov qword [rbp + 0xa0], rax
cmp dl, 0x5b
jne 0x1400c7521
lea rdi, [rbp + 0x40]
lea rdx, [rbp + 0x98]
mov rcx, rdi
call fcn.14000fcb0
cmp byte [rdi], 0
je 0x1400c7521
mov edi, dword [rbp + 0x41]
mov rax, qword [rbp + 0x45]
mov qword [rbp - 0x10], rax
mov eax, dword [rbp + 0x4d]
mov dword [rbp - 8], eax
mov r8, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xa0]
xor r13d, r13d
test rcx, rcx
je 0x1400c779c
cmp byte [r8], 0x25
jne 0x1400c77ce
lea r10, [r8 + 1]
lea r14, [rcx - 1]
xor ebx, ebx
push 0xa
pop r15
mov qword [rbp + 0xb8], r14
mov r11, r10
xor r12d, r12d
xor r13d, r13d
test r14, r14
je 0x1400c76a3
lea rdx, [r11 + 1]
movzx r9d, byte [r11]
add r9d, 0xffffffd0
xor eax, eax
cmp r9d, 0xa
setb al
cmovb r11, rdx
sub r14, rax
jmp 0x1400c76a8
xor r14d, r14d
xor eax, eax
cmp eax, 1
jne 0x1400c77a7
mov eax, ebx
mul r15d
jo 0x1400c779e
add eax, r9d
jb 0x1400c779e
inc r12d
mov ebx, eax
jmp 0x1400c7680
lea rcx, [rdi + rsi]
inc rcx
push 0xe
pop rdx
sub rdx, rdi
call fcn.140013110
test al, 1
jne 0x1400c775e
shr eax, 0x10
lea rdx, [rbp + 0x40]
mov qword [rdx], rsi
mov qword [rdx + 8], rdi
mov word [rdx + 0x10], ax
lea rsi, [rbp + 0x98]
mov rcx, rsi
call fcn.1400ceed0
cmp qword [rsi], 0
mov r8, qword [rsi + 8]
jne 0x1400c757b
movups xmm0, xmmword [rbp + 0xa8]
lea rdx, [rbp - 0x28]
movups xmmword [rdx + 8], xmm0
mov qword [rdx], r8
lea rsi, [rbp + 0x70]
mov rcx, rsi
call fcn.1400cf100
cmp qword [rsi], 0
jne 0x1400c734c
mov r8, qword [rbp + 0x78]
jmp 0x1400c757b
lea rcx, [rbp + 0x40]
call fcn.1400c79f0
test r12, r12
lea r8, [0x140142170]
cmovne r8, r12
jmp 0x1400c757b
lea r8, str.invalid_port_value
jmp 0x1400c757b
lea rcx, [rbp + 0x40]
call fcn.1400c79f0
mov rcx, qword [rbp + 0xb8]
call fcn.1400c7a0b
mov rcx, r15
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1400c77ce
mov rax, qword [rbp + 0xb8]
jmp 0x1400c77c0
xor r13d, r13d
test r12d, r12d
setne r13b
mov rax, qword [rbp + 0xb8]
cmovne rax, r14
cmovne r10, r11
cmp r13d, 1
jne 0x1400c77ce
mov r8, r10
mov rcx, rax
jmp 0x1400c77d5
test r13d, r13d
cmove ebx, r13d
test rcx, rcx
je 0x1400c7521
cmp byte [r8], 0x5d
jne 0x1400c7521
lea r10, [r8 + 1]
mov r9, rcx
dec r9
je 0x1400c785f
xor r15d, r15d
cmp byte [r10], 0x3a
jne 0x1400c785f
add rcx, 0xfffffffffffffffe
add r8, 2
mov r12w, 0xa
mov r11, rcx
xor r14d, r14d
test r11, r11
je 0x1400c7833
lea rdx, [r8 + 1]
movzx r13d, byte [r8]
add r13d, 0xffffffd0
xor eax, eax
cmp r13d, 0xa
setb al
cmovb r8, rdx
sub r11, rax
jmp 0x1400c7835
xor eax, eax
cmp eax, 1
jne 0x1400c7883
mov eax, r14d
mul r12w
jo 0x1400c7875
add ax, r13w
setb dl
cmp r13d, 0xffff
ja 0x1400c7875
test dl, dl
jne 0x1400c7875
inc r15d
mov r14d, eax
jmp 0x1400c7810
xor eax, eax
mov qword [rbp + 0x98], r10
mov r11, r9
test ax, ax
jne 0x1400c7893
jmp 0x1400c7521
xor eax, eax
mov qword [rbp + 0xa0], rcx
mov r11, rcx
jmp 0x1400c788d
xor eax, eax
test r15d, r15d
setne al
je 0x1400c7877
cmp ax, 1
jne 0x1400c7861
mov eax, dword [rbp - 8]
mov rcx, qword [rbp - 0x10]
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], eax
test r11, r11
jne 0x1400c7521
shl rdi, 8
mov eax, dword [rbp + 0x18]
mov dword [rbp + 8], eax
mov rax, qword [rbp + 0x10]
mov qword [rbp], rax
mov r15w, 1
xor esi, esi
jmp 0x1400c72cd
lea rcx, str._rustc_1388d7a069d872bcfe5e5dd97ef61fa0a586fac0library_std_src_synconce.rs
call fcn.1400eafe0
push 4
pop rcx
push 0x20
pop rdx
call fcn.1400ea870
int3