Function at 0x14001146a
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Start tcp server
Terminate process

Disassembly:
jmp 0x1400129b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x518
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xde
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x538]
mov rax, qword [0x14001f040]
xor rax, rbp
mov qword [rbp + 0x4e8], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011442
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x140012a32
mov edx, dword [rbp + 0x1c4]
lea rcx, str.Failed_to_initialize_Winsock__Error:__d_n
call fcn.1400111e0
jmp 0x140012c4b
mov rcx, qword [rbp + 0x510]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [rbp + 0x1e4], eax
mov eax, 2
mov word [rbp + 0x208], ax
movzx ecx, word [rbp + 0x1e4]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x20a], ax
mov dword [rbp + 0x20c], 0
mov dword [rbp + 0x294], 4
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
jge 0x140012ab5
lea rcx, str.____Failed_to_create_the_socket____n
call fcn.1400111e0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
movsxd rax, dword [rbp + 0x234]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x208]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rbp + 0x254], eax
cmp dword [rbp + 0x254], 0xffffffff
jne 0x140012b1d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
mov edx, dword [rbp + 0x1e4]
lea rcx, str.____Failed_to_bind_on_port__d__Error:__d_n
call fcn.1400111e0
movsxd rax, dword [rbp + 0x234]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
movsxd rax, dword [rbp + 0x234]
mov edx, dword [rbp + 0x294]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jge 0x140012b43
mov dword [rbp + 0x4e4], 1
jmp 0x140012b4d
mov dword [rbp + 0x4e4], 0
mov eax, dword [rbp + 0x4e4]
mov dword [rbp + 0x274], eax
cmp dword [rbp + 0x274], 0
je 0x140012b79
lea rcx, str.____Failed_to_listen_____n
call fcn.1400111e0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
xor eax, eax
cmp eax, 1
je 0x140012c4b
mov dword [rbp + 0x304], reloc.WS2_32.dll_recv
movsxd rax, dword [rbp + 0x234]
lea r8, [rbp + 0x304]
lea rdx, [rbp + 0x2d8]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbp + 0x328], rax
cmp qword [rbp + 0x328], 0xffffffffffffffff
jne 0x140012bf2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Accept_failed__Error:__d_n
call fcn.1400111e0
movsxd rax, dword [rbp + 0x234]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp + 0x348]
lea rdx, [rbp + 0x2dc]
mov ecx, 2
call fcn.14001125d
test rax, rax
jne 0x140012c33
lea rcx, str.Error_converting_client_IP_to_string_n
call fcn.1400111e0
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140012b79
mov rdx, qword [rbp + 0x518]
mov rcx, qword [rbp + 0x328]
call fcn.1400113e3
jmp 0x140012b79
lea rcx, [rbp - 0x20]
lea rdx, [0x14001c400]
call fcn.1400113a7
mov rcx, qword [rbp + 0x4e8]
xor rcx, rbp
call fcn.1400111f9
lea rsp, [rbp + 0x4f8]
pop rdi
pop rbp
ret