Function at 0x40178f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x80]
call sym.__main
movzx eax, word [0x0049e010]
movzx eax, ax
lea rdx, [0x004cac40]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
setne al
test al, al
je 0x4017f3
lea rdx, str.Winsock_balatlamad_
mov rcx, qword [0x004a5d60]
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 rdx, 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 rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov ebx, 1
jmp 0x40199e
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
cmp rax, 0xffffffffffffffff
jne 0x40184f
lea rdx, str.Soket_oluturulamad_
mov rcx, qword [0x004a5d60]
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 rdx, 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 rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ebx, 1
jmp 0x40199e
mov word [rbp - 0x50], 2
mov ecx, 0xd144
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x4e], ax
lea rcx, str.128.127.104.110
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp - 0x4c], eax
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x50]
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x4018e3
lea rdx, str.Sunucuya_balanlamad_
mov rcx, qword [0x004a5d60]
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 rdx, 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 rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp - 0x40]
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 ebx, 1
jmp 0x40199e
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x58]
mov r8, rdx
lea rdx, [sym.receiveMessages_unsigned_long_long_]
mov rcx, rax
call method.std::thread.thread_void____unsigned_long_long___unsigned_long_long__void____unsigned_long_long___unsigned_long_long_
mov eax, dword [0x004cadd8]
cmp eax, 0x7ac1
jne 0x4018fd
lea rcx, [0x004ca840]
call sym.strlen
mov edx, eax
mov rax, qword [rbp - 0x40]
mov r9d, 0
mov r8d, edx
lea rdx, [0x004ca840]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0xffffffff
jne 0x40198f
lea rdx, str.Veri_gnderilemedi_
mov rcx, qword [0x004a5d60]
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 rdx, 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 rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp - 0x40]
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 ebx, 1
lea rax, [rbp - 0x58]
mov rcx, rax
call method.std::thread.thread__
jmp 0x40199e
mov dword [0x004cadd8], 0
jmp 0x4018fd
mov eax, ebx
jmp 0x4019bc
add rsp, 0x58
pop rbx
pop rbp
ret