RtlpCtContextFree

NTSTATUS __stdcall RtlpCtContextFree(PVOID P){
  VOID *v2; 
  void *v3; 

  v2 = (VOID *)*((_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);
  return(unsigned int)ExFreePoolWithTag(P, 0x67744364u);
}

Referenced by:

RtlRaiseCustomSystemEventTrigger
RtlpCtContextInit
RtlpRtlpCtWaitForWnfQuiescentWorker