PnpCopyResourceList

INT64 __stdcall PnpCopyResourceList(PVOID Src){
  unsigned int v2; 
  unsigned int v3; 
  UINT8 *PoolWithTag; 
  INT64 v5; 
  v2 = PnpDetermineResourceListSize((CM_RESOURCE_LIST *)Src);
  if( !v2 )
    return 0i64;
  v3 = v2;
  PoolWithTag = (UINT8 *)ExAllocatePoolWithTag(PagedPool, v2, 0x75737050ui64);
  v5 = (INT64)PoolWithTag;
  if( !PoolWithTag )
    return 0i64;
  memmove(PoolWithTag, (UINT8 *)Src, v3);
  return v5;
}

Referenced by:

PiUpdateDeviceResourceLists