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
40f157:	83 c4 10             	add    $0x10,%esp
40f15a:	85 c0                	test   %eax,%eax
40f15c:	75 1c                	jne    0x40f17a
40f15e:	8b 4d 14             	mov    0x14(%ebp),%ecx
40f161:	56                   	push   %esi
40f162:	e8 fb 01 00 00       	call   0x40f362
40f167:	6a 00                	push   $0x0
40f169:	8b f0                	mov    %eax,%esi
40f16b:	e8 b4 a6 ff ff       	call   0x409824
40f170:	59                   	pop    %ecx
40f171:	8b c6                	mov    %esi,%eax
40f173:	5e                   	pop    %esi
40f174:	5f                   	pop    %edi
40f175:	5b                   	pop    %ebx
40f176:	8b e5                	mov    %ebp,%esp
40f178:	5d                   	pop    %ebp
40f179:	c3                   	ret
40f17a:	33 c0                	xor    %eax,%eax
40f17c:	50                   	push   %eax
40f17d:	50                   	push   %eax
40f17e:	50                   	push   %eax
40f17f:	50                   	push   %eax
40f180:	50                   	push   %eax
40f181:	e8 d5 8a ff ff       	call   0x407c5b
40f186:	cc                   	int3
40f187:	8b ff                	mov    %edi,%edi
40f189:	55                   	push   %ebp
40f18a:	8b ec                	mov    %esp,%ebp
40f18c:	81 ec 60 02 00 00    	sub    $0x260,%esp
40f192:	a1 0c 30 42 00       	mov    0x42300c,%eax
40f197:	33 c5                	xor    %ebp,%eax
40f199:	89 45 fc             	mov    %eax,-0x4(%ebp)
40f19c:	8b 55 10             	mov    0x10(%ebp),%edx
40f19f:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40f1a2:	53                   	push   %ebx
40f1a3:	8b 5d 08             	mov    0x8(%ebp),%ebx
40f1a6:	56                   	push   %esi
40f1a7:	57                   	push   %edi
40f1a8:	6a 5c                	push   $0x5c
40f1aa:	5e                   	pop    %esi
40f1ab:	6a 3a                	push   $0x3a
40f1ad:	89 95 a8 fd ff ff    	mov    %edx,-0x258(%ebp)
40f1b3:	c7 85 a4 fd ff ff 2f 	movl   $0x2f,-0x25c(%ebp)
40f1ba:	00 00 00
40f1bd:	5f                   	pop    %edi
40f1be:	eb 19                	jmp    0x40f1d9
40f1c0:	0f b7 01             	movzwl (%ecx),%eax
40f1c3:	66 3b 85 a4 fd ff ff 	cmp    -0x25c(%ebp),%ax
40f1ca:	74 11                	je     0x40f1dd
40f1cc:	66 3b c6             	cmp    %si,%ax
40f1cf:	74 0c                	je     0x40f1dd
40f1d1:	66 3b c7             	cmp    %di,%ax
40f1d4:	74 07                	je     0x40f1dd
40f1d6:	83 e9 02             	sub    $0x2,%ecx
40f1d9:	3b cb                	cmp    %ebx,%ecx
40f1db:	75 e3                	jne    0x40f1c0
40f1dd:	0f b7 31             	movzwl (%ecx),%esi
40f1e0:	66 3b f7             	cmp    %di,%si
40f1e3:	75 1a                	jne    0x40f1ff
40f1e5:	8d 43 02             	lea    0x2(%ebx),%eax
40f1e8:	3b c8                	cmp    %eax,%ecx
40f1ea:	74 13                	je     0x40f1ff
40f1ec:	52                   	push   %edx
40f1ed:	33 ff                	xor    %edi,%edi
40f1ef:	57                   	push   %edi
40f1f0:	57                   	push   %edi
40f1f1:	53                   	push   %ebx
40f1f2:	e8 f2 fe ff ff       	call   0x40f0e9
40f1f7:	83 c4 10             	add    $0x10,%esp
40f1fa:	e9 87 00 00 00       	jmp    0x40f286
40f1ff:	6a 2f                	push   $0x2f
40f201:	8b c6                	mov    %esi,%eax
40f203:	33 ff                	xor    %edi,%edi
40f205:	5a                   	pop    %edx
40f206:	66 3b c2             	cmp    %dx,%ax
40f209:	74 14                	je     0x40f21f
40f20b:	6a 5c                	push   $0x5c
40f20d:	5a                   	pop    %edx
40f20e:	66 3b c2             	cmp    %dx,%ax
40f211:	74 0c                	je     0x40f21f
40f213:	6a 3a                	push   $0x3a
40f215:	5a                   	pop    %edx
40f216:	66 3b c2             	cmp    %dx,%ax
40f219:	74 04                	je     0x40f21f
40f21b:	8b c7                	mov    %edi,%eax
40f21d:	eb 03                	jmp    0x40f222
40f21f:	33 c0                	xor    %eax,%eax
40f221:	40                   	inc    %eax
40f222:	2b cb                	sub    %ebx,%ecx
40f224:	0f b6 c0             	movzbl %al,%eax
40f227:	d1 f9                	sar    $1,%ecx
40f229:	41                   	inc    %ecx
40f22a:	f7 d8                	neg    %eax
40f22c:	68 50 02 00 00       	push   $0x250
40f231:	1b c0                	sbb    %eax,%eax
40f233:	23 c1                	and    %ecx,%eax
40f235:	89 85 a4 fd ff ff    	mov    %eax,-0x25c(%ebp)
40f23b:	8d 85 ac fd ff ff    	lea    -0x254(%ebp),%eax
40f241:	57                   	push   %edi
40f242:	50                   	push   %eax
40f243:	e8 18 58 ff ff       	call   0x404a60
40f248:	83 c4 0c             	add    $0xc,%esp
40f24b:	8d 85 ac fd ff ff    	lea    -0x254(%ebp),%eax
40f251:	57                   	push   %edi
40f252:	57                   	push   %edi
40f253:	57                   	push   %edi
40f254:	50                   	push   %eax
40f255:	57                   	push   %edi
40f256:	53                   	push   %ebx
40f257:	ff 15 70 b1 41 00    	call   *0x41b170
40f25d:	8b f0                	mov    %eax,%esi
40f25f:	83 fe ff             	cmp    $0xffffffff,%esi
40f262:	75 33                	jne    0x40f297
40f264:	8b 85 a8 fd ff ff    	mov    -0x258(%ebp),%eax
40f26a:	50                   	push   %eax
40f26b:	57                   	push   %edi
40f26c:	57                   	push   %edi
40f26d:	53                   	push   %ebx
40f26e:	e8 76 fe ff ff       	call   0x40f0e9
40f273:	83 c4 10             	add    $0x10,%esp
40f276:	8b f8                	mov    %eax,%edi
40f278:	83 fe ff             	cmp    $0xffffffff,%esi
40f27b:	74 07                	je     0x40f284
40f27d:	56                   	push   %esi
40f27e:	ff 15 6c b1 41 00    	call   *0x41b16c
40f284:	8b c7                	mov    %edi,%eax
40f286:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40f289:	5f                   	pop    %edi
40f28a:	5e                   	pop    %esi
40f28b:	33 cd                	xor    %ebp,%ecx
40f28d:	5b                   	pop    %ebx
40f28e:	e8 c3 3c ff ff       	call   0x402f56
40f293:	8b e5                	mov    %ebp,%esp
40f295:	5d                   	pop    %ebp
40f296:	c3                   	ret
40f297:	8b 8d a8 fd ff ff    	mov    -0x258(%ebp),%ecx
40f29d:	6a 2e                	push   $0x2e
40f29f:	8b 41 04             	mov    0x4(%ecx),%eax
40f2a2:	2b 01                	sub    (%ecx),%eax
40f2a4:	c1 f8 02             	sar    $0x2,%eax
40f2a7:	89 85 a0 fd ff ff    	mov    %eax,-0x260(%ebp)
40f2ad:	58                   	pop    %eax
40f2ae:	66 39 85 d8 fd ff ff 	cmp    %ax,-0x228(%ebp)
40f2b5:	75 1b                	jne    0x40f2d2
40f2b7:	66 39 bd da fd ff ff 	cmp    %di,-0x226(%ebp)
40f2be:	74 2d                	je     0x40f2ed
40f2c0:	66 39 85 da fd ff ff 	cmp    %ax,-0x226(%ebp)
40f2c7:	75 09                	jne    0x40f2d2
40f2c9:	66 39 bd dc fd ff ff 	cmp    %di,-0x224(%ebp)
40f2d0:	74 1b                	je     0x40f2ed
40f2d2:	51                   	push   %ecx
40f2d3:	ff b5 a4 fd ff ff    	push   -0x25c(%ebp)
40f2d9:	8d 85 d8 fd ff ff    	lea    -0x228(%ebp),%eax
40f2df:	53                   	push   %ebx
40f2e0:	50                   	push   %eax
40f2e1:	e8 03 fe ff ff       	call   0x40f0e9
40f2e6:	83 c4 10             	add    $0x10,%esp
40f2e9:	85 c0                	test   %eax,%eax
40f2eb:	75 89                	jne    0x40f276
40f2ed:	8d 85 ac fd ff ff    	lea    -0x254(%ebp),%eax
40f2f3:	50                   	push   %eax
40f2f4:	56                   	push   %esi
40f2f5:	ff 15 74 b1 41 00    	call   *0x41b174
40f2fb:	8b 8d a8 fd ff ff    	mov    -0x258(%ebp),%ecx
40f301:	85 c0                	test   %eax,%eax
40f303:	6a 2e                	push   $0x2e
40f305:	58                   	pop    %eax
40f306:	75 a6                	jne    0x40f2ae
40f308:	8b c1                	mov    %ecx,%eax
40f30a:	8b 8d a0 fd ff ff    	mov    -0x260(%ebp),%ecx
40f310:	8b 10                	mov    (%eax),%edx
40f312:	8b 40 04             	mov    0x4(%eax),%eax
40f315:	2b c2                	sub    %edx,%eax
40f317:	c1 f8 02             	sar    $0x2,%eax
40f31a:	3b c8                	cmp    %eax,%ecx