404c47:	74 2d                	je     0x404c76
404c49:	8b 58 fc             	mov    -0x4(%eax),%ebx
404c4c:	85 db                	test   %ebx,%ebx
404c4e:	74 26                	je     0x404c76
404c50:	4a                   	dec    %edx
404c51:	7c 1b                	jl     0x404c6e
404c53:	39 da                	cmp    %ebx,%edx
404c55:	7d 1f                	jge    0x404c76
404c57:	29 d3                	sub    %edx,%ebx
404c59:	85 c9                	test   %ecx,%ecx
404c5b:	7c 19                	jl     0x404c76
404c5d:	39 d9                	cmp    %ebx,%ecx
404c5f:	7f 11                	jg     0x404c72
404c61:	01 c2                	add    %eax,%edx
404c63:	8b 44 24 08          	mov    0x8(%esp),%eax
404c67:	e8 a4 fb ff ff       	call   0x404810
404c6c:	eb 11                	jmp    0x404c7f
404c6e:	31 d2                	xor    %edx,%edx
404c70:	eb e5                	jmp    0x404c57
404c72:	89 d9                	mov    %ebx,%ecx
404c74:	eb eb                	jmp    0x404c61
404c76:	8b 44 24 08          	mov    0x8(%esp),%eax
404c7a:	e8 a1 fa ff ff       	call   0x404720
404c7f:	5b                   	pop    %ebx
404c80:	c2 04 00             	ret    $0x4
404c83:	c3                   	ret
404c84:	53                   	push   %ebx
404c85:	56                   	push   %esi
404c86:	57                   	push   %edi
404c87:	89 c3                	mov    %eax,%ebx
404c89:	89 d6                	mov    %edx,%esi
404c8b:	89 cf                	mov    %ecx,%edi
404c8d:	e8 a2 ff ff ff       	call   0x404c34
404c92:	8b 13                	mov    (%ebx),%edx
404c94:	85 d2                	test   %edx,%edx
404c96:	74 30                	je     0x404cc8
404c98:	8b 4a fc             	mov    -0x4(%edx),%ecx
404c9b:	4e                   	dec    %esi
404c9c:	7c 2a                	jl     0x404cc8
404c9e:	39 ce                	cmp    %ecx,%esi
404ca0:	7d 26                	jge    0x404cc8
404ca2:	85 ff                	test   %edi,%edi
404ca4:	7e 22                	jle    0x404cc8
404ca6:	29 f1                	sub    %esi,%ecx
404ca8:	39 cf                	cmp    %ecx,%edi
404caa:	7e 02                	jle    0x404cae
404cac:	89 cf                	mov    %ecx,%edi
404cae:	29 f9                	sub    %edi,%ecx
404cb0:	01 f2                	add    %esi,%edx
404cb2:	8d 04 17             	lea    (%edi,%edx,1),%eax
404cb5:	e8 22 e2 ff ff       	call   0x402edc
404cba:	8b 13                	mov    (%ebx),%edx
404cbc:	89 d8                	mov    %ebx,%eax
404cbe:	8b 52 fc             	mov    -0x4(%edx),%edx
404cc1:	29 fa                	sub    %edi,%edx
404cc3:	e8 a4 01 00 00       	call   0x404e6c
404cc8:	5f                   	pop    %edi
404cc9:	5e                   	pop    %esi
404cca:	5b                   	pop    %ebx
404ccb:	c3                   	ret
404ccc:	85 c0                	test   %eax,%eax
404cce:	74 56                	je     0x404d26
404cd0:	53                   	push   %ebx
404cd1:	56                   	push   %esi
404cd2:	57                   	push   %edi
404cd3:	55                   	push   %ebp
404cd4:	89 c3                	mov    %eax,%ebx
404cd6:	89 d6                	mov    %edx,%esi
404cd8:	89 cf                	mov    %ecx,%edi
404cda:	8b 12                	mov    (%edx),%edx
404cdc:	52                   	push   %edx
404cdd:	85 d2                	test   %edx,%edx
404cdf:	74 03                	je     0x404ce4
404ce1:	8b 52 fc             	mov    -0x4(%edx),%edx
404ce4:	4f                   	dec    %edi
404ce5:	7d 02                	jge    0x404ce9
404ce7:	31 ff                	xor    %edi,%edi
404ce9:	39 d7                	cmp    %edx,%edi
404ceb:	7e 02                	jle    0x404cef
404ced:	89 d7                	mov    %edx,%edi
404cef:	8b 6b fc             	mov    -0x4(%ebx),%ebp
404cf2:	89 f0                	mov    %esi,%eax
404cf4:	01 ea                	add    %ebp,%edx
404cf6:	e8 71 01 00 00       	call   0x404e6c
404cfb:	58                   	pop    %eax
404cfc:	39 d8                	cmp    %ebx,%eax
404cfe:	75 02                	jne    0x404d02
404d00:	8b 1e                	mov    (%esi),%ebx
404d02:	8b 06                	mov    (%esi),%eax
404d04:	8d 14 2f             	lea    (%edi,%ebp,1),%edx
404d07:	8b 48 fc             	mov    -0x4(%eax),%ecx
404d0a:	29 d1                	sub    %edx,%ecx
404d0c:	01 c2                	add    %eax,%edx
404d0e:	01 f8                	add    %edi,%eax
404d10:	e8 c7 e1 ff ff       	call   0x402edc
404d15:	89 d8                	mov    %ebx,%eax
404d17:	8b 16                	mov    (%esi),%edx
404d19:	89 e9                	mov    %ebp,%ecx
404d1b:	01 fa                	add    %edi,%edx
404d1d:	e8 ba e1 ff ff       	call   0x402edc
404d22:	5d                   	pop    %ebp
404d23:	5f                   	pop    %edi
404d24:	5e                   	pop    %esi
404d25:	5b                   	pop    %ebx
404d26:	c3                   	ret
404d27:	90                   	nop
404d28:	53                   	push   %ebx
404d29:	56                   	push   %esi
404d2a:	83 c4 f0             	add    $0xfffffff0,%esp
404d2d:	85 d2                	test   %edx,%edx
404d2f:	74 4e                	je     0x404d7f
404d31:	85 c0                	test   %eax,%eax
404d33:	74 4a                	je     0x404d7f
404d35:	8b 72 fc             	mov    -0x4(%edx),%esi
404d38:	8b 58 fc             	mov    -0x4(%eax),%ebx
404d3b:	39 de                	cmp    %ebx,%esi
404d3d:	7c 40                	jl     0x404d7f
404d3f:	85 db                	test   %ebx,%ebx
404d41:	7e 3c                	jle    0x404d7f
404d43:	4b                   	dec    %ebx
404d44:	01 d6                	add    %edx,%esi
404d46:	01 da                	add    %ebx,%edx
404d48:	89 74 24 08          	mov    %esi,0x8(%esp)
404d4c:	01 d8                	add    %ebx,%eax
404d4e:	89 54 24 04          	mov    %edx,0x4(%esp)
404d52:	f7 db                	neg    %ebx
404d54:	0f b6 08             	movzbl (%eax),%ecx
404d57:	89 1c 24             	mov    %ebx,(%esp)
404d5a:	0f 85 99 00 00 00    	jne    0x404df9
404d60:	83 ee 02             	sub    $0x2,%esi
404d63:	89 74 24 0c          	mov    %esi,0xc(%esp)
404d67:	3a 0a                	cmp    (%edx),%cl
404d69:	74 41                	je     0x404dac
404d6b:	3a 4a 01             	cmp    0x1(%edx),%cl
404d6e:	74 4c                	je     0x404dbc
404d70:	83 c2 02             	add    $0x2,%edx
404d73:	3b 54 24 0c          	cmp    0xc(%esp),%edx
404d77:	72 0a                	jb     0x404d83
404d79:	3b 54 24 08          	cmp    0x8(%esp),%edx
404d7d:	72 e8                	jb     0x404d67
404d7f:	31 c0                	xor    %eax,%eax
404d81:	eb 30                	jmp    0x404db3
404d83:	3a 0a                	cmp    (%edx),%cl
404d85:	74 25                	je     0x404dac
404d87:	3a 4a 01             	cmp    0x1(%edx),%cl
404d8a:	74 30                	je     0x404dbc
404d8c:	3a 4a 02             	cmp    0x2(%edx),%cl
404d8f:	74 18                	je     0x404da9
404d91:	3a 4a 03             	cmp    0x3(%edx),%cl
404d94:	74 23                	je     0x404db9
404d96:	83 c2 04             	add    $0x4,%edx
404d99:	3b 54 24 0c          	cmp    0xc(%esp),%edx
404d9d:	72 e4                	jb     0x404d83
404d9f:	3b 54 24 08          	cmp    0x8(%esp),%edx
404da3:	72 c2                	jb     0x404d67
404da5:	31 c0                	xor    %eax,%eax
404da7:	eb 0a                	jmp    0x404db3
404da9:	83 c2 02             	add    $0x2,%edx
404dac:	42                   	inc    %edx
404dad:	89 d0                	mov    %edx,%eax
404daf:	2b 44 24 04          	sub    0x4(%esp),%eax
404db3:	83 c4 10             	add    $0x10,%esp
404db6:	5e                   	pop    %esi
404db7:	5b                   	pop    %ebx
404db8:	c3                   	ret
404db9:	83 c2 02             	add    $0x2,%edx
404dbc:	83 c2 02             	add    $0x2,%edx
404dbf:	31 c0                	xor    %eax,%eax
404dc1:	3b 54 24 08          	cmp    0x8(%esp),%edx
404dc5:	77 06                	ja     0x404dcd
404dc7:	89 d0                	mov    %edx,%eax
404dc9:	2b 44 24 04          	sub    0x4(%esp),%eax
404dcd:	83 c4 10             	add    $0x10,%esp
404dd0:	5e                   	pop    %esi
404dd1:	5b                   	pop    %ebx
404dd2:	c3                   	ret
404dd3:	3a 0a                	cmp    (%edx),%cl
404dd5:	74 75                	je     0x404e4c
404dd7:	3a 4a 01             	cmp    0x1(%edx),%cl
404dda:	74 43                	je     0x404e1f
404ddc:	3a 4a 02             	cmp    0x2(%edx),%cl
404ddf:	74 68                	je     0x404e49
404de1:	3a 4a 03             	cmp    0x3(%edx),%cl
404de4:	74 36                	je     0x404e1c
404de6:	83 c2 04             	add    $0x4,%edx
404de9:	3b 54 24 0c          	cmp    0xc(%esp),%edx
404ded:	72 e4                	jb     0x404dd3
404def:	3b 54 24 08          	cmp    0x8(%esp),%edx
404df3:	72 0b                	jb     0x404e00
404df5:	31 c0                	xor    %eax,%eax
404df7:	eb 4a                	jmp    0x404e43
404df9:	83 ee 02             	sub    $0x2,%esi
404dfc:	89 74 24 0c          	mov    %esi,0xc(%esp)
404e00:	3a 0a                	cmp    (%edx),%cl
404e02:	74 48                	je     0x404e4c
404e04:	3a 4a 01             	cmp    0x1(%edx),%cl
404e07:	74 16                	je     0x404e1f
404e09:	83 c2 02             	add    $0x2,%edx
404e0c:	3b 54 24 0c          	cmp    0xc(%esp),%edx
404e10:	72 c1                	jb     0x404dd3
404e12:	3b 54 24 08          	cmp    0x8(%esp),%edx
404e16:	72 e8                	jb     0x404e00
404e18:	31 c0                	xor    %eax,%eax
404e1a:	eb 27                	jmp    0x404e43
404e1c:	83 c2 02             	add    $0x2,%edx
404e1f:	8b 34 24             	mov    (%esp),%esi
404e22:	0f b7 1c 30          	movzwl (%eax,%esi,1),%ebx
404e26:	66 3b 5c 32 01       	cmp    0x1(%edx,%esi,1),%bx
404e2b:	75 dc                	jne    0x404e09
404e2d:	83 c6 02             	add    $0x2,%esi
404e30:	7c f0                	jl     0x404e22
404e32:	83 c2 02             	add    $0x2,%edx
404e35:	31 c0                	xor    %eax,%eax
404e37:	3b 54 24 08          	cmp    0x8(%esp),%edx
404e3b:	77 06                	ja     0x404e43
404e3d:	89 d0                	mov    %edx,%eax
404e3f:	2b 44 24 04          	sub    0x4(%esp),%eax
404e43:	83 c4 10             	add    $0x10,%esp
404e46:	5e                   	pop    %esi
404e47:	5b                   	pop    %ebx
404e48:	c3                   	ret
404e49:	83 c2 02             	add    $0x2,%edx
404e4c:	8b 34 24             	mov    (%esp),%esi
404e4f:	0f b7 1c 30          	movzwl (%eax,%esi,1),%ebx
404e53:	66 3b 1c 32          	cmp    (%edx,%esi,1),%bx
404e57:	75 ab                	jne    0x404e04
404e59:	83 c6 02             	add    $0x2,%esi
404e5c:	7c f1                	jl     0x404e4f
404e5e:	42                   	inc    %edx
404e5f:	89 d0                	mov    %edx,%eax
404e61:	2b 44 24 04          	sub    0x4(%esp),%eax
404e65:	83 c4 10             	add    $0x10,%esp
404e68:	5e                   	pop    %esi
404e69:	5b                   	pop    %ebx
404e6a:	c3                   	ret
404e6b:	90                   	nop
404e6c:	53                   	push   %ebx
404e6d:	56                   	push   %esi
404e6e:	57                   	push   %edi
404e6f:	89 c3                	mov    %eax,%ebx
404e71:	89 d6                	mov    %edx,%esi
404e73:	31 ff                	xor    %edi,%edi
404e75:	85 d2                	test   %edx,%edx
404e77:	7e 48                	jle    0x404ec1
404e79:	8b 03                	mov    (%ebx),%eax
404e7b:	85 c0                	test   %eax,%eax
404e7d:	74 23                	je     0x404ea2
404e7f:	83 78 f8 01          	cmpl   $0x1,-0x8(%eax)
404e83:	75 1d                	jne    0x404ea2
404e85:	83 e8 08             	sub    $0x8,%eax
404e88:	83 c2 09             	add    $0x9,%edx
404e8b:	50                   	push   %eax
404e8c:	89 e0                	mov    %esp,%eax
404e8e:	e8 8d de ff ff       	call   0x402d20
404e93:	58                   	pop    %eax
404e94:	83 c0 08             	add    $0x8,%eax
404e97:	89 03                	mov    %eax,(%ebx)
404e99:	89 70 fc             	mov    %esi,-0x4(%eax)
404e9c:	c6 04 06 00          	movb   $0x0,(%esi,%eax,1)
404ea0:	eb 28                	jmp    0x404eca
404ea2:	89 d0                	mov    %edx,%eax
404ea4:	e8 3b f9 ff ff       	call   0x4047e4
404ea9:	89 c7                	mov    %eax,%edi
404eab:	8b 03                	mov    (%ebx),%eax
404ead:	85 c0                	test   %eax,%eax
404eaf:	74 10                	je     0x404ec1
404eb1:	89 fa                	mov    %edi,%edx
404eb3:	8b 48 fc             	mov    -0x4(%eax),%ecx
404eb6:	39 f1                	cmp    %esi,%ecx
404eb8:	7c 02                	jl     0x404ebc
404eba:	89 f1                	mov    %esi,%ecx
404ebc:	e8 1b e0 ff ff       	call   0x402edc
404ec1:	89 d8                	mov    %ebx,%eax
404ec3:	e8 58 f8 ff ff       	call   0x404720
404ec8:	89 3b                	mov    %edi,(%ebx)
404eca:	5f                   	pop    %edi
404ecb:	5e                   	pop    %esi
404ecc:	5b                   	pop    %ebx
404ecd:	c3                   	ret
404ece:	8b c0                	mov    %eax,%eax
404ed0:	b0 01                	mov    $0x1,%al
404ed2:	e9 65 df ff ff       	jmp    0x402e3c
404ed7:	c3                   	ret
404ed8:	85 c0                	test   %eax,%eax
404eda:	74 10                	je     0x404eec
404edc:	50                   	push   %eax
404edd:	6a 00                	push   $0x0
404edf:	e8 48 c4 ff ff       	call   0x40132c
404ee4:	85 c0                	test   %eax,%eax
404ee6:	0f 84 e4 ff ff ff    	je     0x404ed0
404eec:	c3                   	ret
404eed:	8d 40 00             	lea    0x0(%eax),%eax
404ef0:	87 10                	xchg   %edx,(%eax)
404ef2:	85 d2                	test   %edx,%edx
404ef4:	74 06                	je     0x404efc
404ef6:	52                   	push   %edx
404ef7:	e8 40 c4 ff ff       	call   0x40133c
404efc:	c3                   	ret
404efd:	8d 40 00             	lea    0x0(%eax),%eax
404f00:	8b 10                	mov    (%eax),%edx
404f02:	85 d2                	test   %edx,%edx
404f04:	74 0e                	je     0x404f14
404f06:	c7 00 00 00 00 00    	movl   $0x0,(%eax)
404f0c:	50                   	push   %eax
404f0d:	52                   	push   %edx
404f0e:	e8 29 c4 ff ff       	call   0x40133c
404f13:	58                   	pop    %eax
404f14:	c3                   	ret
404f15:	8d 40 00             	lea    0x0(%eax),%eax
404f18:	53                   	push   %ebx
404f19:	56                   	push   %esi
404f1a:	89 c3                	mov    %eax,%ebx
404f1c:	89 d6                	mov    %edx,%esi
404f1e:	8b 03                	mov    (%ebx),%eax
404f20:	85 c0                	test   %eax,%eax
404f22:	74 0c                	je     0x404f30
404f24:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)
404f2a:	50                   	push   %eax
404f2b:	e8 0c c4 ff ff       	call   0x40133c
404f30:	83 c3 04             	add    $0x4,%ebx
404f33:	4e                   	dec    %esi
404f34:	75 e8                	jne    0x404f1e
404f36:	5e                   	pop    %esi
404f37:	5b                   	pop    %ebx
404f38:	c3                   	ret
404f39:	8d 40 00             	lea    0x0(%eax),%eax
404f3c:	39 10                	cmp    %edx,(%eax)
404f3e:	74 23                	je     0x404f63
404f40:	85 d2                	test   %edx,%edx
404f42:	0f 84 b8 ff ff ff    	je     0x404f00
404f48:	8b 4a fc             	mov    -0x4(%edx),%ecx
404f4b:	d1 e9                	shr    $1,%ecx
404f4d:	0f 84 ad ff ff ff    	je     0x404f00
404f53:	51                   	push   %ecx
404f54:	52                   	push   %edx
404f55:	50                   	push   %eax
404f56:	e8 d9 c3 ff ff       	call   0x401334
404f5b:	85 c0                	test   %eax,%eax
404f5d:	0f 84 6d ff ff ff    	je     0x404ed0
404f63:	c3                   	ret
404f64:	53                   	push   %ebx
404f65:	56                   	push   %esi
404f66:	57                   	push   %edi
404f67:	55                   	push   %ebp
404f68:	81 c4 04 f0 ff ff    	add    $0xfffff004,%esp
404f6e:	50                   	push   %eax
404f6f:	83 c4 fc             	add    $0xfffffffc,%esp
404f72:	8b f1                	mov    %ecx,%esi
404f74:	89 14 24             	mov    %edx,(%esp)
404f77:	8b f8                	mov    %eax,%edi