# Path: dtformats/data_format.py
# class BinaryDataFormat(object):
# class BinaryDataFile(BinaryDataFormat):
#   _FABRIC = None
#   _DEFINITION_FILES_PATH = os.path.dirname(__file__)
#   _HEXDUMP_CHARACTER_MAP = [
#       '.' if byte < 0x20 or byte > 0x7e else chr(byte) for byte in range(256)]
#   def __init__(self, debug=False, output_writer=None):
#   def _DebugPrintData(self, description, data):
#   def _DebugPrintDecimalValue(self, description, value):
#   def _DebugPrintFiletimeValue(self, description, value):
#   def _DebugPrintStructureObject(self, structure_object, debug_info):
#   def _DebugPrintPosixTimeValue(self, description, value):
#   def _DebugPrintText(self, text):
#   def _DebugPrintValue(self, description, value):
#   def _FormatDataInHexadecimal(self, data):
#   def _FormatArrayOfIntegersAsDecimals(self, array_of_integers):
#   def _FormatArrayOfIntegersAsOffsets(self, array_of_integers):
#   def _FormatArrayOfIntegersAsIPv4Address(self, array_of_integers):
#   def _FormatArrayOfIntegersAsIPv6Address(self, array_of_integers):
#   def _FormatFloatingPoint(self, floating_point):
#   def _FormatIntegerAsDecimal(self, integer):
#   def _FormatIntegerAsFiletime(self, integer):
#   def _FormatIntegerAsHexadecimal2(self, integer):
#   def _FormatIntegerAsHexadecimal4(self, integer):
#   def _FormatIntegerAsHexadecimal8(self, integer):
#   def _FormatIntegerAsPosixTime(self, integer):
#   def _FormatIntegerAsPosixTimeInMicroseconds(self, integer):
#   def _FormatIntegerAsOffset(self, integer):
#   def _FormatPackedIPv4Address(self, packed_ip_address):
#   def _FormatPackedIPv6Address(self, packed_ip_address):
#   def _FormatString(self, string):
#   def _FormatStructureObject(self, structure_object, debug_info):
#   def _FormatUUIDAsString(self, uuid):
#   def _FormatValue(self, description, value):
#   def _GetDataTypeMap(self, name):
#   def _ReadData(self, file_object, file_offset, data_size, description):
#   def _ReadStructure(
#       self, file_object, file_offset, data_size, data_type_map, description):
#   def _ReadStructureFromByteStream(
#       self, byte_stream, file_offset, data_type_map, description, context=None):
#   def _ReadStructureFromFileObject(
#       self, file_object, file_offset, data_type_map, description):
#   def ReadDefinitionFile(cls, filename):
#   def __init__(self, debug=False, output_writer=None):
#   def Close(self):
#   def Open(self, path):
#   def ReadFileObject(self, file_object):
# 
# Path: dtformats/data_range.py
# class DataRange(object):
#   def __init__(self, file_object, data_offset=0, data_size=0):
#   def read(self, size=None):
#   def seek(self, offset, whence=os.SEEK_SET):
#   def get_offset(self):
#   def tell(self):
#   def get_size(self):
#   def seekable(self):
# 
# Path: dtformats/errors.py
# class ParseError(Exception):


import logging
import os
import pyfwsi
import pylnk
import pyolecf
from dtformats import data_format
from dtformats import data_range
from dtformats import errors
            file_object, file_offset, data_type_map, 'entry header')

      except errors.ParseError as exception:
        error_message = (
            'Unable to parse file entry header at offset: 0x{0:08x} '
            'with error: {1:s}').format(file_offset, exception)

        if not first_guid_checked:
          raise errors.ParseError(error_message)

        logging.warning(error_message)
        break

      if entry_header.guid != self._LNK_GUID:
        error_message = 'Invalid entry header at offset: 0x{0:08x}.'.format(
            file_offset)

        if not first_guid_checked:
          raise errors.ParseError(error_message)

        file_object.seek(-16, os.SEEK_CUR)
        self._ReadFileFooter(file_object)

        file_object.seek(-4, os.SEEK_CUR)
        break

      first_guid_checked = True
      file_offset += 16
      remaining_file_size -= 16


# Path: dtformats/data_format.py
# class BinaryDataFormat(object):
# class BinaryDataFile(BinaryDataFormat):
#   _FABRIC = None
#   _DEFINITION_FILES_PATH = os.path.dirname(__file__)
#   _HEXDUMP_CHARACTER_MAP = [
#       '.' if byte < 0x20 or byte > 0x7e else chr(byte) for byte in range(256)]
#   def __init__(self, debug=False, output_writer=None):
#   def _DebugPrintData(self, description, data):
#   def _DebugPrintDecimalValue(self, description, value):
#   def _DebugPrintFiletimeValue(self, description, value):
#   def _DebugPrintStructureObject(self, structure_object, debug_info):
#   def _DebugPrintPosixTimeValue(self, description, value):
#   def _DebugPrintText(self, text):
#   def _DebugPrintValue(self, description, value):
#   def _FormatDataInHexadecimal(self, data):
#   def _FormatArrayOfIntegersAsDecimals(self, array_of_integers):
#   def _FormatArrayOfIntegersAsOffsets(self, array_of_integers):
#   def _FormatArrayOfIntegersAsIPv4Address(self, array_of_integers):
#   def _FormatArrayOfIntegersAsIPv6Address(self, array_of_integers):
#   def _FormatFloatingPoint(self, floating_point):
#   def _FormatIntegerAsDecimal(self, integer):
#   def _FormatIntegerAsFiletime(self, integer):
#   def _FormatIntegerAsHexadecimal2(self, integer):
#   def _FormatIntegerAsHexadecimal4(self, integer):
#   def _FormatIntegerAsHexadecimal8(self, integer):
#   def _FormatIntegerAsPosixTime(self, integer):
#   def _FormatIntegerAsPosixTimeInMicroseconds(self, integer):
#   def _FormatIntegerAsOffset(self, integer):
#   def _FormatPackedIPv4Address(self, packed_ip_address):
#   def _FormatPackedIPv6Address(self, packed_ip_address):
#   def _FormatString(self, string):
#   def _FormatStructureObject(self, structure_object, debug_info):
#   def _FormatUUIDAsString(self, uuid):
#   def _FormatValue(self, description, value):
#   def _GetDataTypeMap(self, name):
#   def _ReadData(self, file_object, file_offset, data_size, description):
#   def _ReadStructure(
#       self, file_object, file_offset, data_size, data_type_map, description):
#   def _ReadStructureFromByteStream(
#       self, byte_stream, file_offset, data_type_map, description, context=None):
#   def _ReadStructureFromFileObject(
#       self, file_object, file_offset, data_type_map, description):
#   def ReadDefinitionFile(cls, filename):
#   def __init__(self, debug=False, output_writer=None):
#   def Close(self):
#   def Open(self, path):
#   def ReadFileObject(self, file_object):
# 
# Path: dtformats/data_range.py
# class DataRange(object):
#   def __init__(self, file_object, data_offset=0, data_size=0):
#   def read(self, size=None):
#   def seek(self, offset, whence=os.SEEK_SET):
#   def get_offset(self):
#   def tell(self):
#   def get_size(self):
#   def seekable(self):
# 
# Path: dtformats/errors.py
# class ParseError(Exception):


# Path: dtformats/jump_list.py
import logging
import os
import pyfwsi
import pylnk
import pyolecf
from dtformats import data_format
from dtformats import data_range
from dtformats import errors

            file_object, file_offset, data_type_map, 'entry header')

      except errors.ParseError as exception:
        error_message = (
            'Unable to parse file entry header at offset: 0x{0:08x} '
            'with error: {1:s}').format(file_offset, exception)

        if not first_guid_checked:
          raise errors.ParseError(error_message)

        logging.warning(error_message)
        break

      if entry_header.guid != self._LNK_GUID:
        error_message = 'Invalid entry header at offset: 0x{0:08x}.'.format(
            file_offset)

        if not first_guid_checked:
          raise errors.ParseError(error_message)

        file_object.seek(-16, os.SEEK_CUR)
        self._ReadFileFooter(file_object)

        file_object.seek(-4, os.SEEK_CUR)
        break

      first_guid_checked = True
      file_offset += 16
      remaining_file_size -= 16


      lnk_file_object = data_range.DataRange(