EtwpCancelPendingStackwalkApcs

VOID __stdcall EtwpCancelPendingStackwalkApcs(UINT64 *a1){
  __int64 i; 
  char v3; 
  _BYTE *v4; 

  for( i = 0i64; (unsigned int)i < *((_DWORD *)a1 + 238); i = (unsigned int)(i + 1) )
  {
    v4 = (_BYTE *)(96 * i + a1[118]);
    if( *v4 == 18 && KeRemoveQueueApc((INT64)v4) )
      EtwpFinalizePendingApc(a1, 96 * i + a1[118]);
  }
  KeRemoveQueueDpcEx((_KDPC *)(a1 + 108), 0i64);
  if( v3 )
  {
    ExReleaseRundownProtectionCacheAwareEx(*(_QWORD *)(*(_QWORD *)(a1[135] + 448) + 8i64 * *(unsigned int *)a1), 1i64);
    _interlockedbittestandreset((volatile signed __int32 *)a1 + 239, 1u);
  }
}

Referenced by:

EtwpFreeLoggerContext