node/lib/metasm/metasm/disassemble.rb
def disassemble_mainiter(entrypoints=[])
		@entrypoints ||= []
		if @addrs_todo.empty? and entrypoints.empty?
			post_disassemble
			puts 'disassembly finished' if $VERBOSE
			@callback_finished[] if callback_finished
			return false
		elsif @addrs_todo.empty?
			ep = entrypoints.shift
			l = auto_label_at(normalize(ep), 'entrypoint')
			puts "start disassemble from #{l} (#{entrypoints.length})" if $VERBOSE and not entrypoints.empty?
			@entrypoints << l
			@addrs_todo << [ep]
		else
			disassemble_step
		end
		true
	end
# do one operation relevant to disassembling
# returns nil once done
do one operation relevant to disassembling
returns nil once done
do one operation relevant to disassembling returns nil once done
def disassemble_mainiter(entrypoints=[])
		@entrypoints ||= []
		if @addrs_todo.empty? and entrypoints.empty?
			post_disassemble
			puts 'disassembly finished' if $VERBOSE
			@callback_finished[] if callback_finished
			return false
		elsif @addrs_todo.empty?
			ep = entrypoints.shift
			l = auto_label_at(normalize(ep), 'entrypoint')
			puts "start disassemble from #{l} (#{entrypoints.length})" if $VERBOSE and not entrypoints.empty?
			@entrypoints << l
			@addrs_todo << [ep]
		else
			disassemble_step
		end
		true
	end
def disassemble_mainiter ( entrypoints = [ ] ) @entrypoints ||= [ ] if @addrs_todo . empty? and entrypoints . empty? post_disassemble puts 'disassembly finished' if $VERBOSE @callback_finished [ ] if callback_finished return false elsif @addrs_todo . empty? ep = entrypoints . shift l = auto_label_at ( normalize ( ep ) , 'entrypoint' ) puts "start disassemble from #{l} (#{entrypoints.length})" if $VERBOSE and not entrypoints . empty? @entrypoints << l @addrs_todo << [ ep ] else disassemble_step end true end
do one operation relevant to disassembling
returns nil once done
do one operation relevant to disassembling returns nil once done
entrypoints