PopCadTriggerDriverLoad

NTSTATUS __fastcall PopCadTriggerDriverLoad(unsigned int a1, __int64 a2, WCHAR a3){
  NTSTATUS result; 
  UINT64 *v4; 
  UINT64 v5; 
  UINT8 *v6; 
  _UNICODE_STRING DestinationString; 

  DestinationString = 0i64;
  _m_prefetchw(&PopCadLoadReason);
  result = _InterlockedOr(&PopCadLoadReason, a1);
  if( !result )
  {
    RtlInitUnicodeString(&DestinationString, L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\CAD");
    return ZwLoadDriver((UINT64 *)&DestinationString.Length, v4, v5, v6, *(UINT64 *)&DestinationString.Length);
  }
  return result;
}

Referenced by:

PopBatteryAdd
PopCadHpmiPnpNotification