def Disassemble(data, start, bits='32bit', stoponret=False):
 if (not has_distorm3):
  raise StopIteration
 if (bits == '32bit'):
  mode = distorm3.Decode32Bits
 else:
  mode = distorm3.Decode64Bits
 for (o, _, i, h) in distorm3.DecodeGenerator(start, data, mode):
  if (stoponret and i.startswith('RET')):
   raise StopIteration
  (yield (o, i, h))

def Disassemble ( data , start , bits = '32bit' , stoponret = False ) : if ( not has_distorm3 ) : raise StopIteration if ( bits == '32bit' ) : mode = distorm3 . Decode32Bits else : mode = distorm3 . Decode64Bits for ( o , _ , i , h ) in distorm3 . DecodeGenerator ( start , data , mode ) : if ( stoponret and i . startswith ( 'RET' ) ) : raise StopIteration ( yield ( o , i , h ) )
dissassemble code with distorm3 .