4047d8:	74 27                	je     0x404801
4047da:	83 3e 00             	cmpl   $0x0,(%esi)
4047dd:	75 22                	jne    0x404801
4047df:	6a 10                	push   $0x10
4047e1:	e8 f2 17 00 00       	call   0x405fd8
4047e6:	59                   	pop    %ecx
4047e7:	8b c8                	mov    %eax,%ecx
4047e9:	89 4d 08             	mov    %ecx,0x8(%ebp)
4047ec:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
4047f0:	85 c9                	test   %ecx,%ecx
4047f2:	74 09                	je     0x4047fd
4047f4:	6a 00                	push   $0x0
4047f6:	e8 e5 fc ff ff       	call   0x4044e0
4047fb:	eb 02                	jmp    0x4047ff
4047fd:	33 c0                	xor    %eax,%eax
4047ff:	89 06                	mov    %eax,(%esi)
404801:	6a 02                	push   $0x2
404803:	58                   	pop    %eax
404804:	e8 81 20 00 00       	call   0x40688a
404809:	c3                   	ret
40480a:	6a 7c                	push   $0x7c
40480c:	b8 c5 5d 41 00       	mov    $0x415dc5,%eax
404811:	e8 3e 20 00 00       	call   0x406854
404816:	8b 45 08             	mov    0x8(%ebp),%eax
404819:	8b f1                	mov    %ecx,%esi
40481b:	89 b5 78 ff ff ff    	mov    %esi,-0x88(%ebp)
404821:	89 46 04             	mov    %eax,0x4(%esi)
404824:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
404828:	68 ac 75 41 00       	push   $0x4175ac
40482d:	8d 8d 7c ff ff ff    	lea    -0x84(%ebp),%ecx
404833:	c7 06 b4 75 41 00    	movl   $0x4175b4,(%esi)
404839:	e8 1c fc ff ff       	call   0x40445a
40483e:	8d 85 7c ff ff ff    	lea    -0x84(%ebp),%eax
404844:	50                   	push   %eax
404845:	8b ce                	mov    %esi,%ecx
404847:	e8 d1 ed ff ff       	call   0x40361d
40484c:	8d 8d 7c ff ff ff    	lea    -0x84(%ebp),%ecx
404852:	e8 a5 f4 ff ff       	call   0x403cfc
404857:	8b c6                	mov    %esi,%eax
404859:	e8 40 20 00 00       	call   0x40689e
40485e:	c2 04 00             	ret    $0x4
404861:	56                   	push   %esi
404862:	8b f1                	mov    %ecx,%esi
404864:	83 7e 14 00          	cmpl   $0x0,0x14(%esi)
404868:	c7 06 b4 75 41 00    	movl   $0x4175b4,(%esi)
40486e:	74 09                	je     0x404879
404870:	ff 76 10             	push   0x10(%esi)
404873:	e8 db 1b 00 00       	call   0x406453
404878:	59                   	pop    %ecx
404879:	c7 06 e4 74 41 00    	movl   $0x4174e4,(%esi)
40487f:	5e                   	pop    %esi
404880:	c3                   	ret
404881:	83 c1 08             	add    $0x8,%ecx
404884:	51                   	push   %ecx
404885:	ff 74 24 0c          	push   0xc(%esp)
404889:	e8 f5 0d 00 00       	call   0x405683
40488e:	66 23 44 24 0c       	and    0xc(%esp),%ax
404893:	59                   	pop    %ecx
404894:	66 f7 d8             	neg    %ax
404897:	59                   	pop    %ecx
404898:	1b c0                	sbb    %eax,%eax
40489a:	f7 d8                	neg    %eax
40489c:	c2 08 00             	ret    $0x8
40489f:	83 c1 08             	add    $0x8,%ecx
4048a2:	51                   	push   %ecx
4048a3:	ff 74 24 10          	push   0x10(%esp)
4048a7:	ff 74 24 10          	push   0x10(%esp)
4048ab:	ff 74 24 10          	push   0x10(%esp)
4048af:	e8 fc 0d 00 00       	call   0x4056b0
4048b4:	83 c4 10             	add    $0x10,%esp
4048b7:	c2 0c 00             	ret    $0xc
4048ba:	56                   	push   %esi
4048bb:	8b 74 24 0c          	mov    0xc(%esp),%esi
4048bf:	57                   	push   %edi
4048c0:	8b f9                	mov    %ecx,%edi
4048c2:	eb 15                	jmp    0x4048d9
4048c4:	0f b7 06             	movzwl (%esi),%eax
4048c7:	8b 17                	mov    (%edi),%edx
4048c9:	50                   	push   %eax
4048ca:	ff 74 24 10          	push   0x10(%esp)
4048ce:	8b cf                	mov    %edi,%ecx
4048d0:	ff 52 08             	call   *0x8(%edx)
4048d3:	84 c0                	test   %al,%al
4048d5:	75 08                	jne    0x4048df
4048d7:	46                   	inc    %esi
4048d8:	46                   	inc    %esi
4048d9:	3b 74 24 14          	cmp    0x14(%esp),%esi
4048dd:	75 e5                	jne    0x4048c4
4048df:	5f                   	pop    %edi
4048e0:	8b c6                	mov    %esi,%eax
4048e2:	5e                   	pop    %esi
4048e3:	c2 0c 00             	ret    $0xc
4048e6:	56                   	push   %esi
4048e7:	8b 74 24 0c          	mov    0xc(%esp),%esi
4048eb:	57                   	push   %edi
4048ec:	8b f9                	mov    %ecx,%edi
4048ee:	eb 15                	jmp    0x404905
4048f0:	0f b7 06             	movzwl (%esi),%eax
4048f3:	8b 17                	mov    (%edi),%edx
4048f5:	50                   	push   %eax
4048f6:	ff 74 24 10          	push   0x10(%esp)
4048fa:	8b cf                	mov    %edi,%ecx
4048fc:	ff 52 08             	call   *0x8(%edx)
4048ff:	84 c0                	test   %al,%al
404901:	74 08                	je     0x40490b
404903:	46                   	inc    %esi
404904:	46                   	inc    %esi
404905:	3b 74 24 14          	cmp    0x14(%esp),%esi
404909:	75 e5                	jne    0x4048f0
40490b:	5f                   	pop    %edi
40490c:	8b c6                	mov    %esi,%eax
40490e:	5e                   	pop    %esi
40490f:	c2 0c 00             	ret    $0xc
404912:	83 c1 08             	add    $0x8,%ecx
404915:	51                   	push   %ecx
404916:	ff 74 24 08          	push   0x8(%esp)
40491a:	e8 bc 0d 00 00       	call   0x4056db
40491f:	59                   	pop    %ecx
404920:	59                   	pop    %ecx
404921:	c2 04 00             	ret    $0x4
404924:	56                   	push   %esi
404925:	8b 74 24 08          	mov    0x8(%esp),%esi
404929:	3b 74 24 0c          	cmp    0xc(%esp),%esi
40492d:	74 1c                	je     0x40494b
40492f:	57                   	push   %edi
404930:	8d 79 08             	lea    0x8(%ecx),%edi
404933:	0f b7 06             	movzwl (%esi),%eax
404936:	57                   	push   %edi
404937:	50                   	push   %eax
404938:	e8 9e 0d 00 00       	call   0x4056db
40493d:	66 89 06             	mov    %ax,(%esi)
404940:	46                   	inc    %esi
404941:	46                   	inc    %esi
404942:	3b 74 24 18          	cmp    0x18(%esp),%esi
404946:	59                   	pop    %ecx
404947:	59                   	pop    %ecx
404948:	75 e9                	jne    0x404933
40494a:	5f                   	pop    %edi
40494b:	8b c6                	mov    %esi,%eax
40494d:	5e                   	pop    %esi
40494e:	c2 08 00             	ret    $0x8
404951:	83 c1 08             	add    $0x8,%ecx
404954:	51                   	push   %ecx
404955:	ff 74 24 08          	push   0x8(%esp)
404959:	e8 e1 0d 00 00       	call   0x40573f
40495e:	59                   	pop    %ecx
40495f:	59                   	pop    %ecx
404960:	c2 04 00             	ret    $0x4
404963:	56                   	push   %esi
404964:	8b 74 24 08          	mov    0x8(%esp),%esi
404968:	3b 74 24 0c          	cmp    0xc(%esp),%esi
40496c:	74 1c                	je     0x40498a
40496e:	57                   	push   %edi
40496f:	8d 79 08             	lea    0x8(%ecx),%edi
404972:	0f b7 06             	movzwl (%esi),%eax
404975:	57                   	push   %edi
404976:	50                   	push   %eax
404977:	e8 c3 0d 00 00       	call   0x40573f
40497c:	66 89 06             	mov    %ax,(%esi)
40497f:	46                   	inc    %esi
404980:	46                   	inc    %esi
404981:	3b 74 24 18          	cmp    0x18(%esp),%esi
404985:	59                   	pop    %ecx
404986:	59                   	pop    %ecx
404987:	75 e9                	jne    0x404972
404989:	5f                   	pop    %edi
40498a:	8b c6                	mov    %esi,%eax
40498c:	5e                   	pop    %esi
40498d:	c2 08 00             	ret    $0x8
404990:	55                   	push   %ebp
404991:	8b ec                	mov    %esp,%ebp
404993:	51                   	push   %ecx
404994:	51                   	push   %ecx
404995:	83 65 f8 00          	andl   $0x0,-0x8(%ebp)
404999:	83 c1 18             	add    $0x18,%ecx
40499c:	51                   	push   %ecx
40499d:	8d 45 f8             	lea    -0x8(%ebp),%eax
4049a0:	50                   	push   %eax
4049a1:	6a 01                	push   $0x1
4049a3:	8d 45 08             	lea    0x8(%ebp),%eax
4049a6:	50                   	push   %eax
4049a7:	8d 45 fc             	lea    -0x4(%ebp),%eax
4049aa:	50                   	push   %eax
4049ab:	e8 62 0b 00 00       	call   0x405512
4049b0:	83 c4 14             	add    $0x14,%esp
4049b3:	85 c0                	test   %eax,%eax
4049b5:	b8 ff ff 00 00       	mov    $0xffff,%eax
4049ba:	7c 04                	jl     0x4049c0
4049bc:	0f b7 45 fc          	movzwl -0x4(%ebp),%eax
4049c0:	c9                   	leave
4049c1:	c2 04 00             	ret    $0x4
4049c4:	e9 c7 ff ff ff       	jmp    0x404990
4049c9:	55                   	push   %ebp
4049ca:	8b ec                	mov    %esp,%ebp
4049cc:	8b 55 0c             	mov    0xc(%ebp),%edx
4049cf:	2b 55 08             	sub    0x8(%ebp),%edx
4049d2:	8b 01                	mov    (%ecx),%eax
4049d4:	52                   	push   %edx
4049d5:	ff 75 10             	push   0x10(%ebp)
4049d8:	ff 75 0c             	push   0xc(%ebp)
4049db:	ff 75 08             	push   0x8(%ebp)
4049de:	ff 50 2c             	call   *0x2c(%eax)
4049e1:	5d                   	pop    %ebp
4049e2:	c2 0c 00             	ret    $0xc
4049e5:	55                   	push   %ebp
4049e6:	8b ec                	mov    %esp,%ebp
4049e8:	8b 45 0c             	mov    0xc(%ebp),%eax
4049eb:	53                   	push   %ebx
4049ec:	56                   	push   %esi
4049ed:	8b 75 08             	mov    0x8(%ebp),%esi
4049f0:	2b c6                	sub    %esi,%eax
4049f2:	39 45 14             	cmp    %eax,0x14(%ebp)
4049f5:	8b d9                	mov    %ecx,%ebx
4049f7:	73 05                	jae    0x4049fe
4049f9:	e8 76 2c 00 00       	call   0x407674
4049fe:	3b 75 0c             	cmp    0xc(%ebp),%esi
404a01:	74 1b                	je     0x404a1e
404a03:	57                   	push   %edi
404a04:	8b 7d 10             	mov    0x10(%ebp),%edi
404a07:	0f b6 06             	movzbl (%esi),%eax
404a0a:	50                   	push   %eax
404a0b:	8b cb                	mov    %ebx,%ecx
404a0d:	e8 7e ff ff ff       	call   0x404990
404a12:	66 89 07             	mov    %ax,(%edi)
404a15:	46                   	inc    %esi
404a16:	47                   	inc    %edi
404a17:	47                   	inc    %edi
404a18:	3b 75 0c             	cmp    0xc(%ebp),%esi
404a1b:	75 ea                	jne    0x404a07
404a1d:	5f                   	pop    %edi
404a1e:	8b c6                	mov    %esi,%eax
404a20:	5e                   	pop    %esi
404a21:	5b                   	pop    %ebx
404a22:	5d                   	pop    %ebp
404a23:	c2 10 00             	ret    $0x10
404a26:	55                   	push   %ebp
404a27:	8b ec                	mov    %esp,%ebp
404a29:	83 ec 10             	sub    $0x10,%esp
404a2c:	a1 20 c5 41 00       	mov    0x41c520,%eax
404a31:	33 c5                	xor    %ebp,%eax
404a33:	89 45 fc             	mov    %eax,-0x4(%ebp)
404a36:	83 65 f0 00          	andl   $0x0,-0x10(%ebp)
404a3a:	8b c1                	mov    %ecx,%eax
404a3c:	83 c0 18             	add    $0x18,%eax
404a3f:	50                   	push   %eax
404a40:	8d 45 f0             	lea    -0x10(%ebp),%eax
404a43:	50                   	push   %eax
404a44:	ff 75 08             	push   0x8(%ebp)
404a47:	8d 45 f4             	lea    -0xc(%ebp),%eax
404a4a:	50                   	push   %eax
404a4b:	e8 39 04 00 00       	call   0x404e89
404a50:	83 c4 10             	add    $0x10,%esp
404a53:	83 f8 01             	cmp    $0x1,%eax
404a56:	8a 45 0c             	mov    0xc(%ebp),%al
404a59:	75 03                	jne    0x404a5e
404a5b:	8a 45 f4             	mov    -0xc(%ebp),%al
404a5e:	8b 4d fc             	mov    -0x4(%ebp),%ecx
404a61:	33 cd                	xor    %ebp,%ecx
404a63:	e8 cd 14 00 00       	call   0x405f35
404a68:	c9                   	leave
404a69:	c2 08 00             	ret    $0x8
404a6c:	e9 b5 ff ff ff       	jmp    0x404a26
404a71:	55                   	push   %ebp
404a72:	8b ec                	mov    %esp,%ebp
404a74:	8b 55 0c             	mov    0xc(%ebp),%edx
404a77:	2b 55 08             	sub    0x8(%ebp),%edx
404a7a:	8b 01                	mov    (%ecx),%eax
404a7c:	d1 fa                	sar    $1,%edx
404a7e:	52                   	push   %edx
404a7f:	ff 75 14             	push   0x14(%ebp)
404a82:	ff 75 10             	push   0x10(%ebp)
404a85:	ff 75 0c             	push   0xc(%ebp)
404a88:	ff 75 08             	push   0x8(%ebp)
404a8b:	ff 50 38             	call   *0x38(%eax)
404a8e:	5d                   	pop    %ebp
404a8f:	c2 10 00             	ret    $0x10
404a92:	55                   	push   %ebp
404a93:	8b ec                	mov    %esp,%ebp
404a95:	8b 45 0c             	mov    0xc(%ebp),%eax
404a98:	53                   	push   %ebx
404a99:	56                   	push   %esi
404a9a:	8b 75 08             	mov    0x8(%ebp),%esi
404a9d:	2b c6                	sub    %esi,%eax
404a9f:	d1 f8                	sar    $1,%eax
404aa1:	39 45 18             	cmp    %eax,0x18(%ebp)
404aa4:	8b d9                	mov    %ecx,%ebx
404aa6:	73 05                	jae    0x404aad
404aa8:	e8 c7 2b 00 00       	call   0x407674
404aad:	3b 75 0c             	cmp    0xc(%ebp),%esi
404ab0:	74 1d                	je     0x404acf
404ab2:	57                   	push   %edi
404ab3:	8b 7d 14             	mov    0x14(%ebp),%edi
404ab6:	0f b7 06             	movzwl (%esi),%eax
404ab9:	ff 75 10             	push   0x10(%ebp)
404abc:	8b cb                	mov    %ebx,%ecx
404abe:	50                   	push   %eax
404abf:	e8 62 ff ff ff       	call   0x404a26
404ac4:	46                   	inc    %esi
404ac5:	46                   	inc    %esi
404ac6:	88 07                	mov    %al,(%edi)
404ac8:	47                   	inc    %edi
404ac9:	3b 75 0c             	cmp    0xc(%ebp),%esi
404acc:	75 e8                	jne    0x404ab6
404ace:	5f                   	pop    %edi
404acf:	8b c6                	mov    %esi,%eax
404ad1:	5e                   	pop    %esi
404ad2:	5b                   	pop    %ebx
404ad3:	5d                   	pop    %ebp
404ad4:	c2 14 00             	ret    $0x14
404ad7:	56                   	push   %esi
404ad8:	8b f1                	mov    %ecx,%esi
404ada:	e8 82 fd ff ff       	call   0x404861
404adf:	f6 44 24 08 01       	testb  $0x1,0x8(%esp)
404ae4:	74 07                	je     0x404aed
404ae6:	56                   	push   %esi
404ae7:	e8 43 0f 00 00       	call   0x405a2f
404aec:	59                   	pop    %ecx
404aed:	8b c6                	mov    %esi,%eax
404aef:	5e                   	pop    %esi
404af0:	c2 04 00             	ret    $0x4
404af3:	6a 00                	push   $0x0
404af5:	b8 f7 5d 41 00       	mov    $0x415df7,%eax
404afa:	e8 ec 1c 00 00       	call   0x4067eb
404aff:	8b 75 08             	mov    0x8(%ebp),%esi
404b02:	85 f6                	test   %esi,%esi
404b04:	74 27                	je     0x404b2d
404b06:	83 3e 00             	cmpl   $0x0,(%esi)
404b09:	75 22                	jne    0x404b2d
404b0b:	6a 20                	push   $0x20
404b0d:	e8 c6 14 00 00       	call   0x405fd8
404b12:	59                   	pop    %ecx
404b13:	8b c8                	mov    %eax,%ecx
404b15:	89 4d 08             	mov    %ecx,0x8(%ebp)
404b18:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
404b1c:	85 c9                	test   %ecx,%ecx
404b1e:	74 09                	je     0x404b29
404b20:	6a 00                	push   $0x0
404b22:	e8 e3 fc ff ff       	call   0x40480a
404b27:	eb 02                	jmp    0x404b2b
404b29:	33 c0                	xor    %eax,%eax
404b2b:	89 06                	mov    %eax,(%esi)
404b2d:	6a 02                	push   $0x2
404b2f:	58                   	pop    %eax
404b30:	e8 55 1d 00 00       	call   0x40688a
404b35:	c3                   	ret
404b36:	56                   	push   %esi
404b37:	57                   	push   %edi
404b38:	33 ff                	xor    %edi,%edi
404b3a:	8b f1                	mov    %ecx,%esi
404b3c:	57                   	push   %edi