40945c:	ff 15 24 a2 42 00    	call   *0x42a224
409462:	83 f8 02             	cmp    $0x2,%eax
409465:	74 0f                	je     0x409476
409467:	83 f8 03             	cmp    $0x3,%eax
40946a:	74 0a                	je     0x409476
40946c:	83 f8 12             	cmp    $0x12,%eax
40946f:	74 05                	je     0x409476
409471:	33 c0                	xor    %eax,%eax
409473:	40                   	inc    %eax
409474:	eb 02                	jmp    0x409478
409476:	33 c0                	xor    %eax,%eax
409478:	88 86 44 10 00 00    	mov    %al,0x1044(%esi)
40947e:	e9 f8 00 00 00       	jmp    0x40957b
409483:	ff 75 08             	push   0x8(%ebp)
409486:	ff 15 68 a0 42 00    	call   *0x42a068
40948c:	85 c0                	test   %eax,%eax
40948e:	75 16                	jne    0x4094a6
409490:	83 4d 08 ff          	orl    $0xffffffff,0x8(%ebp)
409494:	ff 15 24 a2 42 00    	call   *0x42a224
40949a:	83 f8 12             	cmp    $0x12,%eax
40949d:	0f 95 c0             	setne  %al
4094a0:	88 86 44 10 00 00    	mov    %al,0x1044(%esi)
4094a6:	83 7d 08 ff          	cmpl   $0xffffffff,0x8(%ebp)
4094aa:	0f 84 cb 00 00 00    	je     0x40957b
4094b0:	57                   	push   %edi
4094b1:	ff 75 0c             	push   0xc(%ebp)
4094b4:	56                   	push   %esi
4094b5:	e8 65 74 00 00       	call   0x41091f
4094ba:	57                   	push   %edi
4094bb:	8d 85 dc fd ff ff    	lea    -0x224(%ebp),%eax
4094c1:	50                   	push   %eax
4094c2:	56                   	push   %esi
4094c3:	e8 48 0f 00 00       	call   0x40a410
4094c8:	6a 01                	push   $0x1
4094ca:	6a 00                	push   $0x0
4094cc:	6a 00                	push   $0x0
4094ce:	ff b5 cc fd ff ff    	push   -0x234(%ebp)
4094d4:	e8 d7 10 01 00       	call   0x41a5b0
4094d9:	8b 8d d0 fd ff ff    	mov    -0x230(%ebp),%ecx
4094df:	33 ff                	xor    %edi,%edi
4094e1:	03 c1                	add    %ecx,%eax
4094e3:	89 86 00 10 00 00    	mov    %eax,0x1000(%esi)
4094e9:	8b 85 b0 fd ff ff    	mov    -0x250(%ebp),%eax
4094ef:	89 86 08 10 00 00    	mov    %eax,0x1008(%esi)
4094f5:	8b 85 b4 fd ff ff    	mov    -0x24c(%ebp),%eax
4094fb:	89 86 28 10 00 00    	mov    %eax,0x1028(%esi)
409501:	8b 85 b8 fd ff ff    	mov    -0x248(%ebp),%eax
409507:	89 86 2c 10 00 00    	mov    %eax,0x102c(%esi)
40950d:	8b 85 bc fd ff ff    	mov    -0x244(%ebp),%eax
409513:	89 86 30 10 00 00    	mov    %eax,0x1030(%esi)
409519:	8b 85 c0 fd ff ff    	mov    -0x240(%ebp),%eax
40951f:	89 86 34 10 00 00    	mov    %eax,0x1034(%esi)
409525:	8b 85 c4 fd ff ff    	mov    -0x23c(%ebp),%eax
40952b:	89 86 38 10 00 00    	mov    %eax,0x1038(%esi)
409531:	8b 85 c8 fd ff ff    	mov    -0x238(%ebp),%eax
409537:	89 86 3c 10 00 00    	mov    %eax,0x103c(%esi)
40953d:	8d 85 c4 fd ff ff    	lea    -0x23c(%ebp),%eax
409543:	13 d7                	adc    %edi,%edx
409545:	50                   	push   %eax
409546:	8d 8e 10 10 00 00    	lea    0x1010(%esi),%ecx
40954c:	89 96 04 10 00 00    	mov    %edx,0x1004(%esi)
409552:	e8 10 7b 00 00       	call   0x411067
409557:	8d 85 b4 fd ff ff    	lea    -0x24c(%ebp),%eax
40955d:	50                   	push   %eax
40955e:	8d 8e 18 10 00 00    	lea    0x1018(%esi),%ecx
409564:	e8 fe 7a 00 00       	call   0x411067
409569:	8d 85 bc fd ff ff    	lea    -0x244(%ebp),%eax
40956f:	50                   	push   %eax
409570:	8d 8e 20 10 00 00    	lea    0x1020(%esi),%ecx
409576:	e8 ec 7a 00 00       	call   0x411067
40957b:	83 a6 40 10 00 00 00 	andl   $0x0,0x1040(%esi)
409582:	8b 45 08             	mov    0x8(%ebp),%eax
409585:	5f                   	pop    %edi
409586:	5e                   	pop    %esi
409587:	5b                   	pop    %ebx
409588:	c9                   	leave
409589:	c2 0c 00             	ret    $0xc
40958c:	53                   	push   %ebx
40958d:	55                   	push   %ebp
40958e:	56                   	push   %esi
40958f:	8b 74 24 10          	mov    0x10(%esp),%esi
409593:	57                   	push   %edi
409594:	8b f9                	mov    %ecx,%edi
409596:	33 db                	xor    %ebx,%ebx
409598:	e9 81 00 00 00       	jmp    0x40961e
40959d:	56                   	push   %esi
40959e:	57                   	push   %edi
40959f:	38 9f 00 10 00 00    	cmp    %bl,0x1000(%edi)
4095a5:	74 0f                	je     0x4095b6
4095a7:	6a ff                	push   $0xffffffff
4095a9:	e8 46 fe ff ff       	call   0x4093f4
4095ae:	89 87 04 10 00 00    	mov    %eax,0x1004(%edi)
4095b4:	eb 0b                	jmp    0x4095c1
4095b6:	ff b7 04 10 00 00    	push   0x1004(%edi)
4095bc:	e8 33 fe ff ff       	call   0x4093f4
4095c1:	83 f8 ff             	cmp    $0xffffffff,%eax
4095c4:	74 67                	je     0x40962d
4095c6:	8d ae 08 10 00 00    	lea    0x1008(%esi),%ebp
4095cc:	ff 75 00             	push   0x0(%ebp)
4095cf:	89 9e 40 10 00 00    	mov    %ebx,0x1040(%esi)
4095d5:	e8 d4 f9 ff ff       	call   0x408fae
4095da:	ff 75 00             	push   0x0(%ebp)
4095dd:	88 86 0c 10 00 00    	mov    %al,0x100c(%esi)
4095e3:	e8 de f9 ff ff       	call   0x408fc6
4095e8:	88 86 0d 10 00 00    	mov    %al,0x100d(%esi)
4095ee:	56                   	push   %esi
4095ef:	88 9f 00 10 00 00    	mov    %bl,0x1000(%edi)
4095f5:	e8 ac 0c 00 00       	call   0x40a2a6
4095fa:	8b e8                	mov    %eax,%ebp
4095fc:	68 30 a6 42 00       	push   $0x42a630
409601:	55                   	push   %ebp
409602:	e8 fa 0d 01 00       	call   0x41a401
409607:	59                   	pop    %ecx
409608:	59                   	pop    %ecx
409609:	85 c0                	test   %eax,%eax
40960b:	74 11                	je     0x40961e
40960d:	68 28 a6 42 00       	push   $0x42a628
409612:	55                   	push   %ebp
409613:	e8 e9 0d 01 00       	call   0x41a401
409618:	59                   	pop    %ecx
409619:	59                   	pop    %ecx
40961a:	85 c0                	test   %eax,%eax
40961c:	75 13                	jne    0x409631
40961e:	88 9e 44 10 00 00    	mov    %bl,0x1044(%esi)
409624:	66 39 1f             	cmp    %bx,(%edi)
409627:	0f 85 70 ff ff ff    	jne    0x40959d
40962d:	32 c0                	xor    %al,%al
40962f:	eb 02                	jmp    0x409633
409631:	b0 01                	mov    $0x1,%al
409633:	5f                   	pop    %edi
409634:	5e                   	pop    %esi
409635:	5d                   	pop    %ebp
409636:	5b                   	pop    %ebx
409637:	c2 08 00             	ret    $0x8
40963a:	56                   	push   %esi
40963b:	8b 74 24 0c          	mov    0xc(%esp),%esi
40963f:	ff 74 24 08          	push   0x8(%esp)
409643:	c6 86 44 10 00 00 00 	movb   $0x0,0x1044(%esi)
40964a:	e8 67 09 00 00       	call   0x409fb6
40964f:	84 c0                	test   %al,%al
409651:	74 04                	je     0x409657
409653:	32 c0                	xor    %al,%al
409655:	eb 43                	jmp    0x40969a
409657:	56                   	push   %esi
409658:	ff 74 24 0c          	push   0xc(%esp)
40965c:	6a ff                	push   $0xffffffff
40965e:	e8 91 fd ff ff       	call   0x4093f4
409663:	83 f8 ff             	cmp    $0xffffffff,%eax
409666:	74 eb                	je     0x409653
409668:	57                   	push   %edi
409669:	50                   	push   %eax
40966a:	ff 15 64 a0 42 00    	call   *0x42a064
409670:	83 a6 40 10 00 00 00 	andl   $0x0,0x1040(%esi)
409677:	8d be 08 10 00 00    	lea    0x1008(%esi),%edi
40967d:	ff 37                	push   (%edi)
40967f:	e8 2a f9 ff ff       	call   0x408fae
409684:	ff 37                	push   (%edi)
409686:	88 86 0c 10 00 00    	mov    %al,0x100c(%esi)
40968c:	e8 35 f9 ff ff       	call   0x408fc6
409691:	88 86 0d 10 00 00    	mov    %al,0x100d(%esi)
409697:	b0 01                	mov    $0x1,%al
409699:	5f                   	pop    %edi
40969a:	5e                   	pop    %esi
40969b:	c2 0c 00             	ret    $0xc
40969e:	80 7c 24 04 00       	cmpb   $0x0,0x4(%esp)
4096a3:	56                   	push   %esi
4096a4:	8b f1                	mov    %ecx,%esi
4096a6:	c6 46 08 00          	movb   $0x0,0x8(%esi)
4096aa:	74 1e                	je     0x4096ca
4096ac:	57                   	push   %edi
4096ad:	bf 03 80 00 00       	mov    $0x8003,%edi
4096b2:	57                   	push   %edi
4096b3:	e8 0d 04 01 00       	call   0x419ac5
4096b8:	57                   	push   %edi
4096b9:	6a 00                	push   $0x0
4096bb:	50                   	push   %eax
4096bc:	89 46 0c             	mov    %eax,0xc(%esi)
4096bf:	e8 3c 0b 01 00       	call   0x41a200
4096c4:	83 c4 10             	add    $0x10,%esp
4096c7:	5f                   	pop    %edi
4096c8:	eb 04                	jmp    0x4096ce
4096ca:	83 66 0c 00          	andl   $0x0,0xc(%esi)
4096ce:	8b c6                	mov    %esi,%eax
4096d0:	5e                   	pop    %esi
4096d1:	c2 04 00             	ret    $0x4
4096d4:	80 79 08 00          	cmpb   $0x0,0x8(%ecx)
4096d8:	75 09                	jne    0x4096e3
4096da:	ff 71 0c             	push   0xc(%ecx)
4096dd:	e8 19 2d 01 00       	call   0x41c3fb
4096e2:	59                   	pop    %ecx
4096e3:	c3                   	ret
4096e4:	56                   	push   %esi
4096e5:	8b f1                	mov    %ecx,%esi
4096e7:	8b 46 0c             	mov    0xc(%esi),%eax
4096ea:	85 c0                	test   %eax,%eax
4096ec:	74 0d                	je     0x4096fb
4096ee:	80 7e 08 00          	cmpb   $0x0,0x8(%esi)
4096f2:	75 07                	jne    0x4096fb
4096f4:	50                   	push   %eax
4096f5:	e8 01 2d 01 00       	call   0x41c3fb
4096fa:	59                   	pop    %ecx
4096fb:	8b 44 24 08          	mov    0x8(%esp),%eax
4096ff:	89 46 0c             	mov    %eax,0xc(%esi)
409702:	c6 46 08 01          	movb   $0x1,0x8(%esi)
409706:	5e                   	pop    %esi
409707:	c2 04 00             	ret    $0x4
40970a:	8b d1                	mov    %ecx,%edx
40970c:	8b 42 0c             	mov    0xc(%edx),%eax
40970f:	8b 0a                	mov    (%edx),%ecx
409711:	03 c8                	add    %eax,%ecx
409713:	0f b6 01             	movzbl (%ecx),%eax
409716:	56                   	push   %esi
409717:	0f b6 71 01          	movzbl 0x1(%ecx),%esi
40971b:	0f b6 49 02          	movzbl 0x2(%ecx),%ecx
40971f:	c1 e0 08             	shl    $0x8,%eax
409722:	0b c6                	or     %esi,%eax
409724:	c1 e0 08             	shl    $0x8,%eax
409727:	0b c1                	or     %ecx,%eax
409729:	6a 08                	push   $0x8
40972b:	59                   	pop    %ecx
40972c:	2b 4a 04             	sub    0x4(%edx),%ecx
40972f:	5e                   	pop    %esi
409730:	d3 e8                	shr    %cl,%eax
409732:	25 ff ff 00 00       	and    $0xffff,%eax
409737:	c3                   	ret
409738:	8b 41 04             	mov    0x4(%ecx),%eax
40973b:	03 44 24 04          	add    0x4(%esp),%eax
40973f:	8b d0                	mov    %eax,%edx
409741:	c1 ea 03             	shr    $0x3,%edx
409744:	01 11                	add    %edx,(%ecx)
409746:	83 e0 07             	and    $0x7,%eax
409749:	89 41 04             	mov    %eax,0x4(%ecx)
40974c:	c2 04 00             	ret    $0x4
40974f:	e9 b6 ff ff ff       	jmp    0x40970a
409754:	8b 44 24 04          	mov    0x4(%esp),%eax
409758:	89 01                	mov    %eax,(%ecx)
40975a:	83 f8 01             	cmp    $0x1,%eax
40975d:	74 05                	je     0x409764
40975f:	83 f8 02             	cmp    $0x2,%eax
409762:	75 04                	jne    0x409768
409764:	83 61 04 00          	andl   $0x0,0x4(%ecx)
409768:	83 f8 03             	cmp    $0x3,%eax
40976b:	75 13                	jne    0x409780
40976d:	6a 20                	push   $0x20
40976f:	83 c1 04             	add    $0x4,%ecx
409772:	68 1c f0 42 00       	push   $0x42f01c
409777:	51                   	push   %ecx
409778:	e8 f3 24 01 00       	call   0x41bc70
40977d:	83 c4 0c             	add    $0xc,%esp
409780:	c2 04 00             	ret    $0x4
409783:	8b 11                	mov    (%ecx),%edx
409785:	56                   	push   %esi
409786:	85 d2                	test   %edx,%edx
409788:	74 4a                	je     0x4097d4
40978a:	8b 74 24 08          	mov    0x8(%esp),%esi
40978e:	8b 06                	mov    (%esi),%eax
409790:	85 c0                	test   %eax,%eax
409792:	74 40                	je     0x4097d4
409794:	83 fa 01             	cmp    $0x1,%edx
409797:	75 04                	jne    0x40979d
409799:	3b c2                	cmp    %edx,%eax
40979b:	74 09                	je     0x4097a6
40979d:	83 fa 02             	cmp    $0x2,%edx
4097a0:	75 11                	jne    0x4097b3
4097a2:	3b c2                	cmp    %edx,%eax
4097a4:	75 0d                	jne    0x4097b3
4097a6:	8b 41 04             	mov    0x4(%ecx),%eax
4097a9:	2b 46 04             	sub    0x4(%esi),%eax
4097ac:	f7 d8                	neg    %eax
4097ae:	1b c0                	sbb    %eax,%eax
4097b0:	40                   	inc    %eax
4097b1:	eb 23                	jmp    0x4097d6
4097b3:	83 fa 03             	cmp    $0x3,%edx
4097b6:	75 18                	jne    0x4097d0
4097b8:	3b c2                	cmp    %edx,%eax
4097ba:	75 14                	jne    0x4097d0
4097bc:	6a 20                	push   $0x20
4097be:	83 c6 04             	add    $0x4,%esi
4097c1:	83 c1 04             	add    $0x4,%ecx
4097c4:	56                   	push   %esi
4097c5:	51                   	push   %ecx
4097c6:	e8 19 0e 01 00       	call   0x41a5e4
4097cb:	83 c4 0c             	add    $0xc,%esp
4097ce:	eb dc                	jmp    0x4097ac
4097d0:	32 c0                	xor    %al,%al
4097d2:	eb 02                	jmp    0x4097d6
4097d4:	b0 01                	mov    $0x1,%al
4097d6:	5e                   	pop    %esi
4097d7:	c2 04 00             	ret    $0x4
4097da:	56                   	push   %esi
4097db:	8b f1                	mov    %ecx,%esi
4097dd:	ff b6 5c 0b 00 00    	push   0xb5c(%esi)
4097e3:	e8 ba 76 00 00       	call   0x410ea2
4097e8:	68 54 0b 00 00       	push   $0xb54
4097ed:	8d 46 08             	lea    0x8(%esi),%eax
4097f0:	50                   	push   %eax
4097f1:	e8 d2 35 00 00       	call   0x40cdc8
4097f6:	6a 04                	push   $0x4
4097f8:	83 c6 04             	add    $0x4,%esi
4097fb:	56                   	push   %esi
4097fc:	e8 c7 35 00 00       	call   0x40cdc8
409801:	5e                   	pop    %esi
409802:	c3                   	ret
409803:	8b 44 24 04          	mov    0x4(%esp),%eax
409807:	56                   	push   %esi
409808:	8b f1                	mov    %ecx,%esi
40980a:	89 06                	mov    %eax,(%esi)
40980c:	83 f8 01             	cmp    $0x1,%eax
40980f:	75 04                	jne    0x409815
409811:	83 66 04 00          	andl   $0x0,0x4(%esi)
409815:	83 f8 02             	cmp    $0x2,%eax
409818:	75 04                	jne    0x40981e
40981a:	83 4e 04 ff          	orl    $0xffffffff,0x4(%esi)
40981e:	83 f8 03             	cmp    $0x3,%eax
409821:	75 09                	jne    0x40982c
409823:	8d 46 08             	lea    0x8(%esi),%eax
409826:	50                   	push   %eax
409827:	e8 95 b7 ff ff       	call   0x404fc1
40982c:	8b 44 24 0c          	mov    0xc(%esp),%eax
409830:	83 f8 08             	cmp    $0x8,%eax
409833:	72 03                	jb     0x409838
409835:	6a 08                	push   $0x8
409837:	58                   	pop    %eax
409838:	89 86 60 0b 00 00    	mov    %eax,0xb60(%esi)
40983e:	5e                   	pop    %esi
40983f:	c2 08 00             	ret    $0x8
409842:	56                   	push   %esi
409843:	8b f1                	mov    %ecx,%esi
409845:	83 3e 02             	cmpl   $0x2,(%esi)
409848:	75 13                	jne    0x40985d
40984a:	ff 74 24 0c          	push   0xc(%esp)
40984e:	ff 74 24 0c          	push   0xc(%esp)
409852:	ff 76 04             	push   0x4(%esi)
409855:	e8 23 bf ff ff       	call   0x40577d
40985a:	89 46 04             	mov    %eax,0x4(%esi)
40985d:	83 3e 03             	cmpl   $0x3,(%esi)
409860:	75 46                	jne    0x4098a8
409862:	57                   	push   %edi
409863:	8d be 60 0b 00 00    	lea    0xb60(%esi),%edi
409869:	83 3f 01             	cmpl   $0x1,(%edi)
40986c:	76 14                	jbe    0x409882
40986e:	53                   	push   %ebx
40986f:	8d 9e 5c 0b 00 00    	lea    0xb5c(%esi),%ebx
409875:	83 3b 00             	cmpl   $0x0,(%ebx)
409878:	75 07                	jne    0x409881
40987a:	e8 83 77 00 00       	call   0x411002
40987f:	89 03                	mov    %eax,(%ebx)
409881:	5b                   	pop    %ebx
409882:	8b 86 5c 0b 00 00    	mov    0xb5c(%esi),%eax
409888:	ff 74 24 10          	push   0x10(%esp)