Function at 0x14000403a
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
push rbp
push rbx
sub rsp, 0x268
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x200], rcx
mov qword [rbp + 0x1d8], 0xffffffffffffffff
lea rax, [rbp - 0x40]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
setne al
test al, al
je 0x1400040b2
lea rax, str.WSAStartup_failed.
mov rdx, rax
mov rax, qword [0x1400e02e0]
mov rcx, rax
call method.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 [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x1d8]
jmp 0x14000437f
mov r8d, 0
mov edx, 1
mov ecx, 0x17
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x1d8], rax
mov eax, 0
test al, al
je 0x14000411b
lea rax, str.Socket_creation_error
mov rdx, rax
mov rax, qword [0x1400e02e0]
mov rcx, rax
call method.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 [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov rax, qword [rbp + 0x1d8]
jmp 0x14000437f
lea rax, [rbp - 0x60]
mov r8d, 0x1c
mov edx, 0
mov rcx, rax
call sym.memset
mov word [rbp - 0x60], 0x17
lea rax, [rbp + 0x18f]
mov qword [rbp + 0x1c8], rax
nop
nop
mov rax, qword [rbp + 0x200]
lea rdx, [rax + 0x20]
lea rcx, [rbp + 0x18f]
lea rax, [rbp + 0x160]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std::basic_string_view_char__std.char_traits_char_____void__std::basic_string_view_char__std::char_traits_char____const__std::allocator_char__const_
lea rax, [rbp + 0x160]
mov r8d, 0xa
mov edx, 0
mov rcx, rax
call method.std::__cxx11.stoi_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__unsigned_long_long__int_
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x5e], ax
lea rax, [rbp + 0x160]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
nop
lea rax, [rbp + 0x1bf]
mov qword [rbp + 0x1c0], rax
nop
nop
mov rax, qword [rbp + 0x200]
lea rdx, [rax + 0x10]
lea rcx, [rbp + 0x1bf]
lea rax, [rbp + 0x190]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std::basic_string_view_char__std.char_traits_char_____void__std::basic_string_view_char__std::char_traits_char____const__std::allocator_char__const_
lea rax, [rbp + 0x190]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
lea rdx, [rbp - 0x60]
add rdx, 8
mov r8, rdx
mov rdx, rax
mov ecx, 0x17
mov rax, qword [sym.imp.WS2_32.dll_inet_pton]
call rax
test eax, eax
setle bl
lea rax, [rbp + 0x190]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
nop
test bl, bl
je 0x140004260
lea rax, str.Invalid_address__Address_not_supported
mov rdx, rax
mov rax, qword [0x1400e02e0]
mov rcx, rax
call method.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 [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov rax, qword [rbp + 0x1d8]
jmp 0x14000437f
lea rax, str.Connecting...
mov rdx, rax
mov rax, qword [str._z_r_]
mov rcx, rax
call method.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 [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x1d8]
mov r8d, 0x1c
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov dword [rbp + 0x1d4], eax
mov eax, dword [rbp + 0x1d4]
shr eax, 0x1f
test al, al
je 0x14000430b
lea rax, str.Connection_Failed
mov rdx, rax
mov rax, qword [0x1400e02e0]
mov rcx, rax
call method.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 [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov rax, qword [rbp + 0x1d8]
jmp 0x14000437f
lea rax, str.Connected_
mov rdx, rax
mov rax, qword [str._z_r_]
mov rcx, rax
call method.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 [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x1d8]
jmp 0x14000437f
add rsp, 0x268
pop rbx
pop rbp
ret