PnpRegSzToString

__int64 __fastcall PnpRegSzToString(_WORD *a1, unsigned int a2, int *a3){
  _WORD *v3; 
  _WORD *v4; 
  int v5; 

  v3 = a1;
  v4 = &a1[(unsigned __int64)a2 >> 1];
  if( a1 < v4 )
  {
    do
    {
      if( !*v3 )
        break;
      ++v3;
    }
    while( v3 < v4 );
  }
  v5 = (_DWORD)v3 - (_DWORD)a1;
  if( a3 )
    *a3 = v5;
  return 1i64;
}

Referenced by:

PiDevCfgBuildIndirectString
PiDevCfgMakeServiceBootStart
PiDevCfgResolveVariableDeviceProperty
PiDevCfgResolveVariableKeyHandle
PiFindDevInstMatch
PipApplyFunctionToServiceInstances
PipGetDriverKsrGuidRegistryValue
PipGetDriverTagPriority
PipServiceInstanceToDeviceInstance
PpInitGetGroupOrderIndex