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
407b82:	8b 4d fc             	mov    -0x4(%ebp),%ecx
407b85:	5f                   	pop    %edi
407b86:	5e                   	pop    %esi
407b87:	33 cd                	xor    %ebp,%ecx
407b89:	5b                   	pop    %ebx
407b8a:	e8 41 0f 00 00       	call   0x408ad0
407b8f:	c9                   	leave
407b90:	c3                   	ret
407b91:	8b ff                	mov    %edi,%edi
407b93:	55                   	push   %ebp
407b94:	8b ec                	mov    %esp,%ebp
407b96:	81 ec 84 04 00 00    	sub    $0x484,%esp
407b9c:	a1 04 a0 40 00       	mov    0x40a004,%eax
407ba1:	33 c5                	xor    %ebp,%eax
407ba3:	89 45 fc             	mov    %eax,-0x4(%ebp)
407ba6:	53                   	push   %ebx
407ba7:	56                   	push   %esi
407ba8:	57                   	push   %edi
407ba9:	33 c0                	xor    %eax,%eax
407bab:	8b d9                	mov    %ecx,%ebx
407bad:	6a 40                	push   $0x40
407baf:	8b f0                	mov    %eax,%esi
407bb1:	89 85 88 fb ff ff    	mov    %eax,-0x478(%ebp)
407bb7:	50                   	push   %eax
407bb8:	8d 45 b8             	lea    -0x48(%ebp),%eax
407bbb:	89 9d 84 fb ff ff    	mov    %ebx,-0x47c(%ebp)
407bc1:	50                   	push   %eax
407bc2:	8b fa                	mov    %edx,%edi
407bc4:	89 b5 8c fb ff ff    	mov    %esi,-0x474(%ebp)
407bca:	e8 15 15 00 00       	call   0x4090e4
407bcf:	83 c4 0c             	add    $0xc,%esp
407bd2:	83 fb 05             	cmp    $0x5,%ebx
407bd5:	74 05                	je     0x407bdc
407bd7:	83 fb 07             	cmp    $0x7,%ebx
407bda:	75 0f                	jne    0x407beb
407bdc:	8b 4f 08             	mov    0x8(%edi),%ecx
407bdf:	8d 55 98             	lea    -0x68(%ebp),%edx
407be2:	e8 ad be ff ff       	call   0x403a94
407be7:	84 c0                	test   %al,%al
407be9:	75 0f                	jne    0x407bfa
407beb:	6a 24                	push   $0x24
407bed:	59                   	pop    %ecx
407bee:	e8 6c ae ff ff       	call   0x402a5f
407bf3:	33 c0                	xor    %eax,%eax
407bf5:	e9 28 01 00 00       	jmp    0x407d22
407bfa:	8b 5f 10             	mov    0x10(%edi),%ebx
407bfd:	8b 47 0c             	mov    0xc(%edi),%eax
407c00:	89 85 80 fb ff ff    	mov    %eax,-0x480(%ebp)
407c06:	66 83 3b 2a          	cmpw   $0x2a,(%ebx)
407c0a:	74 4d                	je     0x407c59
407c0c:	8b cb                	mov    %ebx,%ecx
407c0e:	8d 51 02             	lea    0x2(%ecx),%edx
407c11:	66 8b 01             	mov    (%ecx),%ax
407c14:	83 c1 02             	add    $0x2,%ecx
407c17:	66 3b 85 88 fb ff ff 	cmp    -0x478(%ebp),%ax
407c1e:	75 f1                	jne    0x407c11
407c20:	2b ca                	sub    %edx,%ecx
407c22:	d1 f9                	sar    $1,%ecx
407c24:	81 f9 ff 00 00 00    	cmp    $0xff,%ecx
407c2a:	76 08                	jbe    0x407c34
407c2c:	6a 57                	push   $0x57
407c2e:	58                   	pop    %eax
407c2f:	e9 ee 00 00 00       	jmp    0x407d22
407c34:	53                   	push   %ebx
407c35:	ba 00 01 00 00       	mov    $0x100,%edx
407c3a:	8d 8d 90 fd ff ff    	lea    -0x270(%ebp),%ecx
407c40:	e8 1b ab ff ff       	call   0x402760
407c45:	b8 bc 0c 00 00       	mov    $0xcbc,%eax
407c4a:	66 89 45 90          	mov    %ax,-0x70(%ebp)
407c4e:	33 c0                	xor    %eax,%eax
407c50:	66 89 85 90 fb ff ff 	mov    %ax,-0x470(%ebp)
407c57:	eb 05                	jmp    0x407c5e
407c59:	bb e0 11 40 00       	mov    $0x4011e0,%ebx
407c5e:	83 bd 84 fb ff ff 07 	cmpl   $0x7,-0x47c(%ebp)
407c65:	75 1e                	jne    0x407c85
407c67:	8b 57 18             	mov    0x18(%edi),%edx
407c6a:	8d 85 8c fb ff ff    	lea    -0x474(%ebp),%eax
407c70:	8b 4f 14             	mov    0x14(%edi),%ecx
407c73:	50                   	push   %eax
407c74:	e8 1a fb ff ff       	call   0x407793
407c79:	8b b5 8c fb ff ff    	mov    -0x474(%ebp),%esi
407c7f:	8b f8                	mov    %eax,%edi
407c81:	33 c9                	xor    %ecx,%ecx
407c83:	eb 04                	jmp    0x407c89
407c85:	33 c9                	xor    %ecx,%ecx
407c87:	8b f9                	mov    %ecx,%edi
407c89:	85 ff                	test   %edi,%edi
407c8b:	75 6a                	jne    0x407cf7
407c8d:	8d 45 a8             	lea    -0x58(%ebp),%eax
407c90:	50                   	push   %eax
407c91:	0f b7 03             	movzwl (%ebx),%eax
407c94:	51                   	push   %ecx
407c95:	51                   	push   %ecx
407c96:	56                   	push   %esi
407c97:	51                   	push   %ecx
407c98:	51                   	push   %ecx
407c99:	f7 d8                	neg    %eax
407c9b:	8d 8d 90 fb ff ff    	lea    -0x470(%ebp),%ecx
407ca1:	1b c0                	sbb    %eax,%eax
407ca3:	23 c1                	and    %ecx,%eax
407ca5:	50                   	push   %eax
407ca6:	6a ff                	push   $0xffffffff
407ca8:	ff b5 80 fb ff ff    	push   -0x480(%ebp)
407cae:	8d 45 98             	lea    -0x68(%ebp),%eax
407cb1:	50                   	push   %eax
407cb2:	ff 15 5c f0 40 00    	call   *0x40f05c
407cb8:	8b f8                	mov    %eax,%edi
407cba:	85 ff                	test   %edi,%edi
407cbc:	75 39                	jne    0x407cf7
407cbe:	6a 20                	push   $0x20
407cc0:	8d 45 b8             	lea    -0x48(%ebp),%eax
407cc3:	50                   	push   %eax
407cc4:	68 65 04 00 00       	push   $0x465
407cc9:	33 c0                	xor    %eax,%eax
407ccb:	50                   	push   %eax
407ccc:	ff 15 20 f1 40 00    	call   *0x40f120
407cd2:	85 c0                	test   %eax,%eax
407cd4:	75 04                	jne    0x407cda
407cd6:	66 89 45 b8          	mov    %ax,-0x48(%ebp)
407cda:	ff 75 b4             	push   -0x4c(%ebp)
407cdd:	8d 45 b8             	lea    -0x48(%ebp),%eax
407ce0:	ff 75 b0             	push   -0x50(%ebp)
407ce3:	ff 75 ac             	push   -0x54(%ebp)
407ce6:	ff 75 a8             	push   -0x58(%ebp)
407ce9:	50                   	push   %eax
407cea:	68 b4 19 40 00       	push   $0x4019b4
407cef:	e8 c6 ab ff ff       	call   0x4028ba
407cf4:	83 c4 18             	add    $0x18,%esp
407cf7:	85 f6                	test   %esi,%esi
407cf9:	74 25                	je     0x407d20
407cfb:	83 7e 2c 00          	cmpl   $0x0,0x2c(%esi)
407cff:	74 09                	je     0x407d0a
407d01:	ff 76 2c             	push   0x2c(%esi)
407d04:	ff 15 b0 f0 40 00    	call   *0x40f0b0
407d0a:	83 7e 30 00          	cmpl   $0x0,0x30(%esi)
407d0e:	74 09                	je     0x407d19
407d10:	ff 76 30             	push   0x30(%esi)
407d13:	ff 15 b0 f0 40 00    	call   *0x40f0b0
407d19:	56                   	push   %esi
407d1a:	ff 15 b0 f0 40 00    	call   *0x40f0b0
407d20:	8b c7                	mov    %edi,%eax
407d22:	8b 4d fc             	mov    -0x4(%ebp),%ecx
407d25:	5f                   	pop    %edi
407d26:	5e                   	pop    %esi
407d27:	33 cd                	xor    %ebp,%ecx
407d29:	5b                   	pop    %ebx
407d2a:	e8 a1 0d 00 00       	call   0x408ad0
407d2f:	c9                   	leave
407d30:	c3                   	ret
407d31:	8b ff                	mov    %edi,%edi
407d33:	55                   	push   %ebp
407d34:	8b ec                	mov    %esp,%ebp
407d36:	81 ec 10 02 00 00    	sub    $0x210,%esp
407d3c:	a1 04 a0 40 00       	mov    0x40a004,%eax
407d41:	33 c5                	xor    %ebp,%eax
407d43:	89 45 fc             	mov    %eax,-0x4(%ebp)
407d46:	56                   	push   %esi
407d47:	57                   	push   %edi
407d48:	8d 85 f4 fd ff ff    	lea    -0x20c(%ebp),%eax
407d4e:	50                   	push   %eax
407d4f:	51                   	push   %ecx
407d50:	ff 15 8c f1 40 00    	call   *0x40f18c
407d56:	8b f0                	mov    %eax,%esi
407d58:	85 f6                	test   %esi,%esi
407d5a:	0f 84 ac 06 00 00    	je     0x40840c
407d60:	33 ff                	xor    %edi,%edi
407d62:	47                   	inc    %edi
407d63:	39 bd f4 fd ff ff    	cmp    %edi,-0x20c(%ebp)
407d69:	0f 8e 92 06 00 00    	jle    0x408401
407d6f:	68 c4 1e 40 00       	push   $0x401ec4
407d74:	ff 76 04             	push   0x4(%esi)
407d77:	ff 15 e8 f1 40 00    	call   *0x40f1e8
407d7d:	59                   	pop    %ecx
407d7e:	59                   	pop    %ecx
407d7f:	85 c0                	test   %eax,%eax