char __fastcall SepShouldSetDelinkFlags(_DWORD *a1, __int64 a2){
char v2;
unsigned int v4;
UNICODE_STRING *v5;
v2 = 0;
if( *a1 == 1 )
return 1;
v4 = 0;
if( *(_DWORD *)(a2 + 4) )
{
while( 1 )
{
v5 = (UNICODE_STRING *)(*(_QWORD *)(a2 + 8) + 40i64 * v4);
if( v5 )
{
if( SepPotentialGlobalTableAttribute(v5) )
break;
}
if( ++v4 >= *(_DWORD *)(a2 + 4) )
return v2;
}
return 1;
}
return v2;
}