Function at 0x140001531
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e0], rcx
mov qword [rbp - 0x28], 0
mov qword [rbp + 0x1b8], 0
lea rax, [rbp - 0x20]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
mov dword [rbp + 0x1ac], eax
cmp dword [rbp + 0x1ac], 0
je 0x1400015a1
mov eax, dword [rbp + 0x1ac]
mov edx, eax
lea rax, str.WSAStartup_failed_with_error:__d_n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x14000193c
lea rax, [rbp - 0x60]
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x5c], 0
mov dword [rbp - 0x58], 1
mov dword [rbp - 0x54], 6
mov edx, dword [0x140011020]
lea rax, [rbp + 0x180]
mov rcx, rax
call method.std::__cxx11.to_string_int_
lea rax, [rbp + 0x180]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rbx, rax
lea rax, section..data
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_getaddrinfo]
call rax
mov dword [rbp + 0x1ac], eax
lea rax, [rbp + 0x180]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
cmp dword [rbp + 0x1ac], 0
je 0x14000168c
lea rax, str.getaddrinfo_failed_with_error:
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 + 0x1ac]
mov edx, eax
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x140012e80]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov eax, 0xffffffff
jmp 0x14000193c
mov qword [rbp + 0x1b0], 0xffffffffffffffff
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0x1b8], rax
jmp 0x1400017a6
mov rax, qword [rbp + 0x1b8]
mov ecx, dword [rax + 0xc]
mov rax, qword [rbp + 0x1b8]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x1b8]
mov eax, dword [rax + 4]
mov r8d, ecx
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_socket]
call rax
mov qword [rbp + 0x1b0], rax
cmp qword [rbp + 0x1b0], 0xffffffffffffffff
jne 0x140001738
lea rax, str.socket_failed_with_error:
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 rbx, rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x140012e80]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov eax, 0xffffffff
jmp 0x14000193c
mov rax, qword [rbp + 0x1b8]
mov rax, qword [rax + 0x10]
mov ecx, eax
mov rax, qword [rbp + 0x1b8]
mov rdx, qword [rax + 0x20]
mov rax, qword [rbp + 0x1b0]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_connect]
call rax
mov dword [rbp + 0x1ac], eax
cmp dword [rbp + 0x1ac], 0xffffffff
jne 0x1400017b6
mov rax, qword [rbp + 0x1b0]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov qword [rbp + 0x1b0], 0xffffffffffffffff
nop
mov rax, qword [rbp + 0x1b8]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x1b8], rax
cmp qword [rbp + 0x1b8], 0
jne 0x1400016a7
jmp 0x1400017b7
nop
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
cmp qword [rbp + 0x1b0], 0xffffffffffffffff
jne 0x14000180f
lea rax, str.Unable_to_connect_to_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 [0x140012e80]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov eax, 0xffffffff
jmp 0x14000193c
mov rax, qword [rbp + 0x1e0]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
mov ebx, eax
mov rax, qword [rbp + 0x1e0]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.data__
mov rdx, rax
mov rax, qword [rbp + 0x1b0]
mov r9d, 0
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov dword [rbp + 0x1ac], eax
cmp dword [rbp + 0x1ac], 0xffffffff
jne 0x1400018c1
lea rax, str.send_failed_with_error:
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 rbx, rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x140012e80]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x1b0]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov eax, 0xffffffff
jmp 0x14000193c
lea rax, str.Bytes_Sent:
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 + 0x1ac]
mov edx, eax
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x140012e80]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x1b0]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov eax, 0
jmp 0x14000193c
add rsp, 0x248
pop rbx
pop rbp
ret