ESP32 what is executed before setup()

Why do you care what happens during a start up / reboot or how long it takes? Is there an actual problem you're trying to solve?