INT64 __stdcall RtlpCtContextFree(PVOID P){
struct EX_RUNDOWN_REF *v2;
void *v3;
INT64 result;
v2 = (struct EX_RUNDOWN_REF *)*((_QWORD *)P + 1);
if( v2 )
ExUnsubscribeWnfStateChange(v2);
v3 = (void *)*((_QWORD *)P + 2);
if( v3 )
{
ExFreePoolWithTag(v3, 0x67744364u);
*((_QWORD *)P + 2) = 0i64;
}
if( *(_QWORD *)P )
ExFreePoolWithTag(*(PVOID *)P, 0x67744364u);
ExFreePoolWithTag(P, 0x67744364u);
return result;
}