NetSim source codes come along with a solution file (NetSim.sln) using which the codes can be quickly loaded in Visual Studio IDE.
The flow of function calls can be easily traced by right-clicking on the function and selecting:

You can also perform runtime debugging to understand calls to a function interactively. Printing to console will also be helpful in this case.
Related articles:
https://support.tetcos.com/portal/en/kb/articles/what-is-the-entry-function-for-protocol-codes
https://support.tetcos.com/portal/en/kb/articles/where-exactly-in-the-code-is-packet-encryption-done