RtlpTestMemory

UINT8 __stdcall RtlpTestMemory(UINT64 Pattern, PVOID VirtualAddress){
  char *v2; 
  v2 = (char *)VirtualAddress + 4096;
  while( 1 )
  {
    if( VirtualAddress >= v2 )
      return 1;
    if( *(_DWORD *)VirtualAddress != (_DWORD)Pattern )
      break;
    VirtualAddress = (char *)VirtualAddress + 4;
  }
  return 0;
}

Referenced by:

RtlpGenericInverseCouplingWorker