Yahoo's Mayer scores $139.6M for rocky run

7:45 p.m. EDT July 25, 2016   It's the end of Yahoo (YHOO) as we know it with Verizon (VZ) buying the Internet company for a fraction of what it once was worth.  Yet, CEO Marissa Mayer did very well for herself during her run.

The chief of the fallen Internet giant was paid $139.6 million over her four years of service at the Internet company. That doesn't even include the estimated golden parachute payment of $54.9 million she would get if she steps down, something she says she doesn't plan to do. Mayer's total haul at the company was even higher - $162 million - when factoring in how much the stock options she was given are worth now, according to compensation firm Equilar.  Equilar says her total windfall, including a current value of her severance if she leaves, is $218.9 million.

Seeing the size of Mayer's payout could be painful for investors who saw the company's revenue stagnate during her tenure. Yahoo went from making a profit of nearly $4 billion a year to losing $4.5 billion and paying billions for small companies that haven't paid off or were largely written off.

Shares of Yahoo increased 145% under Mayer, but that was  mainly due to factors she had little to do with, such as the rising value of the company's stakes in Chinese e-commerce site Alibaba (BABA) and Yahoo Japan that were acquired before Mayer arrived.

Yahoo's stock price rose "because of the strategy they introduced to unlock the value of Alibaba and Yahoo Japan," says Morningstar analyst Ali Mogharabi. "That's pretty much it."

Mayer, in her statement about the Verizon deal, said, "The sale of our operating business, which effectively separates our Asian asset equity stakes, is an important step in our plan to unlock shareholder value for Yahoo."

While there had been speculation among Wall Street observers that Mayer would exit with a Yahoo sale, she said that she plans to stay.   “I love Yahoo and am excited to see it into its next chapter," she said during a conference call on Monday.

Although Yahoo has a market value of $37.4 billion, the core business was sold to Verizon for a fraction of that -- to the tune of $4.8 billion. Investors know the bulk of Yahoo's value isn't about the core business. Yahoo's stake in Alibaba is worth roughly $32 billion and its stake in Yahoo Japan was valued at $8.7 billion. That implies the market sees Yahoo's core business as worthless.  However, it also masks the full value of Yahoo’s core business, since it was being discounted due to the risk of triggering a tax bill, Mogharabi says.

Mayer's efforts couldn't get the company back to its former glory.

At its peak in 1999, Yahoo was valued at more than $109 billion, or nearly triple its current value.  During her time as CEO, Mayer has pushed to boost mobile, video and social efforts.  The company spent more than $3 billion buying or investing in more than 51 companies ranging from Flurry, an advertising platform for mobile applications to Tomfoolery, a smartphone applications developer, according to a USA TODAY analysis of data from S&P Global Market Intelligence.

One deal that highlights the issues with that strategy was Yahoo's $1.1 billion buy of micro-blogging site Tumblr in May 2013. That was it's biggest purchase under Mayer. Yahoo has since written off 70% of the price it paid, says Mogharabi. "That tells you this didn't work out that well,"  he says.