40ee02:	85 c0                	test   %eax,%eax
40ee04:	75 09                	jne    0x40ee0f
40ee06:	66 8b 45 08          	mov    0x8(%ebp),%ax
40ee0a:	0f b7 c0             	movzwl %ax,%eax
40ee0d:	eb 11                	jmp    0x40ee20
40ee0f:	8b 45 ec             	mov    -0x14(%ebp),%eax
40ee12:	0f b7 4d 08          	movzwl 0x8(%ebp),%ecx
40ee16:	8b 80 94 00 00 00    	mov    0x94(%eax),%eax
40ee1c:	0f b6 04 08          	movzbl (%eax,%ecx,1),%eax
40ee20:	0f b7 c0             	movzwl %ax,%eax
40ee23:	89 45 f8             	mov    %eax,-0x8(%ebp)
40ee26:	eb 1c                	jmp    0x40ee44
40ee28:	8d 4d fc             	lea    -0x4(%ebp),%ecx
40ee2b:	51                   	push   %ecx
40ee2c:	6a 01                	push   $0x1
40ee2e:	8d 4d 08             	lea    0x8(%ebp),%ecx
40ee31:	51                   	push   %ecx
40ee32:	52                   	push   %edx
40ee33:	50                   	push   %eax
40ee34:	e8 03 63 00 00       	call   0x41513c
40ee39:	83 c4 18             	add    $0x18,%esp
40ee3c:	85 c0                	test   %eax,%eax
40ee3e:	75 0c                	jne    0x40ee4c
40ee40:	66 8b 45 08          	mov    0x8(%ebp),%ax
40ee44:	0f b7 c0             	movzwl %ax,%eax
40ee47:	89 45 f8             	mov    %eax,-0x8(%ebp)
40ee4a:	eb 04                	jmp    0x40ee50
40ee4c:	66 8b 45 fc          	mov    -0x4(%ebp),%ax
40ee50:	80 7d f4 00          	cmpb   $0x0,-0xc(%ebp)
40ee54:	74 0a                	je     0x40ee60
40ee56:	8b 4d e8             	mov    -0x18(%ebp),%ecx
40ee59:	83 a1 50 03 00 00 fd 	andl   $0xfffffffd,0x350(%ecx)
40ee60:	8b e5                	mov    %ebp,%esp
40ee62:	5d                   	pop    %ebp
40ee63:	c3                   	ret
40ee64:	8b ff                	mov    %edi,%edi
40ee66:	56                   	push   %esi
40ee67:	57                   	push   %edi
40ee68:	bf 68 45 42 00       	mov    $0x424568,%edi
40ee6d:	33 f6                	xor    %esi,%esi
40ee6f:	6a 00                	push   $0x0
40ee71:	68 a0 0f 00 00       	push   $0xfa0
40ee76:	57                   	push   %edi
40ee77:	e8 cc d1 ff ff       	call   0x40c048
40ee7c:	85 c0                	test   %eax,%eax
40ee7e:	74 18                	je     0x40ee98
40ee80:	ff 05 a0 46 42 00    	incl   0x4246a0
40ee86:	83 c6 18             	add    $0x18,%esi
40ee89:	83 c7 18             	add    $0x18,%edi
40ee8c:	81 fe 38 01 00 00    	cmp    $0x138,%esi
40ee92:	72 db                	jb     0x40ee6f
40ee94:	b0 01                	mov    $0x1,%al
40ee96:	eb 0a                	jmp    0x40eea2
40ee98:	6a 00                	push   $0x0
40ee9a:	e8 1d 00 00 00       	call   0x40eebc
40ee9f:	59                   	pop    %ecx
40eea0:	32 c0                	xor    %al,%al
40eea2:	5f                   	pop    %edi
40eea3:	5e                   	pop    %esi
40eea4:	c3                   	ret
40eea5:	8b ff                	mov    %edi,%edi
40eea7:	55                   	push   %ebp
40eea8:	8b ec                	mov    %esp,%ebp
40eeaa:	6b 45 08 18          	imul   $0x18,0x8(%ebp),%eax
40eeae:	05 68 45 42 00       	add    $0x424568,%eax
40eeb3:	50                   	push   %eax
40eeb4:	ff 15 2c b0 41 00    	call   *0x41b02c
40eeba:	5d                   	pop    %ebp
40eebb:	c3                   	ret
40eebc:	8b ff                	mov    %edi,%edi
40eebe:	56                   	push   %esi
40eebf:	8b 35 a0 46 42 00    	mov    0x4246a0,%esi
40eec5:	85 f6                	test   %esi,%esi
40eec7:	74 20                	je     0x40eee9
40eec9:	6b c6 18             	imul   $0x18,%esi,%eax
40eecc:	57                   	push   %edi
40eecd:	8d b8 50 45 42 00    	lea    0x424550(%eax),%edi
40eed3:	57                   	push   %edi
40eed4:	ff 15 40 b0 41 00    	call   *0x41b040
40eeda:	ff 0d a0 46 42 00    	decl   0x4246a0
40eee0:	83 ef 18             	sub    $0x18,%edi
40eee3:	83 ee 01             	sub    $0x1,%esi
40eee6:	75 eb                	jne    0x40eed3
40eee8:	5f                   	pop    %edi
40eee9:	b0 01                	mov    $0x1,%al
40eeeb:	5e                   	pop    %esi
40eeec:	c3                   	ret
40eeed:	8b ff                	mov    %edi,%edi
40eeef:	55                   	push   %ebp
40eef0:	8b ec                	mov    %esp,%ebp
40eef2:	6b 45 08 18          	imul   $0x18,0x8(%ebp),%eax
40eef6:	05 68 45 42 00       	add    $0x424568,%eax
40eefb:	50                   	push   %eax
40eefc:	ff 15 34 b0 41 00    	call   *0x41b034
40ef02:	5d                   	pop    %ebp
40ef03:	c3                   	ret
40ef04:	8b ff                	mov    %edi,%edi
40ef06:	55                   	push   %ebp
40ef07:	8b ec                	mov    %esp,%ebp
40ef09:	8b 45 0c             	mov    0xc(%ebp),%eax
40ef0c:	3b 45 08             	cmp    0x8(%ebp),%eax
40ef0f:	76 05                	jbe    0x40ef16
40ef11:	83 c8 ff             	or     $0xffffffff,%eax
40ef14:	5d                   	pop    %ebp
40ef15:	c3                   	ret
40ef16:	1b c0                	sbb    %eax,%eax
40ef18:	f7 d8                	neg    %eax
40ef1a:	5d                   	pop    %ebp
40ef1b:	c3                   	ret
40ef1c:	8b ff                	mov    %edi,%edi
40ef1e:	55                   	push   %ebp
40ef1f:	8b ec                	mov    %esp,%ebp
40ef21:	83 ec 30             	sub    $0x30,%esp
40ef24:	a1 0c 30 42 00       	mov    0x42300c,%eax
40ef29:	33 c5                	xor    %ebp,%eax
40ef2b:	89 45 fc             	mov    %eax,-0x4(%ebp)
40ef2e:	8b 45 0c             	mov    0xc(%ebp),%eax
40ef31:	89 45 d4             	mov    %eax,-0x2c(%ebp)
40ef34:	56                   	push   %esi
40ef35:	8b 75 08             	mov    0x8(%ebp),%esi
40ef38:	85 c0                	test   %eax,%eax
40ef3a:	75 16                	jne    0x40ef52
40ef3c:	e8 c6 8d ff ff       	call   0x407d07
40ef41:	6a 16                	push   $0x16
40ef43:	5e                   	pop    %esi
40ef44:	89 30                	mov    %esi,(%eax)
40ef46:	e8 e3 8c ff ff       	call   0x407c2e
40ef4b:	8b c6                	mov    %esi,%eax
40ef4d:	e9 7b 01 00 00       	jmp    0x40f0cd
40ef52:	33 c9                	xor    %ecx,%ecx
40ef54:	53                   	push   %ebx
40ef55:	57                   	push   %edi
40ef56:	89 08                	mov    %ecx,(%eax)
40ef58:	8b f9                	mov    %ecx,%edi
40ef5a:	8b d9                	mov    %ecx,%ebx
40ef5c:	89 4d e4             	mov    %ecx,-0x1c(%ebp)
40ef5f:	89 7d d8             	mov    %edi,-0x28(%ebp)
40ef62:	89 5d dc             	mov    %ebx,-0x24(%ebp)
40ef65:	89 4d e0             	mov    %ecx,-0x20(%ebp)
40ef68:	39 0e                	cmp    %ecx,(%esi)
40ef6a:	74 61                	je     0x40efcd
40ef6c:	6a 2a                	push   $0x2a
40ef6e:	58                   	pop    %eax
40ef6f:	66 89 45 f4          	mov    %ax,-0xc(%ebp)
40ef73:	6a 3f                	push   $0x3f
40ef75:	58                   	pop    %eax
40ef76:	66 89 45 f6          	mov    %ax,-0xa(%ebp)
40ef7a:	33 c0                	xor    %eax,%eax
40ef7c:	66 89 45 f8          	mov    %ax,-0x8(%ebp)
40ef80:	8d 45 f4             	lea    -0xc(%ebp),%eax
40ef83:	50                   	push   %eax
40ef84:	ff 36                	push   (%esi)
40ef86:	e8 bf cc ff ff       	call   0x40bc4a
40ef8b:	59                   	pop    %ecx
40ef8c:	59                   	pop    %ecx
40ef8d:	85 c0                	test   %eax,%eax
40ef8f:	75 14                	jne    0x40efa5
40ef91:	8d 45 d8             	lea    -0x28(%ebp),%eax
40ef94:	50                   	push   %eax
40ef95:	33 c0                	xor    %eax,%eax
40ef97:	50                   	push   %eax
40ef98:	50                   	push   %eax
40ef99:	ff 36                	push   (%esi)
40ef9b:	e8 49 01 00 00       	call   0x40f0e9
40efa0:	83 c4 10             	add    $0x10,%esp
40efa3:	eb 0f                	jmp    0x40efb4
40efa5:	8d 4d d8             	lea    -0x28(%ebp),%ecx
40efa8:	51                   	push   %ecx
40efa9:	50                   	push   %eax
40efaa:	ff 36                	push   (%esi)
40efac:	e8 d6 01 00 00       	call   0x40f187
40efb1:	83 c4 0c             	add    $0xc,%esp
40efb4:	8b f8                	mov    %eax,%edi
40efb6:	85 ff                	test   %edi,%edi
40efb8:	0f 85 03 01 00 00    	jne    0x40f0c1
40efbe:	83 c6 04             	add    $0x4,%esi
40efc1:	33 c9                	xor    %ecx,%ecx
40efc3:	39 0e                	cmp    %ecx,(%esi)
40efc5:	75 a5                	jne    0x40ef6c
40efc7:	8b 5d dc             	mov    -0x24(%ebp),%ebx
40efca:	8b 7d d8             	mov    -0x28(%ebp),%edi
40efcd:	8b c3                	mov    %ebx,%eax
40efcf:	89 4d ec             	mov    %ecx,-0x14(%ebp)
40efd2:	2b c7                	sub    %edi,%eax
40efd4:	33 c9                	xor    %ecx,%ecx
40efd6:	8b d0                	mov    %eax,%edx
40efd8:	89 4d f0             	mov    %ecx,-0x10(%ebp)
40efdb:	c1 fa 02             	sar    $0x2,%edx
40efde:	83 c0 03             	add    $0x3,%eax
40efe1:	42                   	inc    %edx
40efe2:	c1 e8 02             	shr    $0x2,%eax
40efe5:	3b df                	cmp    %edi,%ebx
40efe7:	89 55 e8             	mov    %edx,-0x18(%ebp)
40efea:	1b f6                	sbb    %esi,%esi
40efec:	f7 d6                	not    %esi
40efee:	23 f0                	and    %eax,%esi
40eff0:	74 38                	je     0x40f02a
40eff2:	8b 5d ec             	mov    -0x14(%ebp),%ebx
40eff5:	8b d7                	mov    %edi,%edx
40eff7:	8b 0a                	mov    (%edx),%ecx
40eff9:	8d 41 02             	lea    0x2(%ecx),%eax
40effc:	89 45 ec             	mov    %eax,-0x14(%ebp)
40efff:	66 8b 01             	mov    (%ecx),%ax
40f002:	83 c1 02             	add    $0x2,%ecx
40f005:	66 3b 45 e4          	cmp    -0x1c(%ebp),%ax
40f009:	75 f4                	jne    0x40efff
40f00b:	2b 4d ec             	sub    -0x14(%ebp),%ecx
40f00e:	43                   	inc    %ebx
40f00f:	8b 45 f0             	mov    -0x10(%ebp),%eax
40f012:	83 c2 04             	add    $0x4,%edx
40f015:	d1 f9                	sar    $1,%ecx
40f017:	03 d9                	add    %ecx,%ebx
40f019:	40                   	inc    %eax
40f01a:	89 45 f0             	mov    %eax,-0x10(%ebp)
40f01d:	3b c6                	cmp    %esi,%eax
40f01f:	75 d6                	jne    0x40eff7
40f021:	8b 55 e8             	mov    -0x18(%ebp),%edx
40f024:	89 5d ec             	mov    %ebx,-0x14(%ebp)
40f027:	8b 5d dc             	mov    -0x24(%ebp),%ebx
40f02a:	6a 02                	push   $0x2
40f02c:	ff 75 ec             	push   -0x14(%ebp)
40f02f:	52                   	push   %edx
40f030:	e8 a5 97 ff ff       	call   0x4087da
40f035:	8b f0                	mov    %eax,%esi
40f037:	83 c4 0c             	add    $0xc,%esp
40f03a:	85 f6                	test   %esi,%esi
40f03c:	75 05                	jne    0x40f043
40f03e:	83 cf ff             	or     $0xffffffff,%edi
40f041:	eb 77                	jmp    0x40f0ba
40f043:	8b 45 e8             	mov    -0x18(%ebp),%eax
40f046:	8d 04 86             	lea    (%esi,%eax,4),%eax
40f049:	89 45 d0             	mov    %eax,-0x30(%ebp)
40f04c:	8b d0                	mov    %eax,%edx
40f04e:	89 55 e8             	mov    %edx,-0x18(%ebp)
40f051:	3b fb                	cmp    %ebx,%edi
40f053:	74 5c                	je     0x40f0b1
40f055:	8b c6                	mov    %esi,%eax
40f057:	2b c7                	sub    %edi,%eax
40f059:	89 45 f4             	mov    %eax,-0xc(%ebp)
40f05c:	8b 0f                	mov    (%edi),%ecx
40f05e:	8d 41 02             	lea    0x2(%ecx),%eax
40f061:	89 45 f0             	mov    %eax,-0x10(%ebp)
40f064:	66 8b 01             	mov    (%ecx),%ax
40f067:	83 c1 02             	add    $0x2,%ecx
40f06a:	66 3b 45 e4          	cmp    -0x1c(%ebp),%ax
40f06e:	75 f4                	jne    0x40f064
40f070:	2b 4d f0             	sub    -0x10(%ebp),%ecx
40f073:	d1 f9                	sar    $1,%ecx
40f075:	8d 41 01             	lea    0x1(%ecx),%eax
40f078:	8b ca                	mov    %edx,%ecx
40f07a:	2b 4d d0             	sub    -0x30(%ebp),%ecx
40f07d:	50                   	push   %eax
40f07e:	ff 37                	push   (%edi)
40f080:	89 45 f0             	mov    %eax,-0x10(%ebp)
40f083:	8b 45 ec             	mov    -0x14(%ebp),%eax
40f086:	d1 f9                	sar    $1,%ecx
40f088:	2b c1                	sub    %ecx,%eax
40f08a:	50                   	push   %eax
40f08b:	52                   	push   %edx
40f08c:	e8 8e 18 00 00       	call   0x41091f
40f091:	83 c4 10             	add    $0x10,%esp
40f094:	85 c0                	test   %eax,%eax
40f096:	75 44                	jne    0x40f0dc
40f098:	8b 45 f4             	mov    -0xc(%ebp),%eax
40f09b:	8b 55 e8             	mov    -0x18(%ebp),%edx
40f09e:	89 14 38             	mov    %edx,(%eax,%edi,1)
40f0a1:	83 c7 04             	add    $0x4,%edi
40f0a4:	8b 45 f0             	mov    -0x10(%ebp),%eax
40f0a7:	8d 14 42             	lea    (%edx,%eax,2),%edx
40f0aa:	89 55 e8             	mov    %edx,-0x18(%ebp)
40f0ad:	3b fb                	cmp    %ebx,%edi
40f0af:	75 ab                	jne    0x40f05c
40f0b1:	8b 45 d4             	mov    -0x2c(%ebp),%eax
40f0b4:	89 30                	mov    %esi,(%eax)
40f0b6:	33 c0                	xor    %eax,%eax
40f0b8:	8b f8                	mov    %eax,%edi
40f0ba:	50                   	push   %eax
40f0bb:	e8 64 a7 ff ff       	call   0x409824
40f0c0:	59                   	pop    %ecx
40f0c1:	8d 4d d8             	lea    -0x28(%ebp),%ecx
40f0c4:	e8 74 02 00 00       	call   0x40f33d
40f0c9:	8b c7                	mov    %edi,%eax
40f0cb:	5f                   	pop    %edi
40f0cc:	5b                   	pop    %ebx
40f0cd:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40f0d0:	33 cd                	xor    %ebp,%ecx
40f0d2:	5e                   	pop    %esi
40f0d3:	e8 7e 3e ff ff       	call   0x402f56
40f0d8:	8b e5                	mov    %ebp,%esp
40f0da:	5d                   	pop    %ebp
40f0db:	c3                   	ret
40f0dc:	33 c0                	xor    %eax,%eax
40f0de:	50                   	push   %eax
40f0df:	50                   	push   %eax
40f0e0:	50                   	push   %eax
40f0e1:	50                   	push   %eax
40f0e2:	50                   	push   %eax
40f0e3:	e8 73 8b ff ff       	call   0x407c5b
40f0e8:	cc                   	int3
40f0e9:	8b ff                	mov    %edi,%edi
40f0eb:	55                   	push   %ebp
40f0ec:	8b ec                	mov    %esp,%ebp
40f0ee:	51                   	push   %ecx
40f0ef:	8b 4d 08             	mov    0x8(%ebp),%ecx
40f0f2:	53                   	push   %ebx
40f0f3:	57                   	push   %edi
40f0f4:	33 db                	xor    %ebx,%ebx
40f0f6:	8d 51 02             	lea    0x2(%ecx),%edx
40f0f9:	66 8b 01             	mov    (%ecx),%ax
40f0fc:	83 c1 02             	add    $0x2,%ecx
40f0ff:	66 3b c3             	cmp    %bx,%ax
40f102:	75 f5                	jne    0x40f0f9
40f104:	8b 7d 10             	mov    0x10(%ebp),%edi
40f107:	2b ca                	sub    %edx,%ecx
40f109:	d1 f9                	sar    $1,%ecx
40f10b:	83 c8 ff             	or     $0xffffffff,%eax
40f10e:	41                   	inc    %ecx
40f10f:	2b c7                	sub    %edi,%eax
40f111:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40f114:	3b c8                	cmp    %eax,%ecx
40f116:	76 05                	jbe    0x40f11d
40f118:	6a 0c                	push   $0xc
40f11a:	58                   	pop    %eax
40f11b:	eb 57                	jmp    0x40f174
40f11d:	56                   	push   %esi
40f11e:	8d 5f 01             	lea    0x1(%edi),%ebx
40f121:	03 d9                	add    %ecx,%ebx
40f123:	6a 02                	push   $0x2
40f125:	53                   	push   %ebx
40f126:	e8 81 a7 ff ff       	call   0x4098ac
40f12b:	8b f0                	mov    %eax,%esi
40f12d:	59                   	pop    %ecx
40f12e:	59                   	pop    %ecx
40f12f:	85 ff                	test   %edi,%edi
40f131:	74 12                	je     0x40f145
40f133:	57                   	push   %edi
40f134:	ff 75 0c             	push   0xc(%ebp)
40f137:	53                   	push   %ebx
40f138:	56                   	push   %esi
40f139:	e8 e1 17 00 00       	call   0x41091f
40f13e:	83 c4 10             	add    $0x10,%esp
40f141:	85 c0                	test   %eax,%eax
40f143:	75 35                	jne    0x40f17a
40f145:	ff 75 fc             	push   -0x4(%ebp)
40f148:	2b df                	sub    %edi,%ebx
40f14a:	8d 04 7e             	lea    (%esi,%edi,2),%eax
40f14d:	ff 75 08             	push   0x8(%ebp)
40f150:	53                   	push   %ebx
40f151:	50                   	push   %eax
40f152:	e8 c8 17 00 00       	call   0x41091f