40cc15:	4a                   	dec    %edx
40cc16:	83 fa 3f             	cmp    $0x3f,%edx
40cc19:	76 03                	jbe    0x40cc1e
40cc1b:	6a 3f                	push   $0x3f
40cc1d:	5a                   	pop    %edx
40cc1e:	8b 4b 04             	mov    0x4(%ebx),%ecx
40cc21:	3b 4b 08             	cmp    0x8(%ebx),%ecx
40cc24:	75 42                	jne    0x40cc68
40cc26:	83 fa 20             	cmp    $0x20,%edx
40cc29:	bb 00 00 00 80       	mov    $0x80000000,%ebx
40cc2e:	73 19                	jae    0x40cc49
40cc30:	8b ca                	mov    %edx,%ecx
40cc32:	d3 eb                	shr    %cl,%ebx
40cc34:	8d 4c 02 04          	lea    0x4(%edx,%eax,1),%ecx
40cc38:	f7 d3                	not    %ebx
40cc3a:	21 5c b8 44          	and    %ebx,0x44(%eax,%edi,4)
40cc3e:	fe 09                	decb   (%ecx)
40cc40:	75 23                	jne    0x40cc65
40cc42:	8b 4d 08             	mov    0x8(%ebp),%ecx
40cc45:	21 19                	and    %ebx,(%ecx)
40cc47:	eb 1c                	jmp    0x40cc65
40cc49:	8d 4a e0             	lea    -0x20(%edx),%ecx
40cc4c:	d3 eb                	shr    %cl,%ebx
40cc4e:	8d 4c 02 04          	lea    0x4(%edx,%eax,1),%ecx
40cc52:	f7 d3                	not    %ebx
40cc54:	21 9c b8 c4 00 00 00 	and    %ebx,0xc4(%eax,%edi,4)
40cc5b:	fe 09                	decb   (%ecx)
40cc5d:	75 06                	jne    0x40cc65
40cc5f:	8b 4d 08             	mov    0x8(%ebp),%ecx
40cc62:	21 59 04             	and    %ebx,0x4(%ecx)
40cc65:	8b 5d 0c             	mov    0xc(%ebp),%ebx
40cc68:	8b 53 08             	mov    0x8(%ebx),%edx
40cc6b:	8b 5b 04             	mov    0x4(%ebx),%ebx
40cc6e:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40cc71:	03 4d f4             	add    -0xc(%ebp),%ecx
40cc74:	89 5a 04             	mov    %ebx,0x4(%edx)
40cc77:	8b 55 0c             	mov    0xc(%ebp),%edx
40cc7a:	8b 5a 04             	mov    0x4(%edx),%ebx
40cc7d:	8b 52 08             	mov    0x8(%edx),%edx
40cc80:	89 53 08             	mov    %edx,0x8(%ebx)
40cc83:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40cc86:	8b d1                	mov    %ecx,%edx
40cc88:	c1 fa 04             	sar    $0x4,%edx
40cc8b:	4a                   	dec    %edx
40cc8c:	83 fa 3f             	cmp    $0x3f,%edx
40cc8f:	76 03                	jbe    0x40cc94
40cc91:	6a 3f                	push   $0x3f
40cc93:	5a                   	pop    %edx
40cc94:	8b 5d f8             	mov    -0x8(%ebp),%ebx
40cc97:	83 e3 01             	and    $0x1,%ebx
40cc9a:	89 5d f4             	mov    %ebx,-0xc(%ebp)
40cc9d:	0f 85 8f 00 00 00    	jne    0x40cd32
40cca3:	2b 75 f8             	sub    -0x8(%ebp),%esi
40cca6:	8b 5d f8             	mov    -0x8(%ebp),%ebx
40cca9:	c1 fb 04             	sar    $0x4,%ebx
40ccac:	6a 3f                	push   $0x3f
40ccae:	89 75 0c             	mov    %esi,0xc(%ebp)
40ccb1:	4b                   	dec    %ebx
40ccb2:	5e                   	pop    %esi
40ccb3:	3b de                	cmp    %esi,%ebx
40ccb5:	76 02                	jbe    0x40ccb9
40ccb7:	8b de                	mov    %esi,%ebx
40ccb9:	03 4d f8             	add    -0x8(%ebp),%ecx
40ccbc:	8b d1                	mov    %ecx,%edx
40ccbe:	c1 fa 04             	sar    $0x4,%edx
40ccc1:	4a                   	dec    %edx
40ccc2:	3b d6                	cmp    %esi,%edx
40ccc4:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40ccc7:	76 02                	jbe    0x40cccb
40ccc9:	8b d6                	mov    %esi,%edx
40cccb:	3b da                	cmp    %edx,%ebx
40cccd:	74 5e                	je     0x40cd2d
40cccf:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40ccd2:	8b 71 04             	mov    0x4(%ecx),%esi
40ccd5:	3b 71 08             	cmp    0x8(%ecx),%esi
40ccd8:	75 3b                	jne    0x40cd15
40ccda:	83 fb 20             	cmp    $0x20,%ebx
40ccdd:	be 00 00 00 80       	mov    $0x80000000,%esi
40cce2:	73 17                	jae    0x40ccfb
40cce4:	8b cb                	mov    %ebx,%ecx
40cce6:	d3 ee                	shr    %cl,%esi
40cce8:	f7 d6                	not    %esi
40ccea:	21 74 b8 44          	and    %esi,0x44(%eax,%edi,4)
40ccee:	fe 4c 03 04          	decb   0x4(%ebx,%eax,1)
40ccf2:	75 21                	jne    0x40cd15
40ccf4:	8b 4d 08             	mov    0x8(%ebp),%ecx
40ccf7:	21 31                	and    %esi,(%ecx)
40ccf9:	eb 1a                	jmp    0x40cd15
40ccfb:	8d 4b e0             	lea    -0x20(%ebx),%ecx
40ccfe:	d3 ee                	shr    %cl,%esi
40cd00:	f7 d6                	not    %esi
40cd02:	21 b4 b8 c4 00 00 00 	and    %esi,0xc4(%eax,%edi,4)
40cd09:	fe 4c 03 04          	decb   0x4(%ebx,%eax,1)
40cd0d:	75 06                	jne    0x40cd15
40cd0f:	8b 4d 08             	mov    0x8(%ebp),%ecx
40cd12:	21 71 04             	and    %esi,0x4(%ecx)
40cd15:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40cd18:	8b 71 08             	mov    0x8(%ecx),%esi
40cd1b:	8b 49 04             	mov    0x4(%ecx),%ecx
40cd1e:	89 4e 04             	mov    %ecx,0x4(%esi)
40cd21:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40cd24:	8b 71 04             	mov    0x4(%ecx),%esi
40cd27:	8b 49 08             	mov    0x8(%ecx),%ecx
40cd2a:	89 4e 08             	mov    %ecx,0x8(%esi)
40cd2d:	8b 75 0c             	mov    0xc(%ebp),%esi
40cd30:	eb 03                	jmp    0x40cd35
40cd32:	8b 5d 08             	mov    0x8(%ebp),%ebx
40cd35:	83 7d f4 00          	cmpl   $0x0,-0xc(%ebp)
40cd39:	75 08                	jne    0x40cd43
40cd3b:	3b da                	cmp    %edx,%ebx
40cd3d:	0f 84 80 00 00 00    	je     0x40cdc3
40cd43:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40cd46:	8d 0c d1             	lea    (%ecx,%edx,8),%ecx
40cd49:	8b 59 04             	mov    0x4(%ecx),%ebx
40cd4c:	89 4e 08             	mov    %ecx,0x8(%esi)
40cd4f:	89 5e 04             	mov    %ebx,0x4(%esi)
40cd52:	89 71 04             	mov    %esi,0x4(%ecx)
40cd55:	8b 4e 04             	mov    0x4(%esi),%ecx
40cd58:	89 71 08             	mov    %esi,0x8(%ecx)
40cd5b:	8b 4e 04             	mov    0x4(%esi),%ecx
40cd5e:	3b 4e 08             	cmp    0x8(%esi),%ecx
40cd61:	75 60                	jne    0x40cdc3
40cd63:	8a 4c 02 04          	mov    0x4(%edx,%eax,1),%cl
40cd67:	88 4d 0f             	mov    %cl,0xf(%ebp)
40cd6a:	fe c1                	inc    %cl
40cd6c:	83 fa 20             	cmp    $0x20,%edx
40cd6f:	88 4c 02 04          	mov    %cl,0x4(%edx,%eax,1)
40cd73:	73 25                	jae    0x40cd9a
40cd75:	80 7d 0f 00          	cmpb   $0x0,0xf(%ebp)
40cd79:	75 0e                	jne    0x40cd89
40cd7b:	8b ca                	mov    %edx,%ecx
40cd7d:	bb 00 00 00 80       	mov    $0x80000000,%ebx
40cd82:	d3 eb                	shr    %cl,%ebx
40cd84:	8b 4d 08             	mov    0x8(%ebp),%ecx
40cd87:	09 19                	or     %ebx,(%ecx)
40cd89:	bb 00 00 00 80       	mov    $0x80000000,%ebx
40cd8e:	8b ca                	mov    %edx,%ecx
40cd90:	d3 eb                	shr    %cl,%ebx
40cd92:	8d 44 b8 44          	lea    0x44(%eax,%edi,4),%eax
40cd96:	09 18                	or     %ebx,(%eax)
40cd98:	eb 29                	jmp    0x40cdc3
40cd9a:	80 7d 0f 00          	cmpb   $0x0,0xf(%ebp)
40cd9e:	75 10                	jne    0x40cdb0
40cda0:	8d 4a e0             	lea    -0x20(%edx),%ecx
40cda3:	bb 00 00 00 80       	mov    $0x80000000,%ebx
40cda8:	d3 eb                	shr    %cl,%ebx
40cdaa:	8b 4d 08             	mov    0x8(%ebp),%ecx
40cdad:	09 59 04             	or     %ebx,0x4(%ecx)
40cdb0:	8d 4a e0             	lea    -0x20(%edx),%ecx
40cdb3:	ba 00 00 00 80       	mov    $0x80000000,%edx
40cdb8:	d3 ea                	shr    %cl,%edx
40cdba:	8d 84 b8 c4 00 00 00 	lea    0xc4(%eax,%edi,4),%eax
40cdc1:	09 10                	or     %edx,(%eax)
40cdc3:	8b 45 fc             	mov    -0x4(%ebp),%eax
40cdc6:	89 06                	mov    %eax,(%esi)
40cdc8:	89 44 30 fc          	mov    %eax,-0x4(%eax,%esi,1)
40cdcc:	8b 45 f0             	mov    -0x10(%ebp),%eax
40cdcf:	ff 08                	decl   (%eax)
40cdd1:	0f 85 f3 00 00 00    	jne    0x40ceca
40cdd7:	a1 b0 de 41 00       	mov    0x41deb0,%eax
40cddc:	85 c0                	test   %eax,%eax
40cdde:	0f 84 d8 00 00 00    	je     0x40cebc
40cde4:	8b 0d ec e5 41 00    	mov    0x41e5ec,%ecx
40cdea:	8b 35 10 71 41 00    	mov    0x417110,%esi
40cdf0:	68 00 40 00 00       	push   $0x4000
40cdf5:	c1 e1 0f             	shl    $0xf,%ecx
40cdf8:	03 48 0c             	add    0xc(%eax),%ecx
40cdfb:	bb 00 80 00 00       	mov    $0x8000,%ebx
40ce00:	53                   	push   %ebx
40ce01:	51                   	push   %ecx
40ce02:	ff d6                	call   *%esi
40ce04:	8b 0d ec e5 41 00    	mov    0x41e5ec,%ecx
40ce0a:	a1 b0 de 41 00       	mov    0x41deb0,%eax
40ce0f:	ba 00 00 00 80       	mov    $0x80000000,%edx
40ce14:	d3 ea                	shr    %cl,%edx
40ce16:	09 50 08             	or     %edx,0x8(%eax)
40ce19:	a1 b0 de 41 00       	mov    0x41deb0,%eax
40ce1e:	8b 40 10             	mov    0x10(%eax),%eax
40ce21:	8b 0d ec e5 41 00    	mov    0x41e5ec,%ecx
40ce27:	83 a4 88 c4 00 00 00 	andl   $0x0,0xc4(%eax,%ecx,4)
40ce2e:	00
40ce2f:	a1 b0 de 41 00       	mov    0x41deb0,%eax
40ce34:	8b 40 10             	mov    0x10(%eax),%eax
40ce37:	fe 48 43             	decb   0x43(%eax)
40ce3a:	a1 b0 de 41 00       	mov    0x41deb0,%eax
40ce3f:	8b 48 10             	mov    0x10(%eax),%ecx
40ce42:	80 79 43 00          	cmpb   $0x0,0x43(%ecx)
40ce46:	75 09                	jne    0x40ce51
40ce48:	83 60 04 fe          	andl   $0xfffffffe,0x4(%eax)
40ce4c:	a1 b0 de 41 00       	mov    0x41deb0,%eax
40ce51:	83 78 08 ff          	cmpl   $0xffffffff,0x8(%eax)
40ce55:	75 65                	jne    0x40cebc
40ce57:	53                   	push   %ebx
40ce58:	6a 00                	push   $0x0
40ce5a:	ff 70 0c             	push   0xc(%eax)
40ce5d:	ff d6                	call   *%esi
40ce5f:	a1 b0 de 41 00       	mov    0x41deb0,%eax
40ce64:	ff 70 10             	push   0x10(%eax)
40ce67:	6a 00                	push   $0x0
40ce69:	ff 35 5c dd 41 00    	push   0x41dd5c
40ce6f:	ff 15 b4 70 41 00    	call   *0x4170b4
40ce75:	8b 0d d8 e5 41 00    	mov    0x41e5d8,%ecx
40ce7b:	a1 b0 de 41 00       	mov    0x41deb0,%eax
40ce80:	6b c9 14             	imul   $0x14,%ecx,%ecx
40ce83:	8b 15 dc e5 41 00    	mov    0x41e5dc,%edx
40ce89:	2b c8                	sub    %eax,%ecx
40ce8b:	8d 4c 11 ec          	lea    -0x14(%ecx,%edx,1),%ecx
40ce8f:	51                   	push   %ecx
40ce90:	8d 48 14             	lea    0x14(%eax),%ecx
40ce93:	51                   	push   %ecx
40ce94:	50                   	push   %eax
40ce95:	e8 86 e0 ff ff       	call   0x40af20
40ce9a:	8b 45 08             	mov    0x8(%ebp),%eax
40ce9d:	83 c4 0c             	add    $0xc,%esp
40cea0:	ff 0d d8 e5 41 00    	decl   0x41e5d8
40cea6:	3b 05 b0 de 41 00    	cmp    0x41deb0,%eax
40ceac:	76 04                	jbe    0x40ceb2
40ceae:	83 6d 08 14          	subl   $0x14,0x8(%ebp)
40ceb2:	a1 dc e5 41 00       	mov    0x41e5dc,%eax
40ceb7:	a3 e4 e5 41 00       	mov    %eax,0x41e5e4
40cebc:	8b 45 08             	mov    0x8(%ebp),%eax
40cebf:	a3 b0 de 41 00       	mov    %eax,0x41deb0
40cec4:	89 3d ec e5 41 00    	mov    %edi,0x41e5ec
40ceca:	5b                   	pop    %ebx
40cecb:	5f                   	pop    %edi
40cecc:	5e                   	pop    %esi
40cecd:	c9                   	leave
40cece:	c3                   	ret
40cecf:	a1 e8 e5 41 00       	mov    0x41e5e8,%eax
40ced4:	56                   	push   %esi
40ced5:	8b 35 d8 e5 41 00    	mov    0x41e5d8,%esi
40cedb:	57                   	push   %edi
40cedc:	33 ff                	xor    %edi,%edi
40cede:	3b f0                	cmp    %eax,%esi
40cee0:	75 34                	jne    0x40cf16
40cee2:	83 c0 10             	add    $0x10,%eax
40cee5:	6b c0 14             	imul   $0x14,%eax,%eax
40cee8:	50                   	push   %eax
40cee9:	ff 35 dc e5 41 00    	push   0x41e5dc
40ceef:	57                   	push   %edi
40cef0:	ff 35 5c dd 41 00    	push   0x41dd5c
40cef6:	ff 15 18 71 41 00    	call   *0x417118
40cefc:	3b c7                	cmp    %edi,%eax
40cefe:	75 04                	jne    0x40cf04
40cf00:	33 c0                	xor    %eax,%eax
40cf02:	eb 78                	jmp    0x40cf7c
40cf04:	83 05 e8 e5 41 00 10 	addl   $0x10,0x41e5e8
40cf0b:	8b 35 d8 e5 41 00    	mov    0x41e5d8,%esi
40cf11:	a3 dc e5 41 00       	mov    %eax,0x41e5dc
40cf16:	6b f6 14             	imul   $0x14,%esi,%esi
40cf19:	03 35 dc e5 41 00    	add    0x41e5dc,%esi
40cf1f:	68 c4 41 00 00       	push   $0x41c4
40cf24:	6a 08                	push   $0x8
40cf26:	ff 35 5c dd 41 00    	push   0x41dd5c
40cf2c:	ff 15 c0 70 41 00    	call   *0x4170c0
40cf32:	3b c7                	cmp    %edi,%eax
40cf34:	89 46 10             	mov    %eax,0x10(%esi)
40cf37:	74 c7                	je     0x40cf00
40cf39:	6a 04                	push   $0x4
40cf3b:	68 00 20 00 00       	push   $0x2000
40cf40:	68 00 00 10 00       	push   $0x100000
40cf45:	57                   	push   %edi
40cf46:	ff 15 14 71 41 00    	call   *0x417114
40cf4c:	3b c7                	cmp    %edi,%eax
40cf4e:	89 46 0c             	mov    %eax,0xc(%esi)
40cf51:	75 12                	jne    0x40cf65
40cf53:	ff 76 10             	push   0x10(%esi)
40cf56:	57                   	push   %edi
40cf57:	ff 35 5c dd 41 00    	push   0x41dd5c
40cf5d:	ff 15 b4 70 41 00    	call   *0x4170b4
40cf63:	eb 9b                	jmp    0x40cf00
40cf65:	83 4e 08 ff          	orl    $0xffffffff,0x8(%esi)
40cf69:	89 3e                	mov    %edi,(%esi)
40cf6b:	89 7e 04             	mov    %edi,0x4(%esi)
40cf6e:	ff 05 d8 e5 41 00    	incl   0x41e5d8
40cf74:	8b 46 10             	mov    0x10(%esi),%eax
40cf77:	83 08 ff             	orl    $0xffffffff,(%eax)
40cf7a:	8b c6                	mov    %esi,%eax
40cf7c:	5f                   	pop    %edi
40cf7d:	5e                   	pop    %esi
40cf7e:	c3                   	ret
40cf7f:	55                   	push   %ebp
40cf80:	8b ec                	mov    %esp,%ebp
40cf82:	51                   	push   %ecx
40cf83:	51                   	push   %ecx
40cf84:	8b 4d 08             	mov    0x8(%ebp),%ecx
40cf87:	8b 41 08             	mov    0x8(%ecx),%eax
40cf8a:	53                   	push   %ebx
40cf8b:	56                   	push   %esi
40cf8c:	8b 71 10             	mov    0x10(%ecx),%esi
40cf8f:	57                   	push   %edi
40cf90:	33 db                	xor    %ebx,%ebx
40cf92:	eb 03                	jmp    0x40cf97
40cf94:	03 c0                	add    %eax,%eax
40cf96:	43                   	inc    %ebx
40cf97:	85 c0                	test   %eax,%eax
40cf99:	7d f9                	jge    0x40cf94
40cf9b:	8b c3                	mov    %ebx,%eax
40cf9d:	69 c0 04 02 00 00    	imul   $0x204,%eax,%eax
40cfa3:	8d 84 30 44 01 00 00 	lea    0x144(%eax,%esi,1),%eax
40cfaa:	6a 3f                	push   $0x3f
40cfac:	89 45 f8             	mov    %eax,-0x8(%ebp)
40cfaf:	5a                   	pop    %edx
40cfb0:	89 40 08             	mov    %eax,0x8(%eax)
40cfb3:	89 40 04             	mov    %eax,0x4(%eax)
40cfb6:	83 c0 08             	add    $0x8,%eax
40cfb9:	4a                   	dec    %edx
40cfba:	75 f4                	jne    0x40cfb0
40cfbc:	6a 04                	push   $0x4
40cfbe:	8b fb                	mov    %ebx,%edi
40cfc0:	68 00 10 00 00       	push   $0x1000
40cfc5:	c1 e7 0f             	shl    $0xf,%edi
40cfc8:	03 79 0c             	add    0xc(%ecx),%edi
40cfcb:	68 00 80 00 00       	push   $0x8000
40cfd0:	57                   	push   %edi
40cfd1:	ff 15 14 71 41 00    	call   *0x417114
40cfd7:	85 c0                	test   %eax,%eax
40cfd9:	75 08                	jne    0x40cfe3
40cfdb:	83 c8 ff             	or     $0xffffffff,%eax
40cfde:	e9 9d 00 00 00       	jmp    0x40d080
40cfe3:	8d 97 00 70 00 00    	lea    0x7000(%edi),%edx
40cfe9:	3b fa                	cmp    %edx,%edi
40cfeb:	89 55 fc             	mov    %edx,-0x4(%ebp)
40cfee:	77 43                	ja     0x40d033
40cff0:	8b ca                	mov    %edx,%ecx
40cff2:	2b cf                	sub    %edi,%ecx
40cff4:	c1 e9 0c             	shr    $0xc,%ecx
40cff7:	8d 47 10             	lea    0x10(%edi),%eax
40cffa:	41                   	inc    %ecx
40cffb:	83 48 f8 ff          	orl    $0xffffffff,-0x8(%eax)
40cfff:	83 88 ec 0f 00 00 ff 	orl    $0xffffffff,0xfec(%eax)
40d006:	8d 90 fc 0f 00 00    	lea    0xffc(%eax),%edx
40d00c:	89 10                	mov    %edx,(%eax)
40d00e:	8d 90 fc ef ff ff    	lea    -0x1004(%eax),%edx
40d014:	c7 40 fc f0 0f 00 00 	movl   $0xff0,-0x4(%eax)
40d01b:	89 50 04             	mov    %edx,0x4(%eax)
40d01e:	c7 80 e8 0f 00 00 f0 	movl   $0xff0,0xfe8(%eax)
40d025:	0f 00 00
40d028:	05 00 10 00 00       	add    $0x1000,%eax
40d02d:	49                   	dec    %ecx
40d02e:	75 cb                	jne    0x40cffb
40d030:	8b 55 fc             	mov    -0x4(%ebp),%edx
40d033:	8b 45 f8             	mov    -0x8(%ebp),%eax
40d036:	05 f8 01 00 00       	add    $0x1f8,%eax
40d03b:	8d 4f 0c             	lea    0xc(%edi),%ecx
40d03e:	89 48 04             	mov    %ecx,0x4(%eax)
40d041:	89 41 08             	mov    %eax,0x8(%ecx)
40d044:	8d 4a 0c             	lea    0xc(%edx),%ecx
40d047:	89 48 08             	mov    %ecx,0x8(%eax)
40d04a:	89 41 04             	mov    %eax,0x4(%ecx)