Function at 0x1400112f3
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x140016900
push rbp
push rdi
mov eax, 0x1898
call fcn.1400110d2
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x49e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x1868], rax
lea rcx, [0x1400240f6]
call fcn.140011415
mov qword [rbp + 0x1c8], 0xffffffffffffffff
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001697d
lea rdx, str.WSAStartup_failed_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011087
mov eax, 1
jmp 0x140016b5b
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x1400169c4
lea rdx, str.Could_not_create_socket_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011087
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140016b5b
lea rcx, str.192.168.137.1
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x1ec], eax
mov eax, 2
mov word [rbp + 0x1e8], ax
mov cx, 0x3039
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x140016a42
lea rdx, str.Connection_failed_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011087
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140016b5b
lea rdx, str.Connected_to_server_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
xor eax, eax
cmp eax, 1
je 0x140016b46
lea rdx, str.Enter_message:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
mov r8d, 0x1000
lea rdx, [rbp + 0x220]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::getline_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0x220]
call fcn.1400111d1
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0x220]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x220]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x1234], eax
cmp dword [rbp + 0x1234], 0
jle 0x140016b41
movsxd rax, dword [rbp + 0x1234]
mov qword [rbp + 0x1858], rax
cmp qword [rbp + 0x1858], 0x1000
jae 0x140016afc
jmp 0x140016b01
call fcn.14001132f
mov rax, qword [rbp + 0x1858]
mov byte [rbp + rax + 0x220], 0
lea rdx, str.Server_replied:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
lea rdx, [rbp + 0x220]
mov rcx, rax
call fcn.140011087
lea rdx, [0x14001addc]
mov rcx, rax
call fcn.140011087
jmp 0x140016a55
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140011398
mov rax, rdi
mov rcx, qword [rbp + 0x1868]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0x1878]
pop rdi
pop rbp
ret