Microsoft is close to reclaiming a $4 trillion market cap — and fresh records are also in sight.