An application does not start from main. Following are some stack snapshots from the start of main (for a console app, unicode version) compiled with VS2005:
myapp.exe!wmain(int argc=0x00000001, wchar_t * * argv=0x00364d68) Line 67 C++
myapp.exe!__tmainCRTStartup() Line 594 + 0x17 bytes
kernel32.dll!_BaseProcessStart@4() + 0x23 bytes
The first function that can be said to run in the new process context in user mode is BaseProcessStart, which is a Win32 level function. It calls the CRT-level mainCRTStartup, which uses various data sections in the binary image itself to run various initializers - e.g., global constructors such as your obj. In fact, you can set a breakpoint in your ctor and watch it yourself:
myapp.exe!`dynamic initializer for'obj''()
msvcr80.dll!_initterm(...)
myapp.exe!__tmainCRTStartup()
kernel32.dll!_BaseProcessStart@4()
(Having some formatting difficulties there). initterm is the function that iterates on global objects and calls their constructors.
The stacks would look different on different platforms and compilers (and even on VS, very different for an MFC app) but the idea is always the same: the runtime uses binary image info to initialize global objects before your own main is entered.