WdInstrExecuteAction

NTSTATUS __stdcall WdInstrExecuteAction(_WD_INSTRUCTION *InstructionArray){
  unsigned int v1; 
  int v2; 
  unsigned int v3; 
  unsigned int v4; 
  unsigned int v6; 
  int v7; 
  unsigned int v8; 
  NTSTATUS v9; 

  v4 = 0;
  v6 = v3;
  v7 = v2;
  v8 = v1;
  v9 = -1073741822;
  if( !v1 )
    return v9;
  while( 1 )
  {
    if( InstructionArray->WatchdogAction == v7 )
    {
      v9 = WdInstrExecuteInstruction(InstructionArray, v6);
      if( v9 == -1073741823 )
        break;
    }
    ++v4;
    ++InstructionArray;
    if( v4 >= v8 )
      return v9;
  }
  return 0;
}

Referenced by:

HalpWdatArmTimer
HalpWdatStop