40ca11:	83 c6 08             	add    $0x8,%esi
40ca14:	81 fe a8 ca 41 00    	cmp    $0x41caa8,%esi
40ca1a:	7c dc                	jl     0x40c9f8
40ca1c:	be 88 c9 41 00       	mov    $0x41c988,%esi
40ca21:	5f                   	pop    %edi
40ca22:	8b 06                	mov    (%esi),%eax
40ca24:	85 c0                	test   %eax,%eax
40ca26:	74 09                	je     0x40ca31
40ca28:	83 7e 04 01          	cmpl   $0x1,0x4(%esi)
40ca2c:	75 03                	jne    0x40ca31
40ca2e:	50                   	push   %eax
40ca2f:	ff d3                	call   *%ebx
40ca31:	83 c6 08             	add    $0x8,%esi
40ca34:	81 fe a8 ca 41 00    	cmp    $0x41caa8,%esi
40ca3a:	7c e6                	jl     0x40ca22
40ca3c:	5e                   	pop    %esi
40ca3d:	5b                   	pop    %ebx
40ca3e:	c3                   	ret
40ca3f:	55                   	push   %ebp
40ca40:	8b ec                	mov    %esp,%ebp
40ca42:	8b 45 08             	mov    0x8(%ebp),%eax
40ca45:	ff 34 c5 88 c9 41 00 	push   0x41c988(,%eax,8)
40ca4c:	ff 15 8c 70 41 00    	call   *0x41708c
40ca52:	5d                   	pop    %ebp
40ca53:	c3                   	ret
40ca54:	6a 0c                	push   $0xc
40ca56:	68 98 ac 41 00       	push   $0x41ac98
40ca5b:	e8 e8 0b 00 00       	call   0x40d648
40ca60:	33 ff                	xor    %edi,%edi
40ca62:	47                   	inc    %edi
40ca63:	89 7d e4             	mov    %edi,-0x1c(%ebp)
40ca66:	33 db                	xor    %ebx,%ebx
40ca68:	39 1d 5c dd 41 00    	cmp    %ebx,0x41dd5c
40ca6e:	75 18                	jne    0x40ca88
40ca70:	e8 79 12 00 00       	call   0x40dcee
40ca75:	6a 1e                	push   $0x1e
40ca77:	e8 d2 10 00 00       	call   0x40db4e
40ca7c:	68 ff 00 00 00       	push   $0xff
40ca81:	e8 0a 0e 00 00       	call   0x40d890
40ca86:	59                   	pop    %ecx
40ca87:	59                   	pop    %ecx
40ca88:	8b 75 08             	mov    0x8(%ebp),%esi
40ca8b:	8d 34 f5 88 c9 41 00 	lea    0x41c988(,%esi,8),%esi
40ca92:	39 1e                	cmp    %ebx,(%esi)
40ca94:	74 04                	je     0x40ca9a
40ca96:	8b c7                	mov    %edi,%eax
40ca98:	eb 6e                	jmp    0x40cb08
40ca9a:	6a 18                	push   $0x18
40ca9c:	e8 4b c8 ff ff       	call   0x4092ec
40caa1:	59                   	pop    %ecx
40caa2:	8b f8                	mov    %eax,%edi
40caa4:	3b fb                	cmp    %ebx,%edi
40caa6:	75 0f                	jne    0x40cab7
40caa8:	e8 4d c9 ff ff       	call   0x4093fa
40caad:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)
40cab3:	33 c0                	xor    %eax,%eax
40cab5:	eb 51                	jmp    0x40cb08
40cab7:	6a 0a                	push   $0xa
40cab9:	e8 59 00 00 00       	call   0x40cb17
40cabe:	59                   	pop    %ecx
40cabf:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40cac2:	39 1e                	cmp    %ebx,(%esi)
40cac4:	75 2c                	jne    0x40caf2
40cac6:	68 a0 0f 00 00       	push   $0xfa0
40cacb:	57                   	push   %edi
40cacc:	e8 a4 75 00 00       	call   0x414075
40cad1:	59                   	pop    %ecx
40cad2:	59                   	pop    %ecx
40cad3:	85 c0                	test   %eax,%eax
40cad5:	75 17                	jne    0x40caee
40cad7:	57                   	push   %edi
40cad8:	e8 76 99 ff ff       	call   0x406453
40cadd:	59                   	pop    %ecx
40cade:	e8 17 c9 ff ff       	call   0x4093fa
40cae3:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)
40cae9:	89 5d e4             	mov    %ebx,-0x1c(%ebp)
40caec:	eb 0b                	jmp    0x40caf9
40caee:	89 3e                	mov    %edi,(%esi)
40caf0:	eb 07                	jmp    0x40caf9
40caf2:	57                   	push   %edi
40caf3:	e8 5b 99 ff ff       	call   0x406453
40caf8:	59                   	pop    %ecx
40caf9:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40cb00:	e8 09 00 00 00       	call   0x40cb0e
40cb05:	8b 45 e4             	mov    -0x1c(%ebp),%eax
40cb08:	e8 80 0b 00 00       	call   0x40d68d
40cb0d:	c3                   	ret
40cb0e:	6a 0a                	push   $0xa
40cb10:	e8 2a ff ff ff       	call   0x40ca3f
40cb15:	59                   	pop    %ecx
40cb16:	c3                   	ret
40cb17:	55                   	push   %ebp
40cb18:	8b ec                	mov    %esp,%ebp
40cb1a:	8b 45 08             	mov    0x8(%ebp),%eax
40cb1d:	56                   	push   %esi
40cb1e:	8d 34 c5 88 c9 41 00 	lea    0x41c988(,%eax,8),%esi
40cb25:	83 3e 00             	cmpl   $0x0,(%esi)
40cb28:	75 13                	jne    0x40cb3d
40cb2a:	50                   	push   %eax
40cb2b:	e8 24 ff ff ff       	call   0x40ca54
40cb30:	85 c0                	test   %eax,%eax
40cb32:	59                   	pop    %ecx
40cb33:	75 08                	jne    0x40cb3d
40cb35:	6a 11                	push   $0x11
40cb37:	e8 0a 0d 00 00       	call   0x40d846
40cb3c:	59                   	pop    %ecx
40cb3d:	ff 36                	push   (%esi)
40cb3f:	ff 15 88 70 41 00    	call   *0x417088
40cb45:	5e                   	pop    %esi
40cb46:	5d                   	pop    %ebp
40cb47:	c3                   	ret
40cb48:	68 40 01 00 00       	push   $0x140
40cb4d:	6a 00                	push   $0x0
40cb4f:	ff 35 5c dd 41 00    	push   0x41dd5c
40cb55:	ff 15 c0 70 41 00    	call   *0x4170c0
40cb5b:	85 c0                	test   %eax,%eax
40cb5d:	a3 dc e5 41 00       	mov    %eax,0x41e5dc
40cb62:	75 01                	jne    0x40cb65
40cb64:	c3                   	ret
40cb65:	8b 4c 24 04          	mov    0x4(%esp),%ecx
40cb69:	83 25 b0 de 41 00 00 	andl   $0x0,0x41deb0
40cb70:	83 25 d8 e5 41 00 00 	andl   $0x0,0x41e5d8
40cb77:	a3 e4 e5 41 00       	mov    %eax,0x41e5e4
40cb7c:	33 c0                	xor    %eax,%eax
40cb7e:	89 0d e0 e5 41 00    	mov    %ecx,0x41e5e0
40cb84:	c7 05 e8 e5 41 00 10 	movl   $0x10,0x41e5e8
40cb8b:	00 00 00
40cb8e:	40                   	inc    %eax
40cb8f:	c3                   	ret
40cb90:	8b 0d d8 e5 41 00    	mov    0x41e5d8,%ecx
40cb96:	a1 dc e5 41 00       	mov    0x41e5dc,%eax
40cb9b:	6b c9 14             	imul   $0x14,%ecx,%ecx
40cb9e:	03 c8                	add    %eax,%ecx
40cba0:	eb 12                	jmp    0x40cbb4
40cba2:	8b 54 24 04          	mov    0x4(%esp),%edx
40cba6:	2b 50 0c             	sub    0xc(%eax),%edx
40cba9:	81 fa 00 00 10 00    	cmp    $0x100000,%edx
40cbaf:	72 09                	jb     0x40cbba
40cbb1:	83 c0 14             	add    $0x14,%eax
40cbb4:	3b c1                	cmp    %ecx,%eax
40cbb6:	72 ea                	jb     0x40cba2
40cbb8:	33 c0                	xor    %eax,%eax
40cbba:	c3                   	ret
40cbbb:	55                   	push   %ebp
40cbbc:	8b ec                	mov    %esp,%ebp
40cbbe:	83 ec 10             	sub    $0x10,%esp
40cbc1:	8b 4d 08             	mov    0x8(%ebp),%ecx
40cbc4:	8b 41 10             	mov    0x10(%ecx),%eax
40cbc7:	56                   	push   %esi
40cbc8:	8b 75 0c             	mov    0xc(%ebp),%esi
40cbcb:	57                   	push   %edi
40cbcc:	8b fe                	mov    %esi,%edi
40cbce:	2b 79 0c             	sub    0xc(%ecx),%edi
40cbd1:	83 c6 fc             	add    $0xfffffffc,%esi
40cbd4:	c1 ef 0f             	shr    $0xf,%edi
40cbd7:	8b cf                	mov    %edi,%ecx
40cbd9:	69 c9 04 02 00 00    	imul   $0x204,%ecx,%ecx
40cbdf:	8d 8c 01 44 01 00 00 	lea    0x144(%ecx,%eax,1),%ecx
40cbe6:	89 4d f0             	mov    %ecx,-0x10(%ebp)
40cbe9:	8b 0e                	mov    (%esi),%ecx
40cbeb:	49                   	dec    %ecx
40cbec:	f6 c1 01             	test   $0x1,%cl
40cbef:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40cbf2:	0f 85 d3 02 00 00    	jne    0x40cecb
40cbf8:	53                   	push   %ebx
40cbf9:	8d 1c 31             	lea    (%ecx,%esi,1),%ebx
40cbfc:	8b 13                	mov    (%ebx),%edx
40cbfe:	89 55 f4             	mov    %edx,-0xc(%ebp)
40cc01:	8b 56 fc             	mov    -0x4(%esi),%edx
40cc04:	89 55 f8             	mov    %edx,-0x8(%ebp)
40cc07:	8b 55 f4             	mov    -0xc(%ebp),%edx
40cc0a:	f6 c2 01             	test   $0x1,%dl
40cc0d:	89 5d 0c             	mov    %ebx,0xc(%ebp)
40cc10:	75 74                	jne    0x40cc86
40cc12:	c1 fa 04             	sar    $0x4,%edx
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