PiDevCfgFreeDeviceContext

VOID __fastcall PiDevCfgFreeDeviceContext(INT64 a1){
  _UNICODE_STRING *v2; 
  __int64 v3; 
  void *v4; 
  if( *(int *)a1 < 0 )
  {
    v4 = *(void **)(a1 + 16);
    if( v4 )
      ZwClose(v4);
  }
  v2 = (_UNICODE_STRING *)(a1 + 24);
  v3 = 3i64;
  do
  {
    RtlFreeAnsiString(v2++);
    --v3;
  }
  while( v3 );
}

Referenced by:

PiDevCfgInitDeviceCallback
PiDevCfgInitDeviceContext
PiDevCfgProcessDevice
PiDevCfgProcessDeviceCallback
PpDevCfgCheckDeviceNeedsUpdate
PpDevCfgProcessDeviceExtensions
PpDevCfgProcessDeviceOperations
PpDevCfgProcessDeviceReset