40158e:	72 70                	jb     0x401600
401590:	8b ce                	mov    %esi,%ecx
401592:	03 4a 04             	add    0x4(%edx),%ecx
401595:	8b e8                	mov    %eax,%ebp
401597:	03 6b 0c             	add    0xc(%ebx),%ebp
40159a:	3b cd                	cmp    %ebp,%ecx
40159c:	77 62                	ja     0x401600
40159e:	3b f0                	cmp    %eax,%esi
4015a0:	75 1b                	jne    0x4015bd
4015a2:	8b 42 04             	mov    0x4(%edx),%eax
4015a5:	01 43 08             	add    %eax,0x8(%ebx)
4015a8:	8b 42 04             	mov    0x4(%edx),%eax
4015ab:	29 43 0c             	sub    %eax,0xc(%ebx)
4015ae:	83 7b 0c 00          	cmpl   $0x0,0xc(%ebx)
4015b2:	75 48                	jne    0x4015fc
4015b4:	8b c3                	mov    %ebx,%eax
4015b6:	e8 39 ff ff ff       	call   0x4014f4
4015bb:	eb 3f                	jmp    0x4015fc
4015bd:	8b ce                	mov    %esi,%ecx
4015bf:	8b 7a 04             	mov    0x4(%edx),%edi
4015c2:	03 cf                	add    %edi,%ecx
4015c4:	8b e8                	mov    %eax,%ebp
4015c6:	03 6b 0c             	add    0xc(%ebx),%ebp
4015c9:	3b cd                	cmp    %ebp,%ecx
4015cb:	75 05                	jne    0x4015d2
4015cd:	29 7b 0c             	sub    %edi,0xc(%ebx)
4015d0:	eb 2a                	jmp    0x4015fc
4015d2:	8b 0a                	mov    (%edx),%ecx
4015d4:	03 4a 04             	add    0x4(%edx),%ecx
4015d7:	89 0c 24             	mov    %ecx,(%esp)
4015da:	8b 7b 08             	mov    0x8(%ebx),%edi
4015dd:	03 7b 0c             	add    0xc(%ebx),%edi
4015e0:	2b f9                	sub    %ecx,%edi
4015e2:	89 7c 24 04          	mov    %edi,0x4(%esp)
4015e6:	2b f0                	sub    %eax,%esi
4015e8:	89 73 0c             	mov    %esi,0xc(%ebx)
4015eb:	8b d4                	mov    %esp,%edx
4015ed:	8b c3                	mov    %ebx,%eax
4015ef:	e8 d0 fe ff ff       	call   0x4014c4
4015f4:	84 c0                	test   %al,%al
4015f6:	75 04                	jne    0x4015fc
4015f8:	33 c0                	xor    %eax,%eax
4015fa:	eb 0c                	jmp    0x401608
4015fc:	b0 01                	mov    $0x1,%al
4015fe:	eb 08                	jmp    0x401608
401600:	8b 1b                	mov    (%ebx),%ebx
401602:	3b fb                	cmp    %ebx,%edi
401604:	75 81                	jne    0x401587
401606:	33 c0                	xor    %eax,%eax
401608:	59                   	pop    %ecx
401609:	5a                   	pop    %edx
40160a:	5d                   	pop    %ebp
40160b:	5f                   	pop    %edi
40160c:	5e                   	pop    %esi
40160d:	5b                   	pop    %ebx
40160e:	c3                   	ret
40160f:	90                   	nop
401610:	53                   	push   %ebx
401611:	56                   	push   %esi
401612:	57                   	push   %edi
401613:	8b da                	mov    %edx,%ebx
401615:	8b f0                	mov    %eax,%esi
401617:	81 fe 00 00 10 00    	cmp    $0x100000,%esi
40161d:	7d 07                	jge    0x401626
40161f:	be 00 00 10 00       	mov    $0x100000,%esi
401624:	eb 0c                	jmp    0x401632
401626:	81 c6 ff ff 00 00    	add    $0xffff,%esi
40162c:	81 e6 00 00 ff ff    	and    $0xffff0000,%esi
401632:	89 73 04             	mov    %esi,0x4(%ebx)
401635:	6a 01                	push   $0x1
401637:	68 00 20 00 00       	push   $0x2000
40163c:	56                   	push   %esi
40163d:	6a 00                	push   $0x0
40163f:	e8 f8 fd ff ff       	call   0x40143c
401644:	8b f8                	mov    %eax,%edi
401646:	89 3b                	mov    %edi,(%ebx)
401648:	85 ff                	test   %edi,%edi
40164a:	74 23                	je     0x40166f
40164c:	8b d3                	mov    %ebx,%edx
40164e:	b8 e8 85 6a 00       	mov    $0x6a85e8,%eax
401653:	e8 6c fe ff ff       	call   0x4014c4
401658:	84 c0                	test   %al,%al
40165a:	75 13                	jne    0x40166f
40165c:	68 00 80 00 00       	push   $0x8000
401661:	6a 00                	push   $0x0
401663:	8b 03                	mov    (%ebx),%eax
401665:	50                   	push   %eax
401666:	e8 d9 fd ff ff       	call   0x401444
40166b:	33 c0                	xor    %eax,%eax
40166d:	89 03                	mov    %eax,(%ebx)
40166f:	5f                   	pop    %edi
401670:	5e                   	pop    %esi
401671:	5b                   	pop    %ebx
401672:	c3                   	ret
401673:	90                   	nop
401674:	53                   	push   %ebx
401675:	56                   	push   %esi
401676:	57                   	push   %edi
401677:	55                   	push   %ebp
401678:	8b d9                	mov    %ecx,%ebx
40167a:	8b f2                	mov    %edx,%esi
40167c:	8b e8                	mov    %eax,%ebp
40167e:	c7 43 04 00 00 10 00 	movl   $0x100000,0x4(%ebx)
401685:	6a 04                	push   $0x4
401687:	68 00 20 00 00       	push   $0x2000
40168c:	68 00 00 10 00       	push   $0x100000
401691:	55                   	push   %ebp
401692:	e8 a5 fd ff ff       	call   0x40143c
401697:	8b f8                	mov    %eax,%edi
401699:	89 3b                	mov    %edi,(%ebx)
40169b:	85 ff                	test   %edi,%edi
40169d:	75 1f                	jne    0x4016be
40169f:	81 c6 ff ff 00 00    	add    $0xffff,%esi
4016a5:	81 e6 00 00 ff ff    	and    $0xffff0000,%esi
4016ab:	89 73 04             	mov    %esi,0x4(%ebx)
4016ae:	6a 04                	push   $0x4
4016b0:	68 00 20 00 00       	push   $0x2000
4016b5:	56                   	push   %esi
4016b6:	55                   	push   %ebp
4016b7:	e8 80 fd ff ff       	call   0x40143c
4016bc:	89 03                	mov    %eax,(%ebx)
4016be:	83 3b 00             	cmpl   $0x0,(%ebx)
4016c1:	74 23                	je     0x4016e6
4016c3:	8b d3                	mov    %ebx,%edx
4016c5:	b8 e8 85 6a 00       	mov    $0x6a85e8,%eax
4016ca:	e8 f5 fd ff ff       	call   0x4014c4
4016cf:	84 c0                	test   %al,%al
4016d1:	75 13                	jne    0x4016e6
4016d3:	68 00 80 00 00       	push   $0x8000
4016d8:	6a 00                	push   $0x0
4016da:	8b 03                	mov    (%ebx),%eax
4016dc:	50                   	push   %eax
4016dd:	e8 62 fd ff ff       	call   0x401444
4016e2:	33 c0                	xor    %eax,%eax
4016e4:	89 03                	mov    %eax,(%ebx)
4016e6:	5d                   	pop    %ebp
4016e7:	5f                   	pop    %edi
4016e8:	5e                   	pop    %esi
4016e9:	5b                   	pop    %ebx
4016ea:	c3                   	ret
4016eb:	90                   	nop
4016ec:	53                   	push   %ebx
4016ed:	56                   	push   %esi
4016ee:	57                   	push   %edi
4016ef:	55                   	push   %ebp
4016f0:	83 c4 ec             	add    $0xffffffec,%esp
4016f3:	89 4c 24 04          	mov    %ecx,0x4(%esp)
4016f7:	89 14 24             	mov    %edx,(%esp)
4016fa:	c7 44 24 08 ff ff ff 	movl   $0xffffffff,0x8(%esp)
401701:	ff
401702:	33 d2                	xor    %edx,%edx
401704:	89 54 24 0c          	mov    %edx,0xc(%esp)
401708:	8b e8                	mov    %eax,%ebp
40170a:	8b 04 24             	mov    (%esp),%eax
40170d:	03 c5                	add    %ebp,%eax
40170f:	89 44 24 10          	mov    %eax,0x10(%esp)
401713:	8b 1d e8 85 6a 00    	mov    0x6a85e8,%ebx
401719:	eb 51                	jmp    0x40176c
40171b:	8b 3b                	mov    (%ebx),%edi
40171d:	8b 73 08             	mov    0x8(%ebx),%esi
401720:	3b ee                	cmp    %esi,%ebp
401722:	77 46                	ja     0x40176a
401724:	8b c6                	mov    %esi,%eax
401726:	03 43 0c             	add    0xc(%ebx),%eax
401729:	3b 44 24 10          	cmp    0x10(%esp),%eax
40172d:	77 3b                	ja     0x40176a
40172f:	3b 74 24 08          	cmp    0x8(%esp),%esi
401733:	73 04                	jae    0x401739
401735:	89 74 24 08          	mov    %esi,0x8(%esp)
401739:	8b c6                	mov    %esi,%eax
40173b:	03 43 0c             	add    0xc(%ebx),%eax
40173e:	3b 44 24 0c          	cmp    0xc(%esp),%eax
401742:	76 04                	jbe    0x401748
401744:	89 44 24 0c          	mov    %eax,0xc(%esp)
401748:	68 00 80 00 00       	push   $0x8000
40174d:	6a 00                	push   $0x0
40174f:	56                   	push   %esi
401750:	e8 ef fc ff ff       	call   0x401444
401755:	85 c0                	test   %eax,%eax
401757:	75 0a                	jne    0x401763
401759:	c7 05 c4 85 6a 00 01 	movl   $0x1,0x6a85c4
401760:	00 00 00
401763:	8b c3                	mov    %ebx,%eax
401765:	e8 8a fd ff ff       	call   0x4014f4
40176a:	8b df                	mov    %edi,%ebx
40176c:	81 fb e8 85 6a 00    	cmp    $0x6a85e8,%ebx
401772:	75 a7                	jne    0x40171b
401774:	8b 44 24 04          	mov    0x4(%esp),%eax
401778:	33 d2                	xor    %edx,%edx
40177a:	89 10                	mov    %edx,(%eax)
40177c:	83 7c 24 0c 00       	cmpl   $0x0,0xc(%esp)
401781:	74 19                	je     0x40179c
401783:	8b 44 24 04          	mov    0x4(%esp),%eax
401787:	8b 54 24 08          	mov    0x8(%esp),%edx
40178b:	89 10                	mov    %edx,(%eax)
40178d:	8b 44 24 0c          	mov    0xc(%esp),%eax
401791:	2b 44 24 08          	sub    0x8(%esp),%eax
401795:	8b 54 24 04          	mov    0x4(%esp),%edx
401799:	89 42 04             	mov    %eax,0x4(%edx)
40179c:	83 c4 14             	add    $0x14,%esp
40179f:	5d                   	pop    %ebp
4017a0:	5f                   	pop    %edi
4017a1:	5e                   	pop    %esi
4017a2:	5b                   	pop    %ebx
4017a3:	c3                   	ret
4017a4:	53                   	push   %ebx
4017a5:	56                   	push   %esi
4017a6:	57                   	push   %edi
4017a7:	55                   	push   %ebp
4017a8:	83 c4 f4             	add    $0xfffffff4,%esp
4017ab:	89 4c 24 04          	mov    %ecx,0x4(%esp)
4017af:	89 14 24             	mov    %edx,(%esp)
4017b2:	8b d0                	mov    %eax,%edx
4017b4:	8b ea                	mov    %edx,%ebp
4017b6:	81 e5 00 f0 ff ff    	and    $0xfffff000,%ebp
4017bc:	03 14 24             	add    (%esp),%edx
4017bf:	81 c2 ff 0f 00 00    	add    $0xfff,%edx
4017c5:	81 e2 00 f0 ff ff    	and    $0xfffff000,%edx
4017cb:	89 54 24 08          	mov    %edx,0x8(%esp)
4017cf:	8b 44 24 04          	mov    0x4(%esp),%eax
4017d3:	89 28                	mov    %ebp,(%eax)
4017d5:	8b 44 24 08          	mov    0x8(%esp),%eax
4017d9:	2b c5                	sub    %ebp,%eax
4017db:	8b 54 24 04          	mov    0x4(%esp),%edx
4017df:	89 42 04             	mov    %eax,0x4(%edx)
4017e2:	8b 35 e8 85 6a 00    	mov    0x6a85e8,%esi
4017e8:	eb 3c                	jmp    0x401826
4017ea:	8b 5e 08             	mov    0x8(%esi),%ebx
4017ed:	8b 7e 0c             	mov    0xc(%esi),%edi
4017f0:	03 fb                	add    %ebx,%edi
4017f2:	3b eb                	cmp    %ebx,%ebp
4017f4:	76 02                	jbe    0x4017f8
4017f6:	8b dd                	mov    %ebp,%ebx
4017f8:	3b 7c 24 08          	cmp    0x8(%esp),%edi
4017fc:	76 04                	jbe    0x401802
4017fe:	8b 7c 24 08          	mov    0x8(%esp),%edi
401802:	3b fb                	cmp    %ebx,%edi
401804:	76 1e                	jbe    0x401824
401806:	6a 04                	push   $0x4
401808:	68 00 10 00 00       	push   $0x1000
40180d:	2b fb                	sub    %ebx,%edi
40180f:	57                   	push   %edi
401810:	53                   	push   %ebx
401811:	e8 26 fc ff ff       	call   0x40143c
401816:	85 c0                	test   %eax,%eax
401818:	75 0a                	jne    0x401824
40181a:	8b 44 24 04          	mov    0x4(%esp),%eax
40181e:	33 d2                	xor    %edx,%edx
401820:	89 10                	mov    %edx,(%eax)
401822:	eb 0a                	jmp    0x40182e
401824:	8b 36                	mov    (%esi),%esi
401826:	81 fe e8 85 6a 00    	cmp    $0x6a85e8,%esi
40182c:	75 bc                	jne    0x4017ea
40182e:	83 c4 0c             	add    $0xc,%esp
401831:	5d                   	pop    %ebp
401832:	5f                   	pop    %edi
401833:	5e                   	pop    %esi
401834:	5b                   	pop    %ebx
401835:	c3                   	ret
401836:	8b c0                	mov    %eax,%eax
401838:	53                   	push   %ebx
401839:	56                   	push   %esi
40183a:	57                   	push   %edi
40183b:	55                   	push   %ebp
40183c:	51                   	push   %ecx
40183d:	8b d8                	mov    %eax,%ebx
40183f:	8b f3                	mov    %ebx,%esi
401841:	81 c6 ff 0f 00 00    	add    $0xfff,%esi
401847:	81 e6 00 f0 ff ff    	and    $0xfffff000,%esi
40184d:	89 34 24             	mov    %esi,(%esp)
401850:	8b eb                	mov    %ebx,%ebp
401852:	03 ea                	add    %edx,%ebp
401854:	81 e5 00 f0 ff ff    	and    $0xfffff000,%ebp
40185a:	8b 04 24             	mov    (%esp),%eax
40185d:	89 01                	mov    %eax,(%ecx)
40185f:	8b c5                	mov    %ebp,%eax
401861:	2b 04 24             	sub    (%esp),%eax
401864:	89 41 04             	mov    %eax,0x4(%ecx)
401867:	8b 35 e8 85 6a 00    	mov    0x6a85e8,%esi
40186d:	eb 38                	jmp    0x4018a7
40186f:	8b 5e 08             	mov    0x8(%esi),%ebx
401872:	8b 7e 0c             	mov    0xc(%esi),%edi
401875:	03 fb                	add    %ebx,%edi
401877:	3b 1c 24             	cmp    (%esp),%ebx
40187a:	73 03                	jae    0x40187f
40187c:	8b 1c 24             	mov    (%esp),%ebx
40187f:	3b ef                	cmp    %edi,%ebp
401881:	73 02                	jae    0x401885
401883:	8b fd                	mov    %ebp,%edi
401885:	3b fb                	cmp    %ebx,%edi
401887:	76 1c                	jbe    0x4018a5
401889:	68 00 40 00 00       	push   $0x4000
40188e:	2b fb                	sub    %ebx,%edi
401890:	57                   	push   %edi
401891:	53                   	push   %ebx
401892:	e8 ad fb ff ff       	call   0x401444
401897:	85 c0                	test   %eax,%eax
401899:	75 0a                	jne    0x4018a5
40189b:	c7 05 c4 85 6a 00 02 	movl   $0x2,0x6a85c4
4018a2:	00 00 00
4018a5:	8b 36                	mov    (%esi),%esi
4018a7:	81 fe e8 85 6a 00    	cmp    $0x6a85e8,%esi
4018ad:	75 c0                	jne    0x40186f
4018af:	5a                   	pop    %edx
4018b0:	5d                   	pop    %ebp
4018b1:	5f                   	pop    %edi
4018b2:	5e                   	pop    %esi
4018b3:	5b                   	pop    %ebx
4018b4:	c3                   	ret
4018b5:	8d 40 00             	lea    0x0(%eax),%eax
4018b8:	53                   	push   %ebx
4018b9:	56                   	push   %esi
4018ba:	57                   	push   %edi
4018bb:	55                   	push   %ebp
4018bc:	83 c4 f8             	add    $0xfffffff8,%esp
4018bf:	8b f2                	mov    %edx,%esi
4018c1:	8b f8                	mov    %eax,%edi
4018c3:	bd f8 85 6a 00       	mov    $0x6a85f8,%ebp
4018c8:	81 c7 ff 3f 00 00    	add    $0x3fff,%edi
4018ce:	81 e7 00 c0 ff ff    	and    $0xffffc000,%edi
4018d4:	8b 5d 00             	mov    0x0(%ebp),%ebx
4018d7:	eb 33                	jmp    0x40190c
4018d9:	3b 7b 0c             	cmp    0xc(%ebx),%edi
4018dc:	7f 2c                	jg     0x40190a
4018de:	8b ce                	mov    %esi,%ecx
4018e0:	8b d7                	mov    %edi,%edx
4018e2:	8b 43 08             	mov    0x8(%ebx),%eax
4018e5:	e8 ba fe ff ff       	call   0x4017a4
4018ea:	83 3e 00             	cmpl   $0x0,(%esi)
4018ed:	74 50                	je     0x40193f
4018ef:	8b 46 04             	mov    0x4(%esi),%eax
4018f2:	01 43 08             	add    %eax,0x8(%ebx)
4018f5:	8b 46 04             	mov    0x4(%esi),%eax
4018f8:	29 43 0c             	sub    %eax,0xc(%ebx)
4018fb:	83 7b 0c 00          	cmpl   $0x0,0xc(%ebx)
4018ff:	75 3e                	jne    0x40193f
401901:	8b c3                	mov    %ebx,%eax
401903:	e8 ec fb ff ff       	call   0x4014f4
401908:	eb 35                	jmp    0x40193f
40190a:	8b 1b                	mov    (%ebx),%ebx
40190c:	3b dd                	cmp    %ebp,%ebx
40190e:	75 c9                	jne    0x4018d9
401910:	8b d6                	mov    %esi,%edx
401912:	8b c7                	mov    %edi,%eax
401914:	e8 f7 fc ff ff       	call   0x401610
401919:	83 3e 00             	cmpl   $0x0,(%esi)
40191c:	74 21                	je     0x40193f
40191e:	8b cc                	mov    %esp,%ecx
401920:	8b d6                	mov    %esi,%edx
401922:	8b c5                	mov    %ebp,%eax