code: def _ParseMRUListKey(self, parser_mediator, registry_key, codepage='cp1252'):
      
      try:
        mrulist = self._ParseMRUListValue(registry_key)
      except (ValueError, errors.ParseError) as exception:
        parser_mediator.ProduceExtractionWarning(
            'unable to parse MRUList value with error: {0!s}'.format(exception))
        return
  
      if not mrulist:
        return
  
      values_dict = {}
      found_terminator = False
      for entry_index, entry_letter in enumerate(mrulist):
        # The MRU list is terminated with '\0' (0x0000).
        if entry_letter == 0:
          break
  
        if found_terminator:
          parser_mediator.ProduceExtractionWarning((
              'found additional MRUList entries after terminator in key: '
              '{0:s}.').format(registry_key.path))
  
          # Only create one parser error per terminator.
          found_terminator = False
  
        entry_letter = chr(entry_letter)
  
        value_string = self._ParseMRUListEntryValue(
            parser_mediator, registry_key, entry_index, entry_letter,
            codepage=codepage)
  
        value_text = 'Index: {0:d} [MRU Value {1:s}]'.format(
            entry_index + 1, entry_letter)
  
        values_dict[value_text] = value_string
  
      event_data = windows_events.WindowsRegistryEventData()
      event_data.key_path = registry_key.path
      event_data.offset = registry_key.offset
      event_data.regvalue = values_dict
      event_data.source_append = self._SOURCE_APPEND
  
      event = time_events.DateTimeValuesEvent(
          registry_key.last_written_time, definitions.TIME_DESCRIPTION_WRITTEN)
      parser_mediator.ProduceEventWithEventData(event, event_data)
docs: Extract event objects from a MRUList Registry key.
  
      Args:
        parser_mediator (ParserMediator): mediates interactions between parsers
            and other components, such as storage and dfvfs.
        registry_key (dfwinreg.WinRegistryKey): Windows Registry key.
        codepage (Optional[str]): extended ASCII string codepage.