Function at 0x140001000
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
lea rbp, [rsp - 0x1550]
mov eax, 0x1650
call fcn.1400022c0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1540], rax
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001069
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Cant_initialize_Winsock__Quitting
call fcn.1400013a0
mov rcx, rax
lea rdx, [0x140001570]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 0xffffffff
jmp 0x140001302
xor r8d, r8d
mov qword [rsp + 0x1668], rsi
mov qword [rsp + 0x1678], r14
mov r14d, 2
mov ecx, r14d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010c2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Cant_create_a_socket__Quitting
call fcn.1400013a0
mov rcx, rax
lea rdx, [0x140001570]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, esi
jmp 0x1400012f2
mov qword [rsp + 0x1660], rbx
mov ecx, 0xd2f0
mov qword [rsp + 0x1670], rdi
mov word [rsp + 0x58], r14w
call qword [sym.imp.WS2_32.dll_htons]
xor ebx, ebx
lea rdx, [rsp + 0x58]
mov rcx, rsi
mov word [rsp + 0x5a], ax
mov dword [rsp + 0x5c], ebx
lea r8d, [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_bind]
mov edx, 0x7fffffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
xor edx, edx
lea rcx, [rbp + 0x130]
mov r8d, 0x401
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [rsp + 0x30], ebx
lea rax, [rbp + 0x110]
mov dword [rsp + 0x28], 0x20
mov r9d, 0x401
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x130]
lea edx, [rbx + 0x10]
lea rcx, [rsp + 0x40]
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1400011bb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp + 0x130]
call fcn.1400013a0
mov rcx, rax
lea rdx, str._connected_on_port
call fcn.1400013a0
mov rcx, rax
lea rdx, [rbp + 0x110]
call fcn.1400013a0
jmp 0x140001212
mov r9d, 0x401
lea r8, [rbp + 0x130]
lea rdx, [rsp + 0x44]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_inet_ntop]
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp + 0x130]
movzx ebx, ax
call fcn.1400013a0
mov rcx, rax
lea rdx, str._connected_on_port
call fcn.1400013a0
mov rcx, rax
movzx edx, bx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int____ptr64]
lea rdx, [0x140001570]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor edx, edx
lea rcx, [rbp + 0x540]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rbp + 0x540]
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x1660]
cmp eax, 0xffffffff
je 0x1400012b6
test eax, eax
je 0x14000131a
lea r8d, [rax + 1]
xor r9d, r9d
lea rdx, [rbp + 0x540]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
xor edx, edx
lea rcx, [rbp + 0x540]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rbp + 0x540]
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x140001265
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_in_recv__._Quitting
call fcn.1400013a0
lea rdx, [0x140001570]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdi, qword [rsp + 0x1670]
xor eax, eax
mov rsi, qword [rsp + 0x1668]
mov r14, qword [rsp + 0x1678]
mov rcx, qword [rbp + 0x1540]
xor rcx, rsp
call fcn.1400015c0
add rsp, 0x1650
pop rbp
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Client_disconnected
jmp 0x1400012c4