Ran into a weird setup at home, trying to replace switches with smartswitches
The 2 blacks at the bottom will be the live from the breaker and the live to the outlets. There will be another place where the wire continues to the other outlet.

The red and black are going to the fan/light. The reason for 2 wires being switched is to allow easy upgrade from single switch to a combo switch that controls the light and fan separately.

The whites are the neutral. 

So the smart switch will take line in from the bottom black which will need to be wirenutted and pigtailed if the switch doesn't allow 2 wires per connection. The neutral will be an addition white in the bundle of neutrals. And the switched out will be the red/black combo (again wirenut as needed).