Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;unsigned __fastcall CaptureStackBackTrace(unsigned FramesToCapture, void** BackTrace);
- ?CaptureStackBackTrace@@YIIIPAPAX@Z PROC
- push edi
- push ebx
- push ebp
- mov edi,edx
- xor edx,edx ; number of captured frames
- mov ebx,fs:[4] ; StackBase
- @@0:
- mov eax,[ebp]
- cmp eax,ebp
- jbe @@1
- cmp eax,ebx
- jae @@1
- mov ebp,eax
- mov eax,[eax+4]
- stosd
- inc edx
- loop @@0
- @@1:
- mov eax,edx
- pop ebp
- pop ebx
- pop edi
- ret
- ?CaptureStackBackTrace@@YIIIPAPAX@Z ENDP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement