40d41b:	04 50                	add    $0x50,%al
40d41d:	88 07                	mov    %al,(%edi)
40d41f:	8b 03                	mov    (%ebx),%eax
40d421:	8b 53 04             	mov    0x4(%ebx),%edx
40d424:	e8 97 a8 00 00       	call   0x417cc0
40d429:	8b d8                	mov    %eax,%ebx
40d42b:	33 f6                	xor    %esi,%esi
40d42d:	81 e3 ff 07 00 00    	and    $0x7ff,%ebx
40d433:	8d 47 02             	lea    0x2(%edi),%eax
40d436:	2b 5d f0             	sub    -0x10(%ebp),%ebx
40d439:	89 45 f0             	mov    %eax,-0x10(%ebp)
40d43c:	1b f6                	sbb    %esi,%esi
40d43e:	78 0a                	js     0x40d44a
40d440:	7f 04                	jg     0x40d446
40d442:	85 db                	test   %ebx,%ebx
40d444:	72 04                	jb     0x40d44a
40d446:	b1 2b                	mov    $0x2b,%cl
40d448:	eb 0a                	jmp    0x40d454
40d44a:	f7 db                	neg    %ebx
40d44c:	6a 2d                	push   $0x2d
40d44e:	83 d6 00             	adc    $0x0,%esi
40d451:	f7 de                	neg    %esi
40d453:	59                   	pop    %ecx
40d454:	88 4f 01             	mov    %cl,0x1(%edi)
40d457:	8b f8                	mov    %eax,%edi
40d459:	6a 30                	push   $0x30
40d45b:	59                   	pop    %ecx
40d45c:	88 08                	mov    %cl,(%eax)
40d45e:	85 f6                	test   %esi,%esi
40d460:	0f 8c 96 00 00 00    	jl     0x40d4fc
40d466:	b8 e8 03 00 00       	mov    $0x3e8,%eax
40d46b:	7f 04                	jg     0x40d471
40d46d:	3b d8                	cmp    %eax,%ebx
40d46f:	72 2e                	jb     0x40d49f
40d471:	6a 00                	push   $0x0
40d473:	50                   	push   %eax
40d474:	56                   	push   %esi
40d475:	53                   	push   %ebx
40d476:	e8 b5 a6 00 00       	call   0x417b30
40d47b:	6a 30                	push   $0x30
40d47d:	59                   	pop    %ecx
40d47e:	6a 00                	push   $0x0
40d480:	02 c1                	add    %cl,%al
40d482:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40d485:	68 e8 03 00 00       	push   $0x3e8
40d48a:	56                   	push   %esi
40d48b:	53                   	push   %ebx
40d48c:	88 01                	mov    %al,(%ecx)
40d48e:	8d 79 01             	lea    0x1(%ecx),%edi
40d491:	e8 4a a7 00 00       	call   0x417be0
40d496:	8b d8                	mov    %eax,%ebx
40d498:	8b f2                	mov    %edx,%esi
40d49a:	3b 7d f0             	cmp    -0x10(%ebp),%edi
40d49d:	75 0b                	jne    0x40d4aa
40d49f:	85 f6                	test   %esi,%esi
40d4a1:	7c 59                	jl     0x40d4fc
40d4a3:	7f 05                	jg     0x40d4aa
40d4a5:	83 fb 64             	cmp    $0x64,%ebx
40d4a8:	72 27                	jb     0x40d4d1
40d4aa:	6a 00                	push   $0x0
40d4ac:	6a 64                	push   $0x64
40d4ae:	56                   	push   %esi
40d4af:	53                   	push   %ebx
40d4b0:	e8 7b a6 00 00       	call   0x417b30
40d4b5:	6a 30                	push   $0x30
40d4b7:	59                   	pop    %ecx
40d4b8:	6a 00                	push   $0x0
40d4ba:	6a 64                	push   $0x64
40d4bc:	02 c1                	add    %cl,%al
40d4be:	56                   	push   %esi
40d4bf:	88 07                	mov    %al,(%edi)
40d4c1:	47                   	inc    %edi
40d4c2:	53                   	push   %ebx
40d4c3:	e8 18 a7 00 00       	call   0x417be0
40d4c8:	8b d8                	mov    %eax,%ebx
40d4ca:	8b f2                	mov    %edx,%esi
40d4cc:	3b 7d f0             	cmp    -0x10(%ebp),%edi
40d4cf:	75 0b                	jne    0x40d4dc
40d4d1:	85 f6                	test   %esi,%esi
40d4d3:	7c 27                	jl     0x40d4fc
40d4d5:	7f 05                	jg     0x40d4dc
40d4d7:	83 fb 0a             	cmp    $0xa,%ebx
40d4da:	72 20                	jb     0x40d4fc
40d4dc:	6a 00                	push   $0x0
40d4de:	6a 0a                	push   $0xa
40d4e0:	56                   	push   %esi
40d4e1:	53                   	push   %ebx
40d4e2:	e8 49 a6 00 00       	call   0x417b30
40d4e7:	6a 30                	push   $0x30
40d4e9:	59                   	pop    %ecx
40d4ea:	6a 00                	push   $0x0
40d4ec:	6a 0a                	push   $0xa
40d4ee:	02 c1                	add    %cl,%al
40d4f0:	56                   	push   %esi
40d4f1:	88 07                	mov    %al,(%edi)
40d4f3:	47                   	inc    %edi
40d4f4:	53                   	push   %ebx
40d4f5:	e8 e6 a6 00 00       	call   0x417be0
40d4fa:	8b d8                	mov    %eax,%ebx
40d4fc:	6a 30                	push   $0x30
40d4fe:	58                   	pop    %eax
40d4ff:	02 d8                	add    %al,%bl
40d501:	88 1f                	mov    %bl,(%edi)
40d503:	c6 47 01 00          	movb   $0x0,0x1(%edi)
40d507:	33 c0                	xor    %eax,%eax
40d509:	5b                   	pop    %ebx
40d50a:	5f                   	pop    %edi
40d50b:	5e                   	pop    %esi
40d50c:	c9                   	leave
40d50d:	c3                   	ret
40d50e:	8b ff                	mov    %edi,%edi
40d510:	55                   	push   %ebp
40d511:	8b ec                	mov    %esp,%ebp
40d513:	83 ec 0c             	sub    $0xc,%esp
40d516:	8d 45 f4             	lea    -0xc(%ebp),%eax
40d519:	56                   	push   %esi
40d51a:	8b 75 1c             	mov    0x1c(%ebp),%esi
40d51d:	57                   	push   %edi
40d51e:	ff 75 18             	push   0x18(%ebp)
40d521:	ff 75 14             	push   0x14(%ebp)
40d524:	8d 7e 01             	lea    0x1(%esi),%edi
40d527:	50                   	push   %eax
40d528:	8b 45 08             	mov    0x8(%ebp),%eax
40d52b:	6a 01                	push   $0x1
40d52d:	57                   	push   %edi
40d52e:	ff 70 04             	push   0x4(%eax)
40d531:	ff 30                	push   (%eax)
40d533:	e8 03 5b 00 00       	call   0x41303b
40d538:	83 c9 ff             	or     $0xffffffff,%ecx
40d53b:	83 c4 1c             	add    $0x1c,%esp
40d53e:	8b d0                	mov    %eax,%edx
40d540:	39 4d 10             	cmp    %ecx,0x10(%ebp)
40d543:	74 17                	je     0x40d55c
40d545:	8b 4d 10             	mov    0x10(%ebp),%ecx
40d548:	33 c0                	xor    %eax,%eax
40d54a:	83 7d f4 2d          	cmpl   $0x2d,-0xc(%ebp)
40d54e:	0f 94 c0             	sete   %al
40d551:	2b c8                	sub    %eax,%ecx
40d553:	33 c0                	xor    %eax,%eax
40d555:	85 f6                	test   %esi,%esi
40d557:	0f 9f c0             	setg   %al
40d55a:	2b c8                	sub    %eax,%ecx
40d55c:	ff 75 2c             	push   0x2c(%ebp)
40d55f:	8d 45 f4             	lea    -0xc(%ebp),%eax
40d562:	ff 75 28             	push   0x28(%ebp)
40d565:	52                   	push   %edx
40d566:	50                   	push   %eax
40d567:	57                   	push   %edi
40d568:	8b 7d 0c             	mov    0xc(%ebp),%edi
40d56b:	51                   	push   %ecx
40d56c:	33 c9                	xor    %ecx,%ecx
40d56e:	83 7d f4 2d          	cmpl   $0x2d,-0xc(%ebp)
40d572:	0f 94 c1             	sete   %cl
40d575:	33 c0                	xor    %eax,%eax
40d577:	85 f6                	test   %esi,%esi
40d579:	0f 9f c0             	setg   %al
40d57c:	03 cf                	add    %edi,%ecx
40d57e:	03 c1                	add    %ecx,%eax
40d580:	50                   	push   %eax
40d581:	e8 09 55 00 00       	call   0x412a8f
40d586:	83 c4 1c             	add    $0x1c,%esp
40d589:	85 c0                	test   %eax,%eax
40d58b:	74 05                	je     0x40d592
40d58d:	c6 07 00             	movb   $0x0,(%edi)
40d590:	eb 1c                	jmp    0x40d5ae
40d592:	ff 75 2c             	push   0x2c(%ebp)
40d595:	8d 45 f4             	lea    -0xc(%ebp),%eax
40d598:	6a 00                	push   $0x0
40d59a:	50                   	push   %eax
40d59b:	ff 75 24             	push   0x24(%ebp)
40d59e:	ff 75 20             	push   0x20(%ebp)
40d5a1:	56                   	push   %esi
40d5a2:	ff 75 10             	push   0x10(%ebp)
40d5a5:	57                   	push   %edi
40d5a6:	e8 07 00 00 00       	call   0x40d5b2
40d5ab:	83 c4 20             	add    $0x20,%esp
40d5ae:	5f                   	pop    %edi
40d5af:	5e                   	pop    %esi
40d5b0:	c9                   	leave
40d5b1:	c3                   	ret
40d5b2:	8b ff                	mov    %edi,%edi
40d5b4:	55                   	push   %ebp
40d5b5:	8b ec                	mov    %esp,%ebp
40d5b7:	56                   	push   %esi
40d5b8:	57                   	push   %edi
40d5b9:	8b 7d 10             	mov    0x10(%ebp),%edi
40d5bc:	33 d2                	xor    %edx,%edx
40d5be:	8b c7                	mov    %edi,%eax
40d5c0:	85 ff                	test   %edi,%edi
40d5c2:	7f 02                	jg     0x40d5c6
40d5c4:	8b c2                	mov    %edx,%eax
40d5c6:	83 c0 09             	add    $0x9,%eax
40d5c9:	39 45 0c             	cmp    %eax,0xc(%ebp)
40d5cc:	77 21                	ja     0x40d5ef
40d5ce:	8b 4d 24             	mov    0x24(%ebp),%ecx
40d5d1:	6a 22                	push   $0x22
40d5d3:	5e                   	pop    %esi
40d5d4:	51                   	push   %ecx
40d5d5:	52                   	push   %edx
40d5d6:	52                   	push   %edx
40d5d7:	52                   	push   %edx
40d5d8:	52                   	push   %edx
40d5d9:	52                   	push   %edx
40d5da:	c6 41 1c 01          	movb   $0x1,0x1c(%ecx)
40d5de:	89 71 18             	mov    %esi,0x18(%ecx)
40d5e1:	e8 66 9e ff ff       	call   0x40744c
40d5e6:	83 c4 18             	add    $0x18,%esp
40d5e9:	8b c6                	mov    %esi,%eax
40d5eb:	5f                   	pop    %edi
40d5ec:	5e                   	pop    %esi
40d5ed:	5d                   	pop    %ebp
40d5ee:	c3                   	ret
40d5ef:	53                   	push   %ebx
40d5f0:	8b 5d 08             	mov    0x8(%ebp),%ebx
40d5f3:	38 55 20             	cmp    %dl,0x20(%ebp)
40d5f6:	74 22                	je     0x40d61a
40d5f8:	8b 4d 1c             	mov    0x1c(%ebp),%ecx
40d5fb:	33 c0                	xor    %eax,%eax
40d5fd:	85 ff                	test   %edi,%edi
40d5ff:	0f 9f c0             	setg   %al
40d602:	50                   	push   %eax
40d603:	33 c0                	xor    %eax,%eax
40d605:	83 39 2d             	cmpl   $0x2d,(%ecx)
40d608:	0f 94 c0             	sete   %al
40d60b:	03 c3                	add    %ebx,%eax
40d60d:	50                   	push   %eax
40d60e:	ff 75 0c             	push   0xc(%ebp)
40d611:	53                   	push   %ebx
40d612:	e8 d6 03 00 00       	call   0x40d9ed
40d617:	83 c4 10             	add    $0x10,%esp
40d61a:	8b 45 1c             	mov    0x1c(%ebp),%eax
40d61d:	8b f3                	mov    %ebx,%esi
40d61f:	83 38 2d             	cmpl   $0x2d,(%eax)
40d622:	75 06                	jne    0x40d62a
40d624:	c6 03 2d             	movb   $0x2d,(%ebx)
40d627:	8d 73 01             	lea    0x1(%ebx),%esi
40d62a:	85 ff                	test   %edi,%edi
40d62c:	7e 28                	jle    0x40d656
40d62e:	8a 46 01             	mov    0x1(%esi),%al
40d631:	88 06                	mov    %al,(%esi)
40d633:	46                   	inc    %esi
40d634:	8b 45 24             	mov    0x24(%ebp),%eax
40d637:	80 78 14 00          	cmpb   $0x0,0x14(%eax)
40d63b:	75 0a                	jne    0x40d647
40d63d:	8b c8                	mov    %eax,%ecx
40d63f:	e8 5c b8 ff ff       	call   0x408ea0
40d644:	8b 45 24             	mov    0x24(%ebp),%eax
40d647:	8b 40 0c             	mov    0xc(%eax),%eax
40d64a:	8b 80 88 00 00 00    	mov    0x88(%eax),%eax
40d650:	8b 00                	mov    (%eax),%eax
40d652:	8a 00                	mov    (%eax),%al
40d654:	88 06                	mov    %al,(%esi)
40d656:	0f b6 45 20          	movzbl 0x20(%ebp),%eax
40d65a:	83 f0 01             	xor    $0x1,%eax
40d65d:	03 c7                	add    %edi,%eax
40d65f:	03 f0                	add    %eax,%esi
40d661:	83 c8 ff             	or     $0xffffffff,%eax
40d664:	39 45 0c             	cmp    %eax,0xc(%ebp)
40d667:	74 07                	je     0x40d670
40d669:	8b c3                	mov    %ebx,%eax
40d66b:	2b c6                	sub    %esi,%eax
40d66d:	03 45 0c             	add    0xc(%ebp),%eax
40d670:	68 a8 af 41 00       	push   $0x41afa8
40d675:	50                   	push   %eax
40d676:	56                   	push   %esi
40d677:	e8 f2 ce ff ff       	call   0x40a56e
40d67c:	83 c4 0c             	add    $0xc,%esp
40d67f:	85 c0                	test   %eax,%eax
40d681:	75 75                	jne    0x40d6f8
40d683:	8d 7e 02             	lea    0x2(%esi),%edi
40d686:	38 45 14             	cmp    %al,0x14(%ebp)
40d689:	74 03                	je     0x40d68e
40d68b:	c6 06 45             	movb   $0x45,(%esi)
40d68e:	8b 4d 1c             	mov    0x1c(%ebp),%ecx
40d691:	8b 41 08             	mov    0x8(%ecx),%eax
40d694:	80 38 30             	cmpb   $0x30,(%eax)
40d697:	74 3d                	je     0x40d6d6
40d699:	8b 49 04             	mov    0x4(%ecx),%ecx
40d69c:	83 e9 01             	sub    $0x1,%ecx
40d69f:	79 06                	jns    0x40d6a7
40d6a1:	f7 d9                	neg    %ecx
40d6a3:	c6 46 01 2d          	movb   $0x2d,0x1(%esi)
40d6a7:	6a 64                	push   $0x64
40d6a9:	5b                   	pop    %ebx
40d6aa:	3b cb                	cmp    %ebx,%ecx
40d6ac:	7c 0f                	jl     0x40d6bd
40d6ae:	8b c1                	mov    %ecx,%eax
40d6b0:	99                   	cltd
40d6b1:	f7 fb                	idiv   %ebx
40d6b3:	00 46 02             	add    %al,0x2(%esi)
40d6b6:	8b c1                	mov    %ecx,%eax
40d6b8:	99                   	cltd
40d6b9:	f7 fb                	idiv   %ebx
40d6bb:	8b ca                	mov    %edx,%ecx
40d6bd:	6a 0a                	push   $0xa
40d6bf:	5b                   	pop    %ebx
40d6c0:	3b cb                	cmp    %ebx,%ecx
40d6c2:	7c 0f                	jl     0x40d6d3
40d6c4:	8b c1                	mov    %ecx,%eax
40d6c6:	99                   	cltd
40d6c7:	f7 fb                	idiv   %ebx
40d6c9:	00 46 03             	add    %al,0x3(%esi)
40d6cc:	8b c1                	mov    %ecx,%eax
40d6ce:	99                   	cltd
40d6cf:	f7 fb                	idiv   %ebx
40d6d1:	8b ca                	mov    %edx,%ecx
40d6d3:	00 4e 04             	add    %cl,0x4(%esi)
40d6d6:	83 7d 18 02          	cmpl   $0x2,0x18(%ebp)
40d6da:	5b                   	pop    %ebx
40d6db:	75 14                	jne    0x40d6f1
40d6dd:	80 3f 30             	cmpb   $0x30,(%edi)
40d6e0:	75 0f                	jne    0x40d6f1
40d6e2:	6a 03                	push   $0x3
40d6e4:	8d 47 01             	lea    0x1(%edi),%eax
40d6e7:	50                   	push   %eax
40d6e8:	57                   	push   %edi
40d6e9:	e8 42 6c ff ff       	call   0x404330
40d6ee:	83 c4 0c             	add    $0xc,%esp
40d6f1:	33 c0                	xor    %eax,%eax
40d6f3:	e9 f3 fe ff ff       	jmp    0x40d5eb
40d6f8:	33 c0                	xor    %eax,%eax
40d6fa:	50                   	push   %eax
40d6fb:	50                   	push   %eax
40d6fc:	50                   	push   %eax
40d6fd:	50                   	push   %eax
40d6fe:	50                   	push   %eax
40d6ff:	e8 f2 9d ff ff       	call   0x4074f6
40d704:	cc                   	int3
40d705:	8b ff                	mov    %edi,%edi
40d707:	55                   	push   %ebp
40d708:	8b ec                	mov    %esp,%ebp
40d70a:	83 ec 0c             	sub    $0xc,%esp
40d70d:	56                   	push   %esi
40d70e:	57                   	push   %edi
40d70f:	ff 75 18             	push   0x18(%ebp)
40d712:	33 c0                	xor    %eax,%eax
40d714:	8d 7d f4             	lea    -0xc(%ebp),%edi
40d717:	ff 75 14             	push   0x14(%ebp)
40d71a:	ab                   	stos   %eax,%es:(%edi)
40d71b:	ab                   	stos   %eax,%es:(%edi)
40d71c:	ab                   	stos   %eax,%es:(%edi)
40d71d:	8d 45 f4             	lea    -0xc(%ebp),%eax
40d720:	8b 7d 1c             	mov    0x1c(%ebp),%edi
40d723:	50                   	push   %eax
40d724:	8b 45 08             	mov    0x8(%ebp),%eax
40d727:	6a 00                	push   $0x0
40d729:	57                   	push   %edi
40d72a:	ff 70 04             	push   0x4(%eax)
40d72d:	ff 30                	push   (%eax)
40d72f:	e8 07 59 00 00       	call   0x41303b