4083c2:	33 ff                	xor    %edi,%edi
4083c4:	8b 4d ec             	mov    -0x14(%ebp),%ecx
4083c7:	85 c9                	test   %ecx,%ecx
4083c9:	74 13                	je     0x4083de
4083cb:	8b 01                	mov    (%ecx),%eax
4083cd:	51                   	push   %ecx
4083ce:	8b 70 08             	mov    0x8(%eax),%esi
4083d1:	8b ce                	mov    %esi,%ecx
4083d3:	ff 15 20 23 41 00    	call   *0x412320
4083d9:	ff d6                	call   *%esi
4083db:	89 7d ec             	mov    %edi,-0x14(%ebp)
4083de:	b8 e4 83 40 00       	mov    $0x4083e4,%eax
4083e3:	c3                   	ret
4083e4:	e9 04 fe ff ff       	jmp    0x4081ed
4083e9:	b9 06 10 04 80       	mov    $0x80041006,%ecx
4083ee:	e8 17 f5 ff ff       	call   0x40790a
4083f3:	8b 4d e4             	mov    -0x1c(%ebp),%ecx
4083f6:	85 c9                	test   %ecx,%ecx
4083f8:	74 17                	je     0x408411
4083fa:	8b 01                	mov    (%ecx),%eax
4083fc:	51                   	push   %ecx
4083fd:	8b 70 08             	mov    0x8(%eax),%esi
408400:	8b ce                	mov    %esi,%ecx
408402:	ff 15 20 23 41 00    	call   *0x412320
408408:	ff d6                	call   *%esi
40840a:	33 ff                	xor    %edi,%edi
40840c:	89 7d e4             	mov    %edi,-0x1c(%ebp)
40840f:	eb 02                	jmp    0x408413
408411:	33 ff                	xor    %edi,%edi
408413:	8b 4d ec             	mov    -0x14(%ebp),%ecx
408416:	85 c9                	test   %ecx,%ecx
408418:	74 13                	je     0x40842d
40841a:	8b 01                	mov    (%ecx),%eax
40841c:	51                   	push   %ecx
40841d:	8b 70 08             	mov    0x8(%eax),%esi
408420:	8b ce                	mov    %esi,%ecx
408422:	ff 15 20 23 41 00    	call   *0x412320
408428:	ff d6                	call   *%esi
40842a:	89 7d ec             	mov    %edi,-0x14(%ebp)
40842d:	b8 ed 81 40 00       	mov    $0x4081ed,%eax
408432:	c3                   	ret
408433:	8b ce                	mov    %esi,%ecx
408435:	e8 e7 02 00 00       	call   0x408721
40843a:	cc                   	int3
40843b:	6a 10                	push   $0x10
40843d:	b8 2b fc 40 00       	mov    $0x40fc2b,%eax
408442:	e8 d5 6e 00 00       	call   0x40f31c
408447:	8b f1                	mov    %ecx,%esi
408449:	8b 7d 08             	mov    0x8(%ebp),%edi
40844c:	83 26 00             	andl   $0x0,(%esi)
40844f:	6a 08                	push   $0x8
408451:	5b                   	pop    %ebx
408452:	66 39 1f             	cmp    %bx,(%edi)
408455:	75 0a                	jne    0x408461
408457:	ff 77 08             	push   0x8(%edi)
40845a:	e8 81 02 00 00       	call   0x4086e0
40845f:	eb 49                	jmp    0x4084aa
408461:	8d 45 e4             	lea    -0x1c(%ebp),%eax
408464:	50                   	push   %eax
408465:	ff 15 18 21 41 00    	call   *0x412118
40846b:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40846f:	8d 45 e4             	lea    -0x1c(%ebp),%eax
408472:	3b c7                	cmp    %edi,%eax
408474:	75 06                	jne    0x40847c
408476:	66 3b 5d e4          	cmp    -0x1c(%ebp),%bx
40847a:	74 12                	je     0x40848e
40847c:	53                   	push   %ebx
40847d:	6a 00                	push   $0x0
40847f:	57                   	push   %edi
408480:	8d 45 e4             	lea    -0x1c(%ebp),%eax
408483:	50                   	push   %eax
408484:	ff 15 1c 21 41 00    	call   *0x41211c
40848a:	85 c0                	test   %eax,%eax
40848c:	78 26                	js     0x4084b4
40848e:	ff 75 ec             	push   -0x14(%ebp)
408491:	8b ce                	mov    %esi,%ecx
408493:	e8 48 02 00 00       	call   0x4086e0
408498:	83 4d fc ff          	orl    $0xffffffff,-0x4(%ebp)
40849c:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40849f:	50                   	push   %eax
4084a0:	ff 15 14 21 41 00    	call   *0x412114
4084a6:	85 c0                	test   %eax,%eax
4084a8:	78 0a                	js     0x4084b4
4084aa:	8b c6                	mov    %esi,%eax
4084ac:	e8 48 6e 00 00       	call   0x40f2f9
4084b1:	c2 04 00             	ret    $0x4
4084b4:	8b c8                	mov    %eax,%ecx
4084b6:	e8 66 02 00 00       	call   0x408721
4084bb:	cc                   	int3
4084bc:	8b ff                	mov    %edi,%edi
4084be:	51                   	push   %ecx
4084bf:	ff 15 14 21 41 00    	call   *0x412114
4084c5:	85 c0                	test   %eax,%eax
4084c7:	79 07                	jns    0x4084d0
4084c9:	8b c8                	mov    %eax,%ecx
4084cb:	e9 51 02 00 00       	jmp    0x408721
4084d0:	c3                   	ret
4084d1:	8b ff                	mov    %edi,%edi
4084d3:	53                   	push   %ebx
4084d4:	8b d9                	mov    %ecx,%ebx
4084d6:	56                   	push   %esi
4084d7:	57                   	push   %edi
4084d8:	33 f6                	xor    %esi,%esi
4084da:	8d 7b 0c             	lea    0xc(%ebx),%edi
4084dd:	39 37                	cmp    %esi,(%edi)
4084df:	0f 85 8f 00 00 00    	jne    0x408574
4084e5:	56                   	push   %esi
4084e6:	56                   	push   %esi
4084e7:	57                   	push   %edi
4084e8:	68 00 04 00 00       	push   $0x400
4084ed:	ff 73 04             	push   0x4(%ebx)
4084f0:	56                   	push   %esi
4084f1:	68 00 11 00 00       	push   $0x1100
4084f6:	ff 15 60 20 41 00    	call   *0x412060
4084fc:	8b 0f                	mov    (%edi),%ecx
4084fe:	85 c9                	test   %ecx,%ecx
408500:	74 25                	je     0x408527
408502:	83 f8 01             	cmp    $0x1,%eax
408505:	76 6d                	jbe    0x408574
408507:	66 83 7c 41 fe 0a    	cmpw   $0xa,-0x2(%ecx,%eax,2)
40850d:	75 65                	jne    0x408574
40850f:	33 d2                	xor    %edx,%edx
408511:	66 89 54 41 fe       	mov    %dx,-0x2(%ecx,%eax,2)
408516:	8b 0f                	mov    (%edi),%ecx
408518:	66 83 7c 41 fc 0d    	cmpw   $0xd,-0x4(%ecx,%eax,2)
40851e:	75 54                	jne    0x408574
408520:	66 89 54 41 fc       	mov    %dx,-0x4(%ecx,%eax,2)
408525:	eb 4d                	jmp    0x408574
408527:	6a 40                	push   $0x40
408529:	56                   	push   %esi
40852a:	ff 15 5c 20 41 00    	call   *0x41205c
408530:	8b c8                	mov    %eax,%ecx
408532:	89 0f                	mov    %ecx,(%edi)
408534:	85 c9                	test   %ecx,%ecx
408536:	74 3c                	je     0x408574
408538:	8b 53 04             	mov    0x4(%ebx),%edx
40853b:	81 fa 00 02 04 80    	cmp    $0x80040200,%edx
408541:	7c 11                	jl     0x408554
408543:	81 fa ff ff 04 80    	cmp    $0x8004ffff,%edx
408549:	7f 09                	jg     0x408554
40854b:	8d 82 00 fe ff ff    	lea    -0x200(%edx),%eax
408551:	0f b7 f0             	movzwl %ax,%esi
408554:	66 85 f6             	test   %si,%si
408557:	74 0b                	je     0x408564
408559:	0f b7 c6             	movzwl %si,%eax
40855c:	50                   	push   %eax
40855d:	68 e8 17 40 00       	push   $0x4017e8
408562:	eb 06                	jmp    0x40856a
408564:	52                   	push   %edx
408565:	68 10 18 40 00       	push   $0x401810
40856a:	51                   	push   %ecx
40856b:	ff 15 5c 21 41 00    	call   *0x41215c
408571:	83 c4 0c             	add    $0xc,%esp
408574:	8b 07                	mov    (%edi),%eax
408576:	5f                   	pop    %edi
408577:	5e                   	pop    %esi
408578:	5b                   	pop    %ebx
408579:	c3                   	ret
40857a:	8b 01                	mov    (%ecx),%eax
40857c:	85 c0                	test   %eax,%eax
40857e:	74 0e                	je     0x40858e
408580:	83 38 00             	cmpl   $0x0,(%eax)
408583:	74 09                	je     0x40858e
408585:	ff 30                	push   (%eax)
408587:	ff 15 2c 21 41 00    	call   *0x41212c
40858d:	c3                   	ret
40858e:	33 c0                	xor    %eax,%eax
408590:	c3                   	ret
408591:	8b ff                	mov    %edi,%edi
408593:	55                   	push   %ebp
408594:	8b ec                	mov    %esp,%ebp
408596:	51                   	push   %ecx
408597:	51                   	push   %ecx
408598:	53                   	push   %ebx
408599:	56                   	push   %esi
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