40856b:	8b 45 f4             	mov    -0xc(%ebp),%eax
40856e:	c7 05 50 70 41 00 01 	movl   $0x1,0x417050
408575:	00 00 00
408578:	8b 40 08             	mov    0x8(%eax),%eax
40857b:	80 7d fc 00          	cmpb   $0x0,-0x4(%ebp)
40857f:	74 0a                	je     0x40858b
408581:	8b 4d f0             	mov    -0x10(%ebp),%ecx
408584:	83 a1 50 03 00 00 fd 	andl   $0xfffffffd,0x350(%ecx)
40858b:	c9                   	leave
40858c:	c3                   	ret
40858d:	8b ff                	mov    %edi,%edi
40858f:	55                   	push   %ebp
408590:	8b ec                	mov    %esp,%ebp
408592:	53                   	push   %ebx
408593:	8b 5d 08             	mov    0x8(%ebp),%ebx
408596:	56                   	push   %esi
408597:	57                   	push   %edi
408598:	68 01 01 00 00       	push   $0x101
40859d:	33 f6                	xor    %esi,%esi
40859f:	8d 43 18             	lea    0x18(%ebx),%eax
4085a2:	56                   	push   %esi
4085a3:	50                   	push   %eax
4085a4:	e8 37 ba ff ff       	call   0x403fe0
4085a9:	83 c4 0c             	add    $0xc,%esp
4085ac:	89 73 04             	mov    %esi,0x4(%ebx)
4085af:	89 73 08             	mov    %esi,0x8(%ebx)
4085b2:	8d 7b 0c             	lea    0xc(%ebx),%edi
4085b5:	89 b3 1c 02 00 00    	mov    %esi,0x21c(%ebx)
4085bb:	33 c0                	xor    %eax,%eax
4085bd:	ab                   	stos   %eax,%es:(%edi)
4085be:	8b ce                	mov    %esi,%ecx
4085c0:	ab                   	stos   %eax,%es:(%edi)
4085c1:	ab                   	stos   %eax,%es:(%edi)
4085c2:	8a 81 40 61 41 00    	mov    0x416140(%ecx),%al
4085c8:	88 44 0b 18          	mov    %al,0x18(%ebx,%ecx,1)
4085cc:	41                   	inc    %ecx
4085cd:	81 f9 01 01 00 00    	cmp    $0x101,%ecx
4085d3:	7c ed                	jl     0x4085c2
4085d5:	8a 86 41 62 41 00    	mov    0x416241(%esi),%al
4085db:	88 84 33 19 01 00 00 	mov    %al,0x119(%ebx,%esi,1)
4085e2:	46                   	inc    %esi
4085e3:	81 fe 00 01 00 00    	cmp    $0x100,%esi
4085e9:	7c ea                	jl     0x4085d5
4085eb:	5f                   	pop    %edi
4085ec:	5e                   	pop    %esi
4085ed:	5b                   	pop    %ebx
4085ee:	5d                   	pop    %ebp
4085ef:	c3                   	ret
4085f0:	8b ff                	mov    %edi,%edi
4085f2:	55                   	push   %ebp
4085f3:	8b ec                	mov    %esp,%ebp
4085f5:	81 ec 20 07 00 00    	sub    $0x720,%esp
4085fb:	a1 14 60 41 00       	mov    0x416014,%eax
408600:	33 c5                	xor    %ebp,%eax
408602:	89 45 fc             	mov    %eax,-0x4(%ebp)
408605:	53                   	push   %ebx
408606:	56                   	push   %esi
408607:	57                   	push   %edi
408608:	8b 7d 08             	mov    0x8(%ebp),%edi
40860b:	81 7f 04 e9 fd 00 00 	cmpl   $0xfde9,0x4(%edi)
408612:	0f 84 0c 01 00 00    	je     0x408724
408618:	8d 85 e8 f8 ff ff    	lea    -0x718(%ebp),%eax
40861e:	50                   	push   %eax
40861f:	ff 77 04             	push   0x4(%edi)
408622:	ff 15 c0 f0 40 00    	call   *0x40f0c0
408628:	85 c0                	test   %eax,%eax
40862a:	0f 84 f4 00 00 00    	je     0x408724
408630:	33 db                	xor    %ebx,%ebx
408632:	be 00 01 00 00       	mov    $0x100,%esi
408637:	8b c3                	mov    %ebx,%eax
408639:	88 84 05 fc fe ff ff 	mov    %al,-0x104(%ebp,%eax,1)
408640:	40                   	inc    %eax
408641:	3b c6                	cmp    %esi,%eax
408643:	72 f4                	jb     0x408639
408645:	8a 85 ee f8 ff ff    	mov    -0x712(%ebp),%al
40864b:	8d 8d ee f8 ff ff    	lea    -0x712(%ebp),%ecx
408651:	c6 85 fc fe ff ff 20 	movb   $0x20,-0x104(%ebp)
408658:	eb 1f                	jmp    0x408679
40865a:	0f b6 51 01          	movzbl 0x1(%ecx),%edx
40865e:	0f b6 c0             	movzbl %al,%eax
408661:	eb 0d                	jmp    0x408670
408663:	3b c6                	cmp    %esi,%eax
408665:	73 0d                	jae    0x408674
408667:	c6 84 05 fc fe ff ff 	movb   $0x20,-0x104(%ebp,%eax,1)
40866e:	20
40866f:	40                   	inc    %eax
408670:	3b c2                	cmp    %edx,%eax
408672:	76 ef                	jbe    0x408663
408674:	83 c1 02             	add    $0x2,%ecx
408677:	8a 01                	mov    (%ecx),%al
408679:	84 c0                	test   %al,%al
40867b:	75 dd                	jne    0x40865a
40867d:	53                   	push   %ebx
40867e:	ff 77 04             	push   0x4(%edi)
408681:	8d 85 fc f8 ff ff    	lea    -0x704(%ebp),%eax
408687:	50                   	push   %eax
408688:	56                   	push   %esi
408689:	8d 85 fc fe ff ff    	lea    -0x104(%ebp),%eax
40868f:	50                   	push   %eax
408690:	6a 01                	push   $0x1
408692:	53                   	push   %ebx
408693:	e8 3c 10 00 00       	call   0x4096d4
408698:	53                   	push   %ebx
408699:	ff 77 04             	push   0x4(%edi)
40869c:	8d 85 fc fd ff ff    	lea    -0x204(%ebp),%eax
4086a2:	56                   	push   %esi
4086a3:	50                   	push   %eax
4086a4:	56                   	push   %esi
4086a5:	8d 85 fc fe ff ff    	lea    -0x104(%ebp),%eax
4086ab:	50                   	push   %eax
4086ac:	56                   	push   %esi
4086ad:	ff b7 1c 02 00 00    	push   0x21c(%edi)
4086b3:	53                   	push   %ebx
4086b4:	e8 ea 2f 00 00       	call   0x40b6a3
4086b9:	83 c4 40             	add    $0x40,%esp
4086bc:	8d 85 fc fc ff ff    	lea    -0x304(%ebp),%eax
4086c2:	53                   	push   %ebx
4086c3:	ff 77 04             	push   0x4(%edi)
4086c6:	56                   	push   %esi
4086c7:	50                   	push   %eax
4086c8:	56                   	push   %esi
4086c9:	8d 85 fc fe ff ff    	lea    -0x104(%ebp),%eax
4086cf:	50                   	push   %eax
4086d0:	68 00 02 00 00       	push   $0x200
4086d5:	ff b7 1c 02 00 00    	push   0x21c(%edi)
4086db:	53                   	push   %ebx
4086dc:	e8 c2 2f 00 00       	call   0x40b6a3
4086e1:	83 c4 24             	add    $0x24,%esp
4086e4:	8d 47 19             	lea    0x19(%edi),%eax
4086e7:	8b cb                	mov    %ebx,%ecx
4086e9:	0f b7 94 4d fc f8 ff 	movzwl -0x704(%ebp,%ecx,2),%edx
4086f0:	ff
4086f1:	f6 c2 01             	test   $0x1,%dl
4086f4:	74 0c                	je     0x408702
4086f6:	80 08 10             	orb    $0x10,(%eax)
4086f9:	8a 94 0d fc fd ff ff 	mov    -0x204(%ebp,%ecx,1),%dl
408700:	eb 13                	jmp    0x408715
408702:	f6 c2 02             	test   $0x2,%dl
408705:	74 0c                	je     0x408713
408707:	80 08 20             	orb    $0x20,(%eax)
40870a:	8a 94 0d fc fc ff ff 	mov    -0x304(%ebp,%ecx,1),%dl
408711:	eb 02                	jmp    0x408715
408713:	8a d3                	mov    %bl,%dl
408715:	41                   	inc    %ecx
408716:	88 90 00 01 00 00    	mov    %dl,0x100(%eax)
40871c:	40                   	inc    %eax
40871d:	83 ee 01             	sub    $0x1,%esi
408720:	75 c7                	jne    0x4086e9
408722:	eb 62                	jmp    0x408786
408724:	6a a6                	push   $0xffffffa6
408726:	58                   	pop    %eax
408727:	6a 86                	push   $0xffffff86
408729:	5a                   	pop    %edx
40872a:	2b d7                	sub    %edi,%edx
40872c:	8d 4f 19             	lea    0x19(%edi),%ecx
40872f:	89 95 e4 f8 ff ff    	mov    %edx,-0x71c(%ebp)
408735:	2b c7                	sub    %edi,%eax
408737:	6a e7                	push   $0xffffffe7
408739:	5a                   	pop    %edx
40873a:	2b d7                	sub    %edi,%edx
40873c:	89 85 e0 f8 ff ff    	mov    %eax,-0x720(%ebp)
408742:	8b bd e4 f8 ff ff    	mov    -0x71c(%ebp),%edi
408748:	33 db                	xor    %ebx,%ebx
40874a:	be 00 01 00 00       	mov    $0x100,%esi
40874f:	03 c1                	add    %ecx,%eax
408751:	83 f8 19             	cmp    $0x19,%eax
408754:	77 08                	ja     0x40875e
408756:	80 09 10             	orb    $0x10,(%ecx)
408759:	8d 41 20             	lea    0x20(%ecx),%eax
40875c:	eb 0e                	jmp    0x40876c
40875e:	8d 04 0f             	lea    (%edi,%ecx,1),%eax
408761:	83 f8 19             	cmp    $0x19,%eax
408764:	77 0a                	ja     0x408770
408766:	80 09 20             	orb    $0x20,(%ecx)
408769:	8d 41 e0             	lea    -0x20(%ecx),%eax
40876c:	02 c2                	add    %dl,%al
40876e:	eb 02                	jmp    0x408772
408770:	8a c3                	mov    %bl,%al
408772:	88 81 00 01 00 00    	mov    %al,0x100(%ecx)
408778:	41                   	inc    %ecx
408779:	8d 04 11             	lea    (%ecx,%edx,1),%eax
40877c:	3b c6                	cmp    %esi,%eax
40877e:	8b 85 e0 f8 ff ff    	mov    -0x720(%ebp),%eax
408784:	72 c9                	jb     0x40874f
408786:	8b 4d fc             	mov    -0x4(%ebp),%ecx
408789:	5f                   	pop    %edi
40878a:	5e                   	pop    %esi
40878b:	33 cd                	xor    %ebp,%ecx
40878d:	5b                   	pop    %ebx
40878e:	e8 a2 ae ff ff       	call   0x403635
408793:	c9                   	leave
408794:	c3                   	ret
408795:	8b ff                	mov    %edi,%edi
408797:	53                   	push   %ebx
408798:	8b dc                	mov    %esp,%ebx
40879a:	51                   	push   %ecx
40879b:	51                   	push   %ecx
40879c:	83 e4 f8             	and    $0xfffffff8,%esp
40879f:	83 c4 04             	add    $0x4,%esp
4087a2:	55                   	push   %ebp
4087a3:	8b 6b 04             	mov    0x4(%ebx),%ebp
4087a6:	89 6c 24 04          	mov    %ebp,0x4(%esp)
4087aa:	8b ec                	mov    %esp,%ebp
4087ac:	81 ec 38 02 00 00    	sub    $0x238,%esp
4087b2:	56                   	push   %esi
4087b3:	57                   	push   %edi
4087b4:	ff 73 14             	push   0x14(%ebx)
4087b7:	ff 73 10             	push   0x10(%ebx)
4087ba:	e8 2b 01 00 00       	call   0x4088ea
4087bf:	ff 73 08             	push   0x8(%ebx)
4087c2:	e8 55 fd ff ff       	call   0x40851c
4087c7:	8b 4b 10             	mov    0x10(%ebx),%ecx
4087ca:	83 c4 0c             	add    $0xc,%esp
4087cd:	89 45 f4             	mov    %eax,-0xc(%ebp)
4087d0:	8b 49 48             	mov    0x48(%ecx),%ecx
4087d3:	3b 41 04             	cmp    0x4(%ecx),%eax
4087d6:	75 07                	jne    0x4087df
4087d8:	33 c0                	xor    %eax,%eax
4087da:	e9 02 01 00 00       	jmp    0x4088e1
4087df:	68 20 02 00 00       	push   $0x220
4087e4:	e8 42 f0 ff ff       	call   0x40782b
4087e9:	89 45 fc             	mov    %eax,-0x4(%ebp)
4087ec:	59                   	pop    %ecx
4087ed:	85 c0                	test   %eax,%eax
4087ef:	75 0e                	jne    0x4087ff
4087f1:	50                   	push   %eax
4087f2:	e8 82 f0 ff ff       	call   0x407879
4087f7:	83 c8 ff             	or     $0xffffffff,%eax
4087fa:	e9 e1 00 00 00       	jmp    0x4088e0
4087ff:	8b 73 10             	mov    0x10(%ebx),%esi
408802:	8d bd c8 fd ff ff    	lea    -0x238(%ebp),%edi
408808:	ba 88 00 00 00       	mov    $0x88,%edx
40880d:	8b ca                	mov    %edx,%ecx
40880f:	50                   	push   %eax
408810:	8b 76 48             	mov    0x48(%esi),%esi
408813:	ff 75 f4             	push   -0xc(%ebp)
408816:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)
408818:	8b ca                	mov    %edx,%ecx
40881a:	8d b5 c8 fd ff ff    	lea    -0x238(%ebp),%esi
408820:	8b f8                	mov    %eax,%edi
408822:	f3 a5                	rep movsl %ds:(%esi),%es:(%edi)
408824:	83 20 00             	andl   $0x0,(%eax)
408827:	e8 b9 01 00 00       	call   0x4089e5
40882c:	8b f8                	mov    %eax,%edi
40882e:	83 ce ff             	or     $0xffffffff,%esi
408831:	59                   	pop    %ecx
408832:	59                   	pop    %ecx
408833:	3b fe                	cmp    %esi,%edi
408835:	75 1b                	jne    0x408852
408837:	e8 14 f1 ff ff       	call   0x407950
40883c:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
408842:	8b 45 fc             	mov    -0x4(%ebp),%eax
408845:	50                   	push   %eax
408846:	e8 2e f0 ff ff       	call   0x407879
40884b:	8b c6                	mov    %esi,%eax
40884d:	e9 8e 00 00 00       	jmp    0x4088e0
408852:	80 7b 0c 00          	cmpb   $0x0,0xc(%ebx)
408856:	75 05                	jne    0x40885d
408858:	e8 57 e1 ff ff       	call   0x4069b4
40885d:	8b 43 10             	mov    0x10(%ebx),%eax
408860:	8b 40 48             	mov    0x48(%eax),%eax
408863:	f0 0f c1 30          	lock xadd %esi,(%eax)
408867:	4e                   	dec    %esi
408868:	75 15                	jne    0x40887f
40886a:	8b 43 10             	mov    0x10(%ebx),%eax
40886d:	81 78 48 28 61 41 00 	cmpl   $0x416128,0x48(%eax)
408874:	74 09                	je     0x40887f
408876:	ff 70 48             	push   0x48(%eax)
408879:	e8 fb ef ff ff       	call   0x407879
40887e:	59                   	pop    %ecx
40887f:	8b 45 fc             	mov    -0x4(%ebp),%eax
408882:	c7 00 01 00 00 00    	movl   $0x1,(%eax)
408888:	8b 4b 10             	mov    0x10(%ebx),%ecx
40888b:	89 41 48             	mov    %eax,0x48(%ecx)
40888e:	8b 4b 10             	mov    0x10(%ebx),%ecx
408891:	a1 a0 66 41 00       	mov    0x4166a0,%eax
408896:	85 81 50 03 00 00    	test   %eax,0x350(%ecx)
40889c:	75 39                	jne    0x4088d7
40889e:	8d 43 10             	lea    0x10(%ebx),%eax
4088a1:	89 45 ec             	mov    %eax,-0x14(%ebp)
4088a4:	8d 4d fb             	lea    -0x5(%ebp),%ecx
4088a7:	6a 05                	push   $0x5
4088a9:	8d 43 14             	lea    0x14(%ebx),%eax
4088ac:	89 45 f0             	mov    %eax,-0x10(%ebp)
4088af:	58                   	pop    %eax
4088b0:	89 45 f4             	mov    %eax,-0xc(%ebp)
4088b3:	89 45 fc             	mov    %eax,-0x4(%ebp)
4088b6:	8d 45 f4             	lea    -0xc(%ebp),%eax
4088b9:	50                   	push   %eax
4088ba:	8d 45 ec             	lea    -0x14(%ebp),%eax
4088bd:	50                   	push   %eax
4088be:	8d 45 fc             	lea    -0x4(%ebp),%eax
4088c1:	50                   	push   %eax
4088c2:	e8 47 fb ff ff       	call   0x40840e
4088c7:	80 7b 0c 00          	cmpb   $0x0,0xc(%ebx)
4088cb:	74 0a                	je     0x4088d7
4088cd:	8b 43 14             	mov    0x14(%ebx),%eax
4088d0:	8b 00                	mov    (%eax),%eax
4088d2:	a3 14 61 41 00       	mov    %eax,0x416114
4088d7:	6a 00                	push   $0x0
4088d9:	e8 9b ef ff ff       	call   0x407879
4088de:	8b c7                	mov    %edi,%eax
4088e0:	59                   	pop    %ecx
4088e1:	5f                   	pop    %edi
4088e2:	5e                   	pop    %esi
4088e3:	8b e5                	mov    %ebp,%esp
4088e5:	5d                   	pop    %ebp
4088e6:	8b e3                	mov    %ebx,%esp
4088e8:	5b                   	pop    %ebx
4088e9:	c3                   	ret
4088ea:	6a 0c                	push   $0xc
4088ec:	68 98 4b 41 00       	push   $0x414b98
4088f1:	e8 1a ab ff ff       	call   0x403410
4088f6:	33 f6                	xor    %esi,%esi
4088f8:	89 75 e4             	mov    %esi,-0x1c(%ebp)
4088fb:	8b 7d 08             	mov    0x8(%ebp),%edi
4088fe:	a1 a0 66 41 00       	mov    0x4166a0,%eax
408903:	85 87 50 03 00 00    	test   %eax,0x350(%edi)
408909:	74 0e                	je     0x408919
40890b:	39 77 4c             	cmp    %esi,0x4c(%edi)
40890e:	74 09                	je     0x408919
408910:	8b 77 48             	mov    0x48(%edi),%esi
408913:	85 f6                	test   %esi,%esi
408915:	74 6d                	je     0x408984
408917:	eb 59                	jmp    0x408972
408919:	6a 05                	push   $0x5
40891b:	e8 ac ee ff ff       	call   0x4077cc
408920:	59                   	pop    %ecx
408921:	89 75 fc             	mov    %esi,-0x4(%ebp)
408924:	8b 77 48             	mov    0x48(%edi),%esi
408927:	89 75 e4             	mov    %esi,-0x1c(%ebp)
40892a:	8b 5d 0c             	mov    0xc(%ebp),%ebx
40892d:	3b 33                	cmp    (%ebx),%esi
40892f:	74 27                	je     0x408958
408931:	85 f6                	test   %esi,%esi
408933:	74 18                	je     0x40894d
408935:	83 c8 ff             	or     $0xffffffff,%eax
408938:	f0 0f c1 06          	lock xadd %eax,(%esi)
40893c:	75 0f                	jne    0x40894d
40893e:	81 fe 28 61 41 00    	cmp    $0x416128,%esi
408944:	74 07                	je     0x40894d
408946:	56                   	push   %esi
408947:	e8 2d ef ff ff       	call   0x407879
40894c:	59                   	pop    %ecx
40894d:	8b 33                	mov    (%ebx),%esi
40894f:	89 77 48             	mov    %esi,0x48(%edi)
408952:	89 75 e4             	mov    %esi,-0x1c(%ebp)
408955:	f0 ff 06             	lock incl (%esi)
408958:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40895f:	e8 05 00 00 00       	call   0x408969