40bf9a:	89 4d 10             	mov    %ecx,0x10(%ebp)
40bf9d:	6a 00                	push   $0x0
40bf9f:	8d 85 f4 eb ff ff    	lea    -0x140c(%ebp),%eax
40bfa5:	83 e6 fe             	and    $0xfffffffe,%esi
40bfa8:	50                   	push   %eax
40bfa9:	56                   	push   %esi
40bfaa:	8d 85 fc eb ff ff    	lea    -0x1404(%ebp),%eax
40bfb0:	50                   	push   %eax
40bfb1:	57                   	push   %edi
40bfb2:	ff 15 94 f0 40 00    	call   *0x40f094
40bfb8:	85 c0                	test   %eax,%eax
40bfba:	74 1c                	je     0x40bfd8
40bfbc:	8b 85 f4 eb ff ff    	mov    -0x140c(%ebp),%eax
40bfc2:	01 43 04             	add    %eax,0x4(%ebx)
40bfc5:	3b c6                	cmp    %esi,%eax
40bfc7:	72 17                	jb     0x40bfe0
40bfc9:	8b 4d 10             	mov    0x10(%ebp),%ecx
40bfcc:	8b 95 f0 eb ff ff    	mov    -0x1410(%ebp),%edx
40bfd2:	3b ca                	cmp    %edx,%ecx
40bfd4:	72 87                	jb     0x40bf5d
40bfd6:	eb 08                	jmp    0x40bfe0
40bfd8:	ff 15 58 f0 40 00    	call   *0x40f058
40bfde:	89 03                	mov    %eax,(%ebx)
40bfe0:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40bfe3:	8b c3                	mov    %ebx,%eax
40bfe5:	5f                   	pop    %edi
40bfe6:	5e                   	pop    %esi
40bfe7:	33 cd                	xor    %ebp,%ecx
40bfe9:	5b                   	pop    %ebx
40bfea:	e8 46 76 ff ff       	call   0x403635
40bfef:	c9                   	leave
40bff0:	c3                   	ret
40bff1:	8b ff                	mov    %edi,%edi
40bff3:	55                   	push   %ebp
40bff4:	8b ec                	mov    %esp,%ebp
40bff6:	b8 18 14 00 00       	mov    $0x1418,%eax
40bffb:	e8 80 2d 00 00       	call   0x40ed80
40c000:	a1 14 60 41 00       	mov    0x416014,%eax
40c005:	33 c5                	xor    %ebp,%eax
40c007:	89 45 fc             	mov    %eax,-0x4(%ebp)
40c00a:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40c00d:	8b c1                	mov    %ecx,%eax
40c00f:	8b 55 10             	mov    0x10(%ebp),%edx
40c012:	83 e1 3f             	and    $0x3f,%ecx
40c015:	c1 f8 06             	sar    $0x6,%eax
40c018:	6b c9 38             	imul   $0x38,%ecx,%ecx
40c01b:	53                   	push   %ebx
40c01c:	56                   	push   %esi
40c01d:	8b 04 85 78 70 41 00 	mov    0x417078(,%eax,4),%eax
40c024:	8b 75 08             	mov    0x8(%ebp),%esi
40c027:	57                   	push   %edi
40c028:	8b fe                	mov    %esi,%edi
40c02a:	8b 44 08 18          	mov    0x18(%eax,%ecx,1),%eax
40c02e:	8b 4d 14             	mov    0x14(%ebp),%ecx
40c031:	89 85 f0 eb ff ff    	mov    %eax,-0x1410(%ebp)
40c037:	03 ca                	add    %edx,%ecx
40c039:	33 c0                	xor    %eax,%eax
40c03b:	89 8d f4 eb ff ff    	mov    %ecx,-0x140c(%ebp)
40c041:	ab                   	stos   %eax,%es:(%edi)
40c042:	ab                   	stos   %eax,%es:(%edi)
40c043:	ab                   	stos   %eax,%es:(%edi)
40c044:	8b fa                	mov    %edx,%edi
40c046:	3b d1                	cmp    %ecx,%edx
40c048:	0f 83 c4 00 00 00    	jae    0x40c112
40c04e:	8b b5 f4 eb ff ff    	mov    -0x140c(%ebp),%esi
40c054:	8d 85 50 f9 ff ff    	lea    -0x6b0(%ebp),%eax
40c05a:	3b fe                	cmp    %esi,%edi
40c05c:	73 21                	jae    0x40c07f
40c05e:	0f b7 0f             	movzwl (%edi),%ecx
40c061:	83 c7 02             	add    $0x2,%edi
40c064:	83 f9 0a             	cmp    $0xa,%ecx
40c067:	75 09                	jne    0x40c072
40c069:	6a 0d                	push   $0xd
40c06b:	5a                   	pop    %edx
40c06c:	66 89 10             	mov    %dx,(%eax)
40c06f:	83 c0 02             	add    $0x2,%eax
40c072:	66 89 08             	mov    %cx,(%eax)
40c075:	83 c0 02             	add    $0x2,%eax
40c078:	8d 4d f8             	lea    -0x8(%ebp),%ecx
40c07b:	3b c1                	cmp    %ecx,%eax
40c07d:	72 db                	jb     0x40c05a
40c07f:	6a 00                	push   $0x0
40c081:	6a 00                	push   $0x0
40c083:	68 55 0d 00 00       	push   $0xd55
40c088:	8d 8d f8 eb ff ff    	lea    -0x1408(%ebp),%ecx
40c08e:	51                   	push   %ecx
40c08f:	8d 8d 50 f9 ff ff    	lea    -0x6b0(%ebp),%ecx
40c095:	2b c1                	sub    %ecx,%eax
40c097:	d1 f8                	sar    $1,%eax
40c099:	50                   	push   %eax
40c09a:	8b c1                	mov    %ecx,%eax
40c09c:	50                   	push   %eax
40c09d:	6a 00                	push   $0x0
40c09f:	68 e9 fd 00 00       	push   $0xfde9
40c0a4:	e8 95 cd ff ff       	call   0x408e3e
40c0a9:	8b 75 08             	mov    0x8(%ebp),%esi
40c0ac:	83 c4 20             	add    $0x20,%esp
40c0af:	89 85 e8 eb ff ff    	mov    %eax,-0x1418(%ebp)
40c0b5:	85 c0                	test   %eax,%eax
40c0b7:	74 51                	je     0x40c10a
40c0b9:	33 db                	xor    %ebx,%ebx
40c0bb:	85 c0                	test   %eax,%eax
40c0bd:	74 35                	je     0x40c0f4
40c0bf:	6a 00                	push   $0x0
40c0c1:	8d 8d ec eb ff ff    	lea    -0x1414(%ebp),%ecx
40c0c7:	2b c3                	sub    %ebx,%eax
40c0c9:	51                   	push   %ecx
40c0ca:	50                   	push   %eax
40c0cb:	8d 85 f8 eb ff ff    	lea    -0x1408(%ebp),%eax
40c0d1:	03 c3                	add    %ebx,%eax
40c0d3:	50                   	push   %eax
40c0d4:	ff b5 f0 eb ff ff    	push   -0x1410(%ebp)
40c0da:	ff 15 94 f0 40 00    	call   *0x40f094
40c0e0:	85 c0                	test   %eax,%eax
40c0e2:	74 26                	je     0x40c10a
40c0e4:	03 9d ec eb ff ff    	add    -0x1414(%ebp),%ebx
40c0ea:	8b 85 e8 eb ff ff    	mov    -0x1418(%ebp),%eax
40c0f0:	3b d8                	cmp    %eax,%ebx
40c0f2:	72 cb                	jb     0x40c0bf
40c0f4:	8b c7                	mov    %edi,%eax
40c0f6:	2b 45 10             	sub    0x10(%ebp),%eax
40c0f9:	89 46 04             	mov    %eax,0x4(%esi)
40c0fc:	3b bd f4 eb ff ff    	cmp    -0x140c(%ebp),%edi
40c102:	0f 82 46 ff ff ff    	jb     0x40c04e
40c108:	eb 08                	jmp    0x40c112
40c10a:	ff 15 58 f0 40 00    	call   *0x40f058
40c110:	89 06                	mov    %eax,(%esi)
40c112:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40c115:	8b c6                	mov    %esi,%eax
40c117:	5f                   	pop    %edi
40c118:	5e                   	pop    %esi
40c119:	33 cd                	xor    %ebp,%ecx
40c11b:	5b                   	pop    %ebx
40c11c:	e8 14 75 ff ff       	call   0x403635
40c121:	c9                   	leave
40c122:	c3                   	ret
40c123:	6a 14                	push   $0x14
40c125:	68 d8 4c 41 00       	push   $0x414cd8
40c12a:	e8 e1 72 ff ff       	call   0x403410
40c12f:	8b 7d 08             	mov    0x8(%ebp),%edi
40c132:	83 ff fe             	cmp    $0xfffffffe,%edi
40c135:	75 1e                	jne    0x40c155
40c137:	8b 45 14             	mov    0x14(%ebp),%eax
40c13a:	c6 40 24 01          	movb   $0x1,0x24(%eax)
40c13e:	83 60 20 00          	andl   $0x0,0x20(%eax)
40c142:	c6 40 1c 01          	movb   $0x1,0x1c(%eax)
40c146:	c7 40 18 09 00 00 00 	movl   $0x9,0x18(%eax)
40c14d:	83 c8 ff             	or     $0xffffffff,%eax
40c150:	e9 c1 00 00 00       	jmp    0x40c216
40c155:	85 ff                	test   %edi,%edi
40c157:	78 0f                	js     0x40c168
40c159:	3b 3d 78 72 41 00    	cmp    0x417278,%edi
40c15f:	73 07                	jae    0x40c168
40c161:	33 c0                	xor    %eax,%eax
40c163:	40                   	inc    %eax
40c164:	33 f6                	xor    %esi,%esi
40c166:	eb 04                	jmp    0x40c16c
40c168:	33 f6                	xor    %esi,%esi
40c16a:	8b c6                	mov    %esi,%eax
40c16c:	85 c0                	test   %eax,%eax
40c16e:	75 25                	jne    0x40c195
40c170:	8b 45 14             	mov    0x14(%ebp),%eax
40c173:	c6 40 24 01          	movb   $0x1,0x24(%eax)
40c177:	89 70 20             	mov    %esi,0x20(%eax)
40c17a:	c6 40 1c 01          	movb   $0x1,0x1c(%eax)
40c17e:	c7 40 18 09 00 00 00 	movl   $0x9,0x18(%eax)
40c185:	50                   	push   %eax
40c186:	56                   	push   %esi
40c187:	56                   	push   %esi
40c188:	56                   	push   %esi
40c189:	56                   	push   %esi
40c18a:	56                   	push   %esi
40c18b:	e8 0f 9b ff ff       	call   0x405c9f
40c190:	83 c4 18             	add    $0x18,%esp
40c193:	eb b8                	jmp    0x40c14d
40c195:	8b cf                	mov    %edi,%ecx
40c197:	c1 f9 06             	sar    $0x6,%ecx
40c19a:	89 4d e0             	mov    %ecx,-0x20(%ebp)
40c19d:	8b c7                	mov    %edi,%eax
40c19f:	83 e0 3f             	and    $0x3f,%eax
40c1a2:	6b d0 38             	imul   $0x38,%eax,%edx
40c1a5:	89 55 dc             	mov    %edx,-0x24(%ebp)
40c1a8:	8b 04 8d 78 70 41 00 	mov    0x417078(,%ecx,4),%eax
40c1af:	f6 44 10 28 01       	testb  $0x1,0x28(%eax,%edx,1)
40c1b4:	74 ba                	je     0x40c170
40c1b6:	57                   	push   %edi
40c1b7:	e8 5f cf ff ff       	call   0x40911b
40c1bc:	59                   	pop    %ecx
40c1bd:	83 cb ff             	or     $0xffffffff,%ebx
40c1c0:	89 5d e4             	mov    %ebx,-0x1c(%ebp)
40c1c3:	89 75 fc             	mov    %esi,-0x4(%ebp)
40c1c6:	8b 45 e0             	mov    -0x20(%ebp),%eax
40c1c9:	8b 04 85 78 70 41 00 	mov    0x417078(,%eax,4),%eax
40c1d0:	8b 4d dc             	mov    -0x24(%ebp),%ecx
40c1d3:	f6 44 01 28 01       	testb  $0x1,0x28(%ecx,%eax,1)
40c1d8:	75 17                	jne    0x40c1f1
40c1da:	8b 45 14             	mov    0x14(%ebp),%eax
40c1dd:	c6 40 1c 01          	movb   $0x1,0x1c(%eax)
40c1e1:	c7 40 18 09 00 00 00 	movl   $0x9,0x18(%eax)
40c1e8:	c6 40 24 01          	movb   $0x1,0x24(%eax)
40c1ec:	89 70 20             	mov    %esi,0x20(%eax)
40c1ef:	eb 17                	jmp    0x40c208
40c1f1:	ff 75 14             	push   0x14(%ebp)
40c1f4:	ff 75 10             	push   0x10(%ebp)
40c1f7:	ff 75 0c             	push   0xc(%ebp)
40c1fa:	57                   	push   %edi
40c1fb:	e8 34 00 00 00       	call   0x40c234
40c200:	83 c4 10             	add    $0x10,%esp
40c203:	8b d8                	mov    %eax,%ebx
40c205:	89 5d e4             	mov    %ebx,-0x1c(%ebp)
40c208:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40c20f:	e8 18 00 00 00       	call   0x40c22c
40c214:	8b c3                	mov    %ebx,%eax
40c216:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40c219:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40c220:	59                   	pop    %ecx
40c221:	5f                   	pop    %edi
40c222:	5e                   	pop    %esi
40c223:	5b                   	pop    %ebx
40c224:	c9                   	leave
40c225:	c3                   	ret
40c226:	8b 7d 08             	mov    0x8(%ebp),%edi
40c229:	8b 5d e4             	mov    -0x1c(%ebp),%ebx
40c22c:	57                   	push   %edi
40c22d:	e8 0c cf ff ff       	call   0x40913e
40c232:	59                   	pop    %ecx
40c233:	c3                   	ret
40c234:	8b ff                	mov    %edi,%edi
40c236:	55                   	push   %ebp
40c237:	8b ec                	mov    %esp,%ebp
40c239:	83 ec 30             	sub    $0x30,%esp
40c23c:	8b 55 10             	mov    0x10(%ebp),%edx
40c23f:	8b 4d 08             	mov    0x8(%ebp),%ecx
40c242:	8b 45 0c             	mov    0xc(%ebp),%eax
40c245:	89 4d f0             	mov    %ecx,-0x10(%ebp)
40c248:	89 45 f8             	mov    %eax,-0x8(%ebp)
40c24b:	89 55 f4             	mov    %edx,-0xc(%ebp)
40c24e:	53                   	push   %ebx
40c24f:	8b 5d 14             	mov    0x14(%ebp),%ebx
40c252:	56                   	push   %esi
40c253:	57                   	push   %edi
40c254:	85 d2                	test   %edx,%edx
40c256:	0f 84 ed 01 00 00    	je     0x40c449
40c25c:	85 c0                	test   %eax,%eax
40c25e:	75 2a                	jne    0x40c28a
40c260:	33 c0                	xor    %eax,%eax
40c262:	c6 43 24 01          	movb   $0x1,0x24(%ebx)
40c266:	53                   	push   %ebx
40c267:	50                   	push   %eax
40c268:	50                   	push   %eax
40c269:	50                   	push   %eax
40c26a:	89 43 20             	mov    %eax,0x20(%ebx)
40c26d:	50                   	push   %eax
40c26e:	c6 43 1c 01          	movb   $0x1,0x1c(%ebx)
40c272:	50                   	push   %eax
40c273:	c7 43 18 16 00 00 00 	movl   $0x16,0x18(%ebx)
40c27a:	e8 20 9a ff ff       	call   0x405c9f
40c27f:	83 c4 18             	add    $0x18,%esp
40c282:	83 c8 ff             	or     $0xffffffff,%eax
40c285:	e9 c1 01 00 00       	jmp    0x40c44b
40c28a:	8b c1                	mov    %ecx,%eax
40c28c:	8b f1                	mov    %ecx,%esi
40c28e:	83 e0 3f             	and    $0x3f,%eax
40c291:	c1 fe 06             	sar    $0x6,%esi
40c294:	6b f8 38             	imul   $0x38,%eax,%edi
40c297:	89 75 ec             	mov    %esi,-0x14(%ebp)
40c29a:	8b 04 b5 78 70 41 00 	mov    0x417078(,%esi,4),%eax
40c2a1:	89 7d e8             	mov    %edi,-0x18(%ebp)
40c2a4:	8a 44 07 29          	mov    0x29(%edi,%eax,1),%al
40c2a8:	88 45 ff             	mov    %al,-0x1(%ebp)
40c2ab:	3c 02                	cmp    $0x2,%al
40c2ad:	74 04                	je     0x40c2b3
40c2af:	3c 01                	cmp    $0x1,%al
40c2b1:	75 08                	jne    0x40c2bb
40c2b3:	8b c2                	mov    %edx,%eax
40c2b5:	f7 d0                	not    %eax
40c2b7:	a8 01                	test   $0x1,%al
40c2b9:	74 a5                	je     0x40c260
40c2bb:	8b 55 ec             	mov    -0x14(%ebp),%edx
40c2be:	33 f6                	xor    %esi,%esi
40c2c0:	8b 04 95 78 70 41 00 	mov    0x417078(,%edx,4),%eax
40c2c7:	f6 44 07 28 20       	testb  $0x20,0x28(%edi,%eax,1)
40c2cc:	74 11                	je     0x40c2df
40c2ce:	53                   	push   %ebx
40c2cf:	6a 02                	push   $0x2
40c2d1:	56                   	push   %esi
40c2d2:	56                   	push   %esi
40c2d3:	51                   	push   %ecx
40c2d4:	e8 ff 05 00 00       	call   0x40c8d8
40c2d9:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40c2dc:	83 c4 14             	add    $0x14,%esp
40c2df:	53                   	push   %ebx
40c2e0:	8b fe                	mov    %esi,%edi
40c2e2:	51                   	push   %ecx
40c2e3:	89 7d dc             	mov    %edi,-0x24(%ebp)
40c2e6:	e8 c5 fa ff ff       	call   0x40bdb0
40c2eb:	59                   	pop    %ecx
40c2ec:	59                   	pop    %ecx
40c2ed:	84 c0                	test   %al,%al
40c2ef:	74 47                	je     0x40c338
40c2f1:	0f be 45 ff          	movsbl -0x1(%ebp),%eax
40c2f5:	2b c6                	sub    %esi,%eax
40c2f7:	74 27                	je     0x40c320
40c2f9:	83 e8 01             	sub    $0x1,%eax
40c2fc:	74 09                	je     0x40c307
40c2fe:	83 e8 01             	sub    $0x1,%eax
40c301:	0f 85 da 00 00 00    	jne    0x40c3e1
40c307:	ff 75 f4             	push   -0xc(%ebp)
40c30a:	8d 45 d0             	lea    -0x30(%ebp),%eax
40c30d:	ff 75 f8             	push   -0x8(%ebp)
40c310:	50                   	push   %eax
40c311:	e8 32 fa ff ff       	call   0x40bd48
40c316:	83 c4 0c             	add    $0xc,%esp
40c319:	8b f0                	mov    %eax,%esi
40c31b:	e9 af 00 00 00       	jmp    0x40c3cf
40c320:	53                   	push   %ebx
40c321:	ff 75 f4             	push   -0xc(%ebp)
40c324:	8d 45 d0             	lea    -0x30(%ebp),%eax
40c327:	ff 75 f8             	push   -0x8(%ebp)
40c32a:	ff 75 f0             	push   -0x10(%ebp)
40c32d:	50                   	push   %eax
40c32e:	e8 4e f6 ff ff       	call   0x40b981
40c333:	83 c4 14             	add    $0x14,%esp
40c336:	eb e1                	jmp    0x40c319
40c338:	8b 55 ec             	mov    -0x14(%ebp),%edx
40c33b:	8b 4d e8             	mov    -0x18(%ebp),%ecx
40c33e:	8b 04 95 78 70 41 00 	mov    0x417078(,%edx,4),%eax
40c345:	80 7c 08 28 00       	cmpb   $0x0,0x28(%eax,%ecx,1)
40c34a:	7d 55                	jge    0x40c3a1
40c34c:	0f be 45 ff          	movsbl -0x1(%ebp),%eax
40c350:	2b c6                	sub    %esi,%eax
40c352:	74 39                	je     0x40c38d
40c354:	83 e8 01             	sub    $0x1,%eax
40c357:	74 20                	je     0x40c379
40c359:	83 e8 01             	sub    $0x1,%eax
40c35c:	0f 85 85 00 00 00    	jne    0x40c3e7
40c362:	ff 75 f4             	push   -0xc(%ebp)
40c365:	8d 45 d0             	lea    -0x30(%ebp),%eax
40c368:	ff 75 f8             	push   -0x8(%ebp)
40c36b:	ff 75 f0             	push   -0x10(%ebp)
40c36e:	50                   	push   %eax
40c36f:	e8 94 fb ff ff       	call   0x40bf08
40c374:	83 c4 10             	add    $0x10,%esp
40c377:	eb a0                	jmp    0x40c319
40c379:	ff 75 f4             	push   -0xc(%ebp)
40c37c:	8d 45 d0             	lea    -0x30(%ebp),%eax
40c37f:	ff 75 f8             	push   -0x8(%ebp)
40c382:	ff 75 f0             	push   -0x10(%ebp)
40c385:	50                   	push   %eax
40c386:	e8 66 fc ff ff       	call   0x40bff1