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
40c73b:	c2 14 00             	ret    $0x14
40c73e:	53                   	push   %ebx
40c73f:	56                   	push   %esi
40c740:	e8 0b 0d 01 00       	call   0x41d450
40c745:	8b 45 14             	mov    0x14(%ebp),%eax
40c748:	83 c4 0c             	add    $0xc,%esp
40c74b:	85 c0                	test   %eax,%eax
40c74d:	74 1e                	je     0x40c76d
40c74f:	8b 7d fc             	mov    -0x4(%ebp),%edi
40c752:	8b c8                	mov    %eax,%ecx
40c754:	8b 45 18             	mov    0x18(%ebp),%eax
40c757:	0f b7 d0             	movzwl %ax,%edx
40c75a:	8b c2                	mov    %edx,%eax
40c75c:	c1 e2 10             	shl    $0x10,%edx
40c75f:	0b c2                	or     %edx,%eax
40c761:	d1 e9                	shr    $1,%ecx
40c763:	f3 ab                	rep stos %eax,%es:(%edi)
40c765:	13 c9                	adc    %ecx,%ecx
40c767:	66 f3 ab             	rep stos %ax,%es:(%edi)
40c76a:	8b 7d 10             	mov    0x10(%ebp),%edi
40c76d:	8b 45 f4             	mov    -0xc(%ebp),%eax
40c770:	8d 0c 3f             	lea    (%edi,%edi,1),%ecx
40c773:	2b c7                	sub    %edi,%eax
40c775:	03 cb                	add    %ebx,%ecx
40c777:	8d 04 45 02 00 00 00 	lea    0x2(,%eax,2),%eax
40c77e:	50                   	push   %eax
40c77f:	51                   	push   %ecx
40c780:	8b 4d 14             	mov    0x14(%ebp),%ecx
40c783:	03 cf                	add    %edi,%ecx
40c785:	8d 0c 4e             	lea    (%esi,%ecx,2),%ecx
40c788:	51                   	push   %ecx
40c789:	e8 c2 0c 01 00       	call   0x41d450
40c78e:	83 c4 0c             	add    $0xc,%esp
40c791:	89 33                	mov    %esi,(%ebx)
40c793:	8b c3                	mov    %ebx,%eax
40c795:	5f                   	pop    %edi
40c796:	5e                   	pop    %esi
40c797:	5b                   	pop    %ebx
40c798:	8b e5                	mov    %ebp,%esp
40c79a:	5d                   	pop    %ebp
40c79b:	c2 14 00             	ret    $0x14
40c79e:	e8 5d 4a ff ff       	call   0x401200
40c7a3:	e8 f8 4a ff ff       	call   0x4012a0
40c7a8:	e8 d2 42 01 00       	call   0x420a7f
40c7ad:	cc                   	int3
40c7ae:	cc                   	int3
40c7af:	cc                   	int3
40c7b0:	55                   	push   %ebp
40c7b1:	8b ec                	mov    %esp,%ebp
40c7b3:	83 ec 10             	sub    $0x10,%esp
40c7b6:	53                   	push   %ebx
40c7b7:	8b d9                	mov    %ecx,%ebx
40c7b9:	b9 ff ff ff 7f       	mov    $0x7fffffff,%ecx
40c7be:	8b c1                	mov    %ecx,%eax
40c7c0:	56                   	push   %esi
40c7c1:	8b 75 08             	mov    0x8(%ebp),%esi
40c7c4:	8b 53 10             	mov    0x10(%ebx),%edx
40c7c7:	2b c2                	sub    %edx,%eax
40c7c9:	89 55 fc             	mov    %edx,-0x4(%ebp)
40c7cc:	57                   	push   %edi
40c7cd:	3b c6                	cmp    %esi,%eax
40c7cf:	0f 82 27 01 00 00    	jb     0x40c8fc
40c7d5:	8b 7b 14             	mov    0x14(%ebx),%edi
40c7d8:	8d 04 32             	lea    (%edx,%esi,1),%eax
40c7db:	8b f0                	mov    %eax,%esi
40c7dd:	89 45 f8             	mov    %eax,-0x8(%ebp)
40c7e0:	83 ce 0f             	or     $0xf,%esi
40c7e3:	89 7d f4             	mov    %edi,-0xc(%ebp)
40c7e6:	3b f1                	cmp    %ecx,%esi
40c7e8:	76 29                	jbe    0x40c813
40c7ea:	8b f1                	mov    %ecx,%esi
40c7ec:	b8 00 00 00 80       	mov    $0x80000000,%eax
40c7f1:	83 c0 23             	add    $0x23,%eax
40c7f4:	50                   	push   %eax
40c7f5:	e8 e4 f0 00 00       	call   0x41b8de
40c7fa:	83 c4 04             	add    $0x4,%esp
40c7fd:	85 c0                	test   %eax,%eax
40c7ff:	0f 84 01 01 00 00    	je     0x40c906
40c805:	8b 55 fc             	mov    -0x4(%ebp),%edx
40c808:	8d 78 23             	lea    0x23(%eax),%edi
40c80b:	83 e7 e0             	and    $0xffffffe0,%edi
40c80e:	89 47 fc             	mov    %eax,-0x4(%edi)
40c811:	eb 46                	jmp    0x40c859
40c813:	8b c7                	mov    %edi,%eax
40c815:	d1 e8                	shr    $1,%eax
40c817:	2b c8                	sub    %eax,%ecx
40c819:	3b f9                	cmp    %ecx,%edi
40c81b:	76 07                	jbe    0x40c824
40c81d:	be ff ff ff 7f       	mov    $0x7fffffff,%esi
40c822:	eb c8                	jmp    0x40c7ec
40c824:	03 c7                	add    %edi,%eax
40c826:	3b f0                	cmp    %eax,%esi
40c828:	0f 42 f0             	cmovb  %eax,%esi
40c82b:	8d 4e 01             	lea    0x1(%esi),%ecx
40c82e:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
40c834:	72 0d                	jb     0x40c843
40c836:	8d 41 23             	lea    0x23(%ecx),%eax
40c839:	3b c1                	cmp    %ecx,%eax
40c83b:	0f 86 c0 00 00 00    	jbe    0x40c901
40c841:	eb b1                	jmp    0x40c7f4
40c843:	85 c9                	test   %ecx,%ecx
40c845:	74 10                	je     0x40c857
40c847:	51                   	push   %ecx
40c848:	e8 91 f0 00 00       	call   0x41b8de
40c84d:	8b 55 fc             	mov    -0x4(%ebp),%edx
40c850:	83 c4 04             	add    $0x4,%esp
40c853:	8b f8                	mov    %eax,%edi
40c855:	eb 02                	jmp    0x40c859
40c857:	33 ff                	xor    %edi,%edi
40c859:	8b 45 f8             	mov    -0x8(%ebp),%eax
40c85c:	89 43 10             	mov    %eax,0x10(%ebx)
40c85f:	0f be 45 14          	movsbl 0x14(%ebp),%eax
40c863:	89 45 fc             	mov    %eax,-0x4(%ebp)
40c866:	8b 45 10             	mov    0x10(%ebp),%eax
40c869:	89 73 14             	mov    %esi,0x14(%ebx)
40c86c:	8d 34 17             	lea    (%edi,%edx,1),%esi
40c86f:	03 c6                	add    %esi,%eax
40c871:	89 75 f0             	mov    %esi,-0x10(%ebp)
40c874:	83 7d f4 10          	cmpl   $0x10,-0xc(%ebp)
40c878:	89 45 f8             	mov    %eax,-0x8(%ebp)
40c87b:	52                   	push   %edx
40c87c:	72 55                	jb     0x40c8d3
40c87e:	8b 33                	mov    (%ebx),%esi
40c880:	56                   	push   %esi
40c881:	57                   	push   %edi
40c882:	e8 c9 0b 01 00       	call   0x41d450
40c887:	ff 75 10             	push   0x10(%ebp)
40c88a:	ff 75 fc             	push   -0x4(%ebp)
40c88d:	ff 75 f0             	push   -0x10(%ebp)
40c890:	e8 4b 11 01 00       	call   0x41d9e0
40c895:	8b 45 f8             	mov    -0x8(%ebp),%eax
40c898:	83 c4 18             	add    $0x18,%esp
40c89b:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40c89e:	41                   	inc    %ecx
40c89f:	c6 00 00             	movb   $0x0,(%eax)
40c8a2:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
40c8a8:	72 12                	jb     0x40c8bc
40c8aa:	8b 56 fc             	mov    -0x4(%esi),%edx
40c8ad:	83 c1 23             	add    $0x23,%ecx
40c8b0:	2b f2                	sub    %edx,%esi
40c8b2:	8d 46 fc             	lea    -0x4(%esi),%eax
40c8b5:	83 f8 1f             	cmp    $0x1f,%eax
40c8b8:	77 4c                	ja     0x40c906
40c8ba:	8b f2                	mov    %edx,%esi
40c8bc:	51                   	push   %ecx
40c8bd:	56                   	push   %esi
40c8be:	e8 4b f0 00 00       	call   0x41b90e
40c8c3:	83 c4 08             	add    $0x8,%esp
40c8c6:	89 3b                	mov    %edi,(%ebx)
40c8c8:	8b c3                	mov    %ebx,%eax
40c8ca:	5f                   	pop    %edi
40c8cb:	5e                   	pop    %esi
40c8cc:	5b                   	pop    %ebx
40c8cd:	8b e5                	mov    %ebp,%esp
40c8cf:	5d                   	pop    %ebp
40c8d0:	c2 10 00             	ret    $0x10
40c8d3:	53                   	push   %ebx
40c8d4:	57                   	push   %edi
40c8d5:	e8 76 0b 01 00       	call   0x41d450
40c8da:	ff 75 10             	push   0x10(%ebp)
40c8dd:	ff 75 fc             	push   -0x4(%ebp)
40c8e0:	56                   	push   %esi
40c8e1:	e8 fa 10 01 00       	call   0x41d9e0
40c8e6:	8b 45 f8             	mov    -0x8(%ebp),%eax
40c8e9:	83 c4 18             	add    $0x18,%esp
40c8ec:	c6 00 00             	movb   $0x0,(%eax)
40c8ef:	8b c3                	mov    %ebx,%eax
40c8f1:	89 3b                	mov    %edi,(%ebx)
40c8f3:	5f                   	pop    %edi
40c8f4:	5e                   	pop    %esi
40c8f5:	5b                   	pop    %ebx
40c8f6:	8b e5                	mov    %ebp,%esp
40c8f8:	5d                   	pop    %ebp
40c8f9:	c2 10 00             	ret    $0x10
40c8fc:	e8 9f 49 ff ff       	call   0x4012a0