40c438:	5f                   	pop    %edi
40c439:	5e                   	pop    %esi
40c43a:	5b                   	pop    %ebx
40c43b:	c3                   	ret
40c43c:	53                   	push   %ebx
40c43d:	56                   	push   %esi
40c43e:	57                   	push   %edi
40c43f:	55                   	push   %ebp
40c440:	8b f2                	mov    %edx,%esi
40c442:	8b d8                	mov    %eax,%ebx
40c444:	33 ff                	xor    %edi,%edi
40c446:	8b c3                	mov    %ebx,%eax
40c448:	e8 2f 80 ff ff       	call   0x40447c
40c44d:	50                   	push   %eax
40c44e:	8b c6                	mov    %esi,%eax
40c450:	e8 27 80 ff ff       	call   0x40447c
40c455:	8b e8                	mov    %eax,%ebp
40c457:	8b c5                	mov    %ebp,%eax
40c459:	5a                   	pop    %edx
40c45a:	e8 a1 00 00 00       	call   0x40c500
40c45f:	8b d8                	mov    %eax,%ebx
40c461:	85 db                	test   %ebx,%ebx
40c463:	74 05                	je     0x40c46a
40c465:	8b fb                	mov    %ebx,%edi
40c467:	2b fd                	sub    %ebp,%edi
40c469:	47                   	inc    %edi
40c46a:	8b c7                	mov    %edi,%eax
40c46c:	5d                   	pop    %ebp
40c46d:	5f                   	pop    %edi
40c46e:	5e                   	pop    %esi
40c46f:	5b                   	pop    %ebx
40c470:	c3                   	ret
40c471:	8d 40 00             	lea    0x0(%eax),%eax
40c474:	53                   	push   %ebx
40c475:	56                   	push   %esi
40c476:	57                   	push   %edi
40c477:	55                   	push   %ebp
40c478:	8b fa                	mov    %edx,%edi
40c47a:	8b f0                	mov    %eax,%esi
40c47c:	80 3d 4c 97 46 00 00 	cmpb   $0x0,0x46974c
40c483:	74 6d                	je     0x40c4f2
40c485:	8b c6                	mov    %esi,%eax
40c487:	e8 f0 7d ff ff       	call   0x40427c
40c48c:	8b e8                	mov    %eax,%ebp
40c48e:	8b c7                	mov    %edi,%eax
40c490:	8b d5                	mov    %ebp,%edx
40c492:	e8 71 81 ff ff       	call   0x404608
40c497:	bb 01 00 00 00       	mov    $0x1,%ebx
40c49c:	3b eb                	cmp    %ebx,%ebp
40c49e:	7c 5b                	jl     0x40c4fb
40c4a0:	8b c7                	mov    %edi,%eax
40c4a2:	e8 2d 80 ff ff       	call   0x4044d4
40c4a7:	8a 54 1e ff          	mov    -0x1(%esi,%ebx,1),%dl
40c4ab:	88 54 18 ff          	mov    %dl,-0x1(%eax,%ebx,1)
40c4af:	8a 44 1e ff          	mov    -0x1(%esi,%ebx,1),%al
40c4b3:	25 ff 00 00 00       	and    $0xff,%eax
40c4b8:	0f a3 05 0c d1 45 00 	bt     %eax,0x45d10c
40c4bf:	73 12                	jae    0x40c4d3
40c4c1:	43                   	inc    %ebx
40c4c2:	8b c7                	mov    %edi,%eax
40c4c4:	e8 0b 80 ff ff       	call   0x4044d4
40c4c9:	8a 54 1e ff          	mov    -0x1(%esi,%ebx,1),%dl
40c4cd:	88 54 18 ff          	mov    %dl,-0x1(%eax,%ebx,1)
40c4d1:	eb 18                	jmp    0x40c4eb
40c4d3:	8b 07                	mov    (%edi),%eax
40c4d5:	8a 44 18 ff          	mov    -0x1(%eax,%ebx,1),%al
40c4d9:	04 bf                	add    $0xbf,%al
40c4db:	2c 1a                	sub    $0x1a,%al
40c4dd:	73 0c                	jae    0x40c4eb
40c4df:	8b c7                	mov    %edi,%eax
40c4e1:	e8 ee 7f ff ff       	call   0x4044d4
40c4e6:	80 44 18 ff 20       	addb   $0x20,-0x1(%eax,%ebx,1)
40c4eb:	43                   	inc    %ebx
40c4ec:	3b eb                	cmp    %ebx,%ebp
40c4ee:	7d b0                	jge    0x40c4a0
40c4f0:	eb 09                	jmp    0x40c4fb
40c4f2:	8b d7                	mov    %edi,%edx
40c4f4:	8b c6                	mov    %esi,%eax
40c4f6:	e8 c5 b7 ff ff       	call   0x407cc0
40c4fb:	5d                   	pop    %ebp
40c4fc:	5f                   	pop    %edi
40c4fd:	5e                   	pop    %esi
40c4fe:	5b                   	pop    %ebx
40c4ff:	c3                   	ret
40c500:	53                   	push   %ebx
40c501:	56                   	push   %esi
40c502:	57                   	push   %edi
40c503:	55                   	push   %ebp
40c504:	83 c4 f8             	add    $0xfffffff8,%esp
40c507:	8b ea                	mov    %edx,%ebp
40c509:	8b f0                	mov    %eax,%esi
40c50b:	33 db                	xor    %ebx,%ebx
40c50d:	85 f6                	test   %esi,%esi
40c50f:	0f 84 81 00 00 00    	je     0x40c596
40c515:	80 3e 00             	cmpb   $0x0,(%esi)
40c518:	74 7c                	je     0x40c596
40c51a:	85 ed                	test   %ebp,%ebp
40c51c:	74 78                	je     0x40c596
40c51e:	80 7d 00 00          	cmpb   $0x0,0x0(%ebp)
40c522:	74 72                	je     0x40c596
40c524:	8b c6                	mov    %esi,%eax
40c526:	e8 fd c0 ff ff       	call   0x408628
40c52b:	89 04 24             	mov    %eax,(%esp)
40c52e:	8b c5                	mov    %ebp,%eax
40c530:	e8 f3 c0 ff ff       	call   0x408628
40c535:	8b f8                	mov    %eax,%edi
40c537:	8b d5                	mov    %ebp,%edx
40c539:	8b c6                	mov    %esi,%eax
40c53b:	e8 80 c2 ff ff       	call   0x4087c0
40c540:	8b d8                	mov    %eax,%ebx
40c542:	eb 3f                	jmp    0x40c583
40c544:	8b d3                	mov    %ebx,%edx
40c546:	2b d6                	sub    %esi,%edx
40c548:	8b c6                	mov    %esi,%eax
40c54a:	e8 e9 fb ff ff       	call   0x40c138
40c54f:	88 44 24 04          	mov    %al,0x4(%esp)
40c553:	80 7c 24 04 02       	cmpb   $0x2,0x4(%esp)
40c558:	74 15                	je     0x40c56f
40c55a:	57                   	push   %edi
40c55b:	55                   	push   %ebp
40c55c:	57                   	push   %edi
40c55d:	53                   	push   %ebx
40c55e:	6a 00                	push   $0x0
40c560:	68 00 04 00 00       	push   $0x400
40c565:	e8 4e 9a ff ff       	call   0x405fb8
40c56a:	83 f8 02             	cmp    $0x2,%eax
40c56d:	74 27                	je     0x40c596
40c56f:	80 7c 24 04 01       	cmpb   $0x1,0x4(%esp)
40c574:	75 01                	jne    0x40c577
40c576:	43                   	inc    %ebx
40c577:	43                   	inc    %ebx
40c578:	8b d5                	mov    %ebp,%edx
40c57a:	8b c3                	mov    %ebx,%eax
40c57c:	e8 3f c2 ff ff       	call   0x4087c0
40c581:	8b d8                	mov    %eax,%ebx
40c583:	85 db                	test   %ebx,%ebx
40c585:	74 0d                	je     0x40c594
40c587:	8b c3                	mov    %ebx,%eax
40c589:	2b c6                	sub    %esi,%eax
40c58b:	8b 14 24             	mov    (%esp),%edx
40c58e:	2b d0                	sub    %eax,%edx
40c590:	3b fa                	cmp    %edx,%edi
40c592:	76 b0                	jbe    0x40c544
40c594:	33 db                	xor    %ebx,%ebx
40c596:	8b c3                	mov    %ebx,%eax
40c598:	59                   	pop    %ecx
40c599:	5a                   	pop    %edx
40c59a:	5d                   	pop    %ebp
40c59b:	5f                   	pop    %edi
40c59c:	5e                   	pop    %esi
40c59d:	5b                   	pop    %ebx
40c59e:	c3                   	ret
40c59f:	90                   	nop
40c5a0:	53                   	push   %ebx
40c5a1:	56                   	push   %esi
40c5a2:	8b da                	mov    %edx,%ebx
40c5a4:	8b d3                	mov    %ebx,%edx
40c5a6:	e8 1d 00 00 00       	call   0x40c5c8
40c5ab:	8b f0                	mov    %eax,%esi
40c5ad:	84 db                	test   %bl,%bl
40c5af:	74 12                	je     0x40c5c3
40c5b1:	85 c0                	test   %eax,%eax
40c5b3:	74 0e                	je     0x40c5c3
40c5b5:	8b f0                	mov    %eax,%esi
40c5b7:	40                   	inc    %eax
40c5b8:	8b d3                	mov    %ebx,%edx
40c5ba:	e8 09 00 00 00       	call   0x40c5c8
40c5bf:	85 c0                	test   %eax,%eax
40c5c1:	75 f2                	jne    0x40c5b5
40c5c3:	8b c6                	mov    %esi,%eax
40c5c5:	5e                   	pop    %esi
40c5c6:	5b                   	pop    %ebx
40c5c7:	c3                   	ret
40c5c8:	53                   	push   %ebx
40c5c9:	56                   	push   %esi
40c5ca:	57                   	push   %edi
40c5cb:	8b da                	mov    %edx,%ebx
40c5cd:	8b f0                	mov    %eax,%esi
40c5cf:	8b d3                	mov    %ebx,%edx
40c5d1:	8b c6                	mov    %esi,%eax
40c5d3:	e8 d4 c1 ff ff       	call   0x4087ac
40c5d8:	8b f8                	mov    %eax,%edi
40c5da:	85 ff                	test   %edi,%edi
40c5dc:	74 24                	je     0x40c602
40c5de:	8b d7                	mov    %edi,%edx
40c5e0:	2b d6                	sub    %esi,%edx
40c5e2:	8b c6                	mov    %esi,%eax
40c5e4:	e8 4f fb ff ff       	call   0x40c138
40c5e9:	2c 01                	sub    $0x1,%al
40c5eb:	72 15                	jb     0x40c602
40c5ed:	74 02                	je     0x40c5f1
40c5ef:	eb 01                	jmp    0x40c5f2
40c5f1:	47                   	inc    %edi
40c5f2:	47                   	inc    %edi
40c5f3:	8b d3                	mov    %ebx,%edx
40c5f5:	8b c7                	mov    %edi,%eax
40c5f7:	e8 b0 c1 ff ff       	call   0x4087ac
40c5fc:	8b f8                	mov    %eax,%edi
40c5fe:	85 ff                	test   %edi,%edi
40c600:	75 dc                	jne    0x40c5de
40c602:	8b c7                	mov    %edi,%eax
40c604:	5f                   	pop    %edi
40c605:	5e                   	pop    %esi
40c606:	5b                   	pop    %ebx
40c607:	c3                   	ret
40c608:	55                   	push   %ebp
40c609:	8b ec                	mov    %esp,%ebp
40c60b:	83 c4 f4             	add    $0xfffffff4,%esp
40c60e:	53                   	push   %ebx
40c60f:	33 d2                	xor    %edx,%edx
40c611:	89 55 f4             	mov    %edx,-0xc(%ebp)
40c614:	33 d2                	xor    %edx,%edx
40c616:	55                   	push   %ebp
40c617:	68 6c c6 40 00       	push   $0x40c66c
40c61c:	64 ff 32             	push   %fs:(%edx)
40c61f:	64 89 22             	mov    %esp,%fs:(%edx)
40c622:	6a 07                	push   $0x7
40c624:	8d 55 f9             	lea    -0x7(%ebp),%edx
40c627:	52                   	push   %edx
40c628:	68 04 10 00 00       	push   $0x1004
40c62d:	50                   	push   %eax
40c62e:	e8 5d 9a ff ff       	call   0x406090
40c633:	8d 45 f4             	lea    -0xc(%ebp),%eax
40c636:	8d 55 f9             	lea    -0x7(%ebp),%edx
40c639:	b9 07 00 00 00       	mov    $0x7,%ecx
40c63e:	e8 e9 7b ff ff       	call   0x40422c
40c643:	8b 45 f4             	mov    -0xc(%ebp),%eax
40c646:	50                   	push   %eax
40c647:	e8 f4 99 ff ff       	call   0x406040
40c64c:	8b d0                	mov    %eax,%edx
40c64e:	58                   	pop    %eax
40c64f:	e8 c0 b9 ff ff       	call   0x408014
40c654:	8b d8                	mov    %eax,%ebx
40c656:	33 c0                	xor    %eax,%eax
40c658:	5a                   	pop    %edx
40c659:	59                   	pop    %ecx
40c65a:	59                   	pop    %ecx
40c65b:	64 89 10             	mov    %edx,%fs:(%eax)
40c65e:	68 73 c6 40 00       	push   $0x40c673
40c663:	8d 45 f4             	lea    -0xc(%ebp),%eax
40c666:	e8 51 79 ff ff       	call   0x403fbc
40c66b:	c3                   	ret
40c66c:	e9 4f 73 ff ff       	jmp    0x4039c0
40c671:	eb f0                	jmp    0x40c663
40c673:	8b c3                	mov    %ebx,%eax
40c675:	5b                   	pop    %ebx
40c676:	8b e5                	mov    %ebp,%esp
40c678:	5d                   	pop    %ebp
40c679:	c3                   	ret
40c67a:	8b c0                	mov    %eax,%eax
40c67c:	55                   	push   %ebp
40c67d:	8b ec                	mov    %esp,%ebp
40c67f:	51                   	push   %ecx
40c680:	53                   	push   %ebx
40c681:	56                   	push   %esi
40c682:	57                   	push   %edi
40c683:	8b 7d 08             	mov    0x8(%ebp),%edi
40c686:	83 c7 ec             	add    $0xffffffec,%edi
40c689:	57                   	push   %edi
40c68a:	a1 40 97 46 00       	mov    0x469740,%eax
40c68f:	e8 74 ff ff ff       	call   0x40c608
40c694:	50                   	push   %eax
40c695:	e8 ae 99 ff ff       	call   0x406048
40c69a:	33 f6                	xor    %esi,%esi
40c69c:	eb 29                	jmp    0x40c6c7
40c69e:	8a 44 37 06          	mov    0x6(%edi,%esi,1),%al
40c6a2:	8a 5c 37 07          	mov    0x7(%edi,%esi,1),%bl
40c6a6:	2a d8                	sub    %al,%bl
40c6a8:	72 1a                	jb     0x40c6c4
40c6aa:	43                   	inc    %ebx
40c6ab:	88 45 ff             	mov    %al,-0x1(%ebp)
40c6ae:	8a 45 ff             	mov    -0x1(%ebp),%al
40c6b1:	25 ff 00 00 00       	and    $0xff,%eax
40c6b6:	0f ab 05 0c d1 45 00 	bts    %eax,0x45d10c
40c6bd:	fe 45 ff             	incb   -0x1(%ebp)
40c6c0:	fe cb                	dec    %bl
40c6c2:	75 ea                	jne    0x40c6ae
40c6c4:	83 c6 02             	add    $0x2,%esi
40c6c7:	83 fe 0c             	cmp    $0xc,%esi
40c6ca:	7d 0a                	jge    0x40c6d6
40c6cc:	8a 44 37 06          	mov    0x6(%edi,%esi,1),%al
40c6d0:	0a 44 37 07          	or     0x7(%edi,%esi,1),%al
40c6d4:	75 c8                	jne    0x40c69e
40c6d6:	5f                   	pop    %edi
40c6d7:	5e                   	pop    %esi
40c6d8:	5b                   	pop    %ebx
40c6d9:	59                   	pop    %ecx
40c6da:	5d                   	pop    %ebp
40c6db:	c3                   	ret
40c6dc:	a1 44 97 46 00       	mov    0x469744,%eax
40c6e1:	83 f8 1f             	cmp    $0x1f,%eax
40c6e4:	77 07                	ja     0x40c6ed
40c6e6:	0f a3 05 08 d3 45 00 	bt     %eax,0x45d308
40c6ed:	0f 92 c0             	setb   %al
40c6f0:	c3                   	ret
40c6f1:	8d 40 00             	lea    0x0(%eax),%eax
40c6f4:	55                   	push   %ebp
40c6f5:	8b ec                	mov    %esp,%ebp
40c6f7:	81 c4 68 fe ff ff    	add    $0xfffffe68,%esp
40c6fd:	53                   	push   %ebx
40c6fe:	56                   	push   %esi
40c6ff:	57                   	push   %edi
40c700:	c7 05 40 97 46 00 09 	movl   $0x409,0x469740
40c707:	04 00 00
40c70a:	c7 05 44 97 46 00 09 	movl   $0x9,0x469744
40c711:	00 00 00
40c714:	c7 05 48 97 46 00 01 	movl   $0x1,0x469748
40c71b:	00 00 00
40c71e:	e8 b5 99 ff ff       	call   0x4060d8
40c723:	85 c0                	test   %eax,%eax
40c725:	74 05                	je     0x40c72c
40c727:	a3 40 97 46 00       	mov    %eax,0x469740
40c72c:	66 85 c0             	test   %ax,%ax
40c72f:	74 1b                	je     0x40c74c
40c731:	8b d0                	mov    %eax,%edx
40c733:	66 81 e2 ff 03       	and    $0x3ff,%dx
40c738:	0f b7 d2             	movzwl %dx,%edx
40c73b:	89 15 44 97 46 00    	mov    %edx,0x469744
40c741:	0f b7 c0             	movzwl %ax,%eax
40c744:	c1 e8 0a             	shr    $0xa,%eax
40c747:	a3 48 97 46 00       	mov    %eax,0x469748
40c74c:	be 48 c8 40 00       	mov    $0x40c848,%esi
40c751:	bf 0c d1 45 00       	mov    $0x45d10c,%edi
40c756:	b9 08 00 00 00       	mov    $0x8,%ecx
40c75b:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)
40c75d:	83 3d c4 d0 45 00 02 	cmpl   $0x2,0x45d0c4
40c764:	0f 85 a7 00 00 00    	jne    0x40c811
40c76a:	e8 6d ff ff ff       	call   0x40c6dc
40c76f:	84 c0                	test   %al,%al
40c771:	74 13                	je     0x40c786
40c773:	c6 05 4d 97 46 00 00 	movb   $0x0,0x46974d
40c77a:	c6 05 4c 97 46 00 00 	movb   $0x0,0x46974c
40c781:	e9 b9 00 00 00       	jmp    0x40c83f
40c786:	55                   	push   %ebp
40c787:	e8 f0 fe ff ff       	call   0x40c67c
40c78c:	59                   	pop    %ecx
40c78d:	b8 0c d1 45 00       	mov    $0x45d10c,%eax
40c792:	ba 48 c8 40 00       	mov    $0x40c848,%edx
40c797:	b1 20                	mov    $0x20,%cl
40c799:	e8 0e 66 ff ff       	call   0x402dac
40c79e:	0f 95 c3             	setne  %bl
40c7a1:	88 1d 4c 97 46 00    	mov    %bl,0x46974c
40c7a7:	84 db                	test   %bl,%bl
40c7a9:	74 0c                	je     0x40c7b7
40c7ab:	c6 05 4d 97 46 00 00 	movb   $0x0,0x46974d
40c7b2:	e9 88 00 00 00       	jmp    0x40c83f
40c7b7:	b8 80 00 00 00       	mov    $0x80,%eax
40c7bc:	8d 95 6c ff ff ff    	lea    -0x94(%ebp),%edx
40c7c2:	88 02                	mov    %al,(%edx)
40c7c4:	40                   	inc    %eax