Initial state changes

Hello. Where in the code to find and change the initial state of the application at startup?
Initial settings for audio, video, open windows.
There should be an initial state, but I can’t figure out where it is. I ask for help please!