def Object(theType, offset, vm, name=None, **kwargs):
 name = (name or theType)
 offset = int(offset)
 try:
  if vm.profile.has_type(theType):
   result = vm.profile.types[theType](offset=offset, vm=vm, name=name, **kwargs)
   return result
 except InvalidOffsetError:
  return NoneObject('Invalid Address 0x{0:08X}, instantiating {1}'.format(offset, name), strict=vm.profile.strict)
 debug.warning('Cant find object {0} in profile {1}?'.format(theType, vm.profile))

def Object ( theType , offset , vm , name = None , ** kwargs ) : name = ( name or theType ) offset = int ( offset ) try : if vm . profile . has_type ( theType ) : result = vm . profile . types [ theType ] ( offset = offset , vm = vm , name = name , ** kwargs ) return result except InvalidOffsetError : return NoneObject ( 'Invalid Address 0x{0:08X}, instantiating {1}' . format ( offset , name ) , strict = vm . profile . strict ) debug . warning ( 'Cant find object {0} in profile {1}?' . format ( theType , vm . profile ) )
a function which instantiates the object named in thetype from the type in profile passing optional args of kwargs .