I think that this row have to be changed asQuote:
Originally Posted by kunix [Only registered and activated users can see links. Click Here To Register...]
if((ptr % 2) == 0 && ...........
and also
addr = Dword(p);
i think that return program code at address p, not the address in p, as seems used in script ...