408347:	c2 04 00             	ret    $0x4
40834a:	8b ff                	mov    %edi,%edi
40834c:	55                   	push   %ebp
40834d:	8b ec                	mov    %esp,%ebp
40834f:	8b 41 04             	mov    0x4(%ecx),%eax
408352:	2b 01                	sub    (%ecx),%eax
408354:	8b 51 08             	mov    0x8(%ecx),%edx
408357:	2b 11                	sub    (%ecx),%edx
408359:	03 45 08             	add    0x8(%ebp),%eax
40835c:	3b c2                	cmp    %edx,%eax
40835e:	73 04                	jae    0x408364
408360:	b0 01                	mov    $0x1,%al
408362:	eb 11                	jmp    0x408375
408364:	8d 04 12             	lea    (%edx,%edx,1),%eax
408367:	39 45 08             	cmp    %eax,0x8(%ebp)
40836a:	72 03                	jb     0x40836f
40836c:	8b 45 08             	mov    0x8(%ebp),%eax
40836f:	50                   	push   %eax
408370:	e8 6b ff ff ff       	call   0x4082e0
408375:	5d                   	pop    %ebp
408376:	c2 04 00             	ret    $0x4
408379:	8b ff                	mov    %edi,%edi
40837b:	55                   	push   %ebp
40837c:	8b ec                	mov    %esp,%ebp
40837e:	56                   	push   %esi
40837f:	57                   	push   %edi
408380:	8b 7d 0c             	mov    0xc(%ebp),%edi
408383:	8b f1                	mov    %ecx,%esi
408385:	57                   	push   %edi
408386:	e8 bf ff ff ff       	call   0x40834a
40838b:	84 c0                	test   %al,%al
40838d:	74 29                	je     0x4083b8
40838f:	8b 4e 04             	mov    0x4(%esi),%ecx
408392:	8b 46 08             	mov    0x8(%esi),%eax
408395:	2b c1                	sub    %ecx,%eax
408397:	3b 4e 08             	cmp    0x8(%esi),%ecx
40839a:	1b d2                	sbb    %edx,%edx
40839c:	23 d0                	and    %eax,%edx
40839e:	85 ff                	test   %edi,%edi
4083a0:	74 0e                	je     0x4083b0
4083a2:	57                   	push   %edi
4083a3:	ff 75 08             	push   0x8(%ebp)
4083a6:	e8 c5 df ff ff       	call   0x406370
4083ab:	59                   	pop    %ecx
4083ac:	59                   	pop    %ecx
4083ad:	8b 4e 04             	mov    0x4(%esi),%ecx
4083b0:	8d 04 39             	lea    (%ecx,%edi,1),%eax
4083b3:	89 46 04             	mov    %eax,0x4(%esi)
4083b6:	b0 01                	mov    $0x1,%al
4083b8:	5f                   	pop    %edi
4083b9:	5e                   	pop    %esi
4083ba:	5d                   	pop    %ebp
4083bb:	c2 08 00             	ret    $0x8
4083be:	8b ff                	mov    %edi,%edi
4083c0:	55                   	push   %ebp
4083c1:	8b ec                	mov    %esp,%ebp
4083c3:	83 e4 f8             	and    $0xfffffff8,%esp
4083c6:	b8 24 10 00 00       	mov    $0x1024,%eax
4083cb:	e8 80 a7 01 00       	call   0x422b50
4083d0:	a1 10 42 42 00       	mov    0x424210,%eax
4083d5:	33 c4                	xor    %esp,%eax
4083d7:	89 84 24 20 10 00 00 	mov    %eax,0x1020(%esp)
4083de:	53                   	push   %ebx
4083df:	8b d9                	mov    %ecx,%ebx
4083e1:	56                   	push   %esi
4083e2:	57                   	push   %edi
4083e3:	6a 0c                	push   $0xc
4083e5:	8b 43 04             	mov    0x4(%ebx),%eax
4083e8:	33 f6                	xor    %esi,%esi
4083ea:	2b 03                	sub    (%ebx),%eax
4083ec:	59                   	pop    %ecx
4083ed:	89 5c 24 10          	mov    %ebx,0x10(%esp)
4083f1:	89 4c 24 18          	mov    %ecx,0x18(%esp)
4083f5:	3b c1                	cmp    %ecx,%eax
4083f7:	0f 82 16 01 00 00    	jb     0x408513
4083fd:	8b fe                	mov    %esi,%edi
4083ff:	89 74 24 14          	mov    %esi,0x14(%esp)
408403:	8d 44 24 0c          	lea    0xc(%esp),%eax
408407:	c7 44 24 0c 00 10 00 	movl   $0x1000,0xc(%esp)
40840e:	00
40840f:	50                   	push   %eax
408410:	8d 44 24 2c          	lea    0x2c(%esp),%eax
408414:	50                   	push   %eax
408415:	8d 44 24 28          	lea    0x28(%esp),%eax
408419:	50                   	push   %eax
40841a:	51                   	push   %ecx
40841b:	b9 60 1d 40 00       	mov    $0x401d60,%ecx
408420:	e8 ed f4 ff ff       	call   0x407912
408425:	89 44 24 24          	mov    %eax,0x24(%esp)
408429:	85 c0                	test   %eax,%eax
40842b:	0f 85 c4 00 00 00    	jne    0x4084f5
408431:	8b 44 24 0c          	mov    0xc(%esp),%eax
408435:	33 d2                	xor    %edx,%edx
408437:	6a 0c                	push   $0xc
408439:	59                   	pop    %ecx
40843a:	f7 f1                	div    %ecx
40843c:	8b 1b                	mov    (%ebx),%ebx
40843e:	f7 da                	neg    %edx
408440:	1b f6                	sbb    %esi,%esi
408442:	33 d2                	xor    %edx,%edx
408444:	f7 d6                	not    %esi
408446:	23 74 24 0c          	and    0xc(%esp),%esi
40844a:	8b c6                	mov    %esi,%eax
40844c:	89 74 24 0c          	mov    %esi,0xc(%esp)
408450:	f7 f1                	div    %ecx
408452:	33 d2                	xor    %edx,%edx
408454:	8b c8                	mov    %eax,%ecx
408456:	8b 44 24 10          	mov    0x10(%esp),%eax
40845a:	8b 40 04             	mov    0x4(%eax),%eax
40845d:	2b c3                	sub    %ebx,%eax
40845f:	f7 74 24 18          	divl   0x18(%esp)
408463:	6b c0 0c             	imul   $0xc,%eax,%eax
408466:	03 c3                	add    %ebx,%eax
408468:	89 44 24 1c          	mov    %eax,0x1c(%esp)
40846c:	3b d8                	cmp    %eax,%ebx
40846e:	74 64                	je     0x4084d4
408470:	6b c1 0c             	imul   $0xc,%ecx,%eax
408473:	8d 54 24 28          	lea    0x28(%esp),%edx
408477:	03 d0                	add    %eax,%edx
408479:	8d 44 24 28          	lea    0x28(%esp),%eax
40847d:	3b c2                	cmp    %edx,%eax
40847f:	74 1e                	je     0x40849f
408481:	8b 3b                	mov    (%ebx),%edi
408483:	8b c8                	mov    %eax,%ecx
408485:	6a 0c                	push   $0xc
408487:	58                   	pop    %eax
408488:	39 39                	cmp    %edi,(%ecx)
40848a:	75 0d                	jne    0x408499
40848c:	66 8b 41 04          	mov    0x4(%ecx),%ax
408490:	6a 0c                	push   $0xc
408492:	66 3b 43 04          	cmp    0x4(%ebx),%ax
408496:	74 25                	je     0x4084bd
408498:	58                   	pop    %eax
408499:	03 c8                	add    %eax,%ecx
40849b:	3b ca                	cmp    %edx,%ecx
40849d:	75 e9                	jne    0x408488
40849f:	8d 46 0c             	lea    0xc(%esi),%eax
4084a2:	6a 0c                	push   $0xc
4084a4:	3d 00 10 00 00       	cmp    $0x1000,%eax
4084a9:	77 1c                	ja     0x4084c7
4084ab:	8b fa                	mov    %edx,%edi
4084ad:	8b f3                	mov    %ebx,%esi
4084af:	a5                   	movsl  %ds:(%esi),%es:(%edi)
4084b0:	a5                   	movsl  %ds:(%esi),%es:(%edi)
4084b1:	a5                   	movsl  %ds:(%esi),%es:(%edi)
4084b2:	8b f0                	mov    %eax,%esi
4084b4:	58                   	pop    %eax
4084b5:	89 74 24 0c          	mov    %esi,0xc(%esp)
4084b9:	03 d0                	add    %eax,%edx
4084bb:	eb 0b                	jmp    0x4084c8
4084bd:	8b 43 08             	mov    0x8(%ebx),%eax
4084c0:	01 41 08             	add    %eax,0x8(%ecx)
4084c3:	8b 74 24 10          	mov    0x10(%esp),%esi
4084c7:	58                   	pop    %eax
4084c8:	03 d8                	add    %eax,%ebx
4084ca:	3b 5c 24 1c          	cmp    0x1c(%esp),%ebx
4084ce:	75 a9                	jne    0x408479
4084d0:	8b 7c 24 14          	mov    0x14(%esp),%edi
4084d4:	6a 01                	push   $0x1
4084d6:	ff 74 24 24          	push   0x24(%esp)
4084da:	8d 54 24 30          	lea    0x30(%esp),%edx
4084de:	51                   	push   %ecx
4084df:	51                   	push   %ecx
4084e0:	56                   	push   %esi
4084e1:	b9 60 1d 40 00       	mov    $0x401d60,%ecx
4084e6:	e8 7c f4 ff ff       	call   0x407967
4084eb:	8b 5c 24 10          	mov    0x10(%esp),%ebx
4084ef:	8b f0                	mov    %eax,%esi
4084f1:	8b 44 24 24          	mov    0x24(%esp),%eax
4084f5:	47                   	inc    %edi
4084f6:	89 7c 24 14          	mov    %edi,0x14(%esp)
4084fa:	81 fe 01 00 00 c0    	cmp    $0xc0000001,%esi
408500:	75 0d                	jne    0x40850f
408502:	83 ff 64             	cmp    $0x64,%edi
408505:	7d 08                	jge    0x40850f
408507:	85 c0                	test   %eax,%eax
408509:	0f 84 f4 fe ff ff    	je     0x408403
40850f:	85 c0                	test   %eax,%eax
408511:	75 02                	jne    0x408515
408513:	8b c6                	mov    %esi,%eax
408515:	8b 8c 24 2c 10 00 00 	mov    0x102c(%esp),%ecx
40851c:	5f                   	pop    %edi
40851d:	5e                   	pop    %esi
40851e:	5b                   	pop    %ebx
40851f:	33 cc                	xor    %esp,%ecx
408521:	e8 4a 93 01 00       	call   0x421870
408526:	8b e5                	mov    %ebp,%esp
408528:	5d                   	pop    %ebp
408529:	c3                   	ret
40852a:	8b ff                	mov    %edi,%edi
40852c:	55                   	push   %ebp
40852d:	8b ec                	mov    %esp,%ebp
40852f:	56                   	push   %esi
408530:	8b 35 70 4d 42 00    	mov    0x424d70,%esi
408536:	85 f6                	test   %esi,%esi
408538:	75 1d                	jne    0x408557
40853a:	68 50 1c 40 00       	push   $0x401c50
40853f:	e8 eb f2 ff ff       	call   0x40782f
408544:	50                   	push   %eax
408545:	ff 15 68 60 42 00    	call   *0x426068
40854b:	8b f0                	mov    %eax,%esi
40854d:	89 35 70 4d 42 00    	mov    %esi,0x424d70
408553:	85 f6                	test   %esi,%esi
408555:	74 0d                	je     0x408564
408557:	ff 75 08             	push   0x8(%ebp)
40855a:	8b ce                	mov    %esi,%ecx
40855c:	ff 15 78 64 42 00    	call   *0x426478
408562:	ff d6                	call   *%esi
408564:	5e                   	pop    %esi
408565:	5d                   	pop    %ebp
408566:	c2 04 00             	ret    $0x4
408569:	8b ff                	mov    %edi,%edi
40856b:	55                   	push   %ebp
40856c:	8b ec                	mov    %esp,%ebp
40856e:	56                   	push   %esi
40856f:	8b 35 90 4c 42 00    	mov    0x424c90,%esi
408575:	85 f6                	test   %esi,%esi
408577:	75 1d                	jne    0x408596
408579:	68 b0 1b 40 00       	push   $0x401bb0
40857e:	e8 ac f2 ff ff       	call   0x40782f
408583:	50                   	push   %eax
408584:	ff 15 68 60 42 00    	call   *0x426068
40858a:	8b f0                	mov    %eax,%esi
40858c:	89 35 90 4c 42 00    	mov    %esi,0x424c90
408592:	85 f6                	test   %esi,%esi
408594:	74 0d                	je     0x4085a3
408596:	ff 75 08             	push   0x8(%ebp)
408599:	8b ce                	mov    %esi,%ecx
40859b:	ff 15 78 64 42 00    	call   *0x426478
4085a1:	ff d6                	call   *%esi
4085a3:	5e                   	pop    %esi
4085a4:	5d                   	pop    %ebp
4085a5:	c2 04 00             	ret    $0x4
4085a8:	8b ff                	mov    %edi,%edi
4085aa:	55                   	push   %ebp
4085ab:	8b ec                	mov    %esp,%ebp
4085ad:	0f b7 51 08          	movzwl 0x8(%ecx),%edx
4085b1:	8b 45 0c             	mov    0xc(%ebp),%eax
4085b4:	3b c2                	cmp    %edx,%eax
4085b6:	75 11                	jne    0x4085c9
4085b8:	50                   	push   %eax
4085b9:	ff 71 10             	push   0x10(%ecx)
4085bc:	ff 75 08             	push   0x8(%ebp)
4085bf:	e8 b9 a5 01 00       	call   0x422b7d
4085c4:	83 c4 0c             	add    $0xc,%esp
4085c7:	eb 02                	jmp    0x4085cb
4085c9:	2b c2                	sub    %edx,%eax
4085cb:	5d                   	pop    %ebp
4085cc:	c2 08 00             	ret    $0x8
4085cf:	8b ff                	mov    %edi,%edi
4085d1:	55                   	push   %ebp
4085d2:	8b ec                	mov    %esp,%ebp
4085d4:	51                   	push   %ecx
4085d5:	8b 55 08             	mov    0x8(%ebp),%edx
4085d8:	8d 41 04             	lea    0x4(%ecx),%eax
4085db:	39 10                	cmp    %edx,(%eax)
4085dd:	74 2c                	je     0x40860b
4085df:	89 10                	mov    %edx,(%eax)
4085e1:	8a 51 02             	mov    0x2(%ecx),%dl
4085e4:	80 fa 01             	cmp    $0x1,%dl
4085e7:	75 0e                	jne    0x4085f7
4085e9:	66 8b 00             	mov    (%eax),%ax
4085ec:	66 89 45 fc          	mov    %ax,-0x4(%ebp)
4085f0:	8d 45 fc             	lea    -0x4(%ebp),%eax
4085f3:	6a 02                	push   $0x2
4085f5:	eb 07                	jmp    0x4085fe
4085f7:	80 fa 02             	cmp    $0x2,%dl
4085fa:	75 0f                	jne    0x40860b
4085fc:	6a 04                	push   $0x4
4085fe:	8b 49 0c             	mov    0xc(%ecx),%ecx
408601:	5a                   	pop    %edx
408602:	52                   	push   %edx
408603:	50                   	push   %eax
408604:	e8 67 dd ff ff       	call   0x406370
408609:	59                   	pop    %ecx
40860a:	59                   	pop    %ecx
40860b:	c9                   	leave
40860c:	c2 04 00             	ret    $0x4
40860f:	0f b7 01             	movzwl (%ecx),%eax
408612:	66 85 c0             	test   %ax,%ax
408615:	75 07                	jne    0x40861e
408617:	0f b7 41 08          	movzwl 0x8(%ecx),%eax
40861b:	83 c0 02             	add    $0x2,%eax
40861e:	8a 49 02             	mov    0x2(%ecx),%cl
408621:	80 f9 01             	cmp    $0x1,%cl
408624:	75 04                	jne    0x40862a
408626:	83 c0 02             	add    $0x2,%eax
408629:	c3                   	ret
40862a:	80 f9 02             	cmp    $0x2,%cl
40862d:	75 03                	jne    0x408632
40862f:	83 c0 04             	add    $0x4,%eax
408632:	c3                   	ret
408633:	8b ff                	mov    %edi,%edi
408635:	55                   	push   %ebp
408636:	8b ec                	mov    %esp,%ebp
408638:	51                   	push   %ecx
408639:	51                   	push   %ecx
40863a:	8b 45 08             	mov    0x8(%ebp),%eax
40863d:	53                   	push   %ebx
40863e:	8b d9                	mov    %ecx,%ebx
408640:	56                   	push   %esi
408641:	8b 30                	mov    (%eax),%esi
408643:	57                   	push   %edi
408644:	8a 43 02             	mov    0x2(%ebx),%al
408647:	8b 7d 0c             	mov    0xc(%ebp),%edi
40864a:	3c 01                	cmp    $0x1,%al
40864c:	75 27                	jne    0x408675
40864e:	8d 46 02             	lea    0x2(%esi),%eax
408651:	89 45 f8             	mov    %eax,-0x8(%ebp)
408654:	3b c7                	cmp    %edi,%eax
408656:	77 72                	ja     0x4086ca
408658:	66 8b 43 04          	mov    0x4(%ebx),%ax
40865c:	8b ce                	mov    %esi,%ecx
40865e:	66 89 45 fc          	mov    %ax,-0x4(%ebp)
408662:	8d 45 fc             	lea    -0x4(%ebp),%eax
408665:	6a 02                	push   $0x2
408667:	50                   	push   %eax
408668:	6a 02                	push   $0x2
40866a:	5a                   	pop    %edx
40866b:	e8 00 dd ff ff       	call   0x406370
408670:	8b 75 f8             	mov    -0x8(%ebp),%esi
408673:	eb 20                	jmp    0x408695
408675:	3c 02                	cmp    $0x2,%al
408677:	75 1e                	jne    0x408697
408679:	8d 46 04             	lea    0x4(%esi),%eax
40867c:	89 45 f8             	mov    %eax,-0x8(%ebp)
40867f:	3b c7                	cmp    %edi,%eax
408681:	77 47                	ja     0x4086ca
408683:	6a 04                	push   $0x4
408685:	5a                   	pop    %edx
408686:	52                   	push   %edx
408687:	8d 43 04             	lea    0x4(%ebx),%eax
40868a:	8b ce                	mov    %esi,%ecx
40868c:	50                   	push   %eax
40868d:	e8 de dc ff ff       	call   0x406370
408692:	8b 75 f8             	mov    -0x8(%ebp),%esi
408695:	59                   	pop    %ecx
408696:	59                   	pop    %ecx
408697:	66 83 3b 00          	cmpw   $0x0,(%ebx)
40869b:	75 20                	jne    0x4086bd
40869d:	8d 46 02             	lea    0x2(%esi),%eax
4086a0:	89 45 f8             	mov    %eax,-0x8(%ebp)
4086a3:	3b c7                	cmp    %edi,%eax
4086a5:	77 23                	ja     0x4086ca
4086a7:	8d 43 08             	lea    0x8(%ebx),%eax
4086aa:	8b d7                	mov    %edi,%edx
4086ac:	6a 02                	push   $0x2
4086ae:	50                   	push   %eax
4086af:	2b d6                	sub    %esi,%edx
4086b1:	8b ce                	mov    %esi,%ecx