410504:	89 75 e4             	mov    %esi,-0x1c(%ebp)
410507:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
41050e:	e8 0d 00 00 00       	call   0x410520
410513:	8b c6                	mov    %esi,%eax
410515:	e8 7c 36 ff ff       	call   0x403b96
41051a:	c2 0c 00             	ret    $0xc
41051d:	8b 75 e4             	mov    -0x1c(%ebp),%esi
410520:	8b 4d 10             	mov    0x10(%ebp),%ecx
410523:	ff 31                	push   (%ecx)
410525:	e8 c3 e9 ff ff       	call   0x40eeed
41052a:	59                   	pop    %ecx
41052b:	c3                   	ret
41052c:	8b ff                	mov    %edi,%edi
41052e:	55                   	push   %ebp
41052f:	8b ec                	mov    %esp,%ebp
410531:	83 ec 0c             	sub    $0xc,%esp
410534:	8b 45 08             	mov    0x8(%ebp),%eax
410537:	8d 4d ff             	lea    -0x1(%ebp),%ecx
41053a:	89 45 f8             	mov    %eax,-0x8(%ebp)
41053d:	89 45 f4             	mov    %eax,-0xc(%ebp)
410540:	8d 45 f8             	lea    -0x8(%ebp),%eax
410543:	50                   	push   %eax
410544:	ff 75 0c             	push   0xc(%ebp)
410547:	8d 45 f4             	lea    -0xc(%ebp),%eax
41054a:	50                   	push   %eax
41054b:	e8 82 ff ff ff       	call   0x4104d2
410550:	8b e5                	mov    %ebp,%esp
410552:	5d                   	pop    %ebp
410553:	c3                   	ret
410554:	8b ff                	mov    %edi,%edi
410556:	55                   	push   %ebp
410557:	8b ec                	mov    %esp,%ebp
410559:	8b 45 08             	mov    0x8(%ebp),%eax
41055c:	48                   	dec    %eax
41055d:	83 e8 01             	sub    $0x1,%eax
410560:	74 2d                	je     0x41058f
410562:	83 e8 04             	sub    $0x4,%eax
410565:	74 13                	je     0x41057a
410567:	83 e8 09             	sub    $0x9,%eax
41056a:	74 1c                	je     0x410588
41056c:	83 e8 06             	sub    $0x6,%eax
41056f:	74 10                	je     0x410581
410571:	83 e8 01             	sub    $0x1,%eax
410574:	74 04                	je     0x41057a
410576:	33 c0                	xor    %eax,%eax
410578:	5d                   	pop    %ebp
410579:	c3                   	ret
41057a:	b8 d0 46 42 00       	mov    $0x4246d0,%eax
41057f:	5d                   	pop    %ebp
410580:	c3                   	ret
410581:	b8 cc 46 42 00       	mov    $0x4246cc,%eax
410586:	5d                   	pop    %ebp
410587:	c3                   	ret
410588:	b8 d4 46 42 00       	mov    $0x4246d4,%eax
41058d:	5d                   	pop    %ebp
41058e:	c3                   	ret
41058f:	b8 c8 46 42 00       	mov    $0x4246c8,%eax
410594:	5d                   	pop    %ebp
410595:	c3                   	ret
410596:	8b ff                	mov    %edi,%edi
410598:	55                   	push   %ebp
410599:	8b ec                	mov    %esp,%ebp
41059b:	8d 41 04             	lea    0x4(%ecx),%eax
41059e:	8b d0                	mov    %eax,%edx
4105a0:	2b d1                	sub    %ecx,%edx
4105a2:	83 c2 03             	add    $0x3,%edx
4105a5:	56                   	push   %esi
4105a6:	33 f6                	xor    %esi,%esi
4105a8:	c1 ea 02             	shr    $0x2,%edx
4105ab:	3b c1                	cmp    %ecx,%eax
4105ad:	1b c0                	sbb    %eax,%eax
4105af:	f7 d0                	not    %eax
4105b1:	23 c2                	and    %edx,%eax
4105b3:	74 0d                	je     0x4105c2
4105b5:	8b 55 08             	mov    0x8(%ebp),%edx
4105b8:	46                   	inc    %esi
4105b9:	89 11                	mov    %edx,(%ecx)
4105bb:	8d 49 04             	lea    0x4(%ecx),%ecx
4105be:	3b f0                	cmp    %eax,%esi
4105c0:	75 f6                	jne    0x4105b8
4105c2:	5e                   	pop    %esi
4105c3:	5d                   	pop    %ebp
4105c4:	c2 04 00             	ret    $0x4
4105c7:	8b ff                	mov    %edi,%edi
4105c9:	55                   	push   %ebp
4105ca:	8b ec                	mov    %esp,%ebp
4105cc:	6b 0d 28 bf 41 00 0c 	imul   $0xc,0x41bf28,%ecx
4105d3:	8b 45 0c             	mov    0xc(%ebp),%eax
4105d6:	03 c8                	add    %eax,%ecx
4105d8:	3b c1                	cmp    %ecx,%eax
4105da:	74 0f                	je     0x4105eb
4105dc:	8b 55 08             	mov    0x8(%ebp),%edx
4105df:	39 50 04             	cmp    %edx,0x4(%eax)
4105e2:	74 09                	je     0x4105ed
4105e4:	83 c0 0c             	add    $0xc,%eax
4105e7:	3b c1                	cmp    %ecx,%eax
4105e9:	75 f4                	jne    0x4105df
4105eb:	33 c0                	xor    %eax,%eax
4105ed:	5d                   	pop    %ebp
4105ee:	c3                   	ret
4105ef:	8b ff                	mov    %edi,%edi
4105f1:	55                   	push   %ebp
4105f2:	8b ec                	mov    %esp,%ebp
4105f4:	51                   	push   %ecx
4105f5:	8d 45 ff             	lea    -0x1(%ebp),%eax
4105f8:	50                   	push   %eax
4105f9:	6a 03                	push   $0x3
4105fb:	e8 2c ff ff ff       	call   0x41052c
410600:	59                   	pop    %ecx
410601:	59                   	pop    %ecx
410602:	8b e5                	mov    %ebp,%esp
410604:	5d                   	pop    %ebp
410605:	c3                   	ret
410606:	8b ff                	mov    %edi,%edi
410608:	55                   	push   %ebp
410609:	8b ec                	mov    %esp,%ebp
41060b:	ff 75 08             	push   0x8(%ebp)
41060e:	b9 c8 46 42 00       	mov    $0x4246c8,%ecx
410613:	e8 7e ff ff ff       	call   0x410596
410618:	ff 75 08             	push   0x8(%ebp)
41061b:	b9 cc 46 42 00       	mov    $0x4246cc,%ecx
410620:	e8 71 ff ff ff       	call   0x410596
410625:	ff 75 08             	push   0x8(%ebp)
410628:	b9 d0 46 42 00       	mov    $0x4246d0,%ecx
41062d:	e8 64 ff ff ff       	call   0x410596
410632:	ff 75 08             	push   0x8(%ebp)
410635:	b9 d4 46 42 00       	mov    $0x4246d4,%ecx
41063a:	e8 57 ff ff ff       	call   0x410596
41063f:	5d                   	pop    %ebp
410640:	c3                   	ret
410641:	e8 dc a3 ff ff       	call   0x40aa22
410646:	83 c0 08             	add    $0x8,%eax
410649:	c3                   	ret
41064a:	6a 2c                	push   $0x2c
41064c:	68 a8 1e 42 00       	push   $0x421ea8
410651:	e8 8a 7c 00 00       	call   0x4182e0
410656:	33 db                	xor    %ebx,%ebx
410658:	89 5d d4             	mov    %ebx,-0x2c(%ebp)
41065b:	21 5d cc             	and    %ebx,-0x34(%ebp)
41065e:	b1 01                	mov    $0x1,%cl
410660:	88 4d e3             	mov    %cl,-0x1d(%ebp)
410663:	8b 75 08             	mov    0x8(%ebp),%esi
410666:	6a 08                	push   $0x8
410668:	5f                   	pop    %edi
410669:	3b f7                	cmp    %edi,%esi
41066b:	7f 18                	jg     0x410685
41066d:	74 35                	je     0x4106a4
41066f:	8d 46 ff             	lea    -0x1(%esi),%eax
410672:	83 e8 01             	sub    $0x1,%eax
410675:	74 22                	je     0x410699
410677:	48                   	dec    %eax
410678:	83 e8 01             	sub    $0x1,%eax
41067b:	74 27                	je     0x4106a4
41067d:	48                   	dec    %eax
41067e:	83 e8 01             	sub    $0x1,%eax
410681:	75 4c                	jne    0x4106cf
410683:	eb 14                	jmp    0x410699
410685:	83 fe 0b             	cmp    $0xb,%esi
410688:	74 1a                	je     0x4106a4
41068a:	83 fe 0f             	cmp    $0xf,%esi
41068d:	74 0a                	je     0x410699
41068f:	83 fe 14             	cmp    $0x14,%esi
410692:	7e 3b                	jle    0x4106cf
410694:	83 fe 16             	cmp    $0x16,%esi
410697:	7f 36                	jg     0x4106cf
410699:	56                   	push   %esi
41069a:	e8 b5 fe ff ff       	call   0x410554
41069f:	83 c4 04             	add    $0x4,%esp
4106a2:	eb 45                	jmp    0x4106e9
4106a4:	e8 fd a3 ff ff       	call   0x40aaa6
4106a9:	8b d8                	mov    %eax,%ebx
4106ab:	89 5d d4             	mov    %ebx,-0x2c(%ebp)
4106ae:	85 db                	test   %ebx,%ebx
4106b0:	75 08                	jne    0x4106ba
4106b2:	83 c8 ff             	or     $0xffffffff,%eax
4106b5:	e9 92 01 00 00       	jmp    0x41084c
4106ba:	ff 33                	push   (%ebx)
4106bc:	56                   	push   %esi
4106bd:	e8 05 ff ff ff       	call   0x4105c7
4106c2:	59                   	pop    %ecx
4106c3:	59                   	pop    %ecx
4106c4:	33 c9                	xor    %ecx,%ecx
4106c6:	85 c0                	test   %eax,%eax
4106c8:	0f 95 c1             	setne  %cl
4106cb:	85 c9                	test   %ecx,%ecx
4106cd:	75 12                	jne    0x4106e1
4106cf:	e8 33 76 ff ff       	call   0x407d07
4106d4:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
4106da:	e8 4f 75 ff ff       	call   0x407c2e
4106df:	eb d1                	jmp    0x4106b2
4106e1:	83 c0 08             	add    $0x8,%eax
4106e4:	32 c9                	xor    %cl,%cl
4106e6:	88 4d e3             	mov    %cl,-0x1d(%ebp)
4106e9:	89 45 d8             	mov    %eax,-0x28(%ebp)
4106ec:	83 65 d0 00          	andl   $0x0,-0x30(%ebp)
4106f0:	84 c9                	test   %cl,%cl
4106f2:	74 0b                	je     0x4106ff
4106f4:	6a 03                	push   $0x3
4106f6:	e8 aa e7 ff ff       	call   0x40eea5
4106fb:	59                   	pop    %ecx
4106fc:	8a 4d e3             	mov    -0x1d(%ebp),%cl
4106ff:	83 65 dc 00          	andl   $0x0,-0x24(%ebp)
410703:	c6 45 e2 00          	movb   $0x0,-0x1e(%ebp)
410707:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
41070b:	8b 45 d8             	mov    -0x28(%ebp),%eax
41070e:	84 c9                	test   %cl,%cl
410710:	74 14                	je     0x410726
410712:	8b 15 0c 30 42 00    	mov    0x42300c,%edx
410718:	8b ca                	mov    %edx,%ecx
41071a:	83 e1 1f             	and    $0x1f,%ecx
41071d:	33 10                	xor    (%eax),%edx
41071f:	d3 ca                	ror    %cl,%edx
410721:	8a 4d e3             	mov    -0x1d(%ebp),%cl
410724:	eb 02                	jmp    0x410728
410726:	8b 10                	mov    (%eax),%edx
410728:	8b c2                	mov    %edx,%eax
41072a:	89 45 dc             	mov    %eax,-0x24(%ebp)
41072d:	33 d2                	xor    %edx,%edx
41072f:	83 f8 01             	cmp    $0x1,%eax
410732:	0f 94 c2             	sete   %dl
410735:	89 55 c8             	mov    %edx,-0x38(%ebp)
410738:	88 55 e2             	mov    %dl,-0x1e(%ebp)
41073b:	84 d2                	test   %dl,%dl
41073d:	0f 85 8a 00 00 00    	jne    0x4107cd
410743:	85 c0                	test   %eax,%eax
410745:	75 13                	jne    0x41075a
410747:	84 c9                	test   %cl,%cl
410749:	74 08                	je     0x410753
41074b:	6a 03                	push   $0x3
41074d:	e8 9b e7 ff ff       	call   0x40eeed
410752:	59                   	pop    %ecx
410753:	6a 03                	push   $0x3
410755:	e8 77 7d ff ff       	call   0x4084d1
41075a:	3b f7                	cmp    %edi,%esi
41075c:	74 0a                	je     0x410768
41075e:	83 fe 0b             	cmp    $0xb,%esi
410761:	74 05                	je     0x410768
410763:	83 fe 04             	cmp    $0x4,%esi
410766:	75 23                	jne    0x41078b
410768:	8b 43 04             	mov    0x4(%ebx),%eax
41076b:	89 45 d0             	mov    %eax,-0x30(%ebp)
41076e:	83 63 04 00          	andl   $0x0,0x4(%ebx)
410772:	3b f7                	cmp    %edi,%esi
410774:	75 3b                	jne    0x4107b1
410776:	e8 c6 fe ff ff       	call   0x410641
41077b:	8b 00                	mov    (%eax),%eax
41077d:	89 45 cc             	mov    %eax,-0x34(%ebp)
410780:	e8 bc fe ff ff       	call   0x410641
410785:	c7 00 8c 00 00 00    	movl   $0x8c,(%eax)
41078b:	3b f7                	cmp    %edi,%esi
41078d:	75 22                	jne    0x4107b1
41078f:	6b 05 2c bf 41 00 0c 	imul   $0xc,0x41bf2c,%eax
410796:	03 03                	add    (%ebx),%eax
410798:	6b 0d 30 bf 41 00 0c 	imul   $0xc,0x41bf30,%ecx
41079f:	03 c8                	add    %eax,%ecx
4107a1:	89 45 c4             	mov    %eax,-0x3c(%ebp)
4107a4:	3b c1                	cmp    %ecx,%eax
4107a6:	74 25                	je     0x4107cd
4107a8:	83 60 08 00          	andl   $0x0,0x8(%eax)
4107ac:	83 c0 0c             	add    $0xc,%eax
4107af:	eb f0                	jmp    0x4107a1
4107b1:	a1 0c 30 42 00       	mov    0x42300c,%eax
4107b6:	83 e0 1f             	and    $0x1f,%eax
4107b9:	6a 20                	push   $0x20
4107bb:	59                   	pop    %ecx
4107bc:	2b c8                	sub    %eax,%ecx
4107be:	33 c0                	xor    %eax,%eax
4107c0:	d3 c8                	ror    %cl,%eax
4107c2:	33 05 0c 30 42 00    	xor    0x42300c,%eax
4107c8:	8b 4d d8             	mov    -0x28(%ebp),%ecx
4107cb:	89 01                	mov    %eax,(%ecx)
4107cd:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
4107d4:	e8 31 00 00 00       	call   0x41080a
4107d9:	80 7d c8 00          	cmpb   $0x0,-0x38(%ebp)
4107dd:	75 6b                	jne    0x41084a
4107df:	3b f7                	cmp    %edi,%esi
4107e1:	75 36                	jne    0x410819
4107e3:	e8 3a a2 ff ff       	call   0x40aa22
4107e8:	ff 70 08             	push   0x8(%eax)
4107eb:	57                   	push   %edi
4107ec:	8b 4d dc             	mov    -0x24(%ebp),%ecx
4107ef:	ff 15 a8 b1 41 00    	call   *0x41b1a8
4107f5:	ff 55 dc             	call   *-0x24(%ebp)
4107f8:	59                   	pop    %ecx
4107f9:	eb 2b                	jmp    0x410826
4107fb:	6a 08                	push   $0x8
4107fd:	5f                   	pop    %edi
4107fe:	8b 75 08             	mov    0x8(%ebp),%esi
410801:	8b 5d d4             	mov    -0x2c(%ebp),%ebx
410804:	8a 45 e2             	mov    -0x1e(%ebp),%al
410807:	89 45 c8             	mov    %eax,-0x38(%ebp)
41080a:	80 7d e3 00          	cmpb   $0x0,-0x1d(%ebp)
41080e:	74 08                	je     0x410818
410810:	6a 03                	push   $0x3
410812:	e8 d6 e6 ff ff       	call   0x40eeed
410817:	59                   	pop    %ecx
410818:	c3                   	ret
410819:	56                   	push   %esi
41081a:	8b 4d dc             	mov    -0x24(%ebp),%ecx
41081d:	ff 15 a8 b1 41 00    	call   *0x41b1a8
410823:	ff 55 dc             	call   *-0x24(%ebp)
410826:	59                   	pop    %ecx
410827:	3b f7                	cmp    %edi,%esi
410829:	74 0a                	je     0x410835
41082b:	83 fe 0b             	cmp    $0xb,%esi
41082e:	74 05                	je     0x410835
410830:	83 fe 04             	cmp    $0x4,%esi
410833:	75 15                	jne    0x41084a
410835:	8b 45 d0             	mov    -0x30(%ebp),%eax
410838:	89 43 04             	mov    %eax,0x4(%ebx)
41083b:	3b f7                	cmp    %edi,%esi
41083d:	75 0b                	jne    0x41084a
41083f:	e8 de a1 ff ff       	call   0x40aa22
410844:	8b 4d cc             	mov    -0x34(%ebp),%ecx
410847:	89 48 08             	mov    %ecx,0x8(%eax)
41084a:	33 c0                	xor    %eax,%eax
41084c:	e8 d8 7a 00 00       	call   0x418329
410851:	c3                   	ret
410852:	8b ff                	mov    %edi,%edi
410854:	55                   	push   %ebp
410855:	8b ec                	mov    %esp,%ebp
410857:	51                   	push   %ecx
410858:	8b 55 14             	mov    0x14(%ebp),%edx
41085b:	8b 4d 08             	mov    0x8(%ebp),%ecx
41085e:	56                   	push   %esi
41085f:	85 d2                	test   %edx,%edx
410861:	75 0d                	jne    0x410870
410863:	85 c9                	test   %ecx,%ecx
410865:	75 0d                	jne    0x410874
410867:	39 4d 0c             	cmp    %ecx,0xc(%ebp)
41086a:	75 26                	jne    0x410892
41086c:	33 c0                	xor    %eax,%eax
41086e:	eb 33                	jmp    0x4108a3
410870:	85 c9                	test   %ecx,%ecx
410872:	74 1e                	je     0x410892
410874:	8b 45 0c             	mov    0xc(%ebp),%eax
410877:	85 c0                	test   %eax,%eax
410879:	74 17                	je     0x410892
41087b:	85 d2                	test   %edx,%edx
41087d:	75 07                	jne    0x410886
41087f:	33 c0                	xor    %eax,%eax
410881:	66 89 01             	mov    %ax,(%ecx)
410884:	eb e6                	jmp    0x41086c
410886:	8b 75 10             	mov    0x10(%ebp),%esi
410889:	85 f6                	test   %esi,%esi
41088b:	75 1b                	jne    0x4108a8
41088d:	33 c0                	xor    %eax,%eax
41088f:	66 89 01             	mov    %ax,(%ecx)
410892:	e8 70 74 ff ff       	call   0x407d07
410897:	6a 16                	push   $0x16