WdipSemOpenRegistryKey

NTSTATUS __stdcall WdipSemOpenRegistryKey(const WCHAR *KeyName, VOID *RootHandle, VOID **Key){
  INT64 v5; 
  _UNICODE_STRING v7; 
  _OBJECT_ATTRIBUTES ObjectAttributes; 

  *(&ObjectAttributes.Length + 1) = 0;
  *(&ObjectAttributes.Attributes + 1) = 0;
  v7 = 0i64;
  if( !KeyName || !Key )
    return -1073741811;
  RtlInitUnicodeString(&v7, KeyName);
  ObjectAttributes.Length = 48;
  ObjectAttributes.ObjectName = &v7;
  ObjectAttributes.Attributes = 576;
  *(_OWORD *)&ObjectAttributes.SecurityDescriptor = 0i64;
  return ZwOpenKey(
           Key,
           0xF003Fui64,
           &ObjectAttributes,
           v5,
           *(INT64 *)&v7.Length,
           (INT64)v7.Buffer,
           *(INT64 *)&ObjectAttributes.Length,
           (INT64)RootHandle);
}

Referenced by:

WdipSemLoadConfigInfo
WdipSemLoadGroupPolicy
WdipSemLoadLocalGroupPolicy
WdipSemLoadNextContextProvider
WdipSemLoadNextEndEvent
WdipSemLoadNextScenario
WdipSemLoadScenarioTable