The function of money that is highlighted when someone brags about having a net worth of over $5 million, even after recent losses in the stock market, is "Option 3: Store of value." Money serves as a store of value when it can retain its purchasing power over time and hold its value even in the face of economic fluctuations or losses in investments, as implied by the scenario described.