PipEventRemovalCheckOpenHandles

INT64 __stdcall PipEventRemovalCheckOpenHandles(
        DEVICE_OBJECT **DeviceObjects,
        UINT64 Count,
        DEVICE_OBJECT **VetoingDevice){
  int v4; 
  unsigned int v5; 
  unsigned int v7; 
  int v8; 
  union _LARGE_INTEGER Interval; 
  v4 = 0;
  Interval.QuadPart = -1000000i64;
  v5 = Count;
  v7 = -2147483631;
  while( 1 )
  {
    if( v4 )
      KeDelayExecutionThread(0, 0, &Interval);
    PnpIsChainDereferenced(DeviceObjects, v5, 1ui64, 0i64, VetoingDevice);
    if( !v8 )
      break;
    if( (unsigned int)++v4 >= 0x32 )
      return v7;
  }
  return 0;
}

Referenced by:

PipSendQueryRemoveIrpAndCheckOpenHandles