title: Find Main in Assembly
body: <p>I have simple C++ programm:</p>
  
  <pre><code>#include &lt;iostream&gt;  
  using namespace std;  
  void main()  
  {  
      cout &lt;&lt; "Hello, world, from Visual C++!" &lt;&lt; endl;  
  }
  </code></pre>
  
  <p>Compiled with following command: <code>cl /EHsc hello.cpp</code></p>
  
  <p>I want to start debugging of executable, How can I find this main function's corresponding assembly code in the debugger? (I'm using x64dbg)</p>
  
  <p>Entry point is not same as Main function.
  I found main function and it is somewhere not near with Entry Point, I had strings and I found this easily.</p>
  
  <p>Is there any way or rule or best practise how to guess where is main's corresponding assmebly code?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I have source code, but I just learning RE.</p>