anti-cracking library 1.0

BPMSet function
Detects a BPM breakpoint.

Group
Breakpoints

function BPMset: Boolean;

Description
This function checks if a BPM breakpoint is set.

Remarks
A BPM is set by filling the Debug registers with data. This function detects every BPM so there is no need to tell it, where it has to look for the breakpoint. Function first sets the Dr0 - Dr3 registers to break on 4 places in the function. If BPM is set by a debugger, the debugger will restore Dr to old values and our new breakpoints won't run.