40171f:	e8 c3 05 00 00       	call   0x401ce7
401724:	8b 55 0c             	mov    0xc(%ebp),%edx
401727:	8b f0                	mov    %eax,%esi
401729:	03 55 f8             	add    -0x8(%ebp),%edx
40172c:	2b 5d f8             	sub    -0x8(%ebp),%ebx
40172f:	89 55 0c             	mov    %edx,0xc(%ebp)
401732:	89 5d f8             	mov    %ebx,-0x8(%ebp)
401735:	85 f6                	test   %esi,%esi
401737:	0f 88 54 ff ff ff    	js     0x401691
40173d:	8b 4d 20             	mov    0x20(%ebp),%ecx
401740:	f7 c1 00 02 00 00    	test   $0x200,%ecx
401746:	74 19                	je     0x401761
401748:	83 fb 01             	cmp    $0x1,%ebx
40174b:	76 14                	jbe    0x401761
40174d:	8d 43 ff             	lea    -0x1(%ebx),%eax
401750:	50                   	push   %eax
401751:	0f b6 c1             	movzbl %cl,%eax
401754:	50                   	push   %eax
401755:	8d 42 01             	lea    0x1(%edx),%eax
401758:	50                   	push   %eax
401759:	e8 12 df 02 00       	call   0x42f670
40175e:	83 c4 0c             	add    $0xc,%esp
401761:	8b 4d 08             	mov    0x8(%ebp),%ecx
401764:	85 f6                	test   %esi,%esi
401766:	0f 89 58 ff ff ff    	jns    0x4016c4
40176c:	e9 23 ff ff ff       	jmp    0x401694
401771:	55                   	push   %ebp
401772:	8b ec                	mov    %esp,%ebp
401774:	51                   	push   %ecx
401775:	51                   	push   %ecx
401776:	56                   	push   %esi
401777:	33 c0                	xor    %eax,%eax
401779:	f7 45 20 00 01 00 00 	testl  $0x100,0x20(%ebp)
401780:	57                   	push   %edi
401781:	8b 7d 0c             	mov    0xc(%ebp),%edi
401784:	8b f0                	mov    %eax,%esi
401786:	74 36                	je     0x4017be
401788:	8b 4d 08             	mov    0x8(%ebp),%ecx
40178b:	85 c9                	test   %ecx,%ecx
40178d:	75 04                	jne    0x401793
40178f:	85 ff                	test   %edi,%edi
401791:	75 08                	jne    0x40179b
401793:	81 ff ff ff ff 7f    	cmp    $0x7fffffff,%edi
401799:	76 05                	jbe    0x4017a0
40179b:	be 57 00 07 80       	mov    $0x80070057,%esi
4017a0:	85 f6                	test   %esi,%esi
4017a2:	78 16                	js     0x4017ba
4017a4:	85 ff                	test   %edi,%edi
4017a6:	74 12                	je     0x4017ba
4017a8:	8d 45 0c             	lea    0xc(%ebp),%eax
4017ab:	50                   	push   %eax
4017ac:	57                   	push   %edi
4017ad:	51                   	push   %ecx
4017ae:	e8 e4 06 00 00       	call   0x401e97
4017b3:	8b 55 0c             	mov    0xc(%ebp),%edx
4017b6:	8b f0                	mov    %eax,%esi
4017b8:	eb 20                	jmp    0x4017da
4017ba:	8b d0                	mov    %eax,%edx
4017bc:	eb 1f                	jmp    0x4017dd
4017be:	85 ff                	test   %edi,%edi
4017c0:	74 08                	je     0x4017ca
4017c2:	81 ff ff ff ff 7f    	cmp    $0x7fffffff,%edi
4017c8:	76 05                	jbe    0x4017cf
4017ca:	be 57 00 07 80       	mov    $0x80070057,%esi
4017cf:	85 f6                	test   %esi,%esi
4017d1:	78 05                	js     0x4017d8
4017d3:	8b 4d 08             	mov    0x8(%ebp),%ecx
4017d6:	eb d0                	jmp    0x4017a8
4017d8:	8b d0                	mov    %eax,%edx
4017da:	8b 4d 08             	mov    0x8(%ebp),%ecx
4017dd:	89 55 fc             	mov    %edx,-0x4(%ebp)
4017e0:	85 f6                	test   %esi,%esi
4017e2:	0f 88 83 00 00 00    	js     0x40186b
4017e8:	53                   	push   %ebx
4017e9:	ff 75 20             	push   0x20(%ebp)
4017ec:	8d 04 51             	lea    (%ecx,%edx,2),%eax
4017ef:	8b df                	mov    %edi,%ebx
4017f1:	89 45 0c             	mov    %eax,0xc(%ebp)
4017f4:	2b da                	sub    %edx,%ebx
4017f6:	68 ff ff ff 7f       	push   $0x7fffffff
4017fb:	8d 45 14             	lea    0x14(%ebp),%eax
4017fe:	89 5d f8             	mov    %ebx,-0x8(%ebp)
401801:	50                   	push   %eax
401802:	8d 45 10             	lea    0x10(%ebp),%eax
401805:	50                   	push   %eax
401806:	e8 0e 06 00 00       	call   0x401e19
40180b:	8b f0                	mov    %eax,%esi
40180d:	85 f6                	test   %esi,%esi
40180f:	78 0e                	js     0x40181f
401811:	f7 45 20 00 e0 ff ff 	testl  $0xffffe000,0x20(%ebp)
401818:	74 5b                	je     0x401875
40181a:	be 57 00 07 80       	mov    $0x80070057,%esi
40181f:	8b 4d 08             	mov    0x8(%ebp),%ecx
401822:	8b 45 20             	mov    0x20(%ebp),%eax
401825:	a9 00 1c 00 00       	test   $0x1c00,%eax
40182a:	74 1d                	je     0x401849
40182c:	85 ff                	test   %edi,%edi
40182e:	74 19                	je     0x401849
401830:	50                   	push   %eax
401831:	8d 45 f8             	lea    -0x8(%ebp),%eax
401834:	50                   	push   %eax
401835:	8d 45 0c             	lea    0xc(%ebp),%eax
401838:	50                   	push   %eax
401839:	ff 75 fc             	push   -0x4(%ebp)
40183c:	8d 04 3f             	lea    (%edi,%edi,1),%eax
40183f:	50                   	push   %eax
401840:	51                   	push   %ecx
401841:	e8 c5 e2 01 00       	call   0x41fb0b
401846:	8b 5d f8             	mov    -0x8(%ebp),%ebx
401849:	85 f6                	test   %esi,%esi
40184b:	79 08                	jns    0x401855
40184d:	81 fe 7a 00 07 80    	cmp    $0x8007007a,%esi
401853:	75 15                	jne    0x40186a
401855:	8b 4d 18             	mov    0x18(%ebp),%ecx
401858:	85 c9                	test   %ecx,%ecx
40185a:	74 05                	je     0x401861
40185c:	8b 45 0c             	mov    0xc(%ebp),%eax
40185f:	89 01                	mov    %eax,(%ecx)
401861:	8b 45 1c             	mov    0x1c(%ebp),%eax
401864:	85 c0                	test   %eax,%eax
401866:	74 02                	je     0x40186a
401868:	89 18                	mov    %ebx,(%eax)
40186a:	5b                   	pop    %ebx
40186b:	5f                   	pop    %edi
40186c:	8b c6                	mov    %esi,%eax
40186e:	5e                   	pop    %esi
40186f:	8b e5                	mov    %ebp,%esp
401871:	5d                   	pop    %ebp
401872:	c2 1c 00             	ret    $0x1c
401875:	83 fb 01             	cmp    $0x1,%ebx
401878:	77 25                	ja     0x40189f
40187a:	83 7d 14 00          	cmpl   $0x0,0x14(%ebp)
40187e:	74 7f                	je     0x4018ff
401880:	8b 45 10             	mov    0x10(%ebp),%eax
401883:	33 c9                	xor    %ecx,%ecx
401885:	66 39 08             	cmp    %cx,(%eax)
401888:	8b 4d 08             	mov    0x8(%ebp),%ecx
40188b:	74 75                	je     0x401902
40188d:	85 c9                	test   %ecx,%ecx
40188f:	75 07                	jne    0x401898
401891:	be 57 00 07 80       	mov    $0x80070057,%esi
401896:	eb 8a                	jmp    0x401822
401898:	be 7a 00 07 80       	mov    $0x8007007a,%esi
40189d:	eb 63                	jmp    0x401902
40189f:	ff 75 14             	push   0x14(%ebp)
4018a2:	8d 45 f8             	lea    -0x8(%ebp),%eax
4018a5:	33 c9                	xor    %ecx,%ecx
4018a7:	ff 75 10             	push   0x10(%ebp)
4018aa:	89 4d f8             	mov    %ecx,-0x8(%ebp)
4018ad:	50                   	push   %eax
4018ae:	8b 45 0c             	mov    0xc(%ebp),%eax
4018b1:	53                   	push   %ebx
4018b2:	50                   	push   %eax
4018b3:	e8 f6 e1 01 00       	call   0x41faae
4018b8:	8b 55 0c             	mov    0xc(%ebp),%edx
4018bb:	8b f0                	mov    %eax,%esi
4018bd:	8b 45 f8             	mov    -0x8(%ebp),%eax
4018c0:	2b d8                	sub    %eax,%ebx
4018c2:	89 5d f8             	mov    %ebx,-0x8(%ebp)
4018c5:	8d 14 42             	lea    (%edx,%eax,2),%edx
4018c8:	89 55 0c             	mov    %edx,0xc(%ebp)
4018cb:	85 f6                	test   %esi,%esi
4018cd:	0f 88 4c ff ff ff    	js     0x40181f
4018d3:	8b 4d 20             	mov    0x20(%ebp),%ecx
4018d6:	f7 c1 00 02 00 00    	test   $0x200,%ecx
4018dc:	74 21                	je     0x4018ff
4018de:	83 fb 01             	cmp    $0x1,%ebx
4018e1:	76 1c                	jbe    0x4018ff
4018e3:	8d 04 1b             	lea    (%ebx,%ebx,1),%eax
4018e6:	83 f8 02             	cmp    $0x2,%eax
4018e9:	76 14                	jbe    0x4018ff
4018eb:	83 c0 fe             	add    $0xfffffffe,%eax
4018ee:	50                   	push   %eax
4018ef:	0f b6 c1             	movzbl %cl,%eax
4018f2:	50                   	push   %eax
4018f3:	8d 42 02             	lea    0x2(%edx),%eax
4018f6:	50                   	push   %eax
4018f7:	e8 74 dd 02 00       	call   0x42f670
4018fc:	83 c4 0c             	add    $0xc,%esp
4018ff:	8b 4d 08             	mov    0x8(%ebp),%ecx
401902:	85 f6                	test   %esi,%esi
401904:	0f 89 4b ff ff ff    	jns    0x401855
40190a:	e9 13 ff ff ff       	jmp    0x401822
40190f:	55                   	push   %ebp
401910:	8b ec                	mov    %esp,%ebp
401912:	51                   	push   %ecx
401913:	8b 45 20             	mov    0x20(%ebp),%eax
401916:	ba 57 00 07 80       	mov    $0x80070057,%edx
40191b:	53                   	push   %ebx
40191c:	8b 5d 08             	mov    0x8(%ebp),%ebx
40191f:	b9 ff ff ff 7f       	mov    $0x7fffffff,%ecx
401924:	56                   	push   %esi
401925:	33 f6                	xor    %esi,%esi
401927:	57                   	push   %edi
401928:	8b 7d 0c             	mov    0xc(%ebp),%edi
40192b:	a9 00 01 00 00       	test   $0x100,%eax
401930:	74 0a                	je     0x40193c
401932:	85 db                	test   %ebx,%ebx
401934:	75 0c                	jne    0x401942
401936:	85 ff                	test   %edi,%edi
401938:	75 0c                	jne    0x401946
40193a:	eb 06                	jmp    0x401942
40193c:	33 f6                	xor    %esi,%esi
40193e:	85 ff                	test   %edi,%edi
401940:	74 04                	je     0x401946
401942:	3b f9                	cmp    %ecx,%edi
401944:	76 02                	jbe    0x401948
401946:	8b f2                	mov    %edx,%esi
401948:	85 f6                	test   %esi,%esi
40194a:	0f 88 13 01 00 00    	js     0x401a63
401950:	50                   	push   %eax
401951:	51                   	push   %ecx
401952:	8d 45 14             	lea    0x14(%ebp),%eax
401955:	89 5d 08             	mov    %ebx,0x8(%ebp)
401958:	50                   	push   %eax
401959:	8b d7                	mov    %edi,%edx
40195b:	8d 45 10             	lea    0x10(%ebp),%eax
40195e:	50                   	push   %eax
40195f:	89 55 0c             	mov    %edx,0xc(%ebp)
401962:	89 55 fc             	mov    %edx,-0x4(%ebp)
401965:	e8 73 04 00 00       	call   0x401ddd
40196a:	8b f0                	mov    %eax,%esi
40196c:	85 f6                	test   %esi,%esi
40196e:	0f 88 9d 00 00 00    	js     0x401a11
401974:	f7 45 20 00 e0 ff ff 	testl  $0xffffe000,0x20(%ebp)
40197b:	74 17                	je     0x401994
40197d:	be 57 00 07 80       	mov    $0x80070057,%esi
401982:	8b cf                	mov    %edi,%ecx
401984:	85 ff                	test   %edi,%edi
401986:	0f 84 93 00 00 00    	je     0x401a1f
40198c:	c6 03 00             	movb   $0x0,(%ebx)
40198f:	e9 8b 00 00 00       	jmp    0x401a1f
401994:	85 ff                	test   %edi,%edi
401996:	75 21                	jne    0x4019b9
401998:	39 7d 14             	cmp    %edi,0x14(%ebp)
40199b:	74 7b                	je     0x401a18
40199d:	8b 45 10             	mov    0x10(%ebp),%eax
4019a0:	80 38 00             	cmpb   $0x0,(%eax)
4019a3:	74 73                	je     0x401a18
4019a5:	85 db                	test   %ebx,%ebx
4019a7:	75 09                	jne    0x4019b2
4019a9:	be 57 00 07 80       	mov    $0x80070057,%esi
4019ae:	8b cf                	mov    %edi,%ecx
4019b0:	eb 6d                	jmp    0x401a1f
4019b2:	be 7a 00 07 80       	mov    $0x8007007a,%esi
4019b7:	eb 5f                	jmp    0x401a18
4019b9:	ff 75 14             	push   0x14(%ebp)
4019bc:	83 65 0c 00          	andl   $0x0,0xc(%ebp)
4019c0:	8d 45 0c             	lea    0xc(%ebp),%eax
4019c3:	ff 75 10             	push   0x10(%ebp)
4019c6:	50                   	push   %eax
4019c7:	57                   	push   %edi
4019c8:	53                   	push   %ebx
4019c9:	e8 19 03 00 00       	call   0x401ce7
4019ce:	8b f0                	mov    %eax,%esi
4019d0:	8b 45 0c             	mov    0xc(%ebp),%eax
4019d3:	8d 0c 18             	lea    (%eax,%ebx,1),%ecx
4019d6:	89 4d 08             	mov    %ecx,0x8(%ebp)
4019d9:	8b cf                	mov    %edi,%ecx
4019db:	2b c8                	sub    %eax,%ecx
4019dd:	89 4d 0c             	mov    %ecx,0xc(%ebp)
4019e0:	89 4d fc             	mov    %ecx,-0x4(%ebp)
4019e3:	85 f6                	test   %esi,%esi
4019e5:	78 38                	js     0x401a1f
4019e7:	8b 4d 20             	mov    0x20(%ebp),%ecx
4019ea:	f7 c1 00 02 00 00    	test   $0x200,%ecx
4019f0:	74 26                	je     0x401a18
4019f2:	8b 55 0c             	mov    0xc(%ebp),%edx
4019f5:	83 fa 01             	cmp    $0x1,%edx
4019f8:	76 1e                	jbe    0x401a18
4019fa:	8d 42 ff             	lea    -0x1(%edx),%eax
4019fd:	50                   	push   %eax
4019fe:	0f b6 c1             	movzbl %cl,%eax
401a01:	50                   	push   %eax
401a02:	8b 45 08             	mov    0x8(%ebp),%eax
401a05:	40                   	inc    %eax
401a06:	50                   	push   %eax
401a07:	e8 64 dc 02 00       	call   0x42f670
401a0c:	83 c4 0c             	add    $0xc,%esp
401a0f:	eb 07                	jmp    0x401a18
401a11:	85 ff                	test   %edi,%edi
401a13:	74 03                	je     0x401a18
401a15:	c6 03 00             	movb   $0x0,(%ebx)
401a18:	8b 4d 0c             	mov    0xc(%ebp),%ecx
401a1b:	85 f6                	test   %esi,%esi
401a1d:	79 2f                	jns    0x401a4e
401a1f:	8b 45 20             	mov    0x20(%ebp),%eax
401a22:	a9 00 1c 00 00       	test   $0x1c00,%eax
401a27:	74 19                	je     0x401a42
401a29:	85 ff                	test   %edi,%edi
401a2b:	74 15                	je     0x401a42
401a2d:	50                   	push   %eax
401a2e:	8d 45 fc             	lea    -0x4(%ebp),%eax
401a31:	50                   	push   %eax
401a32:	8d 45 08             	lea    0x8(%ebp),%eax
401a35:	50                   	push   %eax
401a36:	6a 00                	push   $0x0
401a38:	57                   	push   %edi
401a39:	53                   	push   %ebx
401a3a:	e8 05 03 00 00       	call   0x401d44
401a3f:	8b 4d fc             	mov    -0x4(%ebp),%ecx
401a42:	85 f6                	test   %esi,%esi
401a44:	79 08                	jns    0x401a4e
401a46:	81 fe 7a 00 07 80    	cmp    $0x8007007a,%esi
401a4c:	75 15                	jne    0x401a63
401a4e:	8b 45 18             	mov    0x18(%ebp),%eax
401a51:	85 c0                	test   %eax,%eax
401a53:	74 05                	je     0x401a5a
401a55:	8b 55 08             	mov    0x8(%ebp),%edx
401a58:	89 10                	mov    %edx,(%eax)
401a5a:	8b 45 1c             	mov    0x1c(%ebp),%eax
401a5d:	85 c0                	test   %eax,%eax
401a5f:	74 02                	je     0x401a63
401a61:	89 08                	mov    %ecx,(%eax)
401a63:	5f                   	pop    %edi
401a64:	8b c6                	mov    %esi,%eax
401a66:	5e                   	pop    %esi
401a67:	5b                   	pop    %ebx
401a68:	8b e5                	mov    %ebp,%esp
401a6a:	5d                   	pop    %ebp
401a6b:	c2 1c 00             	ret    $0x1c
401a6e:	55                   	push   %ebp
401a6f:	8b ec                	mov    %esp,%ebp
401a71:	51                   	push   %ecx
401a72:	8b 45 20             	mov    0x20(%ebp),%eax
401a75:	33 c9                	xor    %ecx,%ecx
401a77:	ba 57 00 07 80       	mov    $0x80070057,%edx
401a7c:	53                   	push   %ebx
401a7d:	8b 5d 08             	mov    0x8(%ebp),%ebx
401a80:	56                   	push   %esi
401a81:	8b f1                	mov    %ecx,%esi
401a83:	b9 ff ff ff 7f       	mov    $0x7fffffff,%ecx
401a88:	57                   	push   %edi
401a89:	8b 7d 0c             	mov    0xc(%ebp),%edi
401a8c:	a9 00 01 00 00       	test   $0x100,%eax
401a91:	74 0a                	je     0x401a9d
401a93:	85 db                	test   %ebx,%ebx
401a95:	75 0a                	jne    0x401aa1
401a97:	85 ff                	test   %edi,%edi
401a99:	75 0a                	jne    0x401aa5
401a9b:	eb 04                	jmp    0x401aa1
401a9d:	85 ff                	test   %edi,%edi
401a9f:	74 04                	je     0x401aa5
401aa1:	3b f9                	cmp    %ecx,%edi
401aa3:	76 02                	jbe    0x401aa7
401aa5:	8b f2                	mov    %edx,%esi
401aa7:	85 f6                	test   %esi,%esi
401aa9:	0f 88 30 01 00 00    	js     0x401bdf
401aaf:	50                   	push   %eax
401ab0:	51                   	push   %ecx