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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov r14, rcx
lea rdi, str.127.0.0.1:34254
lea rcx, [rsp + 0x40]
mov qword [rcx], rdi
mov qword [rcx + 8], 0xf
call fcn.14001d490
mov rbx, rax
test bl, 1
je 0x1400ae1c9
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x1400ae197
mov rax, qword [rsp + 0x40]
lea rcx, [rsi - 1]
mov dl, byte [rax]
inc rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
cmp dl, 0x3a
jne 0x1400ae197
lea rdx, [rsp + 0x88]
mov dword [rdx + 0x10], 0xa
mov qword [rdx], 0
mov byte [rdx + 0x14], 1
lea rcx, [rsp + 0x40]
call fcn.14001df30
cmp ax, 1
jne 0x1400ae199
jmp 0x1400ae1a3
xor eax, eax
mov qword [rsp + 0x48], rsi
test ax, ax
je 0x1400ae1c9
movabs rax, 0xffffffff00
and rbx, rax
shr rbx, 8
movzx eax, dx
shl rax, 0x30
shl rbx, 0x10
or rbx, rax
mov eax, 1
jmp 0x1400ae1cd
xor ebx, ebx
xor eax, eax
or rax, rbx
test ax, ax
je 0x1400ae48e
movzx eax, ax
cmp eax, 1
jne 0x1400ae49c
cmp qword [rsp + 0x48], 0
jne 0x1400ae49c
mov qword [rsp + 0x38], r14
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x78], rax
mov al, byte [0x14019e160]
mov edx, 0x20
xor ecx, ecx
call fcn.1400ddfb0
test rax, rax
je 0x1400ae654
mov word [rax], 0
mov rdx, rbx
shr rdx, 0x10
and rdx, 0xffffffffffffff00
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
or rcx, rdx
shr rbx, 0x30
mov word [rax + 6], bx
mov dword [rax + 2], ecx
mov rcx, qword [rsp + 0x78]
mov qword [rax + 8], rcx
mov ecx, dword [rsp + 0x80]
mov dword [rax + 0x10], ecx
mov dword [rax + 0x14], 0
mov rcx, rax
add rcx, 0x20
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], 1
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0x68], rax
mov r13, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
cmp r13, rax
je 0x1400ae581
xor ebx, ebx
movzx edi, word [r13]
cmp di, 2
je 0x1400ae586
mov esi, dword [r13 + 0x14]
mov r12d, dword [r13 + 0x18]
movzx r14d, word [r13 + 0x1c]
movzx eax, word [r13 + 0x12]
mov word [rsp + 0x50], ax
movups xmm0, xmmword [r13 + 2]
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [0x14019e100]
cmp rax, 3
jne 0x1400ae47d
mov ebp, 2
test di, di
je 0x1400ae31f
mov ebp, 0x17
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400ae367
test di, di
je 0x1400ae3d7
mov r8d, 0x1c
mov ax, 0x17
movups xmm0, xmmword [rsp + 0x42]
jmp 0x1400ae3ee
mov dword [rsp + 0x64], r12d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1400ae386
mov r12d, eax
cmp eax, 0x2726
jne 0x1400ae444
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400ae473
mov r15, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x1400ae487
mov r12d, dword [rsp + 0x64]
jmp 0x1400ae34a
movzx r14d, word [rsp + 0x44]
mov esi, dword [rsp + 0x40]
mov r8d, 0x10
mov ax, 2
xorps xmm0, xmm0
rol r14w, 8
mov word [rsp + 0x88], ax
mov word [rsp + 0x8a], r14w
mov dword [rsp + 0x8c], esi
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xa0], r12d
mov rcx, r15
lea rdx, [rsp + 0x88]
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
jne 0x1400ae613
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
mov rcx, r15
call sub.ws2_32.dll_closesocket
test rbx, rbx
je 0x1400ae451
mov rcx, rbx
call fcn.14002e49c
shl r12, 0x20
or r12, 2
add r13, 0x20
mov rbx, r12
cmp r13, qword [rsp + 0xd8]
jne 0x1400ae2cf
jmp 0x1400ae589
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
jmp 0x1400ae444
call fcn.1400d2a40
jmp 0x1400ae310
call sub.kernel32.dll_GetLastError
jmp 0x1400ae439
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], 0xf
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa8], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xb0], rax
mov sil, 0x3a
mov ebx, 0xf
mov cl, 0x3a
mov rdx, rdi
mov r8, rbx
call fcn.140020550
cmp rax, 1
jne 0x1400ae50a
mov rbx, rdx
cmp rdx, 0xf
jae 0x1400ae504
cmp byte [rbx + rdi], sil
je 0x1400ae530
cmp rbx, 0xf
jbe 0x1400ae4e2
lea rax, str.invalid_socket_address
mov qword [r14 + 8], rax
mov qword [r14], 1
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rbx + rdi]
inc rcx
mov edx, 0xe
sub rdx, rbx
call fcn.140022c70
test al, 1
jne 0x1400ae578
shr eax, 0x10
lea rdx, [rsp + 0x88]
mov qword [rdx], rdi
mov qword [rdx + 8], rbx
mov word [rdx + 0x10], ax
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400d2370
cmp qword [rdi], 0
je 0x1400ae5c7
mov rax, qword [rsp + 0x48]
jmp 0x1400ae511
lea rax, str.invalid_port_value
jmp 0x1400ae511
xor r12d, r12d
jmp 0x1400ae589
mov r12, rbx
cmp qword [rsp + 0x70], 0
je 0x1400ae5a4
mov rcx, qword [0x14019e0f8]
xor edx, edx
mov r8, qword [rsp + 0x68]
call fcn.1400fdef8
test r12, r12
lea rax, str.could_not_resolve_to_any_addresses
cmovne rax, r12
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 8], rax
mov qword [rcx], 1
jmp 0x1400ae51c
mov qword [rsp + 0x38], r14
mov rax, qword [rsp + 0x48]
movups xmm0, xmmword [rsp + 0x50]
lea rdx, [rsp + 0xe0]
movups xmmword [rdx + 8], xmm0
mov qword [rdx], rax
lea rdi, [rsp + 0xb8]
mov rcx, rdi
call fcn.1400d2560
mov rax, qword [rdi]
test rax, rax
jne 0x1400ae29a
mov rax, qword [rsp + 0xc0]
mov r14, qword [rsp + 0x38]
jmp 0x1400ae511
mov rax, qword [rsp + 0x38]
mov qword [rax + 8], r15
mov qword [rax], 0
cmp qword [rsp + 0x70], 0
je 0x1400ae63e
mov rcx, qword [0x14019e0f8]
xor edx, edx
mov r8, qword [rsp + 0x68]
call fcn.1400fdef8
test rbx, rbx
je 0x1400ae51c
mov rcx, rbx
call fcn.14002e49c
jmp 0x1400ae51c
mov ecx, 4
mov edx, 0x20
call fcn.140011cc0
int3