SysCtxRegCreateTree

NTSTATUS __fastcall SysCtxRegCreateTree(
        __int64 a1,
        VOID *a2,
        WCHAR *a3,
        unsigned int a4,
        _ACCESS_MASK DesiredAccess,
        VOID *pSecurityDescriptor,
        __int64 a7,
        VOID **phkResult,
        UINT64 *lpRegDisposition){
  if( a1 )
    return RegRtlCreateTreeTransacted(
             a2,
             a3,
             a4,
             DesiredAccess,
             pSecurityDescriptor,
             0,
             phkResult,
             lpRegDisposition,
             *(VOID **)(a1 + 8));
  else
    return RegRtlCreateTreeTransacted(
             a2,
             a3,
             a4,
             DesiredAccess,
             pSecurityDescriptor,
             0,
             phkResult,
             lpRegDisposition,
             0i64);
}

Referenced by:

PnpCtxGetCachedNodeBaseKey
PnpCtxRegCreateTree