40b043:	55                   	push   %ebp
40b044:	e8 27 f7 ff ff       	call   0x40a770
40b049:	59                   	pop    %ecx
40b04a:	8b 45 08             	mov    0x8(%ebp),%eax
40b04d:	50                   	push   %eax
40b04e:	8b 45 08             	mov    0x8(%ebp),%eax
40b051:	ff 70 0c             	push   0xc(%eax)
40b054:	ff 70 08             	push   0x8(%eax)
40b057:	e8 00 f6 ff ff       	call   0x40a65c
40b05c:	0f b7 c0             	movzwl %ax,%eax
40b05f:	8b 04 85 a8 a8 4a 00 	mov    0x4aa8a8(,%eax,4),%eax
40b066:	e8 71 f6 ff ff       	call   0x40a6dc
40b06b:	59                   	pop    %ecx
40b06c:	83 07 03             	addl   $0x3,(%edi)
40b06f:	e9 5d 01 00 00       	jmp    0x40b1d1
40b074:	ba 2c b2 40 00       	mov    $0x40b22c,%edx
40b079:	b9 03 00 00 00       	mov    $0x3,%ecx
40b07e:	8b c6                	mov    %esi,%eax
40b080:	e8 43 e4 ff ff       	call   0x4094c8
40b085:	85 c0                	test   %eax,%eax
40b087:	75 31                	jne    0x40b0ba
40b089:	55                   	push   %ebp
40b08a:	e8 e1 f6 ff ff       	call   0x40a770
40b08f:	59                   	pop    %ecx
40b090:	8b 45 08             	mov    0x8(%ebp),%eax
40b093:	50                   	push   %eax
40b094:	8b 45 08             	mov    0x8(%ebp),%eax
40b097:	ff 70 0c             	push   0xc(%eax)
40b09a:	ff 70 08             	push   0x8(%eax)
40b09d:	e8 ba f5 ff ff       	call   0x40a65c
40b0a2:	0f b7 c0             	movzwl %ax,%eax
40b0a5:	8b 04 85 8c a8 4a 00 	mov    0x4aa88c(,%eax,4),%eax
40b0ac:	e8 2b f6 ff ff       	call   0x40a6dc
40b0b1:	59                   	pop    %ecx
40b0b2:	83 07 02             	addl   $0x2,(%edi)
40b0b5:	e9 17 01 00 00       	jmp    0x40b1d1
40b0ba:	8b 45 08             	mov    0x8(%ebp),%eax
40b0bd:	50                   	push   %eax
40b0be:	8d 45 fb             	lea    -0x5(%ebp),%eax
40b0c1:	ba 01 00 00 00       	mov    $0x1,%edx
40b0c6:	e8 cd f5 ff ff       	call   0x40a698
40b0cb:	59                   	pop    %ecx
40b0cc:	e9 00 01 00 00       	jmp    0x40b1d1
40b0d1:	55                   	push   %ebp
40b0d2:	e8 6d f6 ff ff       	call   0x40a744
40b0d7:	59                   	pop    %ecx
40b0d8:	8b 45 08             	mov    0x8(%ebp),%eax
40b0db:	50                   	push   %eax
40b0dc:	a1 14 a8 4a 00       	mov    0x4aa814,%eax
40b0e1:	e8 96 f9 ff ff       	call   0x40aa7c
40b0e6:	59                   	pop    %ecx
40b0e7:	55                   	push   %ebp
40b0e8:	e8 bb f6 ff ff       	call   0x40a7a8
40b0ed:	59                   	pop    %ecx
40b0ee:	66 83 7d ea 00       	cmpw   $0x0,-0x16(%ebp)
40b0f3:	75 12                	jne    0x40b107
40b0f5:	66 83 7d e8 00       	cmpw   $0x0,-0x18(%ebp)
40b0fa:	75 0b                	jne    0x40b107
40b0fc:	66 83 7d e6 00       	cmpw   $0x0,-0x1a(%ebp)
40b101:	0f 84 ca 00 00 00    	je     0x40b1d1
40b107:	8b 45 08             	mov    0x8(%ebp),%eax
40b10a:	50                   	push   %eax
40b10b:	b8 30 b2 40 00       	mov    $0x40b230,%eax
40b110:	ba 01 00 00 00       	mov    $0x1,%edx
40b115:	e8 7e f5 ff ff       	call   0x40a698
40b11a:	59                   	pop    %ecx
40b11b:	8b 45 08             	mov    0x8(%ebp),%eax
40b11e:	50                   	push   %eax
40b11f:	a1 2c a8 4a 00       	mov    0x4aa82c,%eax
40b124:	e8 53 f9 ff ff       	call   0x40aa7c
40b129:	59                   	pop    %ecx
40b12a:	e9 a2 00 00 00       	jmp    0x40b1d1
40b12f:	80 3d 11 a8 4a 00 00 	cmpb   $0x0,0x4aa811
40b136:	0f 84 95 00 00 00    	je     0x40b1d1
40b13c:	8b 45 08             	mov    0x8(%ebp),%eax
40b13f:	50                   	push   %eax
40b140:	b8 11 a8 4a 00       	mov    $0x4aa811,%eax
40b145:	ba 01 00 00 00       	mov    $0x1,%edx
40b14a:	e8 49 f5 ff ff       	call   0x40a698
40b14f:	59                   	pop    %ecx
40b150:	eb 7f                	jmp    0x40b1d1
40b152:	80 3d 1c a8 4a 00 00 	cmpb   $0x0,0x4aa81c
40b159:	74 76                	je     0x40b1d1
40b15b:	8b 45 08             	mov    0x8(%ebp),%eax
40b15e:	50                   	push   %eax
40b15f:	b8 1c a8 4a 00       	mov    $0x4aa81c,%eax
40b164:	ba 01 00 00 00       	mov    $0x1,%edx
40b169:	e8 2a f5 ff ff       	call   0x40a698
40b16e:	59                   	pop    %ecx
40b16f:	eb 60                	jmp    0x40b1d1
40b171:	8b 37                	mov    (%edi),%esi
40b173:	eb 1e                	jmp    0x40b193
40b175:	8b 07                	mov    (%edi),%eax
40b177:	0f b6 00             	movzbl (%eax),%eax
40b17a:	0f b6 c0             	movzbl %al,%eax
40b17d:	0f a3 05 08 b8 49 00 	bt     %eax,0x49b808
40b184:	73 0b                	jae    0x40b191
40b186:	8b 07                	mov    (%edi),%eax
40b188:	e8 e7 1e 00 00       	call   0x40d074
40b18d:	89 07                	mov    %eax,(%edi)
40b18f:	eb 02                	jmp    0x40b193
40b191:	ff 07                	incl   (%edi)
40b193:	8b 07                	mov    (%edi),%eax
40b195:	80 38 00             	cmpb   $0x0,(%eax)
40b198:	74 0a                	je     0x40b1a4
40b19a:	8b 07                	mov    (%edi),%eax
40b19c:	0f b6 00             	movzbl (%eax),%eax
40b19f:	3a 45 fb             	cmp    -0x5(%ebp),%al
40b1a2:	75 d1                	jne    0x40b175
40b1a4:	8b 45 08             	mov    0x8(%ebp),%eax
40b1a7:	50                   	push   %eax
40b1a8:	8b 17                	mov    (%edi),%edx
40b1aa:	2b d6                	sub    %esi,%edx
40b1ac:	8b c6                	mov    %esi,%eax
40b1ae:	e8 e5 f4 ff ff       	call   0x40a698
40b1b3:	59                   	pop    %ecx
40b1b4:	8b 07                	mov    (%edi),%eax
40b1b6:	80 38 00             	cmpb   $0x0,(%eax)
40b1b9:	74 16                	je     0x40b1d1
40b1bb:	ff 07                	incl   (%edi)
40b1bd:	eb 12                	jmp    0x40b1d1
40b1bf:	8b 45 08             	mov    0x8(%ebp),%eax
40b1c2:	50                   	push   %eax
40b1c3:	8d 45 fb             	lea    -0x5(%ebp),%eax
40b1c6:	ba 01 00 00 00       	mov    $0x1,%edx
40b1cb:	e8 c8 f4 ff ff       	call   0x40a698
40b1d0:	59                   	pop    %ecx
40b1d1:	8b 07                	mov    (%edi),%eax
40b1d3:	80 38 00             	cmpb   $0x0,(%eax)
40b1d6:	0f 85 fc f8 ff ff    	jne    0x40aad8
40b1dc:	8b 45 08             	mov    0x8(%ebp),%eax
40b1df:	ff 88 f8 fe ff ff    	decl   -0x108(%eax)
40b1e5:	33 c0                	xor    %eax,%eax
40b1e7:	5a                   	pop    %edx
40b1e8:	59                   	pop    %ecx
40b1e9:	59                   	pop    %ecx
40b1ea:	64 89 10             	mov    %edx,%fs:(%eax)
40b1ed:	68 07 b2 40 00       	push   $0x40b207
40b1f2:	8d 45 d4             	lea    -0x2c(%ebp),%eax
40b1f5:	ba 02 00 00 00       	mov    $0x2,%edx
40b1fa:	e8 6d 95 ff ff       	call   0x40476c
40b1ff:	c3                   	ret
40b200:	e9 ab 8e ff ff       	jmp    0x4040b0
40b205:	eb eb                	jmp    0x40b1f2
40b207:	5f                   	pop    %edi
40b208:	5e                   	pop    %esi
40b209:	5b                   	pop    %ebx
40b20a:	8b e5                	mov    %ebp,%esp
40b20c:	5d                   	pop    %ebp
40b20d:	c3                   	ret
40b20e:	00 00                	add    %al,(%eax)
40b210:	41                   	inc    %ecx
40b211:	4d                   	dec    %ebp
40b212:	2f                   	das
40b213:	50                   	push   %eax
40b214:	4d                   	dec    %ebp
40b215:	00 00                	add    %al,(%eax)
40b217:	00 41 2f             	add    %al,0x2f(%ecx)
40b21a:	50                   	push   %eax
40b21b:	00 41 4d             	add    %al,0x4d(%ecx)
40b21e:	50                   	push   %eax
40b21f:	4d                   	dec    %ebp
40b220:	00 00                	add    %al,(%eax)
40b222:	00 00                	add    %al,(%eax)
40b224:	41                   	inc    %ecx
40b225:	41                   	inc    %ecx
40b226:	41                   	inc    %ecx
40b227:	41                   	inc    %ecx
40b228:	00 00                	add    %al,(%eax)
40b22a:	00 00                	add    %al,(%eax)
40b22c:	41                   	inc    %ecx
40b22d:	41                   	inc    %ecx
40b22e:	41                   	inc    %ecx
40b22f:	00 20                	add    %ah,(%eax)
40b231:	00 00                	add    %al,(%eax)
40b233:	00 55 8b             	add    %dl,-0x75(%ebp)
40b236:	ec                   	in     (%dx),%al
40b237:	81 c4 f8 fe ff ff    	add    $0xfffffef8,%esp
40b23d:	53                   	push   %ebx
40b23e:	56                   	push   %esi
40b23f:	8b da                	mov    %edx,%ebx
40b241:	8b f0                	mov    %eax,%esi
40b243:	33 c0                	xor    %eax,%eax
40b245:	89 85 fc fe ff ff    	mov    %eax,-0x104(%ebp)
40b24b:	33 c0                	xor    %eax,%eax
40b24d:	89 85 f8 fe ff ff    	mov    %eax,-0x108(%ebp)
40b253:	85 db                	test   %ebx,%ebx
40b255:	74 0b                	je     0x40b262
40b257:	55                   	push   %ebp
40b258:	8b c3                	mov    %ebx,%eax
40b25a:	e8 1d f8 ff ff       	call   0x40aa7c
40b25f:	59                   	pop    %ecx
40b260:	eb 0c                	jmp    0x40b26e
40b262:	55                   	push   %ebp
40b263:	b8 8c b2 40 00       	mov    $0x40b28c,%eax
40b268:	e8 0f f8 ff ff       	call   0x40aa7c
40b26d:	59                   	pop    %ecx
40b26e:	8d 95 00 ff ff ff    	lea    -0x100(%ebp),%edx
40b274:	8b c6                	mov    %esi,%eax
40b276:	8b 8d fc fe ff ff    	mov    -0x104(%ebp),%ecx
40b27c:	e8 b7 95 ff ff       	call   0x404838
40b281:	5e                   	pop    %esi
40b282:	5b                   	pop    %ebx
40b283:	8b e5                	mov    %ebp,%esp
40b285:	5d                   	pop    %ebp
40b286:	c2 08 00             	ret    $0x8
40b289:	00 00                	add    %al,(%eax)
40b28b:	00 43 00             	add    %al,0x0(%ebx)
40b28e:	00 00                	add    %al,(%eax)
40b290:	53                   	push   %ebx
40b291:	56                   	push   %esi
40b292:	57                   	push   %edi
40b293:	8b fa                	mov    %edx,%edi
40b295:	8b f0                	mov    %eax,%esi
40b297:	8b 1f                	mov    (%edi),%ebx
40b299:	eb 01                	jmp    0x40b29c
40b29b:	43                   	inc    %ebx
40b29c:	8b c6                	mov    %esi,%eax
40b29e:	e8 65 97 ff ff       	call   0x404a08
40b2a3:	3b d8                	cmp    %eax,%ebx
40b2a5:	7f 07                	jg     0x40b2ae
40b2a7:	80 7c 1e ff 20       	cmpb   $0x20,-0x1(%esi,%ebx,1)
40b2ac:	74 ed                	je     0x40b29b
40b2ae:	89 1f                	mov    %ebx,(%edi)
40b2b0:	5f                   	pop    %edi
40b2b1:	5e                   	pop    %esi
40b2b2:	5b                   	pop    %ebx
40b2b3:	c3                   	ret
40b2b4:	55                   	push   %ebp
40b2b5:	8b ec                	mov    %esp,%ebp
40b2b7:	83 c4 f4             	add    $0xfffffff4,%esp
40b2ba:	53                   	push   %ebx
40b2bb:	56                   	push   %esi
40b2bc:	57                   	push   %edi
40b2bd:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40b2c0:	89 55 fc             	mov    %edx,-0x4(%ebp)
40b2c3:	8b f8                	mov    %eax,%edi
40b2c5:	c6 45 f7 00          	movb   $0x0,-0x9(%ebp)
40b2c9:	8b 45 08             	mov    0x8(%ebp),%eax
40b2cc:	c6 00 00             	movb   $0x0,(%eax)
40b2cf:	8b 55 fc             	mov    -0x4(%ebp),%edx
40b2d2:	8b c7                	mov    %edi,%eax
40b2d4:	e8 b7 ff ff ff       	call   0x40b290
40b2d9:	8b 5d fc             	mov    -0x4(%ebp),%ebx
40b2dc:	8b 1b                	mov    (%ebx),%ebx
40b2de:	33 f6                	xor    %esi,%esi
40b2e0:	eb 16                	jmp    0x40b2f8
40b2e2:	8b c6                	mov    %esi,%eax
40b2e4:	03 c0                	add    %eax,%eax
40b2e6:	8d 04 80             	lea    (%eax,%eax,4),%eax
40b2e9:	0f b6 54 1f ff       	movzbl -0x1(%edi,%ebx,1),%edx
40b2ee:	66 83 ea 30          	sub    $0x30,%dx
40b2f2:	66 03 c2             	add    %dx,%ax
40b2f5:	8b f0                	mov    %eax,%esi
40b2f7:	43                   	inc    %ebx
40b2f8:	8b c7                	mov    %edi,%eax
40b2fa:	e8 09 97 ff ff       	call   0x404a08
40b2ff:	3b d8                	cmp    %eax,%ebx
40b301:	7f 12                	jg     0x40b315
40b303:	0f b6 44 1f ff       	movzbl -0x1(%edi,%ebx,1),%eax
40b308:	04 d0                	add    $0xd0,%al
40b30a:	2c 0a                	sub    $0xa,%al
40b30c:	73 07                	jae    0x40b315
40b30e:	66 81 fe e8 03       	cmp    $0x3e8,%si
40b313:	72 cd                	jb     0x40b2e2
40b315:	8b 45 fc             	mov    -0x4(%ebp),%eax
40b318:	3b 18                	cmp    (%eax),%ebx
40b31a:	7e 1d                	jle    0x40b339
40b31c:	8b c3                	mov    %ebx,%eax
40b31e:	8b 55 fc             	mov    -0x4(%ebp),%edx
40b321:	8b 12                	mov    (%edx),%edx
40b323:	2a c2                	sub    %dl,%al
40b325:	8b 55 08             	mov    0x8(%ebp),%edx
40b328:	88 02                	mov    %al,(%edx)
40b32a:	8b 45 fc             	mov    -0x4(%ebp),%eax
40b32d:	89 18                	mov    %ebx,(%eax)
40b32f:	8b 45 f8             	mov    -0x8(%ebp),%eax
40b332:	66 89 30             	mov    %si,(%eax)
40b335:	c6 45 f7 01          	movb   $0x1,-0x9(%ebp)
40b339:	0f b6 45 f7          	movzbl -0x9(%ebp),%eax
40b33d:	5f                   	pop    %edi
40b33e:	5e                   	pop    %esi
40b33f:	5b                   	pop    %ebx
40b340:	8b e5                	mov    %ebp,%esp
40b342:	5d                   	pop    %ebp
40b343:	c2 04 00             	ret    $0x4
40b346:	8b c0                	mov    %eax,%eax
40b348:	55                   	push   %ebp
40b349:	8b ec                	mov    %esp,%ebp
40b34b:	83 c4 ec             	add    $0xffffffec,%esp
40b34e:	53                   	push   %ebx
40b34f:	56                   	push   %esi
40b350:	57                   	push   %edi
40b351:	33 db                	xor    %ebx,%ebx
40b353:	89 5d ec             	mov    %ebx,-0x14(%ebp)
40b356:	8b d9                	mov    %ecx,%ebx
40b358:	89 55 f8             	mov    %edx,-0x8(%ebp)
40b35b:	89 45 fc             	mov    %eax,-0x4(%ebp)
40b35e:	33 c0                	xor    %eax,%eax
40b360:	55                   	push   %ebp
40b361:	68 0e b4 40 00       	push   $0x40b40e
40b366:	64 ff 30             	push   %fs:(%eax)
40b369:	64 89 20             	mov    %esp,%fs:(%eax)
40b36c:	c6 45 f7 00          	movb   $0x0,-0x9(%ebp)
40b370:	85 db                	test   %ebx,%ebx
40b372:	0f 84 80 00 00 00    	je     0x40b3f8
40b378:	8b 55 f8             	mov    -0x8(%ebp),%edx
40b37b:	8b 45 fc             	mov    -0x4(%ebp),%eax
40b37e:	e8 0d ff ff ff       	call   0x40b290
40b383:	8b f3                	mov    %ebx,%esi
40b385:	85 f6                	test   %esi,%esi
40b387:	74 05                	je     0x40b38e
40b389:	83 ee 04             	sub    $0x4,%esi
40b38c:	8b 36                	mov    (%esi),%esi
40b38e:	8d 45 ec             	lea    -0x14(%ebp),%eax
40b391:	50                   	push   %eax
40b392:	8b 55 f8             	mov    -0x8(%ebp),%edx
40b395:	8b 12                	mov    (%edx),%edx
40b397:	8b ce                	mov    %esi,%ecx
40b399:	8b 45 fc             	mov    -0x4(%ebp),%eax
40b39c:	e8 cb 98 ff ff       	call   0x404c6c
40b3a1:	8b 45 ec             	mov    -0x14(%ebp),%eax
40b3a4:	89 45 f0             	mov    %eax,-0x10(%ebp)
40b3a7:	8b f3                	mov    %ebx,%esi
40b3a9:	85 f6                	test   %esi,%esi
40b3ab:	74 05                	je     0x40b3b2
40b3ad:	83 ee 04             	sub    $0x4,%esi
40b3b0:	8b 36                	mov    (%esi),%esi
40b3b2:	8b 7d f0             	mov    -0x10(%ebp),%edi
40b3b5:	85 ff                	test   %edi,%edi
40b3b7:	74 05                	je     0x40b3be
40b3b9:	83 ef 04             	sub    $0x4,%edi
40b3bc:	8b 3f                	mov    (%edi),%edi
40b3be:	57                   	push   %edi
40b3bf:	8b 45 f0             	mov    -0x10(%ebp),%eax
40b3c2:	e8 45 98 ff ff       	call   0x404c0c
40b3c7:	50                   	push   %eax
40b3c8:	56                   	push   %esi
40b3c9:	8b c3                	mov    %ebx,%eax
40b3cb:	e8 3c 98 ff ff       	call   0x404c0c
40b3d0:	50                   	push   %eax
40b3d1:	6a 01                	push   $0x1
40b3d3:	68 00 04 00 00       	push   $0x400
40b3d8:	e8 ab b5 ff ff       	call   0x406988
40b3dd:	83 e8 02             	sub    $0x2,%eax
40b3e0:	85 c0                	test   %eax,%eax
40b3e2:	75 14                	jne    0x40b3f8
40b3e4:	8b c3                	mov    %ebx,%eax
40b3e6:	85 c0                	test   %eax,%eax
40b3e8:	74 05                	je     0x40b3ef