Software giant Microsoft (MSFT) announced earnings for its second quarter that topped analysts’ expectations, despite revenues that fell more than expected.