PopCadTriggerDriverLoad

NTSTATUS __fastcall PopCadTriggerDriverLoad(UINT64 a1, INT64 a2, WCHAR a3){
  NTSTATUS result; 
  struct _UNICODE_STRING DestinationString; 
  DestinationString = 0i64;
  _m_prefetchw(&PopCadLoadReason);
  result = _InterlockedOr(&PopCadLoadReason, a1);
  if( !result )
  {
    RtlInitUnicodeString(&DestinationString, L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\CAD", a3);
    return ZwLoadDriver(&DestinationString);
  }
  return result;
}

Referenced by:

PopBatteryAdd
PopCadHpmiPnpNotification