401578:	8b ca                	mov    %edx,%ecx
40157a:	8d 79 02             	lea    0x2(%ecx),%edi
40157d:	66 8b 01             	mov    (%ecx),%ax
401580:	83 c1 02             	add    $0x2,%ecx
401583:	66 3b c6             	cmp    %si,%ax
401586:	75 f5                	jne    0x40157d
401588:	2b cf                	sub    %edi,%ecx
40158a:	d1 f9                	sar    $1,%ecx
40158c:	eb 02                	jmp    0x401590
40158e:	8b ce                	mov    %esi,%ecx
401590:	81 f9 04 01 00 00    	cmp    $0x104,%ecx
401596:	7e 07                	jle    0x40159f
401598:	b8 a1 00 07 80       	mov    $0x800700a1,%eax
40159d:	eb c0                	jmp    0x40155f
40159f:	bb fe ff ff 7f       	mov    $0x7ffffffe,%ebx
4015a4:	89 9d ac fb ff ff    	mov    %ebx,-0x454(%ebp)
4015aa:	89 95 b0 fb ff ff    	mov    %edx,-0x450(%ebp)
4015b0:	c7 85 cc fb ff ff 05 	movl   $0x105,-0x434(%ebp)
4015b7:	01 00 00
4015ba:	b9 60 33 40 00       	mov    $0x403360,%ecx
4015bf:	89 8d c4 fb ff ff    	mov    %ecx,-0x43c(%ebp)
4015c5:	8b c6                	mov    %esi,%eax
4015c7:	8b fe                	mov    %esi,%edi
4015c9:	89 bd c0 fb ff ff    	mov    %edi,-0x440(%ebp)
4015cf:	39 85 cc fb ff ff    	cmp    %eax,-0x434(%ebp)
4015d5:	74 42                	je     0x401619
4015d7:	85 db                	test   %ebx,%ebx
4015d9:	74 53                	je     0x40162e
4015db:	0f b7 32             	movzwl (%edx),%esi
4015de:	89 b5 b8 fb ff ff    	mov    %esi,-0x448(%ebp)
4015e4:	66 85 f6             	test   %si,%si
4015e7:	6a 00                	push   $0x0
4015e9:	5e                   	pop    %esi
4015ea:	74 42                	je     0x40162e
4015ec:	8b b5 b8 fb ff ff    	mov    -0x448(%ebp),%esi
4015f2:	66 89 31             	mov    %si,(%ecx)
4015f5:	83 c1 02             	add    $0x2,%ecx
4015f8:	89 8d c4 fb ff ff    	mov    %ecx,-0x43c(%ebp)
4015fe:	83 c2 02             	add    $0x2,%edx
401601:	89 95 b0 fb ff ff    	mov    %edx,-0x450(%ebp)
401607:	ff 8d cc fb ff ff    	decl   -0x434(%ebp)
40160d:	4b                   	dec    %ebx
40160e:	89 9d ac fb ff ff    	mov    %ebx,-0x454(%ebp)
401614:	47                   	inc    %edi
401615:	33 f6                	xor    %esi,%esi
401617:	eb b0                	jmp    0x4015c9
401619:	83 e9 02             	sub    $0x2,%ecx
40161c:	89 8d c4 fb ff ff    	mov    %ecx,-0x43c(%ebp)
401622:	4f                   	dec    %edi
401623:	89 bd c0 fb ff ff    	mov    %edi,-0x440(%ebp)
401629:	b8 7a 00 07 80       	mov    $0x8007007a,%eax
40162e:	33 d2                	xor    %edx,%edx
401630:	66 89 11             	mov    %dx,(%ecx)
401633:	89 85 d0 fb ff ff    	mov    %eax,-0x430(%ebp)
401639:	85 c0                	test   %eax,%eax
40163b:	0f 85 24 ff ff ff    	jne    0x401565
401641:	8d 8d b4 fb ff ff    	lea    -0x44c(%ebp),%ecx
401647:	e8 23 03 00 00       	call   0x40196f
40164c:	89 85 d0 fb ff ff    	mov    %eax,-0x430(%ebp)
401652:	85 c0                	test   %eax,%eax
401654:	0f 85 0b ff ff ff    	jne    0x401565
40165a:	8b bd b8 fb ff ff    	mov    -0x448(%ebp),%edi
401660:	57                   	push   %edi
401661:	8b 9d b4 fb ff ff    	mov    -0x44c(%ebp),%ebx
401667:	53                   	push   %ebx
401668:	68 60 33 40 00       	push   $0x403360
40166d:	68 00 11 40 00       	push   $0x401100
401672:	68 05 01 00 00       	push   $0x105
401677:	8d 85 d4 fb ff ff    	lea    -0x42c(%ebp),%eax
40167d:	50                   	push   %eax
40167e:	e8 2d fe ff ff       	call   0x4014b0
401683:	83 c4 18             	add    $0x18,%esp
401686:	89 85 d0 fb ff ff    	mov    %eax,-0x430(%ebp)
40168c:	85 c0                	test   %eax,%eax
40168e:	0f 88 d1 fe ff ff    	js     0x401565
401694:	83 c3 01             	add    $0x1,%ebx
401697:	13 fe                	adc    %esi,%edi
401699:	57                   	push   %edi
40169a:	53                   	push   %ebx
40169b:	68 60 33 40 00       	push   $0x403360
4016a0:	68 00 11 40 00       	push   $0x401100
4016a5:	68 05 01 00 00       	push   $0x105
4016aa:	8d 85 e0 fd ff ff    	lea    -0x220(%ebp),%eax
4016b0:	50                   	push   %eax
4016b1:	e8 fa fd ff ff       	call   0x4014b0
4016b6:	83 c4 18             	add    $0x18,%esp
4016b9:	89 85 d0 fb ff ff    	mov    %eax,-0x430(%ebp)
4016bf:	85 c0                	test   %eax,%eax
4016c1:	0f 88 9e fe ff ff    	js     0x401565
4016c7:	8b bd bc fb ff ff    	mov    -0x444(%ebp),%edi
4016cd:	83 7d 08 01          	cmpl   $0x1,0x8(%ebp)
4016d1:	7e 0c                	jle    0x4016df
4016d3:	ff 77 04             	push   0x4(%edi)
4016d6:	ff 15 78 40 40 00    	call   *0x404078
4016dc:	59                   	pop    %ecx
4016dd:	eb 06                	jmp    0x4016e5
4016df:	8b 85 a8 fb ff ff    	mov    -0x458(%ebp),%eax
4016e5:	83 7d 08 02          	cmpl   $0x2,0x8(%ebp)
4016e9:	7e 03                	jle    0x4016ee
4016eb:	8b 77 08             	mov    0x8(%edi),%esi
4016ee:	56                   	push   %esi
4016ef:	50                   	push   %eax
4016f0:	8d 95 e0 fd ff ff    	lea    -0x220(%ebp),%edx
4016f6:	8d 8d d4 fb ff ff    	lea    -0x42c(%ebp),%ecx
4016fc:	e8 27 00 00 00       	call   0x401728
401701:	e9 59 fe ff ff       	jmp    0x40155f
401706:	c7 85 d0 fb ff ff 28 	movl   $0x80070428,-0x430(%ebp)
40170d:	04 07 80
401710:	b8 16 17 40 00       	mov    $0x401716,%eax
401715:	c3                   	ret
401716:	83 4d fc ff          	orl    $0xffffffff,-0x4(%ebp)
40171a:	8b 85 d0 fb ff ff    	mov    -0x430(%ebp),%eax
401720:	50                   	push   %eax
401721:	ff 15 54 40 40 00    	call   *0x404054
401727:	cc                   	int3
401728:	8b ff                	mov    %edi,%edi
40172a:	55                   	push   %ebp
40172b:	8b ec                	mov    %esp,%ebp
40172d:	81 ec 90 00 00 00    	sub    $0x90,%esp
401733:	a1 04 30 40 00       	mov    0x403004,%eax
401738:	33 c5                	xor    %ebp,%eax
40173a:	89 45 fc             	mov    %eax,-0x4(%ebp)
40173d:	8b 45 0c             	mov    0xc(%ebp),%eax
401740:	83 65 80 00          	andl   $0x0,-0x80(%ebp)
401744:	83 a5 7c ff ff ff 00 	andl   $0x0,-0x84(%ebp)
40174b:	53                   	push   %ebx
40174c:	56                   	push   %esi
40174d:	57                   	push   %edi
40174e:	89 85 70 ff ff ff    	mov    %eax,-0x90(%ebp)
401754:	8b da                	mov    %edx,%ebx
401756:	8d 45 80             	lea    -0x80(%ebp),%eax
401759:	50                   	push   %eax
40175a:	6a 01                	push   $0x1
40175c:	51                   	push   %ecx
40175d:	ff 15 14 40 40 00    	call   *0x404014
401763:	8b f8                	mov    %eax,%edi
401765:	85 ff                	test   %edi,%edi
401767:	0f 88 32 01 00 00    	js     0x40189f
40176d:	8b 45 80             	mov    -0x80(%ebp),%eax
401770:	8d 4d 84             	lea    -0x7c(%ebp),%ecx
401773:	51                   	push   %ecx
401774:	8d 8d 7c ff ff ff    	lea    -0x84(%ebp),%ecx
40177a:	51                   	push   %ecx
40177b:	8b 30                	mov    (%eax),%esi
40177d:	6a 05                	push   $0x5
40177f:	50                   	push   %eax
401780:	8b b6 bc 00 00 00    	mov    0xbc(%esi),%esi
401786:	8b ce                	mov    %esi,%ecx
401788:	ff 15 b4 40 40 00    	call   *0x4040b4
40178e:	ff d6                	call   *%esi
401790:	8b f8                	mov    %eax,%edi
401792:	85 ff                	test   %edi,%edi
401794:	0f 88 05 01 00 00    	js     0x40189f
40179a:	8b 95 7c ff ff ff    	mov    -0x84(%ebp),%edx
4017a0:	33 c9                	xor    %ecx,%ecx
4017a2:	85 d2                	test   %edx,%edx
4017a4:	0f 8e f0 00 00 00    	jle    0x40189a
4017aa:	8d 7d 84             	lea    -0x7c(%ebp),%edi
4017ad:	33 f6                	xor    %esi,%esi
4017af:	8b 04 b7             	mov    (%edi,%esi,4),%eax
4017b2:	ba 24 11 40 00       	mov    $0x401124,%edx
4017b7:	3b 04 b2             	cmp    (%edx,%esi,4),%eax
4017ba:	8b 95 7c ff ff ff    	mov    -0x84(%ebp),%edx
4017c0:	75 08                	jne    0x4017ca
4017c2:	46                   	inc    %esi
4017c3:	83 fe 04             	cmp    $0x4,%esi
4017c6:	75 e7                	jne    0x4017af
4017c8:	eb 08                	jmp    0x4017d2
4017ca:	41                   	inc    %ecx
4017cb:	83 c7 18             	add    $0x18,%edi
4017ce:	3b ca                	cmp    %edx,%ecx
4017d0:	7c db                	jl     0x4017ad
4017d2:	3b ca                	cmp    %edx,%ecx
4017d4:	0f 8d c0 00 00 00    	jge    0x40189a
4017da:	6b c9 18             	imul   $0x18,%ecx,%ecx
4017dd:	33 f6                	xor    %esi,%esi
4017df:	8b c6                	mov    %esi,%eax
4017e1:	8b 54 0d 94          	mov    -0x6c(%ebp,%ecx,1),%edx
4017e5:	3b 90 34 11 40 00    	cmp    0x401134(%eax),%edx
4017eb:	0f 84 a2 00 00 00    	je     0x401893
4017f1:	83 c0 04             	add    $0x4,%eax
4017f4:	83 f8 04             	cmp    $0x4,%eax
4017f7:	72 ec                	jb     0x4017e5
4017f9:	8b 8d 70 ff ff ff    	mov    -0x90(%ebp),%ecx
4017ff:	8b c2                	mov    %edx,%eax
401801:	89 8d 74 ff ff ff    	mov    %ecx,-0x8c(%ebp)
401807:	bf 80 04 11 80       	mov    $0x80110480,%edi
40180c:	89 b5 78 ff ff ff    	mov    %esi,-0x88(%ebp)
401812:	83 f8 0e             	cmp    $0xe,%eax
401815:	75 43                	jne    0x40185a
401817:	83 7d 08 54          	cmpl   $0x54,0x8(%ebp)
40181b:	75 05                	jne    0x401822
40181d:	33 ff                	xor    %edi,%edi
40181f:	47                   	inc    %edi
401820:	eb 7d                	jmp    0x40189f
401822:	83 7d 08 52          	cmpl   $0x52,0x8(%ebp)
401826:	75 1a                	jne    0x401842
401828:	8d 85 74 ff ff ff    	lea    -0x8c(%ebp),%eax
40182e:	50                   	push   %eax
40182f:	53                   	push   %ebx
401830:	ff 75 80             	push   -0x80(%ebp)
401833:	56                   	push   %esi
401834:	6a 05                	push   $0x5
401836:	6a 03                	push   $0x3
401838:	ff 15 10 40 40 00    	call   *0x404010
40183e:	8b f8                	mov    %eax,%edi
401840:	eb 5d                	jmp    0x40189f
401842:	83 7d 08 53          	cmpl   $0x53,0x8(%ebp)
401846:	75 57                	jne    0x40189f
401848:	8d 85 74 ff ff ff    	lea    -0x8c(%ebp),%eax
40184e:	50                   	push   %eax
40184f:	53                   	push   %ebx
401850:	ff 75 80             	push   -0x80(%ebp)
401853:	56                   	push   %esi
401854:	6a 05                	push   $0x5
401856:	6a 04                	push   $0x4
401858:	eb de                	jmp    0x401838
40185a:	83 f8 06             	cmp    $0x6,%eax
40185d:	75 17                	jne    0x401876
40185f:	83 7d 08 2b          	cmpl   $0x2b,0x8(%ebp)
401863:	75 3a                	jne    0x40189f
401865:	8d 85 74 ff ff ff    	lea    -0x8c(%ebp),%eax
40186b:	50                   	push   %eax
40186c:	53                   	push   %ebx
40186d:	ff 75 80             	push   -0x80(%ebp)
401870:	56                   	push   %esi
401871:	6a 05                	push   $0x5
401873:	56                   	push   %esi
401874:	eb c2                	jmp    0x401838
401876:	83 f8 0c             	cmp    $0xc,%eax
401879:	75 24                	jne    0x40189f
40187b:	83 7d 08 4e          	cmpl   $0x4e,0x8(%ebp)
40187f:	75 1e                	jne    0x40189f
401881:	8d 85 74 ff ff ff    	lea    -0x8c(%ebp),%eax
401887:	50                   	push   %eax
401888:	53                   	push   %ebx
401889:	ff 75 80             	push   -0x80(%ebp)
40188c:	56                   	push   %esi
40188d:	6a 05                	push   $0x5
40188f:	6a 02                	push   $0x2
401891:	eb a5                	jmp    0x401838
401893:	bf 80 04 11 80       	mov    $0x80110480,%edi
401898:	eb 05                	jmp    0x40189f
40189a:	bf 81 04 11 80       	mov    $0x80110481,%edi
40189f:	8b 4d 80             	mov    -0x80(%ebp),%ecx
4018a2:	85 c9                	test   %ecx,%ecx
4018a4:	74 10                	je     0x4018b6
4018a6:	8b 01                	mov    (%ecx),%eax
4018a8:	51                   	push   %ecx
4018a9:	8b 70 08             	mov    0x8(%eax),%esi
4018ac:	8b ce                	mov    %esi,%ecx
4018ae:	ff 15 b4 40 40 00    	call   *0x4040b4
4018b4:	ff d6                	call   *%esi
4018b6:	8b 4d fc             	mov    -0x4(%ebp),%ecx
4018b9:	8b c7                	mov    %edi,%eax
4018bb:	5f                   	pop    %edi
4018bc:	5e                   	pop    %esi
4018bd:	33 cd                	xor    %ebp,%ecx
4018bf:	5b                   	pop    %ebx
4018c0:	e8 6b 05 00 00       	call   0x401e30
4018c5:	c9                   	leave
4018c6:	c2 08 00             	ret    $0x8
4018c9:	8b ff                	mov    %edi,%edi
4018cb:	56                   	push   %esi
4018cc:	57                   	push   %edi
4018cd:	8b f9                	mov    %ecx,%edi
4018cf:	be 04 01 00 00       	mov    $0x104,%esi
4018d4:	8b ce                	mov    %esi,%ecx
4018d6:	8b c7                	mov    %edi,%eax
4018d8:	66 83 38 00          	cmpw   $0x0,(%eax)
4018dc:	74 08                	je     0x4018e6
4018de:	83 c0 02             	add    $0x2,%eax
4018e1:	83 e9 01             	sub    $0x1,%ecx
4018e4:	75 f2                	jne    0x4018d8
4018e6:	8b c1                	mov    %ecx,%eax
4018e8:	f7 d8                	neg    %eax
4018ea:	1b c0                	sbb    %eax,%eax
4018ec:	25 a9 ff f8 7f       	and    $0x7ff8ffa9,%eax
4018f1:	05 57 00 07 80       	add    $0x80070057,%eax
4018f6:	85 c9                	test   %ecx,%ecx
4018f8:	74 24                	je     0x40191e
4018fa:	8b d1                	mov    %ecx,%edx
4018fc:	8d 81 fc fe ff ff    	lea    -0x104(%ecx),%eax
401902:	83 ec 0c             	sub    $0xc,%esp
401905:	f7 da                	neg    %edx
401907:	1b d2                	sbb    %edx,%edx
401909:	23 d0                	and    %eax,%edx
40190b:	03 d6                	add    %esi,%edx
40190d:	2b f1                	sub    %ecx,%esi
40190f:	03 f6                	add    %esi,%esi
401911:	f7 d9                	neg    %ecx
401913:	1b c9                	sbb    %ecx,%ecx
401915:	23 ce                	and    %esi,%ecx
401917:	03 cf                	add    %edi,%ecx
401919:	e8 05 00 00 00       	call   0x401923
40191e:	5f                   	pop    %edi
40191f:	5e                   	pop    %esi
401920:	c2 04 00             	ret    $0x4
401923:	85 d2                	test   %edx,%edx
401925:	74 2d                	je     0x401954
401927:	56                   	push   %esi
401928:	b8 40 11 40 00       	mov    $0x401140,%eax
40192d:	be fe ff ff 7f       	mov    $0x7ffffffe,%esi
401932:	57                   	push   %edi
401933:	2b c1                	sub    %ecx,%eax
401935:	85 f6                	test   %esi,%esi
401937:	74 15                	je     0x40194e
401939:	0f b7 3c 08          	movzwl (%eax,%ecx,1),%edi
40193d:	66 85 ff             	test   %di,%di
401940:	74 0c                	je     0x40194e
401942:	66 89 39             	mov    %di,(%ecx)
401945:	83 c1 02             	add    $0x2,%ecx
401948:	4e                   	dec    %esi
401949:	83 ea 01             	sub    $0x1,%edx
40194c:	75 e7                	jne    0x401935
40194e:	5f                   	pop    %edi
40194f:	5e                   	pop    %esi
401950:	85 d2                	test   %edx,%edx
401952:	75 03                	jne    0x401957
401954:	83 e9 02             	sub    $0x2,%ecx
401957:	f7 da                	neg    %edx
401959:	1b d2                	sbb    %edx,%edx
40195b:	33 c0                	xor    %eax,%eax
40195d:	81 e2 86 ff f8 7f    	and    $0x7ff8ff86,%edx
401963:	66 89 01             	mov    %ax,(%ecx)
401966:	8d 82 7a 00 07 80    	lea    -0x7ff8ff86(%edx),%eax
40196c:	c2 0c 00             	ret    $0xc
40196f:	8b ff                	mov    %edi,%edi
401971:	55                   	push   %ebp
401972:	8b ec                	mov    %esp,%ebp
401974:	83 e4 f8             	and    $0xfffffff8,%esp
401977:	81 ec 7c 04 00 00    	sub    $0x47c,%esp
40197d:	a1 04 30 40 00       	mov    0x403004,%eax
401982:	33 c4                	xor    %esp,%eax
401984:	89 84 24 78 04 00 00 	mov    %eax,0x478(%esp)
40198b:	33 c0                	xor    %eax,%eax
40198d:	89 4c 24 14          	mov    %ecx,0x14(%esp)
401991:	53                   	push   %ebx
401992:	56                   	push   %esi
401993:	8d 8c 24 74 02 00 00 	lea    0x274(%esp),%ecx
40199a:	89 44 24 0c          	mov    %eax,0xc(%esp)
40199e:	89 44 24 10          	mov    %eax,0x10(%esp)
4019a2:	8b d8                	mov    %eax,%ebx
4019a4:	be 60 33 40 00       	mov    $0x403360,%esi
4019a9:	8b c1                	mov    %ecx,%eax
4019ab:	57                   	push   %edi
4019ac:	ba 04 01 00 00       	mov    $0x104,%edx
4019b1:	2b f0                	sub    %eax,%esi
4019b3:	8d 82 fa fe ff 7f    	lea    0x7ffffefa(%edx),%eax
4019b9:	85 c0                	test   %eax,%eax