1.15. SWITCH()/CASE/DEFAULT
OllyDbg
Since this example is tricky, let’s trace it in OllyDbg.
OllyDbg can detect such switch() constructs, and it can add some useful comments. EAXis 2 at the
beginning, that’s the function’s input value:
Figure 1.42:OllyDbg:EAXnow contain the first (and only) function argument