wcsstr

WORD *__fastcall wcsstr(WORD *a1, INT8 *a2){
  WORD *v3; 
  WORD v5; 
  signed __int64 i; 
  INT8 *v7; 

  v3 = a1;
  if( !*(_WORD *)a2 )
    return a1;
  v5 = *a1;
  if( !*a1 )
    return 0i64;
  for( i = (char *)a1 - a2; ; i += 2i64 )
  {
    v7 = a2;
    if( v5 )
      break;
LABEL_9:
    if( !*(_WORD *)v7 )
      return v3;
    v5 = *++v3;
    if( !*v3 )
      return 0i64;
  }
  while( *(_WORD *)v7 )
  {
    if( *(_WORD *)&v7[i] == *(_WORD *)v7 )
    {
      v7 += 2;
      if( *(_WORD *)&v7[i] )
        continue;
    }
    goto LABEL_9;
  }
  return v3;
}

Referenced by:

BcpGetProgressMessages
BiGetObjectReferenceFromEfiEntry
BiIsWinPEBoot
BiUpdateObjectReferenceInEfiEntry
EtwpGenerateFileName
IopCheckIfNotNativeDriver
PfSnIsHostingApplication
PiGetDeviceRegProperty
PiGetDeviceRegistryProperty
PopGetBitlockerKeyLocation
SiGetBiosSystemPartition
SiGetBootDeviceName
SiIsWinPEBoot
SmUniqueIdParseProductName
SubstringMatch