40859a:	57                   	push   %edi
40859b:	8b f9                	mov    %ecx,%edi
40859d:	33 f6                	xor    %esi,%esi
40859f:	8b 4d 08             	mov    0x8(%ebp),%ecx
4085a2:	89 77 04             	mov    %esi,0x4(%edi)
4085a5:	c7 47 08 01 00 00 00 	movl   $0x1,0x8(%edi)
4085ac:	e8 c9 ff ff ff       	call   0x40857a
4085b1:	8b 4d 0c             	mov    0xc(%ebp),%ecx
4085b4:	8b d8                	mov    %eax,%ebx
4085b6:	89 5d fc             	mov    %ebx,-0x4(%ebp)
4085b9:	e8 bc ff ff ff       	call   0x40857a
4085be:	03 d8                	add    %eax,%ebx
4085c0:	89 45 f8             	mov    %eax,-0x8(%ebp)
4085c3:	3b 5d fc             	cmp    -0x4(%ebp),%ebx
4085c6:	0f 82 82 00 00 00    	jb     0x40864e
4085cc:	6a 02                	push   $0x2
4085ce:	8b c3                	mov    %ebx,%eax
4085d0:	59                   	pop    %ecx
4085d1:	f7 e1                	mul    %ecx
4085d3:	3b d6                	cmp    %esi,%edx
4085d5:	77 77                	ja     0x40864e
4085d7:	72 05                	jb     0x4085de
4085d9:	83 f8 ff             	cmp    $0xffffffff,%eax
4085dc:	77 70                	ja     0x40864e
4085de:	50                   	push   %eax
4085df:	56                   	push   %esi
4085e0:	ff 15 20 21 41 00    	call   *0x412120
4085e6:	8b d0                	mov    %eax,%edx
4085e8:	89 17                	mov    %edx,(%edi)
4085ea:	85 d2                	test   %edx,%edx
4085ec:	75 06                	jne    0x4085f4
4085ee:	85 db                	test   %ebx,%ebx
4085f0:	75 5c                	jne    0x40864e
4085f2:	eb 51                	jmp    0x408645
4085f4:	8b 45 08             	mov    0x8(%ebp),%eax
4085f7:	8b 08                	mov    (%eax),%ecx
4085f9:	85 c9                	test   %ecx,%ecx
4085fb:	74 04                	je     0x408601
4085fd:	8b 09                	mov    (%ecx),%ecx
4085ff:	eb 02                	jmp    0x408603
408601:	8b ce                	mov    %esi,%ecx
408603:	8b 5d fc             	mov    -0x4(%ebp),%ebx
408606:	85 c9                	test   %ecx,%ecx
408608:	74 12                	je     0x40861c
40860a:	8d 04 5d 02 00 00 00 	lea    0x2(,%ebx,2),%eax
408611:	50                   	push   %eax
408612:	51                   	push   %ecx
408613:	52                   	push   %edx
408614:	e8 a5 6d 00 00       	call   0x40f3be
408619:	83 c4 0c             	add    $0xc,%esp
40861c:	8b 45 0c             	mov    0xc(%ebp),%eax
40861f:	8b 00                	mov    (%eax),%eax
408621:	85 c0                	test   %eax,%eax
408623:	74 02                	je     0x408627
408625:	8b 30                	mov    (%eax),%esi
408627:	85 f6                	test   %esi,%esi
408629:	74 1a                	je     0x408645
40862b:	8b 45 f8             	mov    -0x8(%ebp),%eax
40862e:	8d 04 45 02 00 00 00 	lea    0x2(,%eax,2),%eax
408635:	50                   	push   %eax
408636:	8b 07                	mov    (%edi),%eax
408638:	56                   	push   %esi
408639:	8d 04 58             	lea    (%eax,%ebx,2),%eax
40863c:	50                   	push   %eax
40863d:	e8 7c 6d 00 00       	call   0x40f3be
408642:	83 c4 0c             	add    $0xc,%esp
408645:	8b c7                	mov    %edi,%eax
408647:	5f                   	pop    %edi
408648:	5e                   	pop    %esi
408649:	5b                   	pop    %ebx
40864a:	c9                   	leave
40864b:	c2 08 00             	ret    $0x8
40864e:	b9 0e 00 07 80       	mov    $0x8007000e,%ecx
408653:	e8 c9 00 00 00       	call   0x408721
408658:	cc                   	int3
408659:	6a 04                	push   $0x4
40865b:	b8 6c f8 40 00       	mov    $0x40f86c,%eax
408660:	e8 b7 6c 00 00       	call   0x40f31c
408665:	8b f1                	mov    %ecx,%esi
408667:	6a 0c                	push   $0xc
408669:	e8 64 63 00 00       	call   0x40e9d2
40866e:	59                   	pop    %ecx
40866f:	89 45 f0             	mov    %eax,-0x10(%ebp)
408672:	33 ff                	xor    %edi,%edi
408674:	89 7d fc             	mov    %edi,-0x4(%ebp)
408677:	85 c0                	test   %eax,%eax
408679:	74 0d                	je     0x408688
40867b:	ff 75 08             	push   0x8(%ebp)
40867e:	8b c8                	mov    %eax,%ecx
408680:	56                   	push   %esi
408681:	e8 0b ff ff ff       	call   0x408591
408686:	8b f8                	mov    %eax,%edi
408688:	83 4d fc ff          	orl    $0xffffffff,-0x4(%ebp)
40868c:	8b ce                	mov    %esi,%ecx
40868e:	e8 bc d2 ff ff       	call   0x40594f
408693:	89 3e                	mov    %edi,(%esi)
408695:	8b c6                	mov    %esi,%eax
408697:	e8 5d 6c 00 00       	call   0x40f2f9
40869c:	c2 04 00             	ret    $0x4
40869f:	6a 04                	push   $0x4
4086a1:	b8 5f fc 40 00       	mov    $0x40fc5f,%eax
4086a6:	e8 71 6c 00 00       	call   0x40f31c
4086ab:	33 d2                	xor    %edx,%edx
4086ad:	89 55 fc             	mov    %edx,-0x4(%ebp)
4086b0:	89 55 f0             	mov    %edx,-0x10(%ebp)
4086b3:	8b 75 08             	mov    0x8(%ebp),%esi
4086b6:	8b 01                	mov    (%ecx),%eax
4086b8:	89 06                	mov    %eax,(%esi)
4086ba:	85 c0                	test   %eax,%eax
4086bc:	74 04                	je     0x4086c2
4086be:	f0 ff 40 08          	lock incl 0x8(%eax)
4086c2:	89 55 fc             	mov    %edx,-0x4(%ebp)
4086c5:	8b ce                	mov    %esi,%ecx
4086c7:	ff 75 0c             	push   0xc(%ebp)
4086ca:	c7 45 f0 01 00 00 00 	movl   $0x1,-0x10(%ebp)
4086d1:	e8 83 ff ff ff       	call   0x408659
4086d6:	8b c6                	mov    %esi,%eax
4086d8:	e8 1c 6c 00 00       	call   0x40f2f9
4086dd:	c2 08 00             	ret    $0x8
4086e0:	6a 04                	push   $0x4
4086e2:	b8 6c f8 40 00       	mov    $0x40f86c,%eax
4086e7:	e8 30 6c 00 00       	call   0x40f31c
4086ec:	8b f1                	mov    %ecx,%esi
4086ee:	e8 5c d2 ff ff       	call   0x40594f
4086f3:	6a 0c                	push   $0xc
4086f5:	e8 d8 62 00 00       	call   0x40e9d2
4086fa:	59                   	pop    %ecx
4086fb:	8b c8                	mov    %eax,%ecx
4086fd:	89 4d f0             	mov    %ecx,-0x10(%ebp)
408700:	33 c0                	xor    %eax,%eax
408702:	89 45 fc             	mov    %eax,-0x4(%ebp)
408705:	85 c9                	test   %ecx,%ecx
408707:	74 08                	je     0x408711
408709:	ff 75 08             	push   0x8(%ebp)
40870c:	e8 8f d2 ff ff       	call   0x4059a0
408711:	83 4d fc ff          	orl    $0xffffffff,-0x4(%ebp)
408715:	89 06                	mov    %eax,(%esi)
408717:	8b c6                	mov    %esi,%eax
408719:	e8 db 6b 00 00       	call   0x40f2f9
40871e:	c2 04 00             	ret    $0x4
408721:	e9 cf 00 00 00       	jmp    0x4087f5
408726:	8b ff                	mov    %edi,%edi
408728:	55                   	push   %ebp
408729:	8b ec                	mov    %esp,%ebp
40872b:	8b 45 08             	mov    0x8(%ebp),%eax
40872e:	83 61 08 00          	andl   $0x0,0x8(%ecx)
408732:	83 61 0c 00          	andl   $0x0,0xc(%ecx)
408736:	89 41 04             	mov    %eax,0x4(%ecx)
408739:	8b c1                	mov    %ecx,%eax
40873b:	c7 01 0c 10 40 00    	movl   $0x40100c,(%ecx)
408741:	5d                   	pop    %ebp
408742:	c2 0c 00             	ret    $0xc
408745:	cc                   	int3
408746:	cc                   	int3
408747:	cc                   	int3
408748:	cc                   	int3
408749:	cc                   	int3
40874a:	cc                   	int3
40874b:	cc                   	int3
40874c:	cc                   	int3
40874d:	cc                   	int3
40874e:	cc                   	int3
40874f:	cc                   	int3
408750:	8b ff                	mov    %edi,%edi
408752:	55                   	push   %ebp
408753:	8b ec                	mov    %esp,%ebp
408755:	56                   	push   %esi
408756:	8b f1                	mov    %ecx,%esi
408758:	e8 63 00 00 00       	call   0x4087c0
40875d:	f6 45 08 01          	testb  $0x1,0x8(%ebp)
408761:	74 07                	je     0x40876a
408763:	56                   	push   %esi
408764:	e8 64 62 00 00       	call   0x40e9cd
408769:	59                   	pop    %ecx
40876a:	8b c6                	mov    %esi,%eax
40876c:	5e                   	pop    %esi
40876d:	5d                   	pop    %ebp
40876e:	c2 04 00             	ret    $0x4
408771:	cc                   	int3
408772:	cc                   	int3
408773:	cc                   	int3
408774:	cc                   	int3
408775:	cc                   	int3
408776:	cc                   	int3
408777:	cc                   	int3
408778:	cc                   	int3
408779:	cc                   	int3
40877a:	cc                   	int3
40877b:	cc                   	int3
40877c:	cc                   	int3
40877d:	cc                   	int3
40877e:	cc                   	int3
40877f:	cc                   	int3
408780:	8b ff                	mov    %edi,%edi
408782:	55                   	push   %ebp
408783:	8b ec                	mov    %esp,%ebp
408785:	8b 55 08             	mov    0x8(%ebp),%edx
408788:	57                   	push   %edi
408789:	8b f9                	mov    %ecx,%edi
40878b:	c7 07 0c 10 40 00    	movl   $0x40100c,(%edi)
408791:	8b 42 04             	mov    0x4(%edx),%eax
408794:	89 47 04             	mov    %eax,0x4(%edi)
408797:	8b 4a 08             	mov    0x8(%edx),%ecx
40879a:	83 67 0c 00          	andl   $0x0,0xc(%edi)
40879e:	89 4f 08             	mov    %ecx,0x8(%edi)
4087a1:	85 c9                	test   %ecx,%ecx
4087a3:	74 12                	je     0x4087b7
4087a5:	8b 01                	mov    (%ecx),%eax
4087a7:	56                   	push   %esi
4087a8:	51                   	push   %ecx
4087a9:	8b 70 04             	mov    0x4(%eax),%esi
4087ac:	8b ce                	mov    %esi,%ecx
4087ae:	ff 15 20 23 41 00    	call   *0x412320
4087b4:	ff d6                	call   *%esi
4087b6:	5e                   	pop    %esi
4087b7:	8b c7                	mov    %edi,%eax
4087b9:	5f                   	pop    %edi
4087ba:	5d                   	pop    %ebp
4087bb:	c2 04 00             	ret    $0x4
4087be:	cc                   	int3
4087bf:	cc                   	int3
4087c0:	8b ff                	mov    %edi,%edi
4087c2:	57                   	push   %edi
4087c3:	8b f9                	mov    %ecx,%edi
4087c5:	8b 4f 08             	mov    0x8(%edi),%ecx
4087c8:	c7 07 0c 10 40 00    	movl   $0x40100c,(%edi)
4087ce:	85 c9                	test   %ecx,%ecx
4087d0:	74 12                	je     0x4087e4
4087d2:	8b 01                	mov    (%ecx),%eax
4087d4:	56                   	push   %esi
4087d5:	51                   	push   %ecx
4087d6:	8b 70 08             	mov    0x8(%eax),%esi
4087d9:	8b ce                	mov    %esi,%ecx
4087db:	ff 15 20 23 41 00    	call   *0x412320
4087e1:	ff d6                	call   *%esi
4087e3:	5e                   	pop    %esi
4087e4:	83 7f 0c 00          	cmpl   $0x0,0xc(%edi)
4087e8:	74 09                	je     0x4087f3
4087ea:	ff 77 0c             	push   0xc(%edi)
4087ed:	ff 15 ec 20 41 00    	call   *0x4120ec
4087f3:	5f                   	pop    %edi
4087f4:	c3                   	ret
4087f5:	8b ff                	mov    %edi,%edi
4087f7:	55                   	push   %ebp
4087f8:	8b ec                	mov    %esp,%ebp
4087fa:	83 ec 10             	sub    $0x10,%esp
4087fd:	51                   	push   %ecx
4087fe:	51                   	push   %ecx
4087ff:	51                   	push   %ecx
408800:	8d 4d f0             	lea    -0x10(%ebp),%ecx
408803:	e8 1e ff ff ff       	call   0x408726
408808:	68 5c 0e 41 00       	push   $0x410e5c
40880d:	8b c1                	mov    %ecx,%eax
40880f:	50                   	push   %eax
408810:	e8 de 6a 00 00       	call   0x40f2f3
408815:	cc                   	int3
408816:	8b ff                	mov    %edi,%edi
408818:	55                   	push   %ebp
408819:	8b ec                	mov    %esp,%ebp
40881b:	e8 4a 02 00 00       	call   0x408a6a
408820:	85 c0                	test   %eax,%eax
408822:	74 26                	je     0x40884a
408824:	39 51 04             	cmp    %edx,0x4(%ecx)
408827:	76 21                	jbe    0x40884a
408829:	8b 41 08             	mov    0x8(%ecx),%eax
40882c:	56                   	push   %esi
40882d:	33 f6                	xor    %esi,%esi
40882f:	83 fa 01             	cmp    $0x1,%edx
408832:	72 0a                	jb     0x40883e
408834:	8b f0                	mov    %eax,%esi
408836:	8b 40 10             	mov    0x10(%eax),%eax
408839:	83 ea 01             	sub    $0x1,%edx
40883c:	75 f6                	jne    0x408834
40883e:	8b 4d 08             	mov    0x8(%ebp),%ecx
408841:	85 c9                	test   %ecx,%ecx
408843:	74 02                	je     0x408847
408845:	89 31                	mov    %esi,(%ecx)
408847:	5e                   	pop    %esi
408848:	eb 02                	jmp    0x40884c
40884a:	33 c0                	xor    %eax,%eax
40884c:	5d                   	pop    %ebp
40884d:	c2 04 00             	ret    $0x4
408850:	8b ff                	mov    %edi,%edi
408852:	55                   	push   %ebp
408853:	8b ec                	mov    %esp,%ebp
408855:	56                   	push   %esi
408856:	57                   	push   %edi
408857:	8b fa                	mov    %edx,%edi
408859:	8b f1                	mov    %ecx,%esi
40885b:	e8 0a 02 00 00       	call   0x408a6a
408860:	85 c0                	test   %eax,%eax
408862:	74 4a                	je     0x4088ae
408864:	83 7e 04 ff          	cmpl   $0xffffffff,0x4(%esi)
408868:	74 44                	je     0x4088ae
40886a:	6a 14                	push   $0x14
40886c:	59                   	pop    %ecx
40886d:	e8 f8 23 00 00       	call   0x40ac6a
408872:	8b c8                	mov    %eax,%ecx
408874:	85 c9                	test   %ecx,%ecx
408876:	74 36                	je     0x4088ae
408878:	8b 45 08             	mov    0x8(%ebp),%eax
40887b:	83 61 10 00          	andl   $0x0,0x10(%ecx)
40887f:	89 41 08             	mov    %eax,0x8(%ecx)
408882:	8b 45 0c             	mov    0xc(%ebp),%eax
408885:	89 79 04             	mov    %edi,0x4(%ecx)
408888:	89 41 0c             	mov    %eax,0xc(%ecx)
40888b:	c7 01 63 00 00 00    	movl   $0x63,(%ecx)
408891:	ff 46 04             	incl   0x4(%esi)
408894:	83 7e 08 00          	cmpl   $0x0,0x8(%esi)
408898:	75 05                	jne    0x40889f
40889a:	89 4e 08             	mov    %ecx,0x8(%esi)
40889d:	eb 06                	jmp    0x4088a5
40889f:	8b 46 0c             	mov    0xc(%esi),%eax
4088a2:	89 48 10             	mov    %ecx,0x10(%eax)
4088a5:	89 4e 0c             	mov    %ecx,0xc(%esi)
4088a8:	8b 46 04             	mov    0x4(%esi),%eax
4088ab:	48                   	dec    %eax
4088ac:	eb 03                	jmp    0x4088b1
4088ae:	83 c8 ff             	or     $0xffffffff,%eax
4088b1:	5f                   	pop    %edi
4088b2:	5e                   	pop    %esi
4088b3:	5d                   	pop    %ebp
4088b4:	c2 08 00             	ret    $0x8
4088b7:	85 c9                	test   %ecx,%ecx
4088b9:	74 65                	je     0x408920
4088bb:	8b 41 04             	mov    0x4(%ecx),%eax
4088be:	ba 00 00 07 00       	mov    $0x70000,%edx
4088c3:	3b c2                	cmp    %edx,%eax
4088c5:	77 26                	ja     0x4088ed
4088c7:	74 40                	je     0x408909
4088c9:	3d 00 00 02 00       	cmp    $0x20000,%eax
4088ce:	74 39                	je     0x408909
4088d0:	3d 00 00 03 00       	cmp    $0x30000,%eax
4088d5:	74 32                	je     0x408909
4088d7:	3d 00 00 04 00       	cmp    $0x40000,%eax
4088dc:	74 2b                	je     0x408909
4088de:	3d 00 00 05 00       	cmp    $0x50000,%eax
4088e3:	74 24                	je     0x408909
4088e5:	3d 00 00 06 00       	cmp    $0x60000,%eax
4088ea:	74 1d                	je     0x408909
4088ec:	c3                   	ret
4088ed:	3d 00 00 08 00       	cmp    $0x80000,%eax
4088f2:	74 1d                	je     0x408911
4088f4:	3d 00 00 09 00       	cmp    $0x90000,%eax
4088f9:	74 0e                	je     0x408909
4088fb:	3d 00 00 0a 00       	cmp    $0xa0000,%eax
408900:	74 07                	je     0x408909
408902:	3d 00 00 0b 00       	cmp    $0xb0000,%eax
408907:	75 17                	jne    0x408920
408909:	83 c1 0c             	add    $0xc,%ecx