STM32F4 Discovery Board Control Register Value Problem
Main() is not where the chip boots.
Find the reset interrupt handler. In there you will find it calls SystemInit, which does some basic setup and clocks for you.