40c2a8:	8b c7                	mov    %edi,%eax
40c2aa:	e8 01 82 ff ff       	call   0x4044b0
40c2af:	8a 54 1e ff          	mov    -0x1(%esi,%ebx,1),%dl
40c2b3:	88 54 18 ff          	mov    %dl,-0x1(%eax,%ebx,1)
40c2b7:	8a 44 1e ff          	mov    -0x1(%esi,%ebx,1),%al
40c2bb:	25 ff 00 00 00       	and    $0xff,%eax
40c2c0:	0f a3 05 0c 31 46 00 	bt     %eax,0x46310c
40c2c7:	73 12                	jae    0x40c2db
40c2c9:	43                   	inc    %ebx
40c2ca:	8b c7                	mov    %edi,%eax
40c2cc:	e8 df 81 ff ff       	call   0x4044b0
40c2d1:	8a 54 1e ff          	mov    -0x1(%esi,%ebx,1),%dl
40c2d5:	88 54 18 ff          	mov    %dl,-0x1(%eax,%ebx,1)
40c2d9:	eb 18                	jmp    0x40c2f3
40c2db:	8b 07                	mov    (%edi),%eax
40c2dd:	8a 44 18 ff          	mov    -0x1(%eax,%ebx,1),%al
40c2e1:	04 bf                	add    $0xbf,%al
40c2e3:	2c 1a                	sub    $0x1a,%al
40c2e5:	73 0c                	jae    0x40c2f3
40c2e7:	8b c7                	mov    %edi,%eax
40c2e9:	e8 c2 81 ff ff       	call   0x4044b0
40c2ee:	80 44 18 ff 20       	addb   $0x20,-0x1(%eax,%ebx,1)
40c2f3:	43                   	inc    %ebx
40c2f4:	3b eb                	cmp    %ebx,%ebp
40c2f6:	7d b0                	jge    0x40c2a8
40c2f8:	eb 09                	jmp    0x40c303
40c2fa:	8b d7                	mov    %edi,%edx
40c2fc:	8b c6                	mov    %esi,%eax
40c2fe:	e8 a1 b9 ff ff       	call   0x407ca4
40c303:	5d                   	pop    %ebp
40c304:	5f                   	pop    %edi
40c305:	5e                   	pop    %esi
40c306:	5b                   	pop    %ebx
40c307:	c3                   	ret
40c308:	53                   	push   %ebx
40c309:	56                   	push   %esi
40c30a:	57                   	push   %edi
40c30b:	55                   	push   %ebp
40c30c:	83 c4 f8             	add    $0xfffffff8,%esp
40c30f:	8b ea                	mov    %edx,%ebp
40c311:	8b f0                	mov    %eax,%esi
40c313:	33 db                	xor    %ebx,%ebx
40c315:	85 f6                	test   %esi,%esi
40c317:	0f 84 81 00 00 00    	je     0x40c39e
40c31d:	80 3e 00             	cmpb   $0x0,(%esi)
40c320:	74 7c                	je     0x40c39e
40c322:	85 ed                	test   %ebp,%ebp
40c324:	74 78                	je     0x40c39e
40c326:	80 7d 00 00          	cmpb   $0x0,0x0(%ebp)
40c32a:	74 72                	je     0x40c39e
40c32c:	8b c6                	mov    %esi,%eax
40c32e:	e8 d9 c2 ff ff       	call   0x40860c
40c333:	89 04 24             	mov    %eax,(%esp)
40c336:	8b c5                	mov    %ebp,%eax
40c338:	e8 cf c2 ff ff       	call   0x40860c
40c33d:	8b f8                	mov    %eax,%edi
40c33f:	8b d5                	mov    %ebp,%edx
40c341:	8b c6                	mov    %esi,%eax
40c343:	e8 5c c4 ff ff       	call   0x4087a4
40c348:	8b d8                	mov    %eax,%ebx
40c34a:	eb 3f                	jmp    0x40c38b
40c34c:	8b d3                	mov    %ebx,%edx
40c34e:	2b d6                	sub    %esi,%edx
40c350:	8b c6                	mov    %esi,%eax
40c352:	e8 e9 fb ff ff       	call   0x40bf40
40c357:	88 44 24 04          	mov    %al,0x4(%esp)
40c35b:	80 7c 24 04 02       	cmpb   $0x2,0x4(%esp)
40c360:	74 15                	je     0x40c377
40c362:	57                   	push   %edi
40c363:	55                   	push   %ebp
40c364:	57                   	push   %edi
40c365:	53                   	push   %ebx
40c366:	6a 00                	push   $0x0
40c368:	68 00 04 00 00       	push   $0x400
40c36d:	e8 22 9c ff ff       	call   0x405f94
40c372:	83 f8 02             	cmp    $0x2,%eax
40c375:	74 27                	je     0x40c39e
40c377:	80 7c 24 04 01       	cmpb   $0x1,0x4(%esp)
40c37c:	75 01                	jne    0x40c37f
40c37e:	43                   	inc    %ebx
40c37f:	43                   	inc    %ebx
40c380:	8b d5                	mov    %ebp,%edx
40c382:	8b c3                	mov    %ebx,%eax
40c384:	e8 1b c4 ff ff       	call   0x4087a4
40c389:	8b d8                	mov    %eax,%ebx
40c38b:	85 db                	test   %ebx,%ebx
40c38d:	74 0d                	je     0x40c39c
40c38f:	8b c3                	mov    %ebx,%eax
40c391:	2b c6                	sub    %esi,%eax
40c393:	8b 14 24             	mov    (%esp),%edx
40c396:	2b d0                	sub    %eax,%edx
40c398:	3b fa                	cmp    %edx,%edi
40c39a:	76 b0                	jbe    0x40c34c
40c39c:	33 db                	xor    %ebx,%ebx
40c39e:	8b c3                	mov    %ebx,%eax
40c3a0:	59                   	pop    %ecx
40c3a1:	5a                   	pop    %edx
40c3a2:	5d                   	pop    %ebp
40c3a3:	5f                   	pop    %edi
40c3a4:	5e                   	pop    %esi
40c3a5:	5b                   	pop    %ebx
40c3a6:	c3                   	ret
40c3a7:	90                   	nop
40c3a8:	53                   	push   %ebx
40c3a9:	56                   	push   %esi
40c3aa:	8b da                	mov    %edx,%ebx
40c3ac:	8b d3                	mov    %ebx,%edx
40c3ae:	e8 1d 00 00 00       	call   0x40c3d0
40c3b3:	8b f0                	mov    %eax,%esi
40c3b5:	84 db                	test   %bl,%bl
40c3b7:	74 12                	je     0x40c3cb
40c3b9:	85 c0                	test   %eax,%eax
40c3bb:	74 0e                	je     0x40c3cb
40c3bd:	8b f0                	mov    %eax,%esi
40c3bf:	40                   	inc    %eax
40c3c0:	8b d3                	mov    %ebx,%edx
40c3c2:	e8 09 00 00 00       	call   0x40c3d0
40c3c7:	85 c0                	test   %eax,%eax
40c3c9:	75 f2                	jne    0x40c3bd
40c3cb:	8b c6                	mov    %esi,%eax
40c3cd:	5e                   	pop    %esi
40c3ce:	5b                   	pop    %ebx
40c3cf:	c3                   	ret
40c3d0:	53                   	push   %ebx
40c3d1:	56                   	push   %esi
40c3d2:	57                   	push   %edi
40c3d3:	8b da                	mov    %edx,%ebx
40c3d5:	8b f0                	mov    %eax,%esi
40c3d7:	8b d3                	mov    %ebx,%edx
40c3d9:	8b c6                	mov    %esi,%eax
40c3db:	e8 b0 c3 ff ff       	call   0x408790
40c3e0:	8b f8                	mov    %eax,%edi
40c3e2:	85 ff                	test   %edi,%edi
40c3e4:	74 24                	je     0x40c40a
40c3e6:	8b d7                	mov    %edi,%edx
40c3e8:	2b d6                	sub    %esi,%edx
40c3ea:	8b c6                	mov    %esi,%eax
40c3ec:	e8 4f fb ff ff       	call   0x40bf40
40c3f1:	2c 01                	sub    $0x1,%al
40c3f3:	72 15                	jb     0x40c40a
40c3f5:	74 02                	je     0x40c3f9
40c3f7:	eb 01                	jmp    0x40c3fa
40c3f9:	47                   	inc    %edi
40c3fa:	47                   	inc    %edi
40c3fb:	8b d3                	mov    %ebx,%edx
40c3fd:	8b c7                	mov    %edi,%eax
40c3ff:	e8 8c c3 ff ff       	call   0x408790
40c404:	8b f8                	mov    %eax,%edi
40c406:	85 ff                	test   %edi,%edi
40c408:	75 dc                	jne    0x40c3e6
40c40a:	8b c7                	mov    %edi,%eax
40c40c:	5f                   	pop    %edi
40c40d:	5e                   	pop    %esi
40c40e:	5b                   	pop    %ebx
40c40f:	c3                   	ret
40c410:	55                   	push   %ebp
40c411:	8b ec                	mov    %esp,%ebp
40c413:	83 c4 f4             	add    $0xfffffff4,%esp
40c416:	53                   	push   %ebx
40c417:	33 d2                	xor    %edx,%edx
40c419:	89 55 f4             	mov    %edx,-0xc(%ebp)
40c41c:	33 d2                	xor    %edx,%edx
40c41e:	55                   	push   %ebp
40c41f:	68 74 c4 40 00       	push   $0x40c474
40c424:	64 ff 32             	push   %fs:(%edx)
40c427:	64 89 22             	mov    %esp,%fs:(%edx)
40c42a:	6a 07                	push   $0x7
40c42c:	8d 55 f9             	lea    -0x7(%ebp),%edx
40c42f:	52                   	push   %edx
40c430:	68 04 10 00 00       	push   $0x1004
40c435:	50                   	push   %eax
40c436:	e8 31 9c ff ff       	call   0x40606c
40c43b:	8d 45 f4             	lea    -0xc(%ebp),%eax
40c43e:	8d 55 f9             	lea    -0x7(%ebp),%edx
40c441:	b9 07 00 00 00       	mov    $0x7,%ecx
40c446:	e8 bd 7d ff ff       	call   0x404208
40c44b:	8b 45 f4             	mov    -0xc(%ebp),%eax
40c44e:	50                   	push   %eax
40c44f:	e8 c8 9b ff ff       	call   0x40601c
40c454:	8b d0                	mov    %eax,%edx
40c456:	58                   	pop    %eax
40c457:	e8 9c bb ff ff       	call   0x407ff8
40c45c:	8b d8                	mov    %eax,%ebx
40c45e:	33 c0                	xor    %eax,%eax
40c460:	5a                   	pop    %edx
40c461:	59                   	pop    %ecx
40c462:	59                   	pop    %ecx
40c463:	64 89 10             	mov    %edx,%fs:(%eax)
40c466:	68 7b c4 40 00       	push   $0x40c47b
40c46b:	8d 45 f4             	lea    -0xc(%ebp),%eax
40c46e:	e8 25 7b ff ff       	call   0x403f98
40c473:	c3                   	ret
40c474:	e9 23 75 ff ff       	jmp    0x40399c
40c479:	eb f0                	jmp    0x40c46b
40c47b:	8b c3                	mov    %ebx,%eax
40c47d:	5b                   	pop    %ebx
40c47e:	8b e5                	mov    %ebp,%esp
40c480:	5d                   	pop    %ebp
40c481:	c3                   	ret
40c482:	8b c0                	mov    %eax,%eax
40c484:	55                   	push   %ebp
40c485:	8b ec                	mov    %esp,%ebp
40c487:	51                   	push   %ecx
40c488:	53                   	push   %ebx
40c489:	56                   	push   %esi
40c48a:	57                   	push   %edi
40c48b:	8b 7d 08             	mov    0x8(%ebp),%edi
40c48e:	83 c7 ec             	add    $0xffffffec,%edi
40c491:	57                   	push   %edi
40c492:	a1 40 e7 46 00       	mov    0x46e740,%eax
40c497:	e8 74 ff ff ff       	call   0x40c410
40c49c:	50                   	push   %eax
40c49d:	e8 82 9b ff ff       	call   0x406024
40c4a2:	33 f6                	xor    %esi,%esi
40c4a4:	eb 29                	jmp    0x40c4cf
40c4a6:	8a 44 37 06          	mov    0x6(%edi,%esi,1),%al
40c4aa:	8a 5c 37 07          	mov    0x7(%edi,%esi,1),%bl
40c4ae:	2a d8                	sub    %al,%bl
40c4b0:	72 1a                	jb     0x40c4cc
40c4b2:	43                   	inc    %ebx
40c4b3:	88 45 ff             	mov    %al,-0x1(%ebp)
40c4b6:	8a 45 ff             	mov    -0x1(%ebp),%al
40c4b9:	25 ff 00 00 00       	and    $0xff,%eax
40c4be:	0f ab 05 0c 31 46 00 	bts    %eax,0x46310c
40c4c5:	fe 45 ff             	incb   -0x1(%ebp)
40c4c8:	fe cb                	dec    %bl
40c4ca:	75 ea                	jne    0x40c4b6
40c4cc:	83 c6 02             	add    $0x2,%esi
40c4cf:	83 fe 0c             	cmp    $0xc,%esi
40c4d2:	7d 0a                	jge    0x40c4de
40c4d4:	8a 44 37 06          	mov    0x6(%edi,%esi,1),%al
40c4d8:	0a 44 37 07          	or     0x7(%edi,%esi,1),%al
40c4dc:	75 c8                	jne    0x40c4a6
40c4de:	5f                   	pop    %edi
40c4df:	5e                   	pop    %esi
40c4e0:	5b                   	pop    %ebx
40c4e1:	59                   	pop    %ecx
40c4e2:	5d                   	pop    %ebp
40c4e3:	c3                   	ret
40c4e4:	a1 44 e7 46 00       	mov    0x46e744,%eax
40c4e9:	83 f8 1f             	cmp    $0x1f,%eax
40c4ec:	77 07                	ja     0x40c4f5
40c4ee:	0f a3 05 08 33 46 00 	bt     %eax,0x463308
40c4f5:	0f 92 c0             	setb   %al
40c4f8:	c3                   	ret
40c4f9:	8d 40 00             	lea    0x0(%eax),%eax
40c4fc:	55                   	push   %ebp
40c4fd:	8b ec                	mov    %esp,%ebp
40c4ff:	81 c4 68 fe ff ff    	add    $0xfffffe68,%esp
40c505:	53                   	push   %ebx
40c506:	56                   	push   %esi
40c507:	57                   	push   %edi
40c508:	c7 05 40 e7 46 00 09 	movl   $0x409,0x46e740
40c50f:	04 00 00
40c512:	c7 05 44 e7 46 00 09 	movl   $0x9,0x46e744
40c519:	00 00 00
40c51c:	c7 05 48 e7 46 00 01 	movl   $0x1,0x46e748
40c523:	00 00 00
40c526:	e8 89 9b ff ff       	call   0x4060b4
40c52b:	85 c0                	test   %eax,%eax
40c52d:	74 05                	je     0x40c534
40c52f:	a3 40 e7 46 00       	mov    %eax,0x46e740
40c534:	66 85 c0             	test   %ax,%ax
40c537:	74 1b                	je     0x40c554
40c539:	8b d0                	mov    %eax,%edx
40c53b:	66 81 e2 ff 03       	and    $0x3ff,%dx
40c540:	0f b7 d2             	movzwl %dx,%edx
40c543:	89 15 44 e7 46 00    	mov    %edx,0x46e744
40c549:	0f b7 c0             	movzwl %ax,%eax
40c54c:	c1 e8 0a             	shr    $0xa,%eax
40c54f:	a3 48 e7 46 00       	mov    %eax,0x46e748
40c554:	be 50 c6 40 00       	mov    $0x40c650,%esi
40c559:	bf 0c 31 46 00       	mov    $0x46310c,%edi
40c55e:	b9 08 00 00 00       	mov    $0x8,%ecx
40c563:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)
40c565:	83 3d c4 30 46 00 02 	cmpl   $0x2,0x4630c4
40c56c:	0f 85 a7 00 00 00    	jne    0x40c619
40c572:	e8 6d ff ff ff       	call   0x40c4e4
40c577:	84 c0                	test   %al,%al
40c579:	74 13                	je     0x40c58e
40c57b:	c6 05 4d e7 46 00 00 	movb   $0x0,0x46e74d
40c582:	c6 05 4c e7 46 00 00 	movb   $0x0,0x46e74c
40c589:	e9 b9 00 00 00       	jmp    0x40c647
40c58e:	55                   	push   %ebp
40c58f:	e8 f0 fe ff ff       	call   0x40c484
40c594:	59                   	pop    %ecx
40c595:	b8 0c 31 46 00       	mov    $0x46310c,%eax
40c59a:	ba 50 c6 40 00       	mov    $0x40c650,%edx
40c59f:	b1 20                	mov    $0x20,%cl
40c5a1:	e8 e2 67 ff ff       	call   0x402d88
40c5a6:	0f 95 c3             	setne  %bl
40c5a9:	88 1d 4c e7 46 00    	mov    %bl,0x46e74c
40c5af:	84 db                	test   %bl,%bl
40c5b1:	74 0c                	je     0x40c5bf
40c5b3:	c6 05 4d e7 46 00 00 	movb   $0x0,0x46e74d
40c5ba:	e9 88 00 00 00       	jmp    0x40c647
40c5bf:	b8 80 00 00 00       	mov    $0x80,%eax
40c5c4:	8d 95 6c ff ff ff    	lea    -0x94(%ebp),%edx
40c5ca:	88 02                	mov    %al,(%edx)
40c5cc:	40                   	inc    %eax
40c5cd:	42                   	inc    %edx
40c5ce:	3d 00 01 00 00       	cmp    $0x100,%eax
40c5d3:	75 f5                	jne    0x40c5ca
40c5d5:	8d 85 6c ff ff ff    	lea    -0x94(%ebp),%eax
40c5db:	8d 95 6a fe ff ff    	lea    -0x196(%ebp),%edx
40c5e1:	52                   	push   %edx
40c5e2:	68 80 00 00 00       	push   $0x80
40c5e7:	50                   	push   %eax
40c5e8:	6a 02                	push   $0x2
40c5ea:	a1 40 e7 46 00       	mov    0x46e740,%eax
40c5ef:	50                   	push   %eax
40c5f0:	e8 9f 9a ff ff       	call   0x406094
40c5f5:	b8 80 00 00 00       	mov    $0x80,%eax
40c5fa:	8d 95 6a fe ff ff    	lea    -0x196(%ebp),%edx
40c600:	66 83 3a 02          	cmpw   $0x2,(%edx)
40c604:	0f 94 c1             	sete   %cl
40c607:	88 0d 4d e7 46 00    	mov    %cl,0x46e74d
40c60d:	84 c9                	test   %cl,%cl
40c60f:	75 36                	jne    0x40c647
40c611:	83 c2 02             	add    $0x2,%edx
40c614:	48                   	dec    %eax
40c615:	75 e9                	jne    0x40c600
40c617:	eb 2e                	jmp    0x40c647
40c619:	6a 4a                	push   $0x4a
40c61b:	e8 6c a0 ff ff       	call   0x40668c
40c620:	85 c0                	test   %eax,%eax
40c622:	0f 95 c0             	setne  %al
40c625:	a2 4d e7 46 00       	mov    %al,0x46e74d
40c62a:	6a 2a                	push   $0x2a
40c62c:	e8 5b a0 ff ff       	call   0x40668c
40c631:	85 c0                	test   %eax,%eax
40c633:	0f 95 c3             	setne  %bl
40c636:	88 1d 4c e7 46 00    	mov    %bl,0x46e74c
40c63c:	84 db                	test   %bl,%bl
40c63e:	74 07                	je     0x40c647
40c640:	55                   	push   %ebp
40c641:	e8 3e fe ff ff       	call   0x40c484
40c646:	59                   	pop    %ecx
40c647:	5f                   	pop    %edi
40c648:	5e                   	pop    %esi
40c649:	5b                   	pop    %ebx
40c64a:	8b e5                	mov    %ebp,%esp
40c64c:	5d                   	pop    %ebp
40c64d:	c3                   	ret
40c66e:	00 00                	add    %al,(%eax)
40c670:	55                   	push   %ebp
40c671:	8b ec                	mov    %esp,%ebp
40c673:	b9 08 00 00 00       	mov    $0x8,%ecx
40c678:	6a 00                	push   $0x0
40c67a:	6a 00                	push   $0x0