RtlpTestAndFillMemoryUp

UINT8 __stdcall RtlpTestAndFillMemoryUp(UINT64 InputPattern, UINT64 OutputPattern, PVOID VirtualAddress){
  char *v3; 
  v3 = (char *)VirtualAddress + 4096;
  while( 1 )
  {
    if( VirtualAddress >= v3 )
      return 1;
    if( *(_DWORD *)VirtualAddress != (_DWORD)InputPattern )
      break;
    *(_DWORD *)VirtualAddress = OutputPattern;
    VirtualAddress = (char *)VirtualAddress + 4;
  }
  return 0;
}

Referenced by:

RtlpGenericInverseCouplingWorker
RtlpGenericMATSPlusWorker