WdipSemOpenRegistryKey

INT64 __fastcall WdipSemOpenRegistryKey(const WCHAR *KeyName, VOID *RootHandle, VOID **Key){
  INT64 result; 
  struct _UNICODE_STRING v6; 
  struct _OBJECT_ATTRIBUTES ObjectAttributes; 
  *(&ObjectAttributes.Length + 1) = 0;
  *(&ObjectAttributes.Attributes + 1) = 0;
  v6 = 0i64;
  if( !KeyName || !Key )
    return 3221225485i64;
  RtlInitUnicodeString(&v6, KeyName, (WCHAR)Key);
  ObjectAttributes.Length = 48;
  ObjectAttributes.ObjectName = &v6;
  ObjectAttributes.RootDirectory = RootHandle;
  ObjectAttributes.Attributes = 576;
  *(_OWORD *)&ObjectAttributes.SecurityDescriptor = 0i64;
  LODWORD(result) = ZwOpenKey(Key, 0xF003Fu, &ObjectAttributes);
  return result;
}

Referenced by:

WdipSemLoadConfigInfo
WdipSemLoadGroupPolicy
WdipSemLoadLocalGroupPolicy
WdipSemLoadNextContextProvider
WdipSemLoadNextEndEvent
WdipSemLoadNextScenario
WdipSemLoadScenarioTable