SEOUL (Reuters) - EBay Inc has agreed to buy a controlling stake in South Korean online retailer Gmarket Inc for $413 million, at a 32.5 percent premium, news service eDaily reported on Monday.