WdtpAllocateTimer

UINT8 *__stdcall WdtpAllocateTimer(){
  VOID **PoolWithTag; 
  VOID **v1; 
  VOID **Timer; 

  PoolWithTag = ExAllocatePoolWithTag(0x200ui64, 0x80ui64, 1415862096i64);
  v1 = PoolWithTag;
  if( PoolWithTag )
  {
    memset((char *)PoolWithTag + 1, 0i64, 0x7Fu);
    *(_BYTE *)v1 = 119;
    Timer = ExAllocateTimer((INT64)WdtpTimerCallback, (INT64)v1, 0i64);
    v1[7] = Timer;
    if( Timer )
    {
      KeInitializeEvent((INT64)(v1 + 13), 0, 0);
    }
    else
    {
      ExFreePoolWithTag(v1, 0x54645750u);
      return 0i64;
    }
  }
  return(UINT8 *)v1;
}

Referenced by:

PnpWatchdogTimerAllocate