invoke GetTickCount
mov edi,eax
invoke Sleep,100h
invoke GetTickCount
mov esi,eax
sub eax,edi
cmp eax,99h
jae DebugNotFound
DebugFound:
;; over
DebugNotFound:
invoke GetTickCount
sub eax,esi
cmp eax,10h
ja DebugFound
;....and so on
ret
pushad
mov ebx,1
invoke GetTickCount
mov edi,eax
invoke Sleep,100h
invoke GetTickCount
mov esi,eax
sub eax,edi
cmp eax,99h
jae DebugNotFound
DebugFound:
invoke ExitProcess ,0
;; over
DebugNotFound:
dec ebx
je ret0
invoke GetTickCount
sub eax,esi
cmp eax,10h
ja DebugFound
;....and so on
ret0:
popad
ret