40c7ab:	8b ec                	mov    %esp,%ebp
40c7ad:	83 ec 10             	sub    $0x10,%esp
40c7b0:	53                   	push   %ebx
40c7b1:	8b d9                	mov    %ecx,%ebx
40c7b3:	89 55 f4             	mov    %edx,-0xc(%ebp)
40c7b6:	56                   	push   %esi
40c7b7:	57                   	push   %edi
40c7b8:	85 db                	test   %ebx,%ebx
40c7ba:	74 68                	je     0x40c824
40c7bc:	85 d2                	test   %edx,%edx
40c7be:	74 64                	je     0x40c824
40c7c0:	8b f3                	mov    %ebx,%esi
40c7c2:	33 c9                	xor    %ecx,%ecx
40c7c4:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40c7c7:	8d 7e 02             	lea    0x2(%esi),%edi
40c7ca:	66 8b 06             	mov    (%esi),%ax
40c7cd:	83 c6 02             	add    $0x2,%esi
40c7d0:	66 3b c1             	cmp    %cx,%ax
40c7d3:	75 f5                	jne    0x40c7ca
40c7d5:	2b f7                	sub    %edi,%esi
40c7d7:	8b fa                	mov    %edx,%edi
40c7d9:	d1 fe                	sar    $1,%esi
40c7db:	8d 47 02             	lea    0x2(%edi),%eax
40c7de:	89 45 f8             	mov    %eax,-0x8(%ebp)
40c7e1:	66 8b 07             	mov    (%edi),%ax
40c7e4:	83 c7 02             	add    $0x2,%edi
40c7e7:	66 3b c1             	cmp    %cx,%ax
40c7ea:	75 f5                	jne    0x40c7e1
40c7ec:	2b 7d f8             	sub    -0x8(%ebp),%edi
40c7ef:	d1 ff                	sar    $1,%edi
40c7f1:	3b f7                	cmp    %edi,%esi
40c7f3:	72 54                	jb     0x40c849
40c7f5:	2b f7                	sub    %edi,%esi
40c7f7:	57                   	push   %edi
40c7f8:	52                   	push   %edx
40c7f9:	53                   	push   %ebx
40c7fa:	ff 15 34 c3 42 00    	call   *0x42c334
40c800:	83 c4 0c             	add    $0xc,%esp
40c803:	85 c0                	test   %eax,%eax
40c805:	74 19                	je     0x40c820
40c807:	83 7d 08 00          	cmpl   $0x0,0x8(%ebp)
40c80b:	75 3c                	jne    0x40c849
40c80d:	8b 45 fc             	mov    -0x4(%ebp),%eax
40c810:	83 c3 02             	add    $0x2,%ebx
40c813:	8b 55 f4             	mov    -0xc(%ebp),%edx
40c816:	40                   	inc    %eax
40c817:	89 45 fc             	mov    %eax,-0x4(%ebp)
40c81a:	3b c6                	cmp    %esi,%eax
40c81c:	76 d9                	jbe    0x40c7f7
40c81e:	eb 29                	jmp    0x40c849
40c820:	8b c3                	mov    %ebx,%eax
40c822:	eb 27                	jmp    0x40c84b
40c824:	a1 00 b0 42 00       	mov    0x42b000,%eax
40c829:	3d 00 b0 42 00       	cmp    $0x42b000,%eax
40c82e:	74 19                	je     0x40c849
40c830:	f6 40 1c 01          	testb  $0x1,0x1c(%eax)
40c834:	74 13                	je     0x40c849
40c836:	ff 70 14             	push   0x14(%eax)
40c839:	ba ac 22 40 00       	mov    $0x4022ac,%edx
40c83e:	ff 70 10             	push   0x10(%eax)
40c841:	6a 33                	push   $0x33
40c843:	59                   	pop    %ecx
40c844:	e8 67 ab ff ff       	call   0x4073b0
40c849:	33 c0                	xor    %eax,%eax
40c84b:	5f                   	pop    %edi
40c84c:	5e                   	pop    %esi
40c84d:	5b                   	pop    %ebx
40c84e:	c9                   	leave
40c84f:	c2 04 00             	ret    $0x4
40c852:	6a 1c                	push   $0x1c
40c854:	b8 af 86 42 00       	mov    $0x4286af,%eax
40c859:	e8 0a b8 01 00       	call   0x428068
40c85e:	8b c1                	mov    %ecx,%eax
40c860:	89 45 e8             	mov    %eax,-0x18(%ebp)
40c863:	8b 38                	mov    (%eax),%edi
40c865:	33 d2                	xor    %edx,%edx
40c867:	89 55 dc             	mov    %edx,-0x24(%ebp)
40c86a:	89 55 e4             	mov    %edx,-0x1c(%ebp)
40c86d:	89 55 e0             	mov    %edx,-0x20(%ebp)
40c870:	8b 5d 08             	mov    0x8(%ebp),%ebx
40c873:	89 55 fc             	mov    %edx,-0x4(%ebp)
40c876:	89 55 ec             	mov    %edx,-0x14(%ebp)
40c879:	8d 4b 02             	lea    0x2(%ebx),%ecx
40c87c:	66 8b 03             	mov    (%ebx),%ax
40c87f:	83 c3 02             	add    $0x2,%ebx
40c882:	66 3b c2             	cmp    %dx,%ax
40c885:	75 f5                	jne    0x40c87c
40c887:	2b d9                	sub    %ecx,%ebx
40c889:	8b cf                	mov    %edi,%ecx
40c88b:	52                   	push   %edx
40c88c:	8b 55 08             	mov    0x8(%ebp),%edx
40c88f:	d1 fb                	sar    $1,%ebx
40c891:	e8 12 ff ff ff       	call   0x40c7a8
40c896:	89 45 f0             	mov    %eax,-0x10(%ebp)
40c899:	85 c0                	test   %eax,%eax
40c89b:	74 73                	je     0x40c910
40c89d:	0f b7 30             	movzwl (%eax),%esi
40c8a0:	33 c9                	xor    %ecx,%ecx
40c8a2:	66 89 08             	mov    %cx,(%eax)
40c8a5:	8d 4d dc             	lea    -0x24(%ebp),%ecx
40c8a8:	57                   	push   %edi
40c8a9:	e8 bd f9 ff ff       	call   0x40c26b
40c8ae:	8b f8                	mov    %eax,%edi
40c8b0:	8b 45 f0             	mov    -0x10(%ebp),%eax
40c8b3:	66 89 30             	mov    %si,(%eax)
40c8b6:	85 ff                	test   %edi,%edi
40c8b8:	0f 88 85 00 00 00    	js     0x40c943
40c8be:	ff 75 0c             	push   0xc(%ebp)
40c8c1:	8d 4d dc             	lea    -0x24(%ebp),%ecx
40c8c4:	e8 a2 f9 ff ff       	call   0x40c26b
40c8c9:	8b f8                	mov    %eax,%edi
40c8cb:	85 ff                	test   %edi,%edi
40c8cd:	78 4c                	js     0x40c91b
40c8cf:	8b 45 f0             	mov    -0x10(%ebp),%eax
40c8d2:	8b 55 08             	mov    0x8(%ebp),%edx
40c8d5:	ff 45 ec             	incl   -0x14(%ebp)
40c8d8:	6a 00                	push   $0x0
40c8da:	8d 3c 58             	lea    (%eax,%ebx,2),%edi
40c8dd:	8b cf                	mov    %edi,%ecx
40c8df:	e8 c4 fe ff ff       	call   0x40c7a8
40c8e4:	89 45 f0             	mov    %eax,-0x10(%ebp)
40c8e7:	85 c0                	test   %eax,%eax
40c8e9:	75 b2                	jne    0x40c89d
40c8eb:	39 45 e4             	cmp    %eax,-0x1c(%ebp)
40c8ee:	74 20                	je     0x40c910
40c8f0:	57                   	push   %edi
40c8f1:	8d 4d dc             	lea    -0x24(%ebp),%ecx
40c8f4:	e8 72 f9 ff ff       	call   0x40c26b
40c8f9:	8b f8                	mov    %eax,%edi
40c8fb:	85 ff                	test   %edi,%edi
40c8fd:	78 17                	js     0x40c916
40c8ff:	ff 75 dc             	push   -0x24(%ebp)
40c902:	8b 4d e8             	mov    -0x18(%ebp),%ecx
40c905:	e8 ae f7 ff ff       	call   0x40c0b8
40c90a:	8b f8                	mov    %eax,%edi
40c90c:	85 ff                	test   %edi,%edi
40c90e:	78 06                	js     0x40c916
40c910:	33 ff                	xor    %edi,%edi
40c912:	85 ff                	test   %edi,%edi
40c914:	79 54                	jns    0x40c96a
40c916:	83 c9 ff             	or     $0xffffffff,%ecx
40c919:	eb 52                	jmp    0x40c96d
40c91b:	a1 00 b0 42 00       	mov    0x42b000,%eax
40c920:	3d 00 b0 42 00       	cmp    $0x42b000,%eax
40c925:	74 eb                	je     0x40c912
40c927:	f6 40 1c 01          	testb  $0x1,0x1c(%eax)
40c92b:	74 e5                	je     0x40c912
40c92d:	57                   	push   %edi
40c92e:	ff 70 14             	push   0x14(%eax)
40c931:	ba ac 22 40 00       	mov    $0x4022ac,%edx
40c936:	ff 70 10             	push   0x10(%eax)
40c939:	6a 36                	push   $0x36
40c93b:	59                   	pop    %ecx
40c93c:	e8 8d aa ff ff       	call   0x4073ce
40c941:	eb cf                	jmp    0x40c912
40c943:	a1 00 b0 42 00       	mov    0x42b000,%eax
40c948:	3d 00 b0 42 00       	cmp    $0x42b000,%eax
40c94d:	74 c3                	je     0x40c912
40c94f:	f6 40 1c 01          	testb  $0x1,0x1c(%eax)
40c953:	74 bd                	je     0x40c912
40c955:	ff 70 14             	push   0x14(%eax)
40c958:	ba ac 22 40 00       	mov    $0x4022ac,%edx
40c95d:	ff 70 10             	push   0x10(%eax)
40c960:	6a 35                	push   $0x35
40c962:	59                   	pop    %ecx
40c963:	e8 48 aa ff ff       	call   0x4073b0
40c968:	eb a8                	jmp    0x40c912
40c96a:	8b 4d ec             	mov    -0x14(%ebp),%ecx
40c96d:	8b 45 10             	mov    0x10(%ebp),%eax
40c970:	85 c0                	test   %eax,%eax
40c972:	74 02                	je     0x40c976
40c974:	89 08                	mov    %ecx,(%eax)
40c976:	6a 01                	push   $0x1
40c978:	8d 4d dc             	lea    -0x24(%ebp),%ecx
40c97b:	e8 a5 02 00 00       	call   0x40cc25
40c980:	8b c7                	mov    %edi,%eax
40c982:	e8 af b6 01 00       	call   0x428036
40c987:	c2 10 00             	ret    $0x10
40c98a:	33 c0                	xor    %eax,%eax
40c98c:	39 01                	cmp    %eax,(%ecx)
40c98e:	74 06                	je     0x40c996
40c990:	39 41 08             	cmp    %eax,0x8(%ecx)
40c993:	76 01                	jbe    0x40c996
40c995:	40                   	inc    %eax
40c996:	c3                   	ret
40c997:	33 c0                	xor    %eax,%eax
40c999:	39 01                	cmp    %eax,(%ecx)
40c99b:	74 05                	je     0x40c9a2
40c99d:	39 41 08             	cmp    %eax,0x8(%ecx)
40c9a0:	75 03                	jne    0x40c9a5
40c9a2:	33 c0                	xor    %eax,%eax
40c9a4:	40                   	inc    %eax
40c9a5:	c3                   	ret
40c9a6:	8b ff                	mov    %edi,%edi
40c9a8:	55                   	push   %ebp
40c9a9:	8b ec                	mov    %esp,%ebp
40c9ab:	8b 45 08             	mov    0x8(%ebp),%eax
40c9ae:	53                   	push   %ebx
40c9af:	8b d9                	mov    %ecx,%ebx
40c9b1:	56                   	push   %esi
40c9b2:	57                   	push   %edi
40c9b3:	85 c0                	test   %eax,%eax
40c9b5:	75 2c                	jne    0x40c9e3
40c9b7:	bf 57 00 07 80       	mov    $0x80070057,%edi
40c9bc:	a1 00 b0 42 00       	mov    0x42b000,%eax
40c9c1:	3d 00 b0 42 00       	cmp    $0x42b000,%eax
40c9c6:	74 6e                	je     0x40ca36
40c9c8:	f6 40 1c 01          	testb  $0x1,0x1c(%eax)
40c9cc:	74 68                	je     0x40ca36
40c9ce:	ff 70 14             	push   0x14(%eax)
40c9d1:	ff 70 10             	push   0x10(%eax)
40c9d4:	6a 37                	push   $0x37
40c9d6:	ba ac 22 40 00       	mov    $0x4022ac,%edx
40c9db:	59                   	pop    %ecx
40c9dc:	e8 cf a9 ff ff       	call   0x4073b0
40c9e1:	eb 53                	jmp    0x40ca36
40c9e3:	8b f0                	mov    %eax,%esi
40c9e5:	33 ff                	xor    %edi,%edi
40c9e7:	8d 4e 02             	lea    0x2(%esi),%ecx
40c9ea:	66 8b 06             	mov    (%esi),%ax
40c9ed:	83 c6 02             	add    $0x2,%esi
40c9f0:	66 3b c7             	cmp    %di,%ax
40c9f3:	75 f5                	jne    0x40c9ea
40c9f5:	2b f1                	sub    %ecx,%esi
40c9f7:	d1 fe                	sar    $1,%esi
40c9f9:	83 fe ff             	cmp    $0xffffffff,%esi
40c9fc:	72 21                	jb     0x40ca1f
40c9fe:	bf 0b 00 00 80       	mov    $0x8000000b,%edi
40ca03:	a1 00 b0 42 00       	mov    0x42b000,%eax
40ca08:	3d 00 b0 42 00       	cmp    $0x42b000,%eax
40ca0d:	74 27                	je     0x40ca36
40ca0f:	f6 40 1c 01          	testb  $0x1,0x1c(%eax)
40ca13:	74 21                	je     0x40ca36
40ca15:	ff 70 14             	push   0x14(%eax)
40ca18:	ff 70 10             	push   0x10(%eax)
40ca1b:	6a 38                	push   $0x38
40ca1d:	eb b7                	jmp    0x40c9d6
40ca1f:	6a 01                	push   $0x1
40ca21:	8b cb                	mov    %ebx,%ecx
40ca23:	e8 fd 01 00 00       	call   0x40cc25
40ca28:	8b 45 08             	mov    0x8(%ebp),%eax
40ca2b:	8d 4e 01             	lea    0x1(%esi),%ecx
40ca2e:	89 03                	mov    %eax,(%ebx)
40ca30:	89 73 08             	mov    %esi,0x8(%ebx)
40ca33:	89 4b 04             	mov    %ecx,0x4(%ebx)
40ca36:	8b c7                	mov    %edi,%eax
40ca38:	5f                   	pop    %edi
40ca39:	5e                   	pop    %esi
40ca3a:	5b                   	pop    %ebx
40ca3b:	5d                   	pop    %ebp
40ca3c:	c2 04 00             	ret    $0x4
40ca3f:	8b ff                	mov    %edi,%edi
40ca41:	55                   	push   %ebp
40ca42:	8b ec                	mov    %esp,%ebp
40ca44:	53                   	push   %ebx
40ca45:	8b d9                	mov    %ecx,%ebx
40ca47:	56                   	push   %esi
40ca48:	57                   	push   %edi
40ca49:	8b 73 08             	mov    0x8(%ebx),%esi
40ca4c:	85 f6                	test   %esi,%esi
40ca4e:	74 49                	je     0x40ca99
40ca50:	8b 3b                	mov    (%ebx),%edi
40ca52:	0f b7 07             	movzwl (%edi),%eax
40ca55:	66 85 c0             	test   %ax,%ax
40ca58:	74 33                	je     0x40ca8d
40ca5a:	8b c8                	mov    %eax,%ecx
40ca5c:	51                   	push   %ecx
40ca5d:	ff 15 c0 c3 42 00    	call   *0x42c3c0
40ca63:	59                   	pop    %ecx
40ca64:	85 c0                	test   %eax,%eax
40ca66:	75 18                	jne    0x40ca80
40ca68:	39 45 08             	cmp    %eax,0x8(%ebp)
40ca6b:	74 35                	je     0x40caa2
40ca6d:	0f b7 07             	movzwl (%edi),%eax
40ca70:	50                   	push   %eax
40ca71:	ff 75 08             	push   0x8(%ebp)
40ca74:	ff 15 30 c3 42 00    	call   *0x42c330
40ca7a:	59                   	pop    %ecx
40ca7b:	59                   	pop    %ecx
40ca7c:	85 c0                	test   %eax,%eax
40ca7e:	74 22                	je     0x40caa2
40ca80:	83 c7 02             	add    $0x2,%edi
40ca83:	0f b7 07             	movzwl (%edi),%eax
40ca86:	8b c8                	mov    %eax,%ecx
40ca88:	66 85 c0             	test   %ax,%ax
40ca8b:	75 cf                	jne    0x40ca5c
40ca8d:	68 2c 21 40 00       	push   $0x40212c
40ca92:	8b cb                	mov    %ebx,%ecx
40ca94:	e8 1f f6 ff ff       	call   0x40c0b8
40ca99:	5f                   	pop    %edi
40ca9a:	5e                   	pop    %esi
40ca9b:	33 c0                	xor    %eax,%eax
40ca9d:	5b                   	pop    %ebx
40ca9e:	5d                   	pop    %ebp
40ca9f:	c2 04 00             	ret    $0x4
40caa2:	8b 03                	mov    (%ebx),%eax
40caa4:	4e                   	dec    %esi
40caa5:	8d 34 70             	lea    (%eax,%esi,2),%esi
40caa8:	eb 2a                	jmp    0x40cad4
40caaa:	0f b7 06             	movzwl (%esi),%eax
40caad:	50                   	push   %eax
40caae:	ff 15 c0 c3 42 00    	call   *0x42c3c0
40cab4:	59                   	pop    %ecx
40cab5:	85 c0                	test   %eax,%eax
40cab7:	75 18                	jne    0x40cad1
40cab9:	39 45 08             	cmp    %eax,0x8(%ebp)
40cabc:	74 1a                	je     0x40cad8
40cabe:	0f b7 06             	movzwl (%esi),%eax
40cac1:	50                   	push   %eax
40cac2:	ff 75 08             	push   0x8(%ebp)
40cac5:	ff 15 30 c3 42 00    	call   *0x42c330
40cacb:	59                   	pop    %ecx
40cacc:	59                   	pop    %ecx
40cacd:	85 c0                	test   %eax,%eax
40cacf:	74 07                	je     0x40cad8
40cad1:	83 ee 02             	sub    $0x2,%esi
40cad4:	3b f7                	cmp    %edi,%esi
40cad6:	77 d2                	ja     0x40caaa
40cad8:	33 c0                	xor    %eax,%eax
40cada:	66 89 46 02          	mov    %ax,0x2(%esi)
40cade:	2b f7                	sub    %edi,%esi
40cae0:	83 c6 02             	add    $0x2,%esi
40cae3:	d1 fe                	sar    $1,%esi
40cae5:	89 73 08             	mov    %esi,0x8(%ebx)
40cae8:	3b 3b                	cmp    (%ebx),%edi
40caea:	76 ad                	jbe    0x40ca99
40caec:	39 73 04             	cmp    %esi,0x4(%ebx)
40caef:	76 a8                	jbe    0x40ca99
40caf1:	8d 04 75 02 00 00 00 	lea    0x2(,%esi,2),%eax
40caf8:	50                   	push   %eax
40caf9:	57                   	push   %edi
40cafa:	ff 33                	push   (%ebx)
40cafc:	e8 a6 b8 01 00       	call   0x4283a7
40cb01:	83 c4 0c             	add    $0xc,%esp
40cb04:	eb 93                	jmp    0x40ca99
40cb06:	8b ff                	mov    %edi,%edi
40cb08:	55                   	push   %ebp
40cb09:	8b ec                	mov    %esp,%ebp
40cb0b:	81 ec 8c 00 00 00    	sub    $0x8c,%esp
40cb11:	a1 74 b6 42 00       	mov    0x42b674,%eax
40cb16:	33 c5                	xor    %ebp,%eax
40cb18:	89 45 fc             	mov    %eax,-0x4(%ebp)
40cb1b:	56                   	push   %esi
40cb1c:	6a 40                	push   $0x40
40cb1e:	8d 85 78 ff ff ff    	lea    -0x88(%ebp),%eax
40cb24:	8b f1                	mov    %ecx,%esi
40cb26:	50                   	push   %eax
40cb27:	ff 15 80 c1 42 00    	call   *0x42c180
40cb2d:	85 c0                	test   %eax,%eax
40cb2f:	74 25                	je     0x40cb56