Under the hood Home Assistant core files

To get a better understanding of how the core of home assistant works, does anyone know which files are the heart of Home Assistant that make the following work:

State Machine
Event Bus
Timer
Service Registry

Which components are loaded at start-up?