Reverse Engineering for Beginners

(avery) #1

CHAPTER 23. POINTERS TO FUNCTIONS CHAPTER 23. POINTERS TO FUNCTIONS


23.1.1 MSVC + OllyDbg


Let’s load our example into OllyDbg and set a breakpoint oncomp().


We can see how the values are compared at the firstcomp()call:


Figure 23.1:OllyDbg: first call ofcomp()

OllyDbg shows the compared values in the window under the code window, for convenience. We can also see that theSP
points toRA, where theqsort()function is (located inMSVCR100.DLL).

Free download pdf