4077d2:	6a 2d                	push   $0x2d
4077d4:	5a                   	pop    %edx
4077d5:	66 3b c2             	cmp    %dx,%ax
4077d8:	74 32                	je     0x40780c
4077da:	66 3b c1             	cmp    %cx,%ax
4077dd:	74 2d                	je     0x40780c
4077df:	51                   	push   %ecx
4077e0:	8d 56 2c             	lea    0x2c(%esi),%edx
4077e3:	8b cb                	mov    %ebx,%ecx
4077e5:	e8 e8 b7 ff ff       	call   0x402fd2
4077ea:	8b c8                	mov    %eax,%ecx
4077ec:	85 c9                	test   %ecx,%ecx
4077ee:	0f 85 8c 00 00 00    	jne    0x407880
4077f4:	8b 4e 2c             	mov    0x2c(%esi),%ecx
4077f7:	8d 51 01             	lea    0x1(%ecx),%edx
4077fa:	8a 01                	mov    (%ecx),%al
4077fc:	41                   	inc    %ecx
4077fd:	84 c0                	test   %al,%al
4077ff:	75 f9                	jne    0x4077fa
407801:	2b ca                	sub    %edx,%ecx
407803:	6a 2a                	push   $0x2a
407805:	89 4e 24             	mov    %ecx,0x24(%esi)
407808:	59                   	pop    %ecx
407809:	6a 2d                	push   $0x2d
40780b:	5a                   	pop    %edx
40780c:	0f b7 07             	movzwl (%edi),%eax
40780f:	66 3b c2             	cmp    %dx,%ax
407812:	74 54                	je     0x407868
407814:	66 3b c1             	cmp    %cx,%ax
407817:	74 4f                	je     0x407868
407819:	83 f8 30             	cmp    $0x30,%eax
40781c:	75 21                	jne    0x40783f
40781e:	0f b7 47 02          	movzwl 0x2(%edi),%eax
407822:	83 f8 58             	cmp    $0x58,%eax
407825:	74 05                	je     0x40782c
407827:	83 f8 78             	cmp    $0x78,%eax
40782a:	75 13                	jne    0x40783f
40782c:	8d 46 28             	lea    0x28(%esi),%eax
40782f:	50                   	push   %eax
407830:	8d 56 30             	lea    0x30(%esi),%edx
407833:	8d 4f 04             	lea    0x4(%edi),%ecx
407836:	e8 8d c3 ff ff       	call   0x403bc8
40783b:	8b c8                	mov    %eax,%ecx
40783d:	eb 33                	jmp    0x407872
40783f:	8d 5e 30             	lea    0x30(%esi),%ebx
407842:	83 23 00             	andl   $0x0,(%ebx)
407845:	8b d3                	mov    %ebx,%edx
407847:	51                   	push   %ecx
407848:	8b cf                	mov    %edi,%ecx
40784a:	e8 83 b7 ff ff       	call   0x402fd2
40784f:	8b c8                	mov    %eax,%ecx
407851:	85 c9                	test   %ecx,%ecx
407853:	75 2b                	jne    0x407880
407855:	8b 13                	mov    (%ebx),%edx
407857:	8d 7a 01             	lea    0x1(%edx),%edi
40785a:	8a 02                	mov    (%edx),%al
40785c:	42                   	inc    %edx
40785d:	84 c0                	test   %al,%al
40785f:	75 f9                	jne    0x40785a
407861:	2b d7                	sub    %edi,%edx
407863:	89 56 28             	mov    %edx,0x28(%esi)
407866:	eb 0e                	jmp    0x407876
407868:	83 66 30 00          	andl   $0x0,0x30(%esi)
40786c:	83 66 28 00          	andl   $0x0,0x28(%esi)
407870:	33 c9                	xor    %ecx,%ecx
407872:	85 c9                	test   %ecx,%ecx
407874:	75 0a                	jne    0x407880
407876:	8b 45 08             	mov    0x8(%ebp),%eax
407879:	89 30                	mov    %esi,(%eax)
40787b:	eb 03                	jmp    0x407880
40787d:	6a 08                	push   $0x8
40787f:	59                   	pop    %ecx
407880:	5f                   	pop    %edi
407881:	5e                   	pop    %esi
407882:	8b c1                	mov    %ecx,%eax
407884:	5b                   	pop    %ebx
407885:	5d                   	pop    %ebp
407886:	c2 04 00             	ret    $0x4
407889:	8b ff                	mov    %edi,%edi
40788b:	55                   	push   %ebp
40788c:	8b ec                	mov    %esp,%ebp
40788e:	83 ec 74             	sub    $0x74,%esp
407891:	a1 04 a0 40 00       	mov    0x40a004,%eax
407896:	33 c5                	xor    %ebp,%eax
407898:	89 45 fc             	mov    %eax,-0x4(%ebp)
40789b:	53                   	push   %ebx
40789c:	56                   	push   %esi
40789d:	57                   	push   %edi
40789e:	33 f6                	xor    %esi,%esi
4078a0:	8d 45 b8             	lea    -0x48(%ebp),%eax
4078a3:	6a 40                	push   $0x40
4078a5:	56                   	push   %esi
4078a6:	50                   	push   %eax
4078a7:	8b da                	mov    %edx,%ebx
4078a9:	89 75 94             	mov    %esi,-0x6c(%ebp)
4078ac:	8b f9                	mov    %ecx,%edi
4078ae:	e8 31 18 00 00       	call   0x4090e4
4078b3:	83 c4 0c             	add    $0xc,%esp
4078b6:	83 ff 03             	cmp    $0x3,%edi
4078b9:	74 14                	je     0x4078cf
4078bb:	83 ff 05             	cmp    $0x5,%edi
4078be:	74 0f                	je     0x4078cf
4078c0:	6a 21                	push   $0x21
4078c2:	59                   	pop    %ecx
4078c3:	e8 97 b1 ff ff       	call   0x402a5f
4078c8:	33 c0                	xor    %eax,%eax
4078ca:	e9 ec 00 00 00       	jmp    0x4079bb
4078cf:	8b 43 08             	mov    0x8(%ebx),%eax
4078d2:	89 45 90             	mov    %eax,-0x70(%ebp)
4078d5:	83 ff 05             	cmp    $0x5,%edi
4078d8:	75 1b                	jne    0x4078f5
4078da:	8b 53 10             	mov    0x10(%ebx),%edx
4078dd:	8d 45 94             	lea    -0x6c(%ebp),%eax
4078e0:	8b 4b 0c             	mov    0xc(%ebx),%ecx
4078e3:	50                   	push   %eax
4078e4:	e8 aa fe ff ff       	call   0x407793
4078e9:	8b 75 94             	mov    -0x6c(%ebp),%esi
4078ec:	8b f8                	mov    %eax,%edi
4078ee:	8b 45 90             	mov    -0x70(%ebp),%eax
4078f1:	33 db                	xor    %ebx,%ebx
4078f3:	eb 04                	jmp    0x4078f9
4078f5:	33 db                	xor    %ebx,%ebx
4078f7:	8b fb                	mov    %ebx,%edi
4078f9:	85 ff                	test   %edi,%edi
4078fb:	0f 85 8f 00 00 00    	jne    0x407990
407901:	8d 4d 98             	lea    -0x68(%ebp),%ecx
407904:	51                   	push   %ecx
407905:	8d 4d a8             	lea    -0x58(%ebp),%ecx
407908:	51                   	push   %ecx
407909:	53                   	push   %ebx
40790a:	53                   	push   %ebx
40790b:	53                   	push   %ebx
40790c:	56                   	push   %esi
40790d:	53                   	push   %ebx
40790e:	53                   	push   %ebx
40790f:	53                   	push   %ebx
407910:	53                   	push   %ebx
407911:	6a ff                	push   $0xffffffff
407913:	53                   	push   %ebx
407914:	53                   	push   %ebx
407915:	50                   	push   %eax
407916:	ff 15 38 f0 40 00    	call   *0x40f038
40791c:	8b f8                	mov    %eax,%edi
40791e:	85 ff                	test   %edi,%edi
407920:	75 6e                	jne    0x407990
407922:	6a 20                	push   $0x20
407924:	8d 45 b8             	lea    -0x48(%ebp),%eax
407927:	50                   	push   %eax
407928:	68 64 04 00 00       	push   $0x464
40792d:	53                   	push   %ebx
40792e:	ff 15 20 f1 40 00    	call   *0x40f120
407934:	85 c0                	test   %eax,%eax
407936:	75 04                	jne    0x40793c
407938:	66 89 45 b8          	mov    %ax,-0x48(%ebp)
40793c:	ff 75 b4             	push   -0x4c(%ebp)
40793f:	8d 45 b8             	lea    -0x48(%ebp),%eax
407942:	ff 75 b0             	push   -0x50(%ebp)
407945:	ff 75 ac             	push   -0x54(%ebp)
407948:	ff 75 a8             	push   -0x58(%ebp)
40794b:	50                   	push   %eax
40794c:	68 b4 19 40 00       	push   $0x4019b4
407951:	e8 64 af ff ff       	call   0x4028ba
407956:	83 c4 18             	add    $0x18,%esp
407959:	8d 45 b8             	lea    -0x48(%ebp),%eax
40795c:	6a 20                	push   $0x20
40795e:	50                   	push   %eax
40795f:	68 65 04 00 00       	push   $0x465
407964:	53                   	push   %ebx
407965:	ff 15 20 f1 40 00    	call   *0x40f120
40796b:	85 c0                	test   %eax,%eax
40796d:	75 04                	jne    0x407973
40796f:	66 89 45 b8          	mov    %ax,-0x48(%ebp)
407973:	ff 75 a4             	push   -0x5c(%ebp)
407976:	8d 45 b8             	lea    -0x48(%ebp),%eax
407979:	ff 75 a0             	push   -0x60(%ebp)
40797c:	ff 75 9c             	push   -0x64(%ebp)
40797f:	ff 75 98             	push   -0x68(%ebp)
407982:	50                   	push   %eax
407983:	68 b4 19 40 00       	push   $0x4019b4
407988:	e8 2d af ff ff       	call   0x4028ba
40798d:	83 c4 18             	add    $0x18,%esp
407990:	85 f6                	test   %esi,%esi
407992:	74 25                	je     0x4079b9
407994:	83 7e 2c 00          	cmpl   $0x0,0x2c(%esi)
407998:	74 09                	je     0x4079a3
40799a:	ff 76 2c             	push   0x2c(%esi)
40799d:	ff 15 b0 f0 40 00    	call   *0x40f0b0
4079a3:	83 7e 30 00          	cmpl   $0x0,0x30(%esi)
4079a7:	74 09                	je     0x4079b2
4079a9:	ff 76 30             	push   0x30(%esi)
4079ac:	ff 15 b0 f0 40 00    	call   *0x40f0b0
4079b2:	56                   	push   %esi
4079b3:	ff 15 b0 f0 40 00    	call   *0x40f0b0
4079b9:	8b c7                	mov    %edi,%eax
4079bb:	8b 4d fc             	mov    -0x4(%ebp),%ecx
4079be:	5f                   	pop    %edi
4079bf:	5e                   	pop    %esi
4079c0:	33 cd                	xor    %ebp,%ecx
4079c2:	5b                   	pop    %ebx
4079c3:	e8 08 11 00 00       	call   0x408ad0
4079c8:	c9                   	leave
4079c9:	c3                   	ret
4079ca:	8b ff                	mov    %edi,%edi
4079cc:	55                   	push   %ebp
4079cd:	8b ec                	mov    %esp,%ebp
4079cf:	81 ec 14 04 00 00    	sub    $0x414,%esp
4079d5:	a1 04 a0 40 00       	mov    0x40a004,%eax
4079da:	33 c5                	xor    %ebp,%eax
4079dc:	89 45 fc             	mov    %eax,-0x4(%ebp)
4079df:	53                   	push   %ebx
4079e0:	56                   	push   %esi
4079e1:	57                   	push   %edi
4079e2:	83 f9 04             	cmp    $0x4,%ecx
4079e5:	74 0f                	je     0x4079f6
4079e7:	6a 22                	push   $0x22
4079e9:	59                   	pop    %ecx
4079ea:	e8 70 b0 ff ff       	call   0x402a5f
4079ef:	33 c0                	xor    %eax,%eax
4079f1:	e9 81 00 00 00       	jmp    0x407a77
4079f6:	8b 7a 08             	mov    0x8(%edx),%edi
4079f9:	33 f6                	xor    %esi,%esi
4079fb:	8b 52 0c             	mov    0xc(%edx),%edx
4079fe:	66 83 3a 2a          	cmpw   $0x2a,(%edx)
407a02:	74 50                	je     0x407a54
407a04:	8b ca                	mov    %edx,%ecx
407a06:	8d 59 02             	lea    0x2(%ecx),%ebx
407a09:	66 8b 01             	mov    (%ecx),%ax
407a0c:	83 c1 02             	add    $0x2,%ecx
407a0f:	66 3b c6             	cmp    %si,%ax
407a12:	75 f5                	jne    0x407a09
407a14:	2b cb                	sub    %ebx,%ecx
407a16:	d1 f9                	sar    $1,%ecx
407a18:	81 f9 ff 00 00 00    	cmp    $0xff,%ecx
407a1e:	76 05                	jbe    0x407a25
407a20:	6a 57                	push   $0x57
407a22:	58                   	pop    %eax
407a23:	eb 52                	jmp    0x407a77
407a25:	33 c0                	xor    %eax,%eax
407a27:	c7 85 f0 fb ff ff 01 	movl   $0x1,-0x410(%ebp)
407a2e:	00 00 00
407a31:	52                   	push   %edx
407a32:	ba 00 01 00 00       	mov    $0x100,%edx
407a37:	66 89 85 f4 fb ff ff 	mov    %ax,-0x40c(%ebp)
407a3e:	8d 8d f4 fd ff ff    	lea    -0x20c(%ebp),%ecx
407a44:	e8 17 ad ff ff       	call   0x402760
407a49:	b8 bc 0c 00 00       	mov    $0xcbc,%eax
407a4e:	66 89 45 f4          	mov    %ax,-0xc(%ebp)
407a52:	eb 0f                	jmp    0x407a63
407a54:	33 c0                	xor    %eax,%eax
407a56:	89 b5 f0 fb ff ff    	mov    %esi,-0x410(%ebp)
407a5c:	66 89 85 f4 fd ff ff 	mov    %ax,-0x20c(%ebp)
407a63:	8d 85 f0 fb ff ff    	lea    -0x410(%ebp),%eax
407a69:	50                   	push   %eax
407a6a:	56                   	push   %esi
407a6b:	56                   	push   %esi
407a6c:	6a 01                	push   $0x1
407a6e:	56                   	push   %esi
407a6f:	56                   	push   %esi
407a70:	57                   	push   %edi
407a71:	ff 15 44 f0 40 00    	call   *0x40f044
407a77:	8b 4d fc             	mov    -0x4(%ebp),%ecx
407a7a:	5f                   	pop    %edi
407a7b:	5e                   	pop    %esi
407a7c:	33 cd                	xor    %ebp,%ecx
407a7e:	5b                   	pop    %ebx
407a7f:	e8 4c 10 00 00       	call   0x408ad0
407a84:	c9                   	leave
407a85:	c3                   	ret
407a86:	8b ff                	mov    %edi,%edi
407a88:	55                   	push   %ebp
407a89:	8b ec                	mov    %esp,%ebp
407a8b:	81 ec 18 04 00 00    	sub    $0x418,%esp
407a91:	a1 04 a0 40 00       	mov    0x40a004,%eax
407a96:	33 c5                	xor    %ebp,%eax
407a98:	89 45 fc             	mov    %eax,-0x4(%ebp)
407a9b:	53                   	push   %ebx
407a9c:	56                   	push   %esi
407a9d:	33 c0                	xor    %eax,%eax
407a9f:	8b da                	mov    %edx,%ebx
407aa1:	57                   	push   %edi
407aa2:	8b f9                	mov    %ecx,%edi
407aa4:	89 85 e8 fb ff ff    	mov    %eax,-0x418(%ebp)
407aaa:	8b f0                	mov    %eax,%esi
407aac:	89 b5 ec fb ff ff    	mov    %esi,-0x414(%ebp)
407ab2:	83 ff 03             	cmp    $0x3,%edi
407ab5:	74 14                	je     0x407acb
407ab7:	83 ff 05             	cmp    $0x5,%edi
407aba:	74 0f                	je     0x407acb
407abc:	6a 23                	push   $0x23
407abe:	59                   	pop    %ecx
407abf:	e8 9b af ff ff       	call   0x402a5f
407ac4:	33 c0                	xor    %eax,%eax
407ac6:	e9 b7 00 00 00       	jmp    0x407b82
407acb:	8b 4b 08             	mov    0x8(%ebx),%ecx
407ace:	8d 51 02             	lea    0x2(%ecx),%edx
407ad1:	66 8b 01             	mov    (%ecx),%ax
407ad4:	83 c1 02             	add    $0x2,%ecx
407ad7:	66 3b 85 e8 fb ff ff 	cmp    -0x418(%ebp),%ax
407ade:	75 f1                	jne    0x407ad1
407ae0:	2b ca                	sub    %edx,%ecx
407ae2:	d1 f9                	sar    $1,%ecx
407ae4:	81 f9 ff 00 00 00    	cmp    $0xff,%ecx
407aea:	76 08                	jbe    0x407af4
407aec:	6a 57                	push   $0x57
407aee:	58                   	pop    %eax
407aef:	e9 8e 00 00 00       	jmp    0x407b82
407af4:	ff 73 08             	push   0x8(%ebx)
407af7:	ba 00 01 00 00       	mov    $0x100,%edx
407afc:	8d 8d f0 fd ff ff    	lea    -0x210(%ebp),%ecx
407b02:	e8 59 ac ff ff       	call   0x402760
407b07:	33 c0                	xor    %eax,%eax
407b09:	c7 45 ee 00 00 bc 0c 	movl   $0xcbc0000,-0x12(%ebp)
407b10:	66 89 85 f0 fb ff ff 	mov    %ax,-0x410(%ebp)
407b17:	83 ff 05             	cmp    $0x5,%edi
407b1a:	75 1e                	jne    0x407b3a
407b1c:	8b 53 10             	mov    0x10(%ebx),%edx
407b1f:	8d 85 ec fb ff ff    	lea    -0x414(%ebp),%eax
407b25:	8b 4b 0c             	mov    0xc(%ebx),%ecx
407b28:	50                   	push   %eax
407b29:	e8 65 fc ff ff       	call   0x407793
407b2e:	8b b5 ec fb ff ff    	mov    -0x414(%ebp),%esi
407b34:	8b f8                	mov    %eax,%edi
407b36:	33 c9                	xor    %ecx,%ecx
407b38:	eb 04                	jmp    0x407b3e
407b3a:	33 c9                	xor    %ecx,%ecx
407b3c:	8b f9                	mov    %ecx,%edi
407b3e:	85 ff                	test   %edi,%edi
407b40:	75 15                	jne    0x407b57
407b42:	8d 85 f0 fb ff ff    	lea    -0x410(%ebp),%eax
407b48:	50                   	push   %eax
407b49:	51                   	push   %ecx
407b4a:	51                   	push   %ecx
407b4b:	56                   	push   %esi
407b4c:	6a ff                	push   $0xffffffff
407b4e:	51                   	push   %ecx
407b4f:	ff 15 00 f0 40 00    	call   *0x40f000
407b55:	8b f8                	mov    %eax,%edi
407b57:	85 f6                	test   %esi,%esi
407b59:	74 25                	je     0x407b80
407b5b:	83 7e 2c 00          	cmpl   $0x0,0x2c(%esi)
407b5f:	74 09                	je     0x407b6a
407b61:	ff 76 2c             	push   0x2c(%esi)
407b64:	ff 15 b0 f0 40 00    	call   *0x40f0b0
407b6a:	83 7e 30 00          	cmpl   $0x0,0x30(%esi)
407b6e:	74 09                	je     0x407b79
407b70:	ff 76 30             	push   0x30(%esi)
407b73:	ff 15 b0 f0 40 00    	call   *0x40f0b0
407b79:	56                   	push   %esi
407b7a:	ff 15 b0 f0 40 00    	call   *0x40f0b0
407b80:	8b c7                	mov    %edi,%eax