Function at 0x1400ba939
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, 0x128
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa0], 0xfffffffffffffffe
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400bb02a
lea rsi, str.127.0.0.1:34254
lea rcx, [rbp + 0x80]
mov qword [rcx], rsi
mov qword [rcx + 8], 0xf
call fcn.140023300
mov rdi, rax
test dil, 1
je 0x1400baa2c
mov r8, qword [rbp + 0x80]
mov r9, qword [rbp + 0x88]
test r9, r9
je 0x1400baa17
xor ebx, ebx
cmp byte [r8], 0x3a
jne 0x1400baa17
lea r10, [r8 + 1]
lea r11, [r9 - 1]
mov r15w, 0xa
mov r14, r11
mov r12, r10
xor ecx, ecx
test r14, r14
je 0x1400ba9ee
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 0x1400ba9f0
xor eax, eax
cmp eax, 1
jne 0x1400baa44
mov eax, ecx
mul r15w
jo 0x1400baa32
add ax, r13w
setb dl
cmp r13d, 0xffff
ja 0x1400baa32
test dl, dl
jne 0x1400baa32
inc ebx
mov ecx, eax
jmp 0x1400ba9c9
xor eax, eax
mov qword [rbp + 0x80], r8
mov qword [rbp + 0x88], r9
test ax, ax
jne 0x1400baa61
xor edi, edi
xor eax, eax
jmp 0x1400baa83
xor eax, eax
mov qword [rbp + 0x80], r10
mov qword [rbp + 0x88], r11
jmp 0x1400baa5b
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], r14
xor eax, eax
test ebx, ebx
setne al
je 0x1400baa34
cmp ax, 1
jne 0x1400baa19
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 0x1400bacc2
cmp qword [rbp + 0x88], 0
jne 0x1400bacd9
mov esi, edi
shr esi, 0x10
shr rdi, 0x18
xor r15d, r15d
mov al, byte [0x140182300]
push 0x20
pop rdx
xor ecx, ecx
call fcn.1400c4420
test rax, rax
je 0x1400bb036
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 - 8]
mov qword [rax + 8], rcx
mov ecx, dword [rbp]
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 + 0x50], rax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], 1
mov qword [rbp + 0x68], rcx
mov rax, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
mov qword [rbp + 0x30], rdx
mov rdx, qword [rbp + 0x68]
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rcx
xor r12d, r12d
mov rax, qword [rbp + 0x28]
cmp rax, qword [rbp + 0x38]
je 0x1400baead
lea rcx, [rax + 0x20]
mov qword [rbp + 0x28], rcx
movzx esi, word [rax]
cmp si, 2
je 0x1400baead
mov ebx, dword [rax + 0x14]
mov r14d, dword [rax + 0x18]
movzx edi, word [rax + 0x1c]
movzx ecx, word [rax + 0x12]
mov word [rbp + 0x60], cx
movups xmm0, xmmword [rax + 2]
movaps xmmword [rbp + 0x50], xmm0
mov rax, qword [0x140182260]
cmp rax, 3
je 0x1400bab8f
mov qword [rbp + 0x18], r12
call fcn.1400e9c80
mov qword [rbp + 0x78], r12
push 2
pop r13
test si, si
je 0x1400baba0
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 0x1400babd9
test si, si
je 0x1400bac3a
mov ax, 0x17
movups xmm0, xmmword [rbp + 0x52]
push 0x1c
jmp 0x1400bac4a
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1400babf4
mov r12d, eax
cmp eax, 0x2726
jne 0x1400bac9d
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 0x1400bacb7
mov r15, rax
mov rcx, rax
push 1
pop rdx
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x1400babc8
call sub.kernel32.dll_GetLastError
jmp 0x1400bac91
movzx edi, word [rbp + 0x54]
mov ebx, dword [rbp + 0x50]
mov ax, 2
xorps xmm0, xmm0
push 0x10
pop r8
rol di, 8
mov word [rbp + 0x80], ax
mov word [rbp + 0x82], di
mov dword [rbp + 0x84], ebx
movups xmmword [rbp + 0x88], xmm0
mov dword [rbp + 0x98], r14d
mov rcx, r15
lea rdx, [rbp + 0x80]
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400baed5
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 + 0x18], r12
mov rcx, qword [rbp + 0x78]
call fcn.14004c05d
jmp 0x1400bab3b
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
jmp 0x1400bac9d
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], 0xf
test rcx, rcx
je 0x1400bad4d
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], 0xf
and qword [rbp + 0x30], 0
mov byte [rbp + 0x48], 1
movabs rax, 0x3a0000003a
mov qword [rbp + 0x40], rax
mov bl, 0x3a
push 0xf
pop rdi
mov cl, 0x3a
mov rdx, rsi
mov r8, rdi
call fcn.140026050
cmp rax, 1
jne 0x1400bad2c
mov rdi, rdx
cmp rdx, 0xf
jae 0x1400bad26
cmp byte [rdi + rsi], bl
je 0x1400bae37
cmp rdi, 0xf
jbe 0x1400bad01
lea rcx, str.invalid_socket_address
call fcn.14004c067
nop
add rsp, 0x128
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x88]
test rax, rax
je 0x1400bacd9
mov rcx, qword [rbp + 0x80]
dec rax
mov dl, byte [rcx]
inc rcx
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rax
cmp dl, 0x5b
jne 0x1400bacd9
lea rdi, [rbp + 0x20]
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.140023680
cmp byte [rdi], 0
je 0x1400bacd9
mov edi, dword [rbp + 0x21]
mov rax, qword [rbp + 0x25]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x2d]
mov dword [rbp - 0x10], eax
mov r8, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x88]
xor r13d, r13d
test rcx, rcx
je 0x1400baf04
cmp byte [r8], 0x25
jne 0x1400baf30
lea r10, [r8 + 1]
lea r14, [rcx - 1]
xor ebx, ebx
push 0xa
pop r15
mov qword [rbp + 0x78], r14
mov r11, r10
xor r12d, r12d
xor r13d, r13d
test r14, r14
je 0x1400bae0e
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 0x1400bae13
xor r14d, r14d
xor eax, eax
cmp eax, 1
jne 0x1400baf0c
mov eax, ebx
mul r15d
jo 0x1400baf06
add eax, r9d
jb 0x1400baf06
inc r12d
mov ebx, eax
jmp 0x1400badeb
lea rcx, [rdi + rsi]
inc rcx
push 0xe
pop rdx
sub rdx, rdi
call fcn.140027550
test al, 1
jne 0x1400baec9
shr eax, 0x10
lea rdx, [rbp + 0x20]
mov qword [rdx], rsi
mov qword [rdx + 8], rdi
mov word [rdx + 0x10], ax
lea rsi, [rbp + 0x80]
mov rcx, rsi
call fcn.1400c31f0
cmp qword [rsi], 0
mov rcx, qword [rsi + 8]
jne 0x1400bad33
movups xmm0, xmmword [rbp + 0x90]
lea rdx, [rbp - 0x30]
movups xmmword [rdx + 8], xmm0
mov qword [rdx], rcx
lea rsi, [rbp + 0x50]
mov rcx, rsi
call fcn.1400c3320
cmp qword [rsi], 0
jne 0x1400bab18
mov rcx, qword [rbp + 0x58]
jmp 0x1400bad33
lea rcx, [rbp + 0x20]
call fcn.1400ba8ee
test r12, r12
lea rcx, str.could_not_resolve_to_any_addresses
cmovne rcx, r12
jmp 0x1400bad33
lea rcx, str.invalid_port_value
jmp 0x1400bad33
lea rcx, [rbp + 0x20]
call fcn.1400ba8ee
mov rcx, qword [rbp + 0x78]
call fcn.14004c05d
mov rcx, r15
add rsp, 0x128
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 0x1400baf30
mov rax, qword [rbp + 0x78]
jmp 0x1400baf22
xor r13d, r13d
test r12d, r12d
setne r13b
mov rax, qword [rbp + 0x78]
cmovne rax, r14
cmovne r10, r11
cmp r13d, 1
jne 0x1400baf30
mov r8, r10
mov rcx, rax
jmp 0x1400baf37
test r13d, r13d
cmove ebx, r13d
test rcx, rcx
je 0x1400bacd9
cmp byte [r8], 0x5d
jne 0x1400bacd9
lea r10, [r8 + 1]
mov r9, rcx
dec r9
je 0x1400bafc1
xor r15d, r15d
cmp byte [r10], 0x3a
jne 0x1400bafc1
add rcx, 0xfffffffffffffffe
add r8, 2
mov r12w, 0xa
mov r11, rcx
xor r14d, r14d
test r11, r11
je 0x1400baf95
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 0x1400baf97
xor eax, eax
cmp eax, 1
jne 0x1400bafe5
mov eax, r14d
mul r12w
jo 0x1400bafd7
add ax, r13w
setb dl
cmp r13d, 0xffff
ja 0x1400bafd7
test dl, dl
jne 0x1400bafd7
inc r15d
mov r14d, eax
jmp 0x1400baf72
xor eax, eax
mov qword [rbp + 0x80], r10
mov r11, r9
test ax, ax
jne 0x1400baff5
jmp 0x1400bacd9
xor eax, eax
mov qword [rbp + 0x88], rcx
mov r11, rcx
jmp 0x1400bafef
xor eax, eax
test r15d, r15d
setne al
je 0x1400bafd9
cmp ax, 1
jne 0x1400bafc3
mov eax, dword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
mov qword [rbp + 8], rcx
mov dword [rbp + 0x10], eax
test r11, r11
jne 0x1400bacd9
shl rdi, 8
mov eax, dword [rbp + 0x10]
mov dword [rbp], eax
mov rax, qword [rbp + 8]
mov qword [rbp - 8], rax
mov r15w, 1
xor esi, esi
jmp 0x1400baaad
lea rcx, str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_std_src_synconce.rs
call fcn.1400e7850
push 4
pop rcx
push 0x20
pop rdx
call fcn.1400e7110
int3