UINT8 __stdcall MmDisableModifiedWriteOfSection(_SECTION_OBJECT_POINTERS *SectionObjectPointer){
bool v1;
__int64 v2;
KIRQL v4;
v4 = 0;
v1 = 1;
v2 = MiLockSectionControlArea(SectionObjectPointer, 1, &v4);
if( v2 )
{
if( *(_QWORD *)(v2 + 40) )
v1 = (*(_DWORD *)(v2 + 56) & 8) != 0;
else
*(_DWORD *)(v2 + 56) |= 8u;
ExReleaseSpinLockExclusiveFromDpcLevel((INT64 *)(v2 + 72));
__writecr8(v4);
LOBYTE(v2) = v1;
}
return v2;
}