Stocks ended modestly lower on Wall Street as a three-day rally ran out of steam. Several companies fell after reporting weak earnings Thursday. Walmart Stores fell 3%, the most in the Dow Jones industrial average, after issuing a weak forecast and reporting results that came up short of analysts' forecasts. Perrigo, a drugmaker, and the cable channel operator Discovery Communications also stumbled after releasing disappointing earnings. The Dow gave up 40 points, or 0.3%, to 16,413. The Standard & Poor's 500 index lost nine points, or 0.5%, to 1,917. The Nasdaq composite lost 46 points, or 1%, to 4,487. (More Dow Jones stories.)