4096f6:	75 09                	jne    0x409701
4096f8:	56                   	push   %esi
4096f9:	e8 85 ff ff ff       	call   0x409683
4096fe:	59                   	pop    %ecx
4096ff:	eb 05                	jmp    0x409706
409701:	8b 46 08             	mov    0x8(%esi),%eax
409704:	89 06                	mov    %eax,(%esi)
409706:	ff 76 18             	push   0x18(%esi)
409709:	ff 76 08             	push   0x8(%esi)
40970c:	ff 76 10             	push   0x10(%esi)
40970f:	e8 12 22 00 00       	call   0x40b926
409714:	83 c4 0c             	add    $0xc,%esp
409717:	89 46 04             	mov    %eax,0x4(%esi)
40971a:	85 c0                	test   %eax,%eax
40971c:	74 6f                	je     0x40978d
40971e:	83 f8 ff             	cmp    $0xffffffff,%eax
409721:	74 6a                	je     0x40978d
409723:	8b 56 0c             	mov    0xc(%esi),%edx
409726:	f6 c2 82             	test   $0x82,%dl
409729:	75 37                	jne    0x409762
40972b:	8b 4e 10             	mov    0x10(%esi),%ecx
40972e:	57                   	push   %edi
40972f:	83 f9 ff             	cmp    $0xffffffff,%ecx
409732:	74 17                	je     0x40974b
409734:	8b f9                	mov    %ecx,%edi
409736:	c1 ff 05             	sar    $0x5,%edi
409739:	83 e1 1f             	and    $0x1f,%ecx
40973c:	8b 3c bd c0 1d 41 00 	mov    0x411dc0(,%edi,4),%edi
409743:	8d 0c c9             	lea    (%ecx,%ecx,8),%ecx
409746:	8d 3c 8f             	lea    (%edi,%ecx,4),%edi
409749:	eb 05                	jmp    0x409750
40974b:	bf 08 0e 41 00       	mov    $0x410e08,%edi
409750:	8a 4f 04             	mov    0x4(%edi),%cl
409753:	5f                   	pop    %edi
409754:	80 e1 82             	and    $0x82,%cl
409757:	80 f9 82             	cmp    $0x82,%cl
40975a:	75 06                	jne    0x409762
40975c:	80 ce 20             	or     $0x20,%dh
40975f:	89 56 0c             	mov    %edx,0xc(%esi)
409762:	81 7e 18 00 02 00 00 	cmpl   $0x200,0x18(%esi)
409769:	75 14                	jne    0x40977f
40976b:	8b 4e 0c             	mov    0xc(%esi),%ecx
40976e:	f6 c1 08             	test   $0x8,%cl
409771:	74 0c                	je     0x40977f
409773:	f6 c5 04             	test   $0x4,%ch
409776:	75 07                	jne    0x40977f
409778:	c7 46 18 00 10 00 00 	movl   $0x1000,0x18(%esi)
40977f:	8b 0e                	mov    (%esi),%ecx
409781:	48                   	dec    %eax
409782:	89 46 04             	mov    %eax,0x4(%esi)
409785:	0f b6 01             	movzbl (%ecx),%eax
409788:	41                   	inc    %ecx
409789:	89 0e                	mov    %ecx,(%esi)
40978b:	5e                   	pop    %esi
40978c:	c3                   	ret
40978d:	f7 d8                	neg    %eax
40978f:	1b c0                	sbb    %eax,%eax
409791:	83 e0 10             	and    $0x10,%eax
409794:	83 c0 10             	add    $0x10,%eax
409797:	09 46 0c             	or     %eax,0xc(%esi)
40979a:	83 66 04 00          	andl   $0x0,0x4(%esi)
40979e:	83 c8 ff             	or     $0xffffffff,%eax
4097a1:	5e                   	pop    %esi
4097a2:	c3                   	ret
4097a3:	53                   	push   %ebx
4097a4:	56                   	push   %esi
4097a5:	8b 74 24 0c          	mov    0xc(%esp),%esi
4097a9:	57                   	push   %edi
4097aa:	56                   	push   %esi
4097ab:	e8 16 c1 ff ff       	call   0x4058c6
4097b0:	56                   	push   %esi
4097b1:	e8 15 00 00 00       	call   0x4097cb
4097b6:	56                   	push   %esi
4097b7:	8b f8                	mov    %eax,%edi
4097b9:	8b da                	mov    %edx,%ebx
4097bb:	e8 58 c1 ff ff       	call   0x405918
4097c0:	83 c4 0c             	add    $0xc,%esp
4097c3:	8b c7                	mov    %edi,%eax
4097c5:	8b d3                	mov    %ebx,%edx
4097c7:	5f                   	pop    %edi
4097c8:	5e                   	pop    %esi
4097c9:	5b                   	pop    %ebx
4097ca:	c3                   	ret
4097cb:	55                   	push   %ebp
4097cc:	8b ec                	mov    %esp,%ebp
4097ce:	83 ec 10             	sub    $0x10,%esp
4097d1:	53                   	push   %ebx
4097d2:	56                   	push   %esi
4097d3:	57                   	push   %edi
4097d4:	8b 7d 08             	mov    0x8(%ebp),%edi
4097d7:	33 c0                	xor    %eax,%eax
4097d9:	8b 77 10             	mov    0x10(%edi),%esi
4097dc:	39 47 04             	cmp    %eax,0x4(%edi)
4097df:	89 75 f8             	mov    %esi,-0x8(%ebp)
4097e2:	7d 03                	jge    0x4097e7
4097e4:	89 47 04             	mov    %eax,0x4(%edi)
4097e7:	6a 01                	push   $0x1
4097e9:	50                   	push   %eax
4097ea:	50                   	push   %eax
4097eb:	56                   	push   %esi
4097ec:	e8 73 23 00 00       	call   0x40bb64
4097f1:	8b ca                	mov    %edx,%ecx
4097f3:	83 c4 10             	add    $0x10,%esp
4097f6:	8b d8                	mov    %eax,%ebx
4097f8:	89 4d f4             	mov    %ecx,-0xc(%ebp)
4097fb:	85 c9                	test   %ecx,%ecx
4097fd:	89 5d f0             	mov    %ebx,-0x10(%ebp)
409800:	7f 06                	jg     0x409808
409802:	7c 6d                	jl     0x409871
409804:	85 db                	test   %ebx,%ebx
409806:	72 69                	jb     0x409871
409808:	66 f7 47 0c 08 01    	testw  $0x108,0xc(%edi)
40980e:	75 11                	jne    0x409821
409810:	8b 47 04             	mov    0x4(%edi),%eax
409813:	99                   	cltd
409814:	2b d8                	sub    %eax,%ebx
409816:	1b ca                	sbb    %edx,%ecx
409818:	8b c3                	mov    %ebx,%eax
40981a:	8b d1                	mov    %ecx,%edx
40981c:	e9 35 01 00 00       	jmp    0x409956
409821:	8b 07                	mov    (%edi),%eax
409823:	8b 57 08             	mov    0x8(%edi),%edx
409826:	8b c8                	mov    %eax,%ecx
409828:	2b ca                	sub    %edx,%ecx
40982a:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40982d:	8b 4f 0c             	mov    0xc(%edi),%ecx
409830:	f6 c1 03             	test   $0x3,%cl
409833:	74 2c                	je     0x409861
409835:	8b de                	mov    %esi,%ebx
409837:	8b ce                	mov    %esi,%ecx
409839:	c1 fb 05             	sar    $0x5,%ebx
40983c:	83 e1 1f             	and    $0x1f,%ecx
40983f:	8b 1c 9d c0 1d 41 00 	mov    0x411dc0(,%ebx,4),%ebx
409846:	8d 0c c9             	lea    (%ecx,%ecx,8),%ecx
409849:	f6 44 8b 04 80       	testb  $0x80,0x4(%ebx,%ecx,4)
40984e:	74 2b                	je     0x40987b
409850:	8b ca                	mov    %edx,%ecx
409852:	3b c8                	cmp    %eax,%ecx
409854:	73 25                	jae    0x40987b
409856:	80 39 0a             	cmpb   $0xa,(%ecx)
409859:	75 03                	jne    0x40985e
40985b:	ff 45 fc             	incl   -0x4(%ebp)
40985e:	41                   	inc    %ecx
40985f:	eb f1                	jmp    0x409852
409861:	f6 c1 80             	test   $0x80,%cl
409864:	75 18                	jne    0x40987e
409866:	e8 73 d8 ff ff       	call   0x4070de
40986b:	c7 00 16 00 00 00    	movl   $0x16,(%eax)
409871:	83 ca ff             	or     $0xffffffff,%edx
409874:	8b c2                	mov    %edx,%eax
409876:	e9 db 00 00 00       	jmp    0x409956
40987b:	8b 5d f0             	mov    -0x10(%ebp),%ebx
40987e:	0b 5d f4             	or     -0xc(%ebp),%ebx
409881:	75 0a                	jne    0x40988d
409883:	8b 45 fc             	mov    -0x4(%ebp),%eax
409886:	33 d2                	xor    %edx,%edx
409888:	e9 c9 00 00 00       	jmp    0x409956
40988d:	f6 47 0c 01          	testb  $0x1,0xc(%edi)
409891:	0f 84 b4 00 00 00    	je     0x40994b
409897:	8b 4f 04             	mov    0x4(%edi),%ecx
40989a:	85 c9                	test   %ecx,%ecx
40989c:	75 08                	jne    0x4098a6
40989e:	21 4d fc             	and    %ecx,-0x4(%ebp)
4098a1:	e9 a5 00 00 00       	jmp    0x40994b
4098a6:	2b c2                	sub    %edx,%eax
4098a8:	03 c1                	add    %ecx,%eax
4098aa:	89 45 08             	mov    %eax,0x8(%ebp)
4098ad:	8b c6                	mov    %esi,%eax
4098af:	c1 f8 05             	sar    $0x5,%eax
4098b2:	8d 1c 85 c0 1d 41 00 	lea    0x411dc0(,%eax,4),%ebx
4098b9:	8b c6                	mov    %esi,%eax
4098bb:	83 e0 1f             	and    $0x1f,%eax
4098be:	8d 34 c0             	lea    (%eax,%eax,8),%esi
4098c1:	8b 03                	mov    (%ebx),%eax
4098c3:	c1 e6 02             	shl    $0x2,%esi
4098c6:	f6 44 06 04 80       	testb  $0x80,0x4(%esi,%eax,1)
4098cb:	74 74                	je     0x409941
4098cd:	6a 02                	push   $0x2
4098cf:	6a 00                	push   $0x0
4098d1:	6a 00                	push   $0x0
4098d3:	ff 75 f8             	push   -0x8(%ebp)
4098d6:	e8 89 22 00 00       	call   0x40bb64
4098db:	83 c4 10             	add    $0x10,%esp
4098de:	3b 45 f0             	cmp    -0x10(%ebp),%eax
4098e1:	75 22                	jne    0x409905
4098e3:	3b 55 f4             	cmp    -0xc(%ebp),%edx
4098e6:	75 1d                	jne    0x409905
4098e8:	8b 47 08             	mov    0x8(%edi),%eax
4098eb:	8b 4d 08             	mov    0x8(%ebp),%ecx
4098ee:	03 c8                	add    %eax,%ecx
4098f0:	3b c1                	cmp    %ecx,%eax
4098f2:	73 0b                	jae    0x4098ff
4098f4:	80 38 0a             	cmpb   $0xa,(%eax)
4098f7:	75 03                	jne    0x4098fc
4098f9:	ff 45 08             	incl   0x8(%ebp)
4098fc:	40                   	inc    %eax
4098fd:	eb f1                	jmp    0x4098f0
4098ff:	f6 47 0d 20          	testb  $0x20,0xd(%edi)
409903:	eb 37                	jmp    0x40993c
409905:	6a 00                	push   $0x0
409907:	ff 75 f4             	push   -0xc(%ebp)
40990a:	ff 75 f0             	push   -0x10(%ebp)
40990d:	ff 75 f8             	push   -0x8(%ebp)
409910:	e8 4f 22 00 00       	call   0x40bb64
409915:	b8 00 02 00 00       	mov    $0x200,%eax
40991a:	83 c4 10             	add    $0x10,%esp
40991d:	39 45 08             	cmp    %eax,0x8(%ebp)
409920:	77 0d                	ja     0x40992f
409922:	8b 4f 0c             	mov    0xc(%edi),%ecx
409925:	f6 c1 08             	test   $0x8,%cl
409928:	74 05                	je     0x40992f
40992a:	f6 c5 04             	test   $0x4,%ch
40992d:	74 03                	je     0x409932
40992f:	8b 47 18             	mov    0x18(%edi),%eax
409932:	89 45 08             	mov    %eax,0x8(%ebp)
409935:	8b 03                	mov    (%ebx),%eax
409937:	f6 44 06 04 04       	testb  $0x4,0x4(%esi,%eax,1)
40993c:	74 03                	je     0x409941
40993e:	ff 45 08             	incl   0x8(%ebp)
409941:	8b 45 08             	mov    0x8(%ebp),%eax
409944:	29 45 f0             	sub    %eax,-0x10(%ebp)
409947:	83 5d f4 00          	sbbl   $0x0,-0xc(%ebp)
40994b:	8b 45 fc             	mov    -0x4(%ebp),%eax
40994e:	33 d2                	xor    %edx,%edx
409950:	03 45 f0             	add    -0x10(%ebp),%eax
409953:	13 55 f4             	adc    -0xc(%ebp),%edx
409956:	5f                   	pop    %edi
409957:	5e                   	pop    %esi
409958:	5b                   	pop    %ebx
409959:	c9                   	leave
40995a:	c3                   	ret
40995b:	56                   	push   %esi
40995c:	8b 74 24 08          	mov    0x8(%esp),%esi
409960:	3b 35 c0 1e 41 00    	cmp    0x411ec0,%esi
409966:	73 40                	jae    0x4099a8
409968:	8b ce                	mov    %esi,%ecx
40996a:	8b c6                	mov    %esi,%eax
40996c:	c1 f9 05             	sar    $0x5,%ecx
40996f:	83 e0 1f             	and    $0x1f,%eax
409972:	8b 0c 8d c0 1d 41 00 	mov    0x411dc0(,%ecx,4),%ecx
409979:	8d 04 c0             	lea    (%eax,%eax,8),%eax
40997c:	f6 44 81 04 01       	testb  $0x1,0x4(%ecx,%eax,4)
409981:	74 25                	je     0x4099a8
409983:	57                   	push   %edi
409984:	56                   	push   %esi
409985:	e8 1b 1f 00 00       	call   0x40b8a5
40998a:	ff 74 24 18          	push   0x18(%esp)
40998e:	ff 74 24 18          	push   0x18(%esp)
409992:	56                   	push   %esi
409993:	e8 28 00 00 00       	call   0x4099c0
409998:	56                   	push   %esi
409999:	8b f8                	mov    %eax,%edi
40999b:	e8 64 1f 00 00       	call   0x40b904
4099a0:	83 c4 14             	add    $0x14,%esp
4099a3:	8b c7                	mov    %edi,%eax
4099a5:	5f                   	pop    %edi
4099a6:	5e                   	pop    %esi
4099a7:	c3                   	ret
4099a8:	e8 31 d7 ff ff       	call   0x4070de
4099ad:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
4099b3:	e8 2f d7 ff ff       	call   0x4070e7
4099b8:	83 20 00             	andl   $0x0,(%eax)
4099bb:	83 c8 ff             	or     $0xffffffff,%eax
4099be:	5e                   	pop    %esi
4099bf:	c3                   	ret
4099c0:	56                   	push   %esi
4099c1:	8b 74 24 08          	mov    0x8(%esp),%esi
4099c5:	57                   	push   %edi
4099c6:	56                   	push   %esi
4099c7:	e8 97 1e 00 00       	call   0x40b863
4099cc:	83 f8 ff             	cmp    $0xffffffff,%eax
4099cf:	59                   	pop    %ecx
4099d0:	75 0d                	jne    0x4099df
4099d2:	e8 07 d7 ff ff       	call   0x4070de
4099d7:	c7 00 09 00 00 00    	movl   $0x9,(%eax)
4099dd:	eb 2d                	jmp    0x409a0c
4099df:	ff 74 24 14          	push   0x14(%esp)
4099e3:	6a 00                	push   $0x0
4099e5:	ff 74 24 18          	push   0x18(%esp)
4099e9:	50                   	push   %eax
4099ea:	ff 15 7c d0 40 00    	call   *0x40d07c
4099f0:	8b f8                	mov    %eax,%edi
4099f2:	83 ff ff             	cmp    $0xffffffff,%edi
4099f5:	75 08                	jne    0x4099ff
4099f7:	ff 15 9c d0 40 00    	call   *0x40d09c
4099fd:	eb 02                	jmp    0x409a01
4099ff:	33 c0                	xor    %eax,%eax
409a01:	85 c0                	test   %eax,%eax
409a03:	74 0c                	je     0x409a11
409a05:	50                   	push   %eax
409a06:	e8 60 d6 ff ff       	call   0x40706b
409a0b:	59                   	pop    %ecx
409a0c:	83 c8 ff             	or     $0xffffffff,%eax
409a0f:	eb 1f                	jmp    0x409a30
409a11:	8b ce                	mov    %esi,%ecx
409a13:	83 e6 1f             	and    $0x1f,%esi
409a16:	c1 f9 05             	sar    $0x5,%ecx
409a19:	8b c6                	mov    %esi,%eax
409a1b:	8b 0c 8d c0 1d 41 00 	mov    0x411dc0(,%ecx,4),%ecx
409a22:	8d 04 c0             	lea    (%eax,%eax,8),%eax
409a25:	80 64 81 04 fd       	andb   $0xfd,0x4(%ecx,%eax,4)
409a2a:	8d 44 81 04          	lea    0x4(%ecx,%eax,4),%eax
409a2e:	8b c7                	mov    %edi,%eax
409a30:	5f                   	pop    %edi
409a31:	5e                   	pop    %esi
409a32:	c3                   	ret
409a33:	55                   	push   %ebp
409a34:	8b ec                	mov    %esp,%ebp
409a36:	83 ec 0c             	sub    $0xc,%esp
409a39:	53                   	push   %ebx
409a3a:	56                   	push   %esi
409a3b:	57                   	push   %edi
409a3c:	8b 7d 08             	mov    0x8(%ebp),%edi
409a3f:	33 db                	xor    %ebx,%ebx
409a41:	8b 77 10             	mov    0x10(%edi),%esi
409a44:	39 5f 04             	cmp    %ebx,0x4(%edi)
409a47:	89 75 f4             	mov    %esi,-0xc(%ebp)
409a4a:	7d 03                	jge    0x409a4f
409a4c:	89 5f 04             	mov    %ebx,0x4(%edi)
409a4f:	6a 01                	push   $0x1
409a51:	53                   	push   %ebx
409a52:	56                   	push   %esi
409a53:	e8 03 ff ff ff       	call   0x40995b
409a58:	83 c4 0c             	add    $0xc,%esp
409a5b:	3b c3                	cmp    %ebx,%eax
409a5d:	89 45 fc             	mov    %eax,-0x4(%ebp)
409a60:	7c 5f                	jl     0x409ac1
409a62:	8b 4f 0c             	mov    0xc(%edi),%ecx
409a65:	66 f7 c1 08 01       	test   $0x108,%cx
409a6a:	75 08                	jne    0x409a74
409a6c:	2b 47 04             	sub    0x4(%edi),%eax
409a6f:	e9 1b 01 00 00       	jmp    0x409b8f
409a74:	8b 07                	mov    (%edi),%eax
409a76:	8b 57 08             	mov    0x8(%edi),%edx
409a79:	8b d8                	mov    %eax,%ebx
409a7b:	2b da                	sub    %edx,%ebx
409a7d:	f6 c1 03             	test   $0x3,%cl
409a80:	89 5d f8             	mov    %ebx,-0x8(%ebp)
409a83:	74 2c                	je     0x409ab1
409a85:	8b de                	mov    %esi,%ebx
409a87:	8b ce                	mov    %esi,%ecx
409a89:	c1 fb 05             	sar    $0x5,%ebx
409a8c:	83 e1 1f             	and    $0x1f,%ecx
409a8f:	8b 1c 9d c0 1d 41 00 	mov    0x411dc0(,%ebx,4),%ebx
409a96:	8d 0c c9             	lea    (%ecx,%ecx,8),%ecx
409a99:	f6 44 8b 04 80       	testb  $0x80,0x4(%ebx,%ecx,4)
409a9e:	74 29                	je     0x409ac9
409aa0:	8b ca                	mov    %edx,%ecx
409aa2:	3b c8                	cmp    %eax,%ecx
409aa4:	73 23                	jae    0x409ac9