40e9dd:	e8 22 e3 ff ff       	call   0x40cd04
40e9e2:	81 e6 ff ff ff 7f    	and    $0x7fffffff,%esi
40e9e8:	76 04                	jbe    0x40e9ee
40e9ea:	8b c6                	mov    %esi,%eax
40e9ec:	eb 03                	jmp    0x40e9f1
40e9ee:	33 c0                	xor    %eax,%eax
40e9f0:	40                   	inc    %eax
40e9f1:	51                   	push   %ecx
40e9f2:	51                   	push   %ecx
40e9f3:	8d 8d f4 fd ff ff    	lea    -0x20c(%ebp),%ecx
40e9f9:	51                   	push   %ecx
40e9fa:	50                   	push   %eax
40e9fb:	56                   	push   %esi
40e9fc:	8b cf                	mov    %edi,%ecx
40e9fe:	e8 94 3f 00 00       	call   0x412997
40ea03:	8b f0                	mov    %eax,%esi
40ea05:	85 f6                	test   %esi,%esi
40ea07:	79 17                	jns    0x40ea20
40ea09:	8b 4d 04             	mov    0x4(%ebp),%ecx
40ea0c:	ba 85 00 00 00       	mov    $0x85,%edx
40ea11:	56                   	push   %esi
40ea12:	68 44 24 40 00       	push   $0x402444
40ea17:	e8 c1 f6 ff ff       	call   0x40e0dd
40ea1c:	8b c6                	mov    %esi,%eax
40ea1e:	eb 02                	jmp    0x40ea22
40ea20:	33 c0                	xor    %eax,%eax
40ea22:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40ea25:	5f                   	pop    %edi
40ea26:	33 cd                	xor    %ebp,%ecx
40ea28:	5e                   	pop    %esi
40ea29:	e8 b2 90 01 00       	call   0x427ae0
40ea2e:	c9                   	leave
40ea2f:	c2 10 00             	ret    $0x10
40ea32:	e8 3d f7 ff ff       	call   0x40e174
40ea37:	cc                   	int3
40ea38:	8b ff                	mov    %edi,%edi
40ea3a:	55                   	push   %ebp
40ea3b:	8b ec                	mov    %esp,%ebp
40ea3d:	83 ec 0c             	sub    $0xc,%esp
40ea40:	53                   	push   %ebx
40ea41:	56                   	push   %esi
40ea42:	57                   	push   %edi
40ea43:	33 db                	xor    %ebx,%ebx
40ea45:	8b f1                	mov    %ecx,%esi
40ea47:	53                   	push   %ebx
40ea48:	56                   	push   %esi
40ea49:	8b fa                	mov    %edx,%edi
40ea4b:	ff 15 b4 c2 42 00    	call   *0x42c2b4
40ea51:	83 f8 ff             	cmp    $0xffffffff,%eax
40ea54:	75 17                	jne    0x40ea6d
40ea56:	ba 95 00 00 00       	mov    $0x95,%edx
40ea5b:	8b 4d 04             	mov    0x4(%ebp),%ecx
40ea5e:	68 44 24 40 00       	push   $0x402444
40ea63:	e8 92 f6 ff ff       	call   0x40e0fa
40ea68:	e9 e3 00 00 00       	jmp    0x40eb50
40ea6d:	85 c0                	test   %eax,%eax
40ea6f:	74 11                	je     0x40ea82
40ea71:	3d 02 01 00 00       	cmp    $0x102,%eax
40ea76:	74 0a                	je     0x40ea82
40ea78:	ba 96 00 00 00       	mov    $0x96,%edx
40ea7d:	e9 b9 00 00 00       	jmp    0x40eb3b
40ea82:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40ea85:	85 c0                	test   %eax,%eax
40ea87:	75 3d                	jne    0x40eac6
40ea89:	8d 45 fc             	lea    -0x4(%ebp),%eax
40ea8c:	50                   	push   %eax
40ea8d:	6a 01                	push   $0x1
40ea8f:	56                   	push   %esi
40ea90:	ff 15 6c c1 42 00    	call   *0x42c16c
40ea96:	85 c0                	test   %eax,%eax
40ea98:	75 07                	jne    0x40eaa1
40ea9a:	ba 9e 00 00 00       	mov    $0x9e,%edx
40ea9f:	eb ba                	jmp    0x40ea5b
40eaa1:	ff 45 fc             	incl   -0x4(%ebp)
40eaa4:	53                   	push   %ebx
40eaa5:	6a 01                	push   $0x1
40eaa7:	56                   	push   %esi
40eaa8:	ff 15 6c c1 42 00    	call   *0x42c16c
40eaae:	85 c0                	test   %eax,%eax
40eab0:	75 0d                	jne    0x40eabf
40eab2:	ff 15 18 c2 42 00    	call   *0x42c218
40eab8:	3d 2a 01 00 00       	cmp    $0x12a,%eax
40eabd:	74 6e                	je     0x40eb2d
40eabf:	ba a3 00 00 00       	mov    $0xa3,%edx
40eac4:	eb 75                	jmp    0x40eb3b
40eac6:	8d 45 f8             	lea    -0x8(%ebp),%eax
40eac9:	89 5d f8             	mov    %ebx,-0x8(%ebp)
40eacc:	50                   	push   %eax
40eacd:	6a 01                	push   $0x1
40eacf:	56                   	push   %esi
40ead0:	ff 15 6c c1 42 00    	call   *0x42c16c
40ead6:	85 c0                	test   %eax,%eax
40ead8:	75 0a                	jne    0x40eae4
40eada:	ba ad 00 00 00       	mov    $0xad,%edx
40eadf:	e9 77 ff ff ff       	jmp    0x40ea5b
40eae4:	39 5d f8             	cmp    %ebx,-0x8(%ebp)
40eae7:	74 07                	je     0x40eaf0
40eae9:	ba ae 00 00 00       	mov    $0xae,%edx
40eaee:	eb 4b                	jmp    0x40eb3b
40eaf0:	53                   	push   %ebx
40eaf1:	6a 01                	push   $0x1
40eaf3:	56                   	push   %esi
40eaf4:	ff 15 6c c1 42 00    	call   *0x42c16c
40eafa:	85 c0                	test   %eax,%eax
40eafc:	75 38                	jne    0x40eb36
40eafe:	ff 15 18 c2 42 00    	call   *0x42c218
40eb04:	3d 2a 01 00 00       	cmp    $0x12a,%eax
40eb09:	75 2b                	jne    0x40eb36
40eb0b:	53                   	push   %ebx
40eb0c:	56                   	push   %esi
40eb0d:	ff 15 b4 c2 42 00    	call   *0x42c2b4
40eb13:	83 f8 ff             	cmp    $0xffffffff,%eax
40eb16:	75 0a                	jne    0x40eb22
40eb18:	ba b4 00 00 00       	mov    $0xb4,%edx
40eb1d:	e9 39 ff ff ff       	jmp    0x40ea5b
40eb22:	85 c0                	test   %eax,%eax
40eb24:	74 07                	je     0x40eb2d
40eb26:	ba b5 00 00 00       	mov    $0xb5,%edx
40eb2b:	eb 0e                	jmp    0x40eb3b
40eb2d:	8b 45 fc             	mov    -0x4(%ebp),%eax
40eb30:	89 07                	mov    %eax,(%edi)
40eb32:	33 c0                	xor    %eax,%eax
40eb34:	eb 1a                	jmp    0x40eb50
40eb36:	ba b1 00 00 00       	mov    $0xb1,%edx
40eb3b:	8b 4d 04             	mov    0x4(%ebp),%ecx
40eb3e:	be ff ff 00 80       	mov    $0x8000ffff,%esi
40eb43:	56                   	push   %esi
40eb44:	68 44 24 40 00       	push   $0x402444
40eb49:	e8 8f f5 ff ff       	call   0x40e0dd
40eb4e:	8b c6                	mov    %esi,%eax
40eb50:	5f                   	pop    %edi
40eb51:	5e                   	pop    %esi
40eb52:	5b                   	pop    %ebx
40eb53:	c9                   	leave
40eb54:	c3                   	ret
40eb55:	8b ff                	mov    %edi,%edi
40eb57:	55                   	push   %ebp
40eb58:	8b ec                	mov    %esp,%ebp
40eb5a:	83 e4 f8             	and    $0xfffffff8,%esp
40eb5d:	81 ec 1c 02 00 00    	sub    $0x21c,%esp
40eb63:	a1 74 b6 42 00       	mov    0x42b674,%eax
40eb68:	33 c4                	xor    %esp,%eax
40eb6a:	89 84 24 18 02 00 00 	mov    %eax,0x218(%esp)
40eb71:	8b 45 08             	mov    0x8(%ebp),%eax
40eb74:	53                   	push   %ebx
40eb75:	56                   	push   %esi
40eb76:	57                   	push   %edi
40eb77:	33 ff                	xor    %edi,%edi
40eb79:	89 44 24 14          	mov    %eax,0x14(%esp)
40eb7d:	51                   	push   %ecx
40eb7e:	be 04 01 00 00       	mov    $0x104,%esi
40eb83:	89 38                	mov    %edi,(%eax)
40eb85:	8b d6                	mov    %esi,%edx
40eb87:	89 78 04             	mov    %edi,0x4(%eax)
40eb8a:	8d 4c 24 1c          	lea    0x1c(%esp),%ecx
40eb8e:	e8 a2 9e ff ff       	call   0x408a35
40eb93:	68 f0 25 40 00       	push   $0x4025f0
40eb98:	8b d6                	mov    %esi,%edx
40eb9a:	8d 4c 24 1c          	lea    0x1c(%esp),%ecx
40eb9e:	e8 61 e1 ff ff       	call   0x40cd04
40eba3:	8d 44 24 18          	lea    0x18(%esp),%eax
40eba7:	50                   	push   %eax
40eba8:	57                   	push   %edi
40eba9:	68 03 00 1f 00       	push   $0x1f0003
40ebae:	ff 15 48 c1 42 00    	call   *0x42c148
40ebb4:	8b f0                	mov    %eax,%esi
40ebb6:	85 f6                	test   %esi,%esi
40ebb8:	75 21                	jne    0x40ebdb
40ebba:	ff 15 18 c2 42 00    	call   *0x42c218
40ebc0:	83 f8 02             	cmp    $0x2,%eax
40ebc3:	74 50                	je     0x40ec15
40ebc5:	8b 4d 04             	mov    0x4(%ebp),%ecx
40ebc8:	ba c9 00 00 00       	mov    $0xc9,%edx
40ebcd:	68 44 24 40 00       	push   $0x402444
40ebd2:	e8 23 f5 ff ff       	call   0x40e0fa
40ebd7:	8b f8                	mov    %eax,%edi
40ebd9:	eb 3a                	jmp    0x40ec15
40ebdb:	8d 54 24 10          	lea    0x10(%esp),%edx
40ebdf:	89 7c 24 10          	mov    %edi,0x10(%esp)
40ebe3:	8b ce                	mov    %esi,%ecx
40ebe5:	e8 4e fe ff ff       	call   0x40ea38
40ebea:	8b d8                	mov    %eax,%ebx
40ebec:	85 db                	test   %ebx,%ebx
40ebee:	79 17                	jns    0x40ec07
40ebf0:	8b 4d 04             	mov    0x4(%ebp),%ecx
40ebf3:	ba cf 00 00 00       	mov    $0xcf,%edx
40ebf8:	53                   	push   %ebx
40ebf9:	68 44 24 40 00       	push   $0x402444
40ebfe:	e8 da f4 ff ff       	call   0x40e0dd
40ec03:	8b fb                	mov    %ebx,%edi
40ec05:	eb 0e                	jmp    0x40ec15
40ec07:	8b 4c 24 14          	mov    0x14(%esp),%ecx
40ec0b:	8b 44 24 10          	mov    0x10(%esp),%eax
40ec0f:	99                   	cltd
40ec10:	89 01                	mov    %eax,(%ecx)
40ec12:	89 51 04             	mov    %edx,0x4(%ecx)
40ec15:	85 f6                	test   %esi,%esi
40ec17:	74 06                	je     0x40ec1f
40ec19:	56                   	push   %esi
40ec1a:	e8 47 fc ff ff       	call   0x40e866
40ec1f:	8b 8c 24 24 02 00 00 	mov    0x224(%esp),%ecx
40ec26:	8b c7                	mov    %edi,%eax
40ec28:	5f                   	pop    %edi
40ec29:	5e                   	pop    %esi
40ec2a:	5b                   	pop    %ebx
40ec2b:	33 cc                	xor    %esp,%ecx
40ec2d:	e8 ae 8e 01 00       	call   0x427ae0
40ec32:	8b e5                	mov    %ebp,%esp
40ec34:	5d                   	pop    %ebp
40ec35:	c2 08 00             	ret    $0x8
40ec38:	8b ff                	mov    %edi,%edi
40ec3a:	55                   	push   %ebp
40ec3b:	8b ec                	mov    %esp,%ebp
40ec3d:	83 ec 0c             	sub    $0xc,%esp
40ec40:	8b 45 0c             	mov    0xc(%ebp),%eax
40ec43:	53                   	push   %ebx
40ec44:	8b 5d 08             	mov    0x8(%ebp),%ebx
40ec47:	56                   	push   %esi
40ec48:	8b f1                	mov    %ecx,%esi
40ec4a:	33 c9                	xor    %ecx,%ecx
40ec4c:	57                   	push   %edi
40ec4d:	89 46 04             	mov    %eax,0x4(%esi)
40ec50:	8b 43 04             	mov    0x4(%ebx),%eax
40ec53:	89 46 08             	mov    %eax,0x8(%esi)
40ec56:	8d 46 0c             	lea    0xc(%esi),%eax
40ec59:	89 08                	mov    %ecx,(%eax)
40ec5b:	89 45 fc             	mov    %eax,-0x4(%ebp)
40ec5e:	66 8b 43 20          	mov    0x20(%ebx),%ax
40ec62:	66 89 46 10          	mov    %ax,0x10(%esi)
40ec66:	8a 03                	mov    (%ebx),%al
40ec68:	88 46 12             	mov    %al,0x12(%esi)
40ec6b:	8d 46 14             	lea    0x14(%esi),%eax
40ec6e:	89 08                	mov    %ecx,(%eax)
40ec70:	89 45 f8             	mov    %eax,-0x8(%ebp)
40ec73:	8b 43 48             	mov    0x48(%ebx),%eax
40ec76:	89 46 18             	mov    %eax,0x18(%esi)
40ec79:	8b 43 4c             	mov    0x4c(%ebx),%eax
40ec7c:	89 46 1c             	mov    %eax,0x1c(%esi)
40ec7f:	8d 46 20             	lea    0x20(%esi),%eax
40ec82:	89 08                	mov    %ecx,(%eax)
40ec84:	8b 4b 0c             	mov    0xc(%ebx),%ecx
40ec87:	89 45 f4             	mov    %eax,-0xc(%ebp)
40ec8a:	e8 59 ec ff ff       	call   0x40d8e8
40ec8f:	8b 4b 1c             	mov    0x1c(%ebx),%ecx
40ec92:	8b f8                	mov    %eax,%edi
40ec94:	e8 37 ec ff ff       	call   0x40d8d0
40ec99:	8b 4b 44             	mov    0x44(%ebx),%ecx
40ec9c:	03 f8                	add    %eax,%edi
40ec9e:	e8 2d ec ff ff       	call   0x40d8d0
40eca3:	03 f8                	add    %eax,%edi
40eca5:	83 7e 24 00          	cmpl   $0x0,0x24(%esi)
40eca9:	74 05                	je     0x40ecb0
40ecab:	39 7e 28             	cmp    %edi,0x28(%esi)
40ecae:	73 2b                	jae    0x40ecdb
40ecb0:	6a 08                	push   $0x8
40ecb2:	8b d7                	mov    %edi,%edx
40ecb4:	59                   	pop    %ecx
40ecb5:	e8 25 e8 ff ff       	call   0x40d4df
40ecba:	8b d8                	mov    %eax,%ebx
40ecbc:	85 db                	test   %ebx,%ebx
40ecbe:	74 18                	je     0x40ecd8
40ecc0:	ff 76 24             	push   0x24(%esi)
40ecc3:	6a 00                	push   $0x0
40ecc5:	ff 15 a0 c1 42 00    	call   *0x42c1a0
40eccb:	50                   	push   %eax
40eccc:	ff 15 a4 c1 42 00    	call   *0x42c1a4
40ecd2:	89 5e 24             	mov    %ebx,0x24(%esi)
40ecd5:	89 7e 28             	mov    %edi,0x28(%esi)
40ecd8:	8b 5d 08             	mov    0x8(%ebp),%ebx
40ecdb:	8b 4e 24             	mov    0x24(%esi),%ecx
40ecde:	85 c9                	test   %ecx,%ecx
40ece0:	74 3e                	je     0x40ed20
40ece2:	8b 76 28             	mov    0x28(%esi),%esi
40ece5:	ff 75 fc             	push   -0x4(%ebp)
40ece8:	03 f1                	add    %ecx,%esi
40ecea:	ff 73 1c             	push   0x1c(%ebx)
40eced:	8b d6                	mov    %esi,%edx
40ecef:	e8 45 46 00 00       	call   0x413339
40ecf4:	ff 75 f8             	push   -0x8(%ebp)
40ecf7:	8b d6                	mov    %esi,%edx
40ecf9:	8b c8                	mov    %eax,%ecx
40ecfb:	ff 73 44             	push   0x44(%ebx)
40ecfe:	e8 36 46 00 00       	call   0x413339
40ed03:	ff 75 f4             	push   -0xc(%ebp)
40ed06:	8b d6                	mov    %esi,%edx
40ed08:	8b c8                	mov    %eax,%ecx
40ed0a:	ff 73 0c             	push   0xc(%ebx)
40ed0d:	e8 bd 45 00 00       	call   0x4132cf
40ed12:	2b f0                	sub    %eax,%esi
40ed14:	56                   	push   %esi
40ed15:	6a 00                	push   $0x0
40ed17:	50                   	push   %eax
40ed18:	e8 90 96 01 00       	call   0x4283ad
40ed1d:	83 c4 0c             	add    $0xc,%esp
40ed20:	5f                   	pop    %edi
40ed21:	5e                   	pop    %esi
40ed22:	5b                   	pop    %ebx
40ed23:	c9                   	leave
40ed24:	c2 08 00             	ret    $0x8
40ed27:	8b ff                	mov    %edi,%edi
40ed29:	53                   	push   %ebx
40ed2a:	57                   	push   %edi
40ed2b:	8b f9                	mov    %ecx,%edi
40ed2d:	0f b7 47 14          	movzwl 0x14(%edi),%eax
40ed31:	8b 4f 10             	mov    0x10(%edi),%ecx
40ed34:	6b d8 2c             	imul   $0x2c,%eax,%ebx
40ed37:	03 d9                	add    %ecx,%ebx
40ed39:	3b cb                	cmp    %ebx,%ecx
40ed3b:	74 2a                	je     0x40ed67
40ed3d:	56                   	push   %esi
40ed3e:	8d 71 24             	lea    0x24(%ecx),%esi
40ed41:	ff 36                	push   (%esi)
40ed43:	6a 00                	push   $0x0
40ed45:	ff 15 a0 c1 42 00    	call   *0x42c1a0
40ed4b:	50                   	push   %eax
40ed4c:	ff 15 a4 c1 42 00    	call   *0x42c1a4
40ed52:	83 26 00             	andl   $0x0,(%esi)
40ed55:	8d 76 2c             	lea    0x2c(%esi),%esi
40ed58:	83 66 d8 00          	andl   $0x0,-0x28(%esi)
40ed5c:	8d 46 dc             	lea    -0x24(%esi),%eax
40ed5f:	3b c3                	cmp    %ebx,%eax
40ed61:	75 de                	jne    0x40ed41
40ed63:	8b 4f 10             	mov    0x10(%edi),%ecx
40ed66:	5e                   	pop    %esi
40ed67:	51                   	push   %ecx
40ed68:	6a 00                	push   $0x0
40ed6a:	ff 15 a0 c1 42 00    	call   *0x42c1a0
40ed70:	50                   	push   %eax
40ed71:	ff 15 a4 c1 42 00    	call   *0x42c1a4
40ed77:	33 c0                	xor    %eax,%eax
40ed79:	21 47 10             	and    %eax,0x10(%edi)
40ed7c:	89 47 14             	mov    %eax,0x14(%edi)
40ed7f:	5f                   	pop    %edi
40ed80:	5b                   	pop    %ebx
40ed81:	c3                   	ret
40ed82:	8b ff                	mov    %edi,%edi
40ed84:	55                   	push   %ebp
40ed85:	8b ec                	mov    %esp,%ebp
40ed87:	53                   	push   %ebx
40ed88:	56                   	push   %esi
40ed89:	8b f1                	mov    %ecx,%esi
40ed8b:	57                   	push   %edi
40ed8c:	6a 2c                	push   $0x2c
40ed8e:	5b                   	pop    %ebx
40ed8f:	8b 56 10             	mov    0x10(%esi),%edx
40ed92:	8b 7e 0c             	mov    0xc(%esi),%edi
40ed95:	85 d2                	test   %edx,%edx
40ed97:	75 49                	jne    0x40ede2
40ed99:	85 ff                	test   %edi,%edi
40ed9b:	0f 84 9e 00 00 00    	je     0x40ee3f