Coming back to answer this question with the actual answer I was looking for now that I have some more experience and figured out what happened.
When opening a binary in IDA Pro that has the Hex-Rays decompiler plugin you may open the pseudocode view using the hotkey F5
, and also re-analyze the current function by pressing F5
again as @Avery3R posted in his answer.
However, if you work your way through the binary by double-clicking functions
you can go back to one of the functions you already have decompiled and re-analyze it. The pseudocode will then change to reflect the changes you have done (or simply the optimizations done by the Hex-Rays decompiler). Typical changes you will see are the number of function arguments that will be adjusted to be more correct.
Usually what I do if I encounter pseudocode that seems incorrect in terms of function arguments, I will click around and "peek" into the different problematic functions before I go back to the initial function I started with and re-analyze it. The pseudocode will then look way better and be easier to work with.
And if you would like to re-analyze the whole binary you coud always do that by going to Options -> General -> Analysis -> Reanalyze program
, and Ctrl+F5
to decompile all functions.