4078ef:	83 4d fc ff          	orl    $0xffffffff,-0x4(%ebp)
4078f3:	85 ff                	test   %edi,%edi
4078f5:	74 44                	je     0x40793b
4078f7:	8b 47 04             	mov    0x4(%edi),%eax
4078fa:	b9 ff ff ff 7f       	mov    $0x7fffffff,%ecx
4078ff:	3b c1                	cmp    %ecx,%eax
407901:	74 0c                	je     0x40790f
407903:	40                   	inc    %eax
407904:	89 47 04             	mov    %eax,0x4(%edi)
407907:	3b c1                	cmp    %ecx,%eax
407909:	74 04                	je     0x40790f
40790b:	48                   	dec    %eax
40790c:	89 47 04             	mov    %eax,0x4(%edi)
40790f:	8b 07                	mov    (%edi),%eax
407911:	56                   	push   %esi
407912:	ff 75 e4             	push   -0x1c(%ebp)
407915:	8b 30                	mov    (%eax),%esi
407917:	8b ce                	mov    %esi,%ecx
407919:	57                   	push   %edi
40791a:	ff 15 28 63 41 00    	call   *0x416328
407920:	ff d6                	call   *%esi
407922:	8b d8                	mov    %eax,%ebx
407924:	85 db                	test   %ebx,%ebx
407926:	74 13                	je     0x40793b
407928:	8b 17                	mov    (%edi),%edx
40792a:	6a 01                	push   $0x1
40792c:	8b 72 28             	mov    0x28(%edx),%esi
40792f:	8b ce                	mov    %esi,%ecx
407931:	ff 15 28 63 41 00    	call   *0x416328
407937:	8b cf                	mov    %edi,%ecx
407939:	ff d6                	call   *%esi
40793b:	8b c3                	mov    %ebx,%eax
40793d:	e8 ea ab 00 00       	call   0x41252c
407942:	c2 04 00             	ret    $0x4
407945:	cc                   	int3
407946:	cc                   	int3
407947:	cc                   	int3
407948:	cc                   	int3
407949:	cc                   	int3
40794a:	cc                   	int3
40794b:	cc                   	int3
40794c:	cc                   	int3
40794d:	cc                   	int3
40794e:	cc                   	int3
40794f:	cc                   	int3
407950:	8b ff                	mov    %edi,%edi
407952:	55                   	push   %ebp
407953:	8b ec                	mov    %esp,%ebp
407955:	ff 75 10             	push   0x10(%ebp)
407958:	8b 4d 08             	mov    0x8(%ebp),%ecx
40795b:	ba 9c 19 40 00       	mov    $0x40199c,%edx
407960:	ff 75 0c             	push   0xc(%ebp)
407963:	e8 4a ef ff ff       	call   0x4068b2
407968:	5d                   	pop    %ebp
407969:	c2 0c 00             	ret    $0xc
40796c:	cc                   	int3
40796d:	cc                   	int3
40796e:	cc                   	int3
40796f:	cc                   	int3
407970:	8b ff                	mov    %edi,%edi
407972:	55                   	push   %ebp
407973:	8b ec                	mov    %esp,%ebp
407975:	56                   	push   %esi
407976:	8b 75 08             	mov    0x8(%ebp),%esi
407979:	57                   	push   %edi
40797a:	8d 4e 04             	lea    0x4(%esi),%ecx
40797d:	e8 5b fd ff ff       	call   0x4076dd
407982:	8b f8                	mov    %eax,%edi
407984:	85 ff                	test   %edi,%edi
407986:	75 1f                	jne    0x4079a7
407988:	85 f6                	test   %esi,%esi
40798a:	74 1b                	je     0x4079a7
40798c:	c7 01 01 00 00 c0    	movl   $0xc0000001,(%ecx)
407992:	8b ce                	mov    %esi,%ecx
407994:	c7 06 24 18 40 00    	movl   $0x401824,(%esi)
40799a:	e8 71 09 00 00       	call   0x408310
40799f:	56                   	push   %esi
4079a0:	ff 15 d0 62 41 00    	call   *0x4162d0
4079a6:	59                   	pop    %ecx
4079a7:	8b c7                	mov    %edi,%eax
4079a9:	5f                   	pop    %edi
4079aa:	5e                   	pop    %esi
4079ab:	5d                   	pop    %ebp
4079ac:	c2 04 00             	ret    $0x4
4079af:	cc                   	int3
4079b0:	8b ff                	mov    %edi,%edi
4079b2:	55                   	push   %ebp
4079b3:	8b ec                	mov    %esp,%ebp
4079b5:	8b 4d 08             	mov    0x8(%ebp),%ecx
4079b8:	8d 49 04             	lea    0x4(%ecx),%ecx
4079bb:	e8 09 d3 ff ff       	call   0x404cc9
4079c0:	5d                   	pop    %ebp
4079c1:	c2 04 00             	ret    $0x4
4079c4:	cc                   	int3
4079c5:	cc                   	int3
4079c6:	cc                   	int3
4079c7:	cc                   	int3
4079c8:	cc                   	int3
4079c9:	cc                   	int3
4079ca:	cc                   	int3
4079cb:	cc                   	int3
4079cc:	cc                   	int3
4079cd:	cc                   	int3
4079ce:	cc                   	int3
4079cf:	cc                   	int3
4079d0:	6a 0c                	push   $0xc
4079d2:	68 f8 37 41 00       	push   $0x4137f8
4079d7:	e8 9c af 00 00       	call   0x412978
4079dc:	b8 03 40 00 80       	mov    $0x80004003,%eax
4079e1:	8b 5d 14             	mov    0x14(%ebp),%ebx
4079e4:	85 db                	test   %ebx,%ebx
4079e6:	0f 84 9a 00 00 00    	je     0x407a86
4079ec:	33 c0                	xor    %eax,%eax
4079ee:	89 03                	mov    %eax,(%ebx)
4079f0:	39 45 0c             	cmp    %eax,0xc(%ebp)
4079f3:	74 0a                	je     0x4079ff
4079f5:	b8 10 01 04 80       	mov    $0x80040110,%eax
4079fa:	e9 87 00 00 00       	jmp    0x407a86
4079ff:	8b 7d 08             	mov    0x8(%ebp),%edi
407a02:	39 47 28             	cmp    %eax,0x28(%edi)
407a05:	75 62                	jne    0x407a69
407a07:	8d 77 2c             	lea    0x2c(%edi),%esi
407a0a:	39 06                	cmp    %eax,(%esi)
407a0c:	75 5b                	jne    0x407a69
407a0e:	89 45 fc             	mov    %eax,-0x4(%ebp)
407a11:	8d 47 08             	lea    0x8(%edi),%eax
407a14:	50                   	push   %eax
407a15:	ff 15 64 61 41 00    	call   *0x416164
407a1b:	83 7f 28 00          	cmpl   $0x0,0x28(%edi)
407a1f:	75 3c                	jne    0x407a5d
407a21:	83 3e 00             	cmpl   $0x0,(%esi)
407a24:	75 37                	jne    0x407a5d
407a26:	8d 4d e4             	lea    -0x1c(%ebp),%ecx
407a29:	e8 7d 11 00 00       	call   0x408bab
407a2e:	89 47 28             	mov    %eax,0x28(%edi)
407a31:	85 c0                	test   %eax,%eax
407a33:	78 28                	js     0x407a5d
407a35:	8b 4d e4             	mov    -0x1c(%ebp),%ecx
407a38:	8b 01                	mov    (%ecx),%eax
407a3a:	56                   	push   %esi
407a3b:	68 5c 27 40 00       	push   $0x40275c
407a40:	51                   	push   %ecx
407a41:	8b 30                	mov    (%eax),%esi
407a43:	8b ce                	mov    %esi,%ecx
407a45:	ff 15 28 63 41 00    	call   *0x416328
407a4b:	ff d6                	call   *%esi
407a4d:	89 47 28             	mov    %eax,0x28(%edi)
407a50:	85 c0                	test   %eax,%eax
407a52:	79 09                	jns    0x407a5d
407a54:	51                   	push   %ecx
407a55:	8b 4d e4             	mov    -0x1c(%ebp),%ecx
407a58:	e8 dc 04 00 00       	call   0x407f39
407a5d:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
407a64:	e8 35 00 00 00       	call   0x407a9e
407a69:	8b 47 28             	mov    0x28(%edi),%eax
407a6c:	85 c0                	test   %eax,%eax
407a6e:	75 16                	jne    0x407a86
407a70:	8b 47 2c             	mov    0x2c(%edi),%eax
407a73:	8b 08                	mov    (%eax),%ecx
407a75:	53                   	push   %ebx
407a76:	ff 75 10             	push   0x10(%ebp)
407a79:	50                   	push   %eax
407a7a:	8b 31                	mov    (%ecx),%esi
407a7c:	8b ce                	mov    %esi,%ecx
407a7e:	ff 15 28 63 41 00    	call   *0x416328
407a84:	ff d6                	call   *%esi
407a86:	8b 4d f0             	mov    -0x10(%ebp),%ecx
407a89:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
407a90:	59                   	pop    %ecx
407a91:	5f                   	pop    %edi
407a92:	5e                   	pop    %esi
407a93:	5b                   	pop    %ebx
407a94:	c9                   	leave
407a95:	c2 10 00             	ret    $0x10
407a98:	8b 7d 08             	mov    0x8(%ebp),%edi
407a9b:	8b 5d 14             	mov    0x14(%ebp),%ebx
407a9e:	8d 47 08             	lea    0x8(%edi),%eax
407aa1:	50                   	push   %eax
407aa2:	ff 15 5c 61 41 00    	call   *0x41615c
407aa8:	c3                   	ret
407aa9:	6a 14                	push   $0x14
407aab:	b8 9c 2d 41 00       	mov    $0x412d9c,%eax
407ab0:	e8 12 ab 00 00       	call   0x4125c7
407ab5:	89 55 e4             	mov    %edx,-0x1c(%ebp)
407ab8:	8b 45 08             	mov    0x8(%ebp),%eax
407abb:	85 c0                	test   %eax,%eax
407abd:	75 0a                	jne    0x407ac9
407abf:	b8 03 40 00 80       	mov    $0x80004003,%eax
407ac4:	e9 ca 00 00 00       	jmp    0x407b93
407ac9:	83 20 00             	andl   $0x0,(%eax)
407acc:	bf 0e 00 07 80       	mov    $0x8007000e,%edi
407ad1:	83 65 e8 00          	andl   $0x0,-0x18(%ebp)
407ad5:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
407ad9:	6a 40                	push   $0x40
407adb:	89 7d ec             	mov    %edi,-0x14(%ebp)
407ade:	e8 c5 99 00 00       	call   0x4114a8
407ae3:	8b d8                	mov    %eax,%ebx
407ae5:	59                   	pop    %ecx
407ae6:	89 5d e0             	mov    %ebx,-0x20(%ebp)
407ae9:	85 db                	test   %ebx,%ebx
407aeb:	74 36                	je     0x407b23
407aed:	8b cb                	mov    %ebx,%ecx
407aef:	e8 cc f6 ff ff       	call   0x4071c0
407af4:	c6 45 fc 02          	movb   $0x2,-0x4(%ebp)
407af8:	8b 3d a4 55 41 00    	mov    0x4155a4,%edi
407afe:	c7 03 98 17 40 00    	movl   $0x401798,(%ebx)
407b04:	c7 43 04 08 17 40 00 	movl   $0x401708,0x4(%ebx)
407b0b:	8b 07                	mov    (%edi),%eax
407b0d:	8b 70 04             	mov    0x4(%eax),%esi
407b10:	8b ce                	mov    %esi,%ecx
407b12:	ff 15 28 63 41 00    	call   *0x416328
407b18:	8b cf                	mov    %edi,%ecx
407b1a:	ff d6                	call   *%esi
407b1c:	bf 0e 00 07 80       	mov    $0x8007000e,%edi
407b21:	eb 10                	jmp    0x407b33
407b23:	33 db                	xor    %ebx,%ebx
407b25:	eb 0c                	jmp    0x407b33
407b27:	b8 2d 7b 40 00       	mov    $0x407b2d,%eax
407b2c:	c3                   	ret
407b2d:	8b 7d ec             	mov    -0x14(%ebp),%edi
407b30:	8b 5d e8             	mov    -0x18(%ebp),%ebx
407b33:	83 4d fc ff          	orl    $0xffffffff,-0x4(%ebp)
407b37:	85 db                	test   %ebx,%ebx
407b39:	74 56                	je     0x407b91
407b3b:	8d 4b 08             	lea    0x8(%ebx),%ecx
407b3e:	e8 86 d1 ff ff       	call   0x404cc9
407b43:	8d 4b 0c             	lea    0xc(%ebx),%ecx
407b46:	e8 f4 d0 ff ff       	call   0x404c3f
407b4b:	8b f8                	mov    %eax,%edi
407b4d:	85 ff                	test   %edi,%edi
407b4f:	78 06                	js     0x407b57
407b51:	c6 43 24 01          	movb   $0x1,0x24(%ebx)
407b55:	33 ff                	xor    %edi,%edi
407b57:	8d 4b 08             	lea    0x8(%ebx),%ecx
407b5a:	e8 7e fb ff ff       	call   0x4076dd
407b5f:	85 ff                	test   %edi,%edi
407b61:	75 1b                	jne    0x407b7e
407b63:	ff 75 08             	push   0x8(%ebp)
407b66:	8b 03                	mov    (%ebx),%eax
407b68:	ff 75 e4             	push   -0x1c(%ebp)
407b6b:	53                   	push   %ebx
407b6c:	8b 30                	mov    (%eax),%esi
407b6e:	8b ce                	mov    %esi,%ecx
407b70:	ff 15 28 63 41 00    	call   *0x416328
407b76:	ff d6                	call   *%esi
407b78:	8b f8                	mov    %eax,%edi
407b7a:	85 ff                	test   %edi,%edi
407b7c:	74 13                	je     0x407b91
407b7e:	8b 13                	mov    (%ebx),%edx
407b80:	6a 01                	push   $0x1
407b82:	8b 72 10             	mov    0x10(%edx),%esi
407b85:	8b ce                	mov    %esi,%ecx
407b87:	ff 15 28 63 41 00    	call   *0x416328
407b8d:	8b cb                	mov    %ebx,%ecx
407b8f:	ff d6                	call   *%esi
407b91:	8b c7                	mov    %edi,%eax
407b93:	e8 94 a9 00 00       	call   0x41252c
407b98:	c2 04 00             	ret    $0x4
407b9b:	6a 18                	push   $0x18
407b9d:	b8 c2 2d 41 00       	mov    $0x412dc2,%eax
407ba2:	e8 20 aa 00 00       	call   0x4125c7
407ba7:	89 55 e0             	mov    %edx,-0x20(%ebp)
407baa:	89 4d ec             	mov    %ecx,-0x14(%ebp)
407bad:	8b 75 08             	mov    0x8(%ebp),%esi
407bb0:	85 f6                	test   %esi,%esi
407bb2:	75 07                	jne    0x407bbb
407bb4:	b8 03 40 00 80       	mov    $0x80004003,%eax
407bb9:	eb 7b                	jmp    0x407c36
407bbb:	33 ff                	xor    %edi,%edi
407bbd:	bb 0e 00 07 80       	mov    $0x8007000e,%ebx
407bc2:	68 44 04 00 00       	push   $0x444
407bc7:	89 3e                	mov    %edi,(%esi)
407bc9:	89 5d e8             	mov    %ebx,-0x18(%ebp)
407bcc:	89 7d e4             	mov    %edi,-0x1c(%ebp)
407bcf:	89 7d fc             	mov    %edi,-0x4(%ebp)
407bd2:	e8 d1 98 00 00       	call   0x4114a8
407bd7:	59                   	pop    %ecx
407bd8:	89 45 dc             	mov    %eax,-0x24(%ebp)
407bdb:	c6 45 fc 01          	movb   $0x1,-0x4(%ebp)
407bdf:	85 c0                	test   %eax,%eax
407be1:	74 1d                	je     0x407c00
407be3:	ff 75 ec             	push   -0x14(%ebp)
407be6:	8b c8                	mov    %eax,%ecx
407be8:	e8 c3 09 00 00       	call   0x4085b0
407bed:	8b f8                	mov    %eax,%edi
407bef:	eb 0f                	jmp    0x407c00
407bf1:	b8 f7 7b 40 00       	mov    $0x407bf7,%eax
407bf6:	c3                   	ret
407bf7:	8b 75 08             	mov    0x8(%ebp),%esi
407bfa:	8b 5d e8             	mov    -0x18(%ebp),%ebx
407bfd:	8b 7d e4             	mov    -0x1c(%ebp),%edi
407c00:	83 4d fc ff          	orl    $0xffffffff,-0x4(%ebp)
407c04:	85 ff                	test   %edi,%edi
407c06:	74 2c                	je     0x407c34
407c08:	8b 07                	mov    (%edi),%eax
407c0a:	56                   	push   %esi
407c0b:	ff 75 e0             	push   -0x20(%ebp)
407c0e:	8b 30                	mov    (%eax),%esi
407c10:	8b ce                	mov    %esi,%ecx
407c12:	57                   	push   %edi
407c13:	ff 15 28 63 41 00    	call   *0x416328
407c19:	ff d6                	call   *%esi
407c1b:	8b d8                	mov    %eax,%ebx
407c1d:	85 db                	test   %ebx,%ebx
407c1f:	74 13                	je     0x407c34
407c21:	8b 17                	mov    (%edi),%edx
407c23:	6a 01                	push   $0x1
407c25:	8b 72 0c             	mov    0xc(%edx),%esi
407c28:	8b ce                	mov    %esi,%ecx
407c2a:	ff 15 28 63 41 00    	call   *0x416328
407c30:	8b cf                	mov    %edi,%ecx
407c32:	ff d6                	call   *%esi
407c34:	8b c3                	mov    %ebx,%eax
407c36:	e8 f1 a8 00 00       	call   0x41252c
407c3b:	c2 04 00             	ret    $0x4
407c3e:	6a 14                	push   $0x14
407c40:	b8 f0 2d 41 00       	mov    $0x412df0,%eax
407c45:	e8 7d a9 00 00       	call   0x4125c7
407c4a:	89 55 e4             	mov    %edx,-0x1c(%ebp)
407c4d:	8b 45 08             	mov    0x8(%ebp),%eax
407c50:	85 c0                	test   %eax,%eax
407c52:	75 0a                	jne    0x407c5e
407c54:	b8 03 40 00 80       	mov    $0x80004003,%eax
407c59:	e9 c2 00 00 00       	jmp    0x407d20
407c5e:	33 ff                	xor    %edi,%edi
407c60:	be 0e 00 07 80       	mov    $0x8007000e,%esi
407c65:	68 3c 04 00 00       	push   $0x43c
407c6a:	89 38                	mov    %edi,(%eax)
407c6c:	89 75 ec             	mov    %esi,-0x14(%ebp)
407c6f:	89 7d e8             	mov    %edi,-0x18(%ebp)
407c72:	89 7d fc             	mov    %edi,-0x4(%ebp)
407c75:	e8 2e 98 00 00       	call   0x4114a8
407c7a:	8b d8                	mov    %eax,%ebx
407c7c:	59                   	pop    %ecx
407c7d:	89 5d e0             	mov    %ebx,-0x20(%ebp)
407c80:	85 db                	test   %ebx,%ebx
407c82:	74 36                	je     0x407cba
407c84:	8b cb                	mov    %ebx,%ecx
407c86:	e8 fb f4 ff ff       	call   0x407186
407c8b:	c6 45 fc 02          	movb   $0x2,-0x4(%ebp)
407c8f:	8b 3d a4 55 41 00    	mov    0x4155a4,%edi
407c95:	c7 03 54 17 40 00    	movl   $0x401754,(%ebx)
407c9b:	c7 43 04 c8 16 40 00 	movl   $0x4016c8,0x4(%ebx)
407ca2:	8b 07                	mov    (%edi),%eax
407ca4:	8b 70 04             	mov    0x4(%eax),%esi
407ca7:	8b ce                	mov    %esi,%ecx
407ca9:	ff 15 28 63 41 00    	call   *0x416328
407caf:	8b cf                	mov    %edi,%ecx
407cb1:	ff d6                	call   *%esi
407cb3:	be 0e 00 07 80       	mov    $0x8007000e,%esi