Function at 0x1400017a2
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x108
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa0], rcx
lea rax, str.Enter_relay_server_IP:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, rbp
mov rcx, rax
call fcn.140001e08
mov rax, rbp
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cin]
mov rcx, rax
call sym.std::basic_istream_char__std::char_traits_char____std::operator___char__std::char_traits_char___std::allocator_char____std::basic_istream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
mov dword [rbp + 0x24], 0x1e61
lea rcx, [rbp + 0x24]
mov rdx, rbp
mov rax, qword [rbp + 0xa0]
mov r8, rcx
mov rcx, rax
call method.Peer.connectToRelayServer_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__int_const_
mov byte [rbp + 0x67], al
cmp byte [rbp + 0x67], 0
je 0x140001d04
mov dword [rbp - 4], 0
lea rax, str.Enter_a_number_to_send:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, [rbp - 4]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cin]
mov rcx, rax
call sym.std::istream::operator___int_
lea rax, str.Attempting_to_send_message_to_relay_server...
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov dword [rbp + 0x7c], 0
jmp 0x14000190f
mov dword [rbp + 0x78], 0
jmp 0x140001905
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax + 0x14]
mov ecx, eax
lea rax, [rbp - 4]
mov r9d, 0
mov r8d, 4
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [rbp + 0x78], eax
mov dword [rbp + 0x34], 0x64
lea rdx, [rbp + 0x34]
lea rax, [rbp + 0x28]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1000ll___.duration_int__void__int_const_
lea rax, [rbp + 0x28]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1000ll____std::chrono::duration_long_long__std::ratio_1ll__1000ll____const_
cmp dword [rbp + 0x78], 0
jle 0x1400018b7
add dword [rbp + 0x7c], 1
cmp dword [rbp + 0x7c], 0
jle 0x1400018ae
lea rax, str.Sent_message_to_relay_server_
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, str.Attempting_to_receive_other_peers_message_to_relay_server...
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov dword [rbp - 8], 0
mov dword [rbp + 0x74], 0
jmp 0x1400019dc
mov dword [rbp + 0x70], 0
jmp 0x1400019d2
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax + 0x14]
mov ecx, eax
lea rax, [rbp - 8]
mov r9d, 0
mov r8d, 4
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x70], eax
mov dword [rbp + 0x44], 0x64
lea rdx, [rbp + 0x44]
lea rax, [rbp + 0x38]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1000ll___.duration_int__void__int_const_
lea rax, [rbp + 0x38]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1000ll____std::chrono::duration_long_long__std::ratio_1ll__1000ll____const_
cmp dword [rbp + 0x70], 0
jle 0x140001984
add dword [rbp + 0x74], 1
cmp dword [rbp + 0x74], 0
jle 0x14000197b
lea rax, str.Received_message_of_other_peer_from_relay_server_
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, str.Enter_host_port:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov dword [rbp - 0xc], 0
lea rax, [rbp - 0xc]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cin]
mov rcx, rax
call sym.std::istream::operator___int_
lea rdx, [rbp - 0xc]
mov rax, qword [rbp + 0xa0]
mov rcx, rax
call method.Peer.hostPeer_int_const_
mov byte [rbp + 0x66], al
cmp byte [rbp + 0x66], 0
je 0x140001cd9
lea rax, str.Enter_target_peer_IP:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140001e08
lea rax, [rbp - 0x50]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cin]
mov rcx, rax
call sym.std::basic_istream_char__std::char_traits_char____std::operator___char__std::char_traits_char___std::allocator_char____std::basic_istream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, str.Enter_target_peer_port:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
lea rax, [rbp - 0x10]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cin]
mov rcx, rax
call sym.std::istream::operator___int_
mov dword [rbp + 0x6c], 0
mov dword [rbp + 0x60], 0x3e8
lea rax, [rbp - 0x20]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
mov word [rbp - 0x20], 2
mov eax, dword [rbp - 0x10]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x1e], ax
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp - 0x1c], eax
mov dword [rbp - 0x24], 0x10
mov dword [rbp + 0x68], 0
jmp 0x140001c5a
lea rax, str.Attempting_to_send_message_directly_to_other_peer...
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax]
mov ecx, eax
lea rax, [rbp - 4]
mov dword [rsp + 0x28], 0x10
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 4
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_sendto]
call rax
mov dword [rbp + 0x5c], eax
mov dword [rbp - 0x28], 0
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax]
mov ecx, eax
lea rax, [rbp - 0x28]
lea rdx, [rbp - 0x24]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 4
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_recvfrom]
call rax
mov dword [rbp + 0x58], eax
cmp dword [rbp + 0x58], 0
jle 0x140001c02
mov eax, dword [rbp - 0x28]
mov dword [rbp + 0x68], eax
cmp dword [rbp + 0x5c], 0
jle 0x140001c37
lea rax, str.Sent_message_directly_to_other_peer_successfully_
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
add dword [rbp + 0x6c], 1
mov dword [rbp + 0x54], 0x64
lea rdx, [rbp + 0x54]
lea rax, [rbp + 0x48]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1000ll___.duration_int__void__int_const_
lea rax, [rbp + 0x48]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1000ll____std::chrono::duration_long_long__std::ratio_1ll__1000ll____const_
cmp dword [rbp + 0x6c], 0x3e7
jle 0x140001b4d
lea rax, str.Other_peer_message_according_to_relay_server:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp - 8]
mov edx, eax
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
lea rax, str.Other_peer_message_received_directly_from_other_peer:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp + 0x68]
mov edx, eax
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x140001cd7
lea rax, str.Failed_to_host.
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, rbp
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x140001d3c
add rsp, 0x108
pop rbx
pop rbp
ret