40c383:	85 c0                	test   %eax,%eax
40c385:	0f 84 fa 00 00 00    	je     0x40c485
40c38b:	8b 55 fc             	mov    -0x4(%ebp),%edx
40c38e:	8d 70 23             	lea    0x23(%eax),%esi
40c391:	83 e6 e0             	and    $0xffffffe0,%esi
40c394:	89 46 fc             	mov    %eax,-0x4(%esi)
40c397:	eb 46                	jmp    0x40c3df
40c399:	8b c6                	mov    %esi,%eax
40c39b:	d1 e8                	shr    $1,%eax
40c39d:	2b c8                	sub    %eax,%ecx
40c39f:	3b f1                	cmp    %ecx,%esi
40c3a1:	76 07                	jbe    0x40c3aa
40c3a3:	bf ff ff ff 7f       	mov    $0x7fffffff,%edi
40c3a8:	eb c8                	jmp    0x40c372
40c3aa:	03 c6                	add    %esi,%eax
40c3ac:	3b f8                	cmp    %eax,%edi
40c3ae:	0f 42 f8             	cmovb  %eax,%edi
40c3b1:	8d 4f 01             	lea    0x1(%edi),%ecx
40c3b4:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
40c3ba:	72 0d                	jb     0x40c3c9
40c3bc:	8d 41 23             	lea    0x23(%ecx),%eax
40c3bf:	3b c1                	cmp    %ecx,%eax
40c3c1:	0f 86 b9 00 00 00    	jbe    0x40c480
40c3c7:	eb b1                	jmp    0x40c37a
40c3c9:	85 c9                	test   %ecx,%ecx
40c3cb:	74 10                	je     0x40c3dd
40c3cd:	51                   	push   %ecx
40c3ce:	e8 0b f5 00 00       	call   0x41b8de
40c3d3:	8b 55 fc             	mov    -0x4(%ebp),%edx
40c3d6:	83 c4 04             	add    $0x4,%esp
40c3d9:	8b f0                	mov    %eax,%esi
40c3db:	eb 02                	jmp    0x40c3df
40c3dd:	33 f6                	xor    %esi,%esi
40c3df:	8b 45 f8             	mov    -0x8(%ebp),%eax
40c3e2:	89 43 10             	mov    %eax,0x10(%ebx)
40c3e5:	8b 45 14             	mov    0x14(%ebp),%eax
40c3e8:	89 7b 14             	mov    %edi,0x14(%ebx)
40c3eb:	8d 3c 16             	lea    (%esi,%edx,1),%edi
40c3ee:	03 c7                	add    %edi,%eax
40c3f0:	89 7d f8             	mov    %edi,-0x8(%ebp)
40c3f3:	83 7d f4 10          	cmpl   $0x10,-0xc(%ebp)
40c3f7:	89 45 fc             	mov    %eax,-0x4(%ebp)
40c3fa:	52                   	push   %edx
40c3fb:	72 55                	jb     0x40c452
40c3fd:	8b 3b                	mov    (%ebx),%edi
40c3ff:	57                   	push   %edi
40c400:	56                   	push   %esi
40c401:	e8 4a 10 01 00       	call   0x41d450
40c406:	ff 75 14             	push   0x14(%ebp)
40c409:	ff 75 f0             	push   -0x10(%ebp)
40c40c:	ff 75 f8             	push   -0x8(%ebp)
40c40f:	e8 3c 10 01 00       	call   0x41d450
40c414:	8b 45 fc             	mov    -0x4(%ebp),%eax
40c417:	83 c4 18             	add    $0x18,%esp
40c41a:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40c41d:	41                   	inc    %ecx
40c41e:	c6 00 00             	movb   $0x0,(%eax)
40c421:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
40c427:	72 12                	jb     0x40c43b
40c429:	8b 57 fc             	mov    -0x4(%edi),%edx
40c42c:	83 c1 23             	add    $0x23,%ecx
40c42f:	2b fa                	sub    %edx,%edi
40c431:	8d 47 fc             	lea    -0x4(%edi),%eax
40c434:	83 f8 1f             	cmp    $0x1f,%eax
40c437:	77 4c                	ja     0x40c485
40c439:	8b fa                	mov    %edx,%edi
40c43b:	51                   	push   %ecx
40c43c:	57                   	push   %edi
40c43d:	e8 cc f4 00 00       	call   0x41b90e
40c442:	83 c4 08             	add    $0x8,%esp
40c445:	89 33                	mov    %esi,(%ebx)
40c447:	8b c3                	mov    %ebx,%eax
40c449:	5f                   	pop    %edi
40c44a:	5e                   	pop    %esi
40c44b:	5b                   	pop    %ebx
40c44c:	8b e5                	mov    %ebp,%esp
40c44e:	5d                   	pop    %ebp
40c44f:	c2 10 00             	ret    $0x10
40c452:	53                   	push   %ebx
40c453:	56                   	push   %esi
40c454:	e8 f7 0f 01 00       	call   0x41d450
40c459:	ff 75 14             	push   0x14(%ebp)
40c45c:	ff 75 f0             	push   -0x10(%ebp)
40c45f:	57                   	push   %edi
40c460:	e8 eb 0f 01 00       	call   0x41d450
40c465:	8b 45 fc             	mov    -0x4(%ebp),%eax
40c468:	83 c4 18             	add    $0x18,%esp
40c46b:	c6 00 00             	movb   $0x0,(%eax)
40c46e:	8b c3                	mov    %ebx,%eax
40c470:	5f                   	pop    %edi
40c471:	89 33                	mov    %esi,(%ebx)
40c473:	5e                   	pop    %esi
40c474:	5b                   	pop    %ebx
40c475:	8b e5                	mov    %ebp,%esp
40c477:	5d                   	pop    %ebp
40c478:	c2 10 00             	ret    $0x10
40c47b:	e8 20 4e ff ff       	call   0x4012a0
40c480:	e8 7b 4d ff ff       	call   0x401200
40c485:	e8 f5 45 01 00       	call   0x420a7f
40c48a:	cc                   	int3
40c48b:	cc                   	int3
40c48c:	cc                   	int3
40c48d:	cc                   	int3
40c48e:	cc                   	int3
40c48f:	cc                   	int3
40c490:	55                   	push   %ebp
40c491:	8b ec                	mov    %esp,%ebp
40c493:	6a ff                	push   $0xffffffff
40c495:	68 25 dd 43 00       	push   $0x43dd25
40c49a:	64 a1 00 00 00 00    	mov    %fs:0x0,%eax
40c4a0:	50                   	push   %eax
40c4a1:	83 ec 18             	sub    $0x18,%esp
40c4a4:	a1 14 40 45 00       	mov    0x454014,%eax
40c4a9:	33 c5                	xor    %ebp,%eax
40c4ab:	89 45 f0             	mov    %eax,-0x10(%ebp)
40c4ae:	53                   	push   %ebx
40c4af:	56                   	push   %esi
40c4b0:	57                   	push   %edi
40c4b1:	50                   	push   %eax
40c4b2:	8d 45 f4             	lea    -0xc(%ebp),%eax
40c4b5:	64 a3 00 00 00 00    	mov    %eax,%fs:0x0
40c4bb:	8b 7d 08             	mov    0x8(%ebp),%edi
40c4be:	8d 4d e4             	lea    -0x1c(%ebp),%ecx
40c4c1:	6a 00                	push   $0x0
40c4c3:	89 7d e8             	mov    %edi,-0x18(%ebp)
40c4c6:	e8 85 eb 00 00       	call   0x41b050
40c4cb:	c7 45 fc 00 00 00 00 	movl   $0x0,-0x4(%ebp)
40c4d2:	8b 35 cc 53 45 00    	mov    0x4553cc,%esi
40c4d8:	8b 1d a4 61 45 00    	mov    0x4561a4,%ebx
40c4de:	89 5d e0             	mov    %ebx,-0x20(%ebp)
40c4e1:	85 f6                	test   %esi,%esi
40c4e3:	75 2f                	jne    0x40c514
40c4e5:	56                   	push   %esi
40c4e6:	8d 4d ec             	lea    -0x14(%ebp),%ecx
40c4e9:	e8 62 eb 00 00       	call   0x41b050
40c4ee:	39 35 cc 53 45 00    	cmp    %esi,0x4553cc
40c4f4:	75 10                	jne    0x40c506
40c4f6:	a1 b8 53 45 00       	mov    0x4553b8,%eax
40c4fb:	40                   	inc    %eax
40c4fc:	a3 b8 53 45 00       	mov    %eax,0x4553b8
40c501:	a3 cc 53 45 00       	mov    %eax,0x4553cc
40c506:	8d 4d ec             	lea    -0x14(%ebp),%ecx
40c509:	e8 9a eb 00 00       	call   0x41b0a8
40c50e:	8b 35 cc 53 45 00    	mov    0x4553cc,%esi
40c514:	8b 57 04             	mov    0x4(%edi),%edx
40c517:	8d 0c b5 00 00 00 00 	lea    0x0(,%esi,4),%ecx
40c51e:	89 4d ec             	mov    %ecx,-0x14(%ebp)
40c521:	3b 72 0c             	cmp    0xc(%edx),%esi
40c524:	73 0c                	jae    0x40c532
40c526:	8b 42 08             	mov    0x8(%edx),%eax
40c529:	8b 3c 01             	mov    (%ecx,%eax,1),%edi
40c52c:	85 ff                	test   %edi,%edi
40c52e:	75 6a                	jne    0x40c59a
40c530:	eb 05                	jmp    0x40c537
40c532:	33 ff                	xor    %edi,%edi
40c534:	89 4d ec             	mov    %ecx,-0x14(%ebp)
40c537:	80 7a 14 00          	cmpb   $0x0,0x14(%edx)
40c53b:	74 13                	je     0x40c550
40c53d:	e8 ec ec 00 00       	call   0x41b22e
40c542:	3b 70 0c             	cmp    0xc(%eax),%esi
40c545:	73 0d                	jae    0x40c554
40c547:	8b 40 08             	mov    0x8(%eax),%eax
40c54a:	8b 7d ec             	mov    -0x14(%ebp),%edi
40c54d:	8b 3c 07             	mov    (%edi,%eax,1),%edi
40c550:	85 ff                	test   %edi,%edi
40c552:	75 46                	jne    0x40c59a
40c554:	85 db                	test   %ebx,%ebx
40c556:	74 04                	je     0x40c55c
40c558:	8b fb                	mov    %ebx,%edi
40c55a:	eb 3e                	jmp    0x40c59a
40c55c:	ff 75 e8             	push   -0x18(%ebp)
40c55f:	8d 45 e0             	lea    -0x20(%ebp),%eax
40c562:	50                   	push   %eax
40c563:	e8 28 7f ff ff       	call   0x404490
40c568:	83 c4 08             	add    $0x8,%esp
40c56b:	83 f8 ff             	cmp    $0xffffffff,%eax
40c56e:	74 50                	je     0x40c5c0
40c570:	8b 7d e0             	mov    -0x20(%ebp),%edi
40c573:	89 7d e8             	mov    %edi,-0x18(%ebp)
40c576:	57                   	push   %edi
40c577:	c6 45 fc 01          	movb   $0x1,-0x4(%ebp)
40c57b:	e8 82 ec 00 00       	call   0x41b202
40c580:	8b 07                	mov    (%edi),%eax
40c582:	83 c4 04             	add    $0x4,%esp
40c585:	8b 70 04             	mov    0x4(%eax),%esi
40c588:	8b ce                	mov    %esi,%ecx
40c58a:	ff 15 3c f2 43 00    	call   *0x43f23c
40c590:	8b cf                	mov    %edi,%ecx
40c592:	ff d6                	call   *%esi
40c594:	89 3d a4 61 45 00    	mov    %edi,0x4561a4
40c59a:	8d 4d e4             	lea    -0x1c(%ebp),%ecx
40c59d:	e8 06 eb 00 00       	call   0x41b0a8
40c5a2:	8b c7                	mov    %edi,%eax
40c5a4:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40c5a7:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40c5ae:	59                   	pop    %ecx
40c5af:	5f                   	pop    %edi
40c5b0:	5e                   	pop    %esi
40c5b1:	5b                   	pop    %ebx
40c5b2:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40c5b5:	33 cd                	xor    %ebp,%ecx
40c5b7:	e8 14 f3 00 00       	call   0x41b8d0
40c5bc:	8b e5                	mov    %ebp,%esp
40c5be:	5d                   	pop    %ebp
40c5bf:	c3                   	ret
40c5c0:	e8 fb 7b ff ff       	call   0x4041c0
40c5c5:	cc                   	int3
40c5c6:	cc                   	int3
40c5c7:	cc                   	int3
40c5c8:	cc                   	int3
40c5c9:	cc                   	int3
40c5ca:	cc                   	int3
40c5cb:	cc                   	int3
40c5cc:	cc                   	int3
40c5cd:	cc                   	int3
40c5ce:	cc                   	int3
40c5cf:	cc                   	int3
40c5d0:	55                   	push   %ebp
40c5d1:	8b ec                	mov    %esp,%ebp
40c5d3:	83 ec 10             	sub    $0x10,%esp
40c5d6:	53                   	push   %ebx
40c5d7:	8b d9                	mov    %ecx,%ebx
40c5d9:	ba fe ff ff 7f       	mov    $0x7ffffffe,%edx
40c5de:	8b c2                	mov    %edx,%eax
40c5e0:	89 5d f0             	mov    %ebx,-0x10(%ebp)
40c5e3:	56                   	push   %esi
40c5e4:	8b 75 08             	mov    0x8(%ebp),%esi
40c5e7:	8b 4b 10             	mov    0x10(%ebx),%ecx
40c5ea:	2b c1                	sub    %ecx,%eax
40c5ec:	89 4d f4             	mov    %ecx,-0xc(%ebp)
40c5ef:	57                   	push   %edi
40c5f0:	3b c6                	cmp    %esi,%eax
40c5f2:	0f 82 ab 01 00 00    	jb     0x40c7a3
40c5f8:	8d 04 31             	lea    (%ecx,%esi,1),%eax
40c5fb:	8b 4b 14             	mov    0x14(%ebx),%ecx
40c5fe:	8b f8                	mov    %eax,%edi
40c600:	89 45 fc             	mov    %eax,-0x4(%ebp)
40c603:	83 cf 07             	or     $0x7,%edi
40c606:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40c609:	3b fa                	cmp    %edx,%edi
40c60b:	76 04                	jbe    0x40c611
40c60d:	8b fa                	mov    %edx,%edi
40c60f:	eb 18                	jmp    0x40c629
40c611:	8b c1                	mov    %ecx,%eax
40c613:	d1 e8                	shr    $1,%eax
40c615:	2b d0                	sub    %eax,%edx
40c617:	3b ca                	cmp    %edx,%ecx
40c619:	76 07                	jbe    0x40c622
40c61b:	bf fe ff ff 7f       	mov    $0x7ffffffe,%edi
40c620:	eb 07                	jmp    0x40c629
40c622:	03 c1                	add    %ecx,%eax
40c624:	3b f8                	cmp    %eax,%edi
40c626:	0f 42 f8             	cmovb  %eax,%edi
40c629:	33 c9                	xor    %ecx,%ecx
40c62b:	8b c7                	mov    %edi,%eax
40c62d:	83 c0 01             	add    $0x1,%eax
40c630:	0f 92 c1             	setb   %cl
40c633:	f7 d9                	neg    %ecx
40c635:	0b c8                	or     %eax,%ecx
40c637:	81 f9 ff ff ff 7f    	cmp    $0x7fffffff,%ecx
40c63d:	0f 87 5b 01 00 00    	ja     0x40c79e
40c643:	03 c9                	add    %ecx,%ecx
40c645:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
40c64b:	72 27                	jb     0x40c674
40c64d:	8d 41 23             	lea    0x23(%ecx),%eax
40c650:	3b c1                	cmp    %ecx,%eax
40c652:	0f 86 46 01 00 00    	jbe    0x40c79e
40c658:	50                   	push   %eax
40c659:	e8 80 f2 00 00       	call   0x41b8de
40c65e:	83 c4 04             	add    $0x4,%esp
40c661:	85 c0                	test   %eax,%eax
40c663:	0f 84 3f 01 00 00    	je     0x40c7a8
40c669:	8d 70 23             	lea    0x23(%eax),%esi
40c66c:	83 e6 e0             	and    $0xffffffe0,%esi
40c66f:	89 46 fc             	mov    %eax,-0x4(%esi)
40c672:	eb 13                	jmp    0x40c687
40c674:	85 c9                	test   %ecx,%ecx
40c676:	74 0d                	je     0x40c685
40c678:	51                   	push   %ecx
40c679:	e8 60 f2 00 00       	call   0x41b8de
40c67e:	83 c4 04             	add    $0x4,%esp
40c681:	8b f0                	mov    %eax,%esi
40c683:	eb 02                	jmp    0x40c687
40c685:	33 f6                	xor    %esi,%esi
40c687:	83 7d f8 08          	cmpl   $0x8,-0x8(%ebp)
40c68b:	8b 45 fc             	mov    -0x4(%ebp),%eax
40c68e:	89 7b 14             	mov    %edi,0x14(%ebx)
40c691:	8b 7d 10             	mov    0x10(%ebp),%edi
40c694:	89 43 10             	mov    %eax,0x10(%ebx)
40c697:	8d 04 3f             	lea    (%edi,%edi,1),%eax
40c69a:	8d 0c 30             	lea    (%eax,%esi,1),%ecx
40c69d:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40c6a0:	50                   	push   %eax
40c6a1:	0f 82 97 00 00 00    	jb     0x40c73e
40c6a7:	8b 1b                	mov    (%ebx),%ebx
40c6a9:	53                   	push   %ebx
40c6aa:	56                   	push   %esi
40c6ab:	e8 a0 0d 01 00       	call   0x41d450
40c6b0:	8b 45 14             	mov    0x14(%ebp),%eax
40c6b3:	83 c4 0c             	add    $0xc,%esp
40c6b6:	85 c0                	test   %eax,%eax
40c6b8:	74 1e                	je     0x40c6d8
40c6ba:	8b 7d fc             	mov    -0x4(%ebp),%edi
40c6bd:	8b c8                	mov    %eax,%ecx
40c6bf:	8b 45 18             	mov    0x18(%ebp),%eax
40c6c2:	0f b7 d0             	movzwl %ax,%edx
40c6c5:	8b c2                	mov    %edx,%eax
40c6c7:	c1 e2 10             	shl    $0x10,%edx
40c6ca:	0b c2                	or     %edx,%eax
40c6cc:	d1 e9                	shr    $1,%ecx
40c6ce:	f3 ab                	rep stos %eax,%es:(%edi)
40c6d0:	13 c9                	adc    %ecx,%ecx
40c6d2:	66 f3 ab             	rep stos %ax,%es:(%edi)
40c6d5:	8b 7d 10             	mov    0x10(%ebp),%edi
40c6d8:	8b 45 f4             	mov    -0xc(%ebp),%eax
40c6db:	2b c7                	sub    %edi,%eax
40c6dd:	8d 04 45 02 00 00 00 	lea    0x2(,%eax,2),%eax
40c6e4:	50                   	push   %eax
40c6e5:	8d 04 3f             	lea    (%edi,%edi,1),%eax
40c6e8:	03 c3                	add    %ebx,%eax
40c6ea:	50                   	push   %eax
40c6eb:	8b 45 14             	mov    0x14(%ebp),%eax
40c6ee:	03 c7                	add    %edi,%eax
40c6f0:	8d 04 46             	lea    (%esi,%eax,2),%eax
40c6f3:	50                   	push   %eax
40c6f4:	e8 57 0d 01 00       	call   0x41d450
40c6f9:	8b 45 f8             	mov    -0x8(%ebp),%eax
40c6fc:	83 c4 0c             	add    $0xc,%esp
40c6ff:	8d 0c 45 02 00 00 00 	lea    0x2(,%eax,2),%ecx
40c706:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
40c70c:	72 16                	jb     0x40c724
40c70e:	8b 53 fc             	mov    -0x4(%ebx),%edx
40c711:	83 c1 23             	add    $0x23,%ecx
40c714:	2b da                	sub    %edx,%ebx
40c716:	8d 43 fc             	lea    -0x4(%ebx),%eax
40c719:	83 f8 1f             	cmp    $0x1f,%eax
40c71c:	0f 87 86 00 00 00    	ja     0x40c7a8
40c722:	8b da                	mov    %edx,%ebx
40c724:	51                   	push   %ecx
40c725:	53                   	push   %ebx
40c726:	e8 e3 f1 00 00       	call   0x41b90e
40c72b:	8b 5d f0             	mov    -0x10(%ebp),%ebx
40c72e:	83 c4 08             	add    $0x8,%esp
40c731:	8b c3                	mov    %ebx,%eax
40c733:	5f                   	pop    %edi
40c734:	89 33                	mov    %esi,(%ebx)
40c736:	5e                   	pop    %esi
40c737:	5b                   	pop    %ebx
40c738:	8b e5                	mov    %ebp,%esp
40c73a:	5d                   	pop    %ebp