PopFreeRegistration

VOID __stdcall PopFreeRegistration(_POP_POWER_SETTING_CONFIGURATION *Registration){
  _POP_POWER_SETTING_CONFIGURATION *v2; 
  __int64 v3; 
  _DWORD *v4; 

  v2 = Registration + 16;
  v3 = 3i64;
  do
  {
    v4 = *(_DWORD **)v2;
    if( *(_QWORD *)v2 )
    {
      if( (*v4)-- == 1 )
        ExFreePoolWithTag(v4, 0x74655350u);
    }
    v2 += 2;
    --v3;
  }
  while( v3 );
  if( Registration[14] || Registration[15] )
    ZwDeleteWnfStateName((_WNF_STATE_NAME *)Registration + 7);
  ExFreePoolWithTag(Registration, 0x74655350u);
}

Referenced by:

PopDispatchNotificationsToList
PopFreeSessionState