40c670:	d1 f8                	sar    $1,%eax
40c672:	89 06                	mov    %eax,(%esi)
40c674:	8d 76 04             	lea    0x4(%esi),%esi
40c677:	83 e9 01             	sub    $0x1,%ecx
40c67a:	75 ea                	jne    0x40c666
40c67c:	57                   	push   %edi
40c67d:	53                   	push   %ebx
40c67e:	ff 15 08 33 43 00    	call   *0x433308
40c684:	6a 01                	push   $0x1
40c686:	6a 00                	push   $0x0
40c688:	ff 75 fc             	push   -0x4(%ebp)
40c68b:	ff 15 fc 31 43 00    	call   *0x4331fc
40c691:	6a 01                	push   $0x1
40c693:	6a 00                	push   $0x0
40c695:	ff 75 f8             	push   -0x8(%ebp)
40c698:	ff 15 fc 31 43 00    	call   *0x4331fc
40c69e:	33 c0                	xor    %eax,%eax
40c6a0:	40                   	inc    %eax
40c6a1:	eb 02                	jmp    0x40c6a5
40c6a3:	33 c0                	xor    %eax,%eax
40c6a5:	5f                   	pop    %edi
40c6a6:	5e                   	pop    %esi
40c6a7:	5b                   	pop    %ebx
40c6a8:	c9                   	leave
40c6a9:	c2 04 00             	ret    $0x4
40c6ac:	8b ff                	mov    %edi,%edi
40c6ae:	55                   	push   %ebp
40c6af:	8b ec                	mov    %esp,%ebp
40c6b1:	51                   	push   %ecx
40c6b2:	53                   	push   %ebx
40c6b3:	56                   	push   %esi
40c6b4:	57                   	push   %edi
40c6b5:	8b fa                	mov    %edx,%edi
40c6b7:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40c6ba:	0f b7 c7             	movzwl %di,%eax
40c6bd:	48                   	dec    %eax
40c6be:	99                   	cltd
40c6bf:	f7 39                	idivl  (%ecx)
40c6c1:	85 c0                	test   %eax,%eax
40c6c3:	79 04                	jns    0x40c6c9
40c6c5:	33 c9                	xor    %ecx,%ecx
40c6c7:	eb 02                	jmp    0x40c6cb
40c6c9:	8b c8                	mov    %eax,%ecx
40c6cb:	8b 1d b0 10 41 00    	mov    0x4110b0,%ebx
40c6d1:	8d 73 ff             	lea    -0x1(%ebx),%esi
40c6d4:	3b f1                	cmp    %ecx,%esi
40c6d6:	7c 0a                	jl     0x40c6e2
40c6d8:	85 c0                	test   %eax,%eax
40c6da:	79 04                	jns    0x40c6e0
40c6dc:	33 f6                	xor    %esi,%esi
40c6de:	eb 02                	jmp    0x40c6e2
40c6e0:	8b f0                	mov    %eax,%esi
40c6e2:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40c6e5:	c1 ef 10             	shr    $0x10,%edi
40c6e8:	8d 47 ff             	lea    -0x1(%edi),%eax
40c6eb:	99                   	cltd
40c6ec:	f7 79 04             	idivl  0x4(%ecx)
40c6ef:	85 c0                	test   %eax,%eax
40c6f1:	78 0b                	js     0x40c6fe
40c6f3:	6a 09                	push   $0x9
40c6f5:	59                   	pop    %ecx
40c6f6:	3b c1                	cmp    %ecx,%eax
40c6f8:	7f 0a                	jg     0x40c704
40c6fa:	85 c0                	test   %eax,%eax
40c6fc:	79 04                	jns    0x40c702
40c6fe:	33 c9                	xor    %ecx,%ecx
40c700:	eb 02                	jmp    0x40c704
40c702:	8b c8                	mov    %eax,%ecx
40c704:	0f b7 05 80 26 43 00 	movzwl 0x432680,%eax
40c70b:	0f af cb             	imul   %ebx,%ecx
40c70e:	5f                   	pop    %edi
40c70f:	03 ce                	add    %esi,%ecx
40c711:	5e                   	pop    %esi
40c712:	03 c1                	add    %ecx,%eax
40c714:	5b                   	pop    %ebx
40c715:	c9                   	leave
40c716:	c3                   	ret
40c717:	8b ff                	mov    %edi,%edi
40c719:	55                   	push   %ebp
40c71a:	8b ec                	mov    %esp,%ebp
40c71c:	53                   	push   %ebx
40c71d:	56                   	push   %esi
40c71e:	57                   	push   %edi
40c71f:	8b da                	mov    %edx,%ebx
40c721:	8b f9                	mov    %ecx,%edi
40c723:	53                   	push   %ebx
40c724:	ff 15 f0 32 43 00    	call   *0x4332f0
40c72a:	ff 75 10             	push   0x10(%ebp)
40c72d:	8b f0                	mov    %eax,%esi
40c72f:	8b cf                	mov    %edi,%ecx
40c731:	ff 75 0c             	push   0xc(%ebp)
40c734:	8b d6                	mov    %esi,%edx
40c736:	ff 75 08             	push   0x8(%ebp)
40c739:	e8 fb 05 00 00       	call   0x40cd39
40c73e:	56                   	push   %esi
40c73f:	53                   	push   %ebx
40c740:	ff 15 08 33 43 00    	call   *0x433308
40c746:	5f                   	pop    %edi
40c747:	5e                   	pop    %esi
40c748:	5b                   	pop    %ebx
40c749:	5d                   	pop    %ebp
40c74a:	c2 0c 00             	ret    $0xc
40c74d:	8b ff                	mov    %edi,%edi
40c74f:	55                   	push   %ebp
40c750:	8b ec                	mov    %esp,%ebp
40c752:	83 ec 14             	sub    $0x14,%esp
40c755:	56                   	push   %esi
40c756:	8b 75 14             	mov    0x14(%ebp),%esi
40c759:	89 55 f8             	mov    %edx,-0x8(%ebp)
40c75c:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40c75f:	85 f6                	test   %esi,%esi
40c761:	75 07                	jne    0x40c76a
40c763:	33 c0                	xor    %eax,%eax
40c765:	e9 ad 00 00 00       	jmp    0x40c817
40c76a:	53                   	push   %ebx
40c76b:	8b 5d 08             	mov    0x8(%ebp),%ebx
40c76e:	57                   	push   %edi
40c76f:	53                   	push   %ebx
40c770:	8b 03                	mov    (%ebx),%eax
40c772:	89 45 f0             	mov    %eax,-0x10(%ebp)
40c775:	c1 f8 1f             	sar    $0x1f,%eax
40c778:	83 e0 fe             	and    $0xfffffffe,%eax
40c77b:	40                   	inc    %eax
40c77c:	89 45 f4             	mov    %eax,-0xc(%ebp)
40c77f:	ff 15 b0 30 43 00    	call   *0x4330b0
40c785:	8b f8                	mov    %eax,%edi
40c787:	57                   	push   %edi
40c788:	ff 75 fc             	push   -0x4(%ebp)
40c78b:	ff 15 ac 30 43 00    	call   *0x4330ac
40c791:	89 45 ec             	mov    %eax,-0x14(%ebp)
40c794:	eb 27                	jmp    0x40c7bd
40c796:	8b 45 f8             	mov    -0x8(%ebp),%eax
40c799:	39 46 28             	cmp    %eax,0x28(%esi)
40c79c:	74 2e                	je     0x40c7cc
40c79e:	8b 45 f4             	mov    -0xc(%ebp),%eax
40c7a1:	29 03                	sub    %eax,(%ebx)
40c7a3:	57                   	push   %edi
40c7a4:	ff 15 b4 30 43 00    	call   *0x4330b4
40c7aa:	53                   	push   %ebx
40c7ab:	ff 15 b0 30 43 00    	call   *0x4330b0
40c7b1:	8b f8                	mov    %eax,%edi
40c7b3:	57                   	push   %edi
40c7b4:	ff 75 fc             	push   -0x4(%ebp)
40c7b7:	ff 15 ac 30 43 00    	call   *0x4330ac
40c7bd:	56                   	push   %esi
40c7be:	ff 75 fc             	push   -0x4(%ebp)
40c7c1:	ff 15 98 30 43 00    	call   *0x433098
40c7c7:	83 3b 00             	cmpl   $0x0,(%ebx)
40c7ca:	75 ca                	jne    0x40c796
40c7cc:	8b 45 f8             	mov    -0x8(%ebp),%eax
40c7cf:	39 46 28             	cmp    %eax,0x28(%esi)
40c7d2:	75 05                	jne    0x40c7d9
40c7d4:	83 3e 00             	cmpl   $0x0,(%esi)
40c7d7:	75 28                	jne    0x40c801
40c7d9:	8b 45 f0             	mov    -0x10(%ebp),%eax
40c7dc:	57                   	push   %edi
40c7dd:	89 03                	mov    %eax,(%ebx)
40c7df:	ff 15 b4 30 43 00    	call   *0x4330b4
40c7e5:	53                   	push   %ebx
40c7e6:	ff 15 b0 30 43 00    	call   *0x4330b0
40c7ec:	8b 5d fc             	mov    -0x4(%ebp),%ebx
40c7ef:	8b f8                	mov    %eax,%edi
40c7f1:	57                   	push   %edi
40c7f2:	53                   	push   %ebx
40c7f3:	ff 15 ac 30 43 00    	call   *0x4330ac
40c7f9:	56                   	push   %esi
40c7fa:	53                   	push   %ebx
40c7fb:	ff 15 98 30 43 00    	call   *0x433098
40c801:	8b 45 10             	mov    0x10(%ebp),%eax
40c804:	89 38                	mov    %edi,(%eax)
40c806:	8b 45 0c             	mov    0xc(%ebp),%eax
40c809:	5f                   	pop    %edi
40c80a:	5b                   	pop    %ebx
40c80b:	85 c0                	test   %eax,%eax
40c80d:	74 05                	je     0x40c814
40c80f:	8b 4d ec             	mov    -0x14(%ebp),%ecx
40c812:	89 08                	mov    %ecx,(%eax)
40c814:	33 c0                	xor    %eax,%eax
40c816:	40                   	inc    %eax
40c817:	5e                   	pop    %esi
40c818:	c9                   	leave
40c819:	c2 10 00             	ret    $0x10
40c81c:	8b ff                	mov    %edi,%edi
40c81e:	55                   	push   %ebp
40c81f:	8b ec                	mov    %esp,%ebp
40c821:	81 ec bc 00 00 00    	sub    $0xbc,%esp
40c827:	a1 64 10 41 00       	mov    0x411064,%eax
40c82c:	33 c5                	xor    %ebp,%eax
40c82e:	89 45 fc             	mov    %eax,-0x4(%ebp)
40c831:	a1 70 26 43 00       	mov    0x432670,%eax
40c836:	89 8d 58 ff ff ff    	mov    %ecx,-0xa8(%ebp)
40c83c:	53                   	push   %ebx
40c83d:	8b 5d 08             	mov    0x8(%ebp),%ebx
40c840:	56                   	push   %esi
40c841:	8b f2                	mov    %edx,%esi
40c843:	89 b5 4c ff ff ff    	mov    %esi,-0xb4(%ebp)
40c849:	57                   	push   %edi
40c84a:	85 c0                	test   %eax,%eax
40c84c:	74 0f                	je     0x40c85d
40c84e:	3b 46 5c             	cmp    0x5c(%esi),%eax
40c851:	75 0a                	jne    0x40c85d
40c853:	c7 05 68 26 43 00 01 	movl   $0x1,0x432668
40c85a:	00 00 00
40c85d:	8d 7e 5c             	lea    0x5c(%esi),%edi
40c860:	83 3f 00             	cmpl   $0x0,(%edi)
40c863:	74 0c                	je     0x40c871
40c865:	3b 07                	cmp    (%edi),%eax
40c867:	74 08                	je     0x40c871
40c869:	ff 37                	push   (%edi)
40c86b:	ff 15 b4 30 43 00    	call   *0x4330b4
40c871:	83 7e 58 00          	cmpl   $0x0,0x58(%esi)
40c875:	74 09                	je     0x40c880
40c877:	ff 76 58             	push   0x58(%esi)
40c87a:	ff 15 b4 30 43 00    	call   *0x4330b4
40c880:	ff 15 f8 31 43 00    	call   *0x4331f8
40c886:	8b 0d b4 16 41 00    	mov    0x4116b4,%ecx
40c88c:	6a ff                	push   $0xffffffff
40c88e:	69 db 14 02 00 00    	imul   $0x214,%ebx,%ebx
40c894:	68 e8 13 40 00       	push   $0x4013e8
40c899:	6a ff                	push   $0xffffffff
40c89b:	89 85 54 ff ff ff    	mov    %eax,-0xac(%ebp)
40c8a1:	33 c0                	xor    %eax,%eax
40c8a3:	89 45 a8             	mov    %eax,-0x58(%ebp)
40c8a6:	03 cb                	add    %ebx,%ecx
40c8a8:	89 45 a4             	mov    %eax,-0x5c(%ebp)
40c8ab:	51                   	push   %ecx
40c8ac:	89 45 a0             	mov    %eax,-0x60(%ebp)
40c8af:	89 45 9c             	mov    %eax,-0x64(%ebp)
40c8b2:	89 45 b0             	mov    %eax,-0x50(%ebp)
40c8b5:	66 89 45 ad          	mov    %ax,-0x53(%ebp)
40c8b9:	88 45 ac             	mov    %al,-0x54(%ebp)
40c8bc:	8a 81 00 02 00 00    	mov    0x200(%ecx),%al
40c8c2:	6a 01                	push   $0x1
40c8c4:	6a 7f                	push   $0x7f
40c8c6:	88 45 af             	mov    %al,-0x51(%ebp)
40c8c9:	ff 15 c0 31 43 00    	call   *0x4331c0
40c8cf:	8d 4d b4             	lea    -0x4c(%ebp),%ecx
40c8d2:	83 f8 02             	cmp    $0x2,%eax
40c8d5:	75 07                	jne    0x40c8de
40c8d7:	68 b8 14 40 00       	push   $0x4014b8
40c8dc:	eb 08                	jmp    0x40c8e6
40c8de:	a1 b4 16 41 00       	mov    0x4116b4,%eax
40c8e3:	03 c3                	add    %ebx,%eax
40c8e5:	50                   	push   %eax
40c8e6:	6a 20                	push   $0x20
40c8e8:	5a                   	pop    %edx
40c8e9:	e8 71 71 ff ff       	call   0x403a5f
40c8ee:	85 c0                	test   %eax,%eax
40c8f0:	0f 88 22 02 00 00    	js     0x40cb18
40c8f6:	8b 9d 58 ff ff ff    	mov    -0xa8(%ebp),%ebx
40c8fc:	6a 00                	push   $0x0
40c8fe:	6a 00                	push   $0x0
40c900:	68 47 01 00 00       	push   $0x147
40c905:	68 ca 00 00 00       	push   $0xca
40c90a:	53                   	push   %ebx
40c90b:	ff 15 18 33 43 00    	call   *0x433318
40c911:	33 d2                	xor    %edx,%edx
40c913:	8b cb                	mov    %ebx,%ecx
40c915:	42                   	inc    %edx
40c916:	e8 2c 0d 00 00       	call   0x40d647
40c91b:	8b 46 1c             	mov    0x1c(%esi),%eax
40c91e:	83 e8 05             	sub    $0x5,%eax
40c921:	89 45 98             	mov    %eax,-0x68(%ebp)
40c924:	8d 45 98             	lea    -0x68(%ebp),%eax
40c927:	50                   	push   %eax
40c928:	ff 15 b0 30 43 00    	call   *0x4330b0
40c92e:	89 46 58             	mov    %eax,0x58(%esi)
40c931:	ff 15 d4 30 43 00    	call   *0x4330d4
40c937:	6a 04                	push   $0x4
40c939:	25 ff 03 00 00       	and    $0x3ff,%eax
40c93e:	59                   	pop    %ecx
40c93f:	66 3b c1             	cmp    %cx,%ax
40c942:	75 09                	jne    0x40c94d
40c944:	c7 45 98 10 00 00 00 	movl   $0x10,-0x68(%ebp)
40c94b:	eb 09                	jmp    0x40c956
40c94d:	8b 46 04             	mov    0x4(%esi),%eax
40c950:	83 e8 06             	sub    $0x6,%eax
40c953:	89 45 98             	mov    %eax,-0x68(%ebp)
40c956:	ff 35 14 19 43 00    	push   0x431914
40c95c:	ff 15 f0 32 43 00    	call   *0x4332f0
40c962:	8b d8                	mov    %eax,%ebx
40c964:	89 9d 58 ff ff ff    	mov    %ebx,-0xa8(%ebp)
40c96a:	85 ff                	test   %edi,%edi
40c96c:	74 20                	je     0x40c98e
40c96e:	8b 95 54 ff ff ff    	mov    -0xac(%ebp),%edx
40c974:	8d 85 5c ff ff ff    	lea    -0xa4(%ebp),%eax
40c97a:	50                   	push   %eax
40c97b:	57                   	push   %edi
40c97c:	8d 85 48 ff ff ff    	lea    -0xb8(%ebp),%eax
40c982:	8b cb                	mov    %ebx,%ecx
40c984:	50                   	push   %eax
40c985:	8d 45 98             	lea    -0x68(%ebp),%eax
40c988:	50                   	push   %eax
40c989:	e8 bf fd ff ff       	call   0x40c74d
40c98e:	83 bd 60 ff ff ff 00 	cmpl   $0x0,-0xa0(%ebp)
40c995:	74 4e                	je     0x40c9e5
40c997:	ff b5 60 ff ff ff    	push   -0xa0(%ebp)
40c99d:	6a 0a                	push   $0xa
40c99f:	ff b5 64 ff ff ff    	push   -0x9c(%ebp)
40c9a5:	ff 15 80 31 43 00    	call   *0x433180
40c9ab:	83 f8 04             	cmp    $0x4,%eax
40c9ae:	7e 35                	jle    0x40c9e5
40c9b0:	ff 37                	push   (%edi)
40c9b2:	ff 15 b4 30 43 00    	call   *0x4330b4
40c9b8:	f7 5d 98             	negl   -0x68(%ebp)
40c9bb:	85 ff                	test   %edi,%edi
40c9bd:	74 1b                	je     0x40c9da
40c9bf:	8b 95 54 ff ff ff    	mov    -0xac(%ebp),%edx
40c9c5:	8d 85 5c ff ff ff    	lea    -0xa4(%ebp),%eax
40c9cb:	50                   	push   %eax
40c9cc:	57                   	push   %edi
40c9cd:	6a 00                	push   $0x0
40c9cf:	8d 45 98             	lea    -0x68(%ebp),%eax
40c9d2:	8b cb                	mov    %ebx,%ecx
40c9d4:	50                   	push   %eax
40c9d5:	e8 73 fd ff ff       	call   0x40c74d
40c9da:	8b 85 5c ff ff ff    	mov    -0xa4(%ebp),%eax
40c9e0:	89 45 98             	mov    %eax,-0x68(%ebp)
40c9e3:	eb 06                	jmp    0x40c9eb
40c9e5:	8b 85 5c ff ff ff    	mov    -0xa4(%ebp),%eax
40c9eb:	ff 76 04             	push   0x4(%esi)
40c9ee:	ff 36                	push   (%esi)
40c9f0:	50                   	push   %eax
40c9f1:	ff 15 80 31 43 00    	call   *0x433180
40c9f7:	80 7d 94 02          	cmpb   $0x2,-0x6c(%ebp)
40c9fb:	8b 8d 5c ff ff ff    	mov    -0xa4(%ebp),%ecx
40ca01:	89 8d 50 ff ff ff    	mov    %ecx,-0xb0(%ebp)
40ca07:	8d 58 fe             	lea    -0x2(%eax),%ebx
40ca0a:	74 21                	je     0x40ca2d
40ca0c:	8b 85 70 ff ff ff    	mov    -0x90(%ebp),%eax
40ca12:	3b 85 74 ff ff ff    	cmp    -0x8c(%ebp),%eax
40ca18:	74 13                	je     0x40ca2d
40ca1a:	6a 64                	push   $0x64
40ca1c:	6a 46                	push   $0x46
40ca1e:	53                   	push   %ebx
40ca1f:	ff 15 80 31 43 00    	call   *0x433180
40ca25:	8b 8d 5c ff ff ff    	mov    -0xa4(%ebp),%ecx
40ca2b:	8b d8                	mov    %eax,%ebx
40ca2d:	39 9d 70 ff ff ff    	cmp    %ebx,-0x90(%ebp)
40ca33:	7e 52                	jle    0x40ca87
40ca35:	8b b5 58 ff ff ff    	mov    -0xa8(%ebp),%esi
40ca3b:	ff 37                	push   (%edi)
40ca3d:	ff 15 b4 30 43 00    	call   *0x4330b4
40ca43:	ff 4d 98             	decl   -0x68(%ebp)
40ca46:	85 ff                	test   %edi,%edi
40ca48:	74 1b                	je     0x40ca65
40ca4a:	8b 95 54 ff ff ff    	mov    -0xac(%ebp),%edx
40ca50:	8d 85 5c ff ff ff    	lea    -0xa4(%ebp),%eax
40ca56:	50                   	push   %eax
40ca57:	57                   	push   %edi