AuthzBasepReplaceSecurityAttribute

__int64 __fastcall AuthzBasepReplaceSecurityAttribute(_DWORD *a1, __int64 a2){
  __int128 v3; 
  __int64 v5; 
  __int64 result; 
  __int128 v7; 
  __int128 v8; 
  __int64 v9; 
  v3 = *(_OWORD *)(a2 + 16);
  v7 = *(_OWORD *)a2;
  v5 = *(_QWORD *)(a2 + 32);
  v8 = v3;
  DWORD2(v8) = 0;
  v9 = v5;
  result = AuthzBasepDeleteSecurityAttribute(a1, (INT64)&v7);
  if( (_DWORD)result == -1073741275 )
    result = 0i64;
  if( (int)result >= 0 )
  {
    if( *(_DWORD *)(a2 + 24) )
      return AuthzBasepAddSecurityAttribute((INT64)a1, a2);
  }
  return result;
}

Referenced by:

AuthzBasepSetSecurityAttributesToken