ExpGetLeapSecondDataRegistryKeyHandle

NTSTATUS __fastcall ExpGetLeapSecondDataRegistryKeyHandle(_QWORD *a1){
  NTSTATUS result; 
  UINT64 v3; 
  _OBJECT_ATTRIBUTES v4; 
  VOID *v5; 

  *(&v4.Length + 1) = 0;
  memset(&v4.Attributes + 1, 0, 20);
  LODWORD(v3) = 0;
  v5 = 0i64;
  v4.Length = 48;
  v4.RootDirectory = 0i64;
  v4.Attributes = 576;
  v4.ObjectName = (_UNICODE_STRING *)&ExpLeapSecondRegkeyPath;
  result = ZwCreateKey(&v5, 0x20019ui64, &v4, 0i64, 0i64, v3, 0i64);
  if( result >= 0 )
    *a1 = v5;
  return result;
}

Referenced by:

ExSetLeapSecondEnabled
ExpReadLeapSecondData