404c1c:	74 38                	je     0x404c56
404c1e:	8b 4a f8             	mov    -0x8(%edx),%ecx
404c21:	49                   	dec    %ecx
404c22:	74 32                	je     0x404c56
404c24:	53                   	push   %ebx
404c25:	89 c3                	mov    %eax,%ebx
404c27:	8b 42 fc             	mov    -0x4(%edx),%eax
404c2a:	e8 dd fb ff ff       	call   0x40480c
404c2f:	89 c2                	mov    %eax,%edx
404c31:	8b 03                	mov    (%ebx),%eax
404c33:	89 13                	mov    %edx,(%ebx)
404c35:	50                   	push   %eax
404c36:	8b 48 fc             	mov    -0x4(%eax),%ecx
404c39:	e8 ae e2 ff ff       	call   0x402eec
404c3e:	58                   	pop    %eax
404c3f:	8b 48 f8             	mov    -0x8(%eax),%ecx
404c42:	49                   	dec    %ecx
404c43:	7c 0e                	jl     0x404c53
404c45:	f0 ff 48 f8          	lock decl -0x8(%eax)
404c49:	75 08                	jne    0x404c53
404c4b:	8d 40 f8             	lea    -0x8(%eax),%eax
404c4e:	e8 c5 e0 ff ff       	call   0x402d18
404c53:	8b 13                	mov    (%ebx),%edx
404c55:	5b                   	pop    %ebx
404c56:	89 d0                	mov    %edx,%eax
404c58:	c3                   	ret
404c59:	8d 40 00             	lea    0x0(%eax),%eax
404c5c:	e9 b7 ff ff ff       	jmp    0x404c18
404c61:	c3                   	ret
404c62:	8b c0                	mov    %eax,%eax
404c64:	e9 af ff ff ff       	jmp    0x404c18
404c69:	c3                   	ret
404c6a:	8b c0                	mov    %eax,%eax
404c6c:	53                   	push   %ebx
404c6d:	85 c0                	test   %eax,%eax
404c6f:	74 2d                	je     0x404c9e
404c71:	8b 58 fc             	mov    -0x4(%eax),%ebx
404c74:	85 db                	test   %ebx,%ebx
404c76:	74 26                	je     0x404c9e
404c78:	4a                   	dec    %edx
404c79:	7c 1b                	jl     0x404c96
404c7b:	39 da                	cmp    %ebx,%edx
404c7d:	7d 1f                	jge    0x404c9e
404c7f:	29 d3                	sub    %edx,%ebx
404c81:	85 c9                	test   %ecx,%ecx
404c83:	7c 19                	jl     0x404c9e
404c85:	39 d9                	cmp    %ebx,%ecx
404c87:	7f 11                	jg     0x404c9a
404c89:	01 c2                	add    %eax,%edx
404c8b:	8b 44 24 08          	mov    0x8(%esp),%eax
404c8f:	e8 a4 fb ff ff       	call   0x404838
404c94:	eb 11                	jmp    0x404ca7
404c96:	31 d2                	xor    %edx,%edx
404c98:	eb e5                	jmp    0x404c7f
404c9a:	89 d9                	mov    %ebx,%ecx
404c9c:	eb eb                	jmp    0x404c89
404c9e:	8b 44 24 08          	mov    0x8(%esp),%eax
404ca2:	e8 a1 fa ff ff       	call   0x404748
404ca7:	5b                   	pop    %ebx
404ca8:	c2 04 00             	ret    $0x4
404cab:	c3                   	ret
404cac:	53                   	push   %ebx
404cad:	56                   	push   %esi
404cae:	57                   	push   %edi
404caf:	89 c3                	mov    %eax,%ebx
404cb1:	89 d6                	mov    %edx,%esi
404cb3:	89 cf                	mov    %ecx,%edi
404cb5:	e8 a2 ff ff ff       	call   0x404c5c
404cba:	8b 13                	mov    (%ebx),%edx
404cbc:	85 d2                	test   %edx,%edx
404cbe:	74 30                	je     0x404cf0
404cc0:	8b 4a fc             	mov    -0x4(%edx),%ecx
404cc3:	4e                   	dec    %esi
404cc4:	7c 2a                	jl     0x404cf0
404cc6:	39 ce                	cmp    %ecx,%esi
404cc8:	7d 26                	jge    0x404cf0
404cca:	85 ff                	test   %edi,%edi
404ccc:	7e 22                	jle    0x404cf0
404cce:	29 f1                	sub    %esi,%ecx
404cd0:	39 cf                	cmp    %ecx,%edi
404cd2:	7e 02                	jle    0x404cd6
404cd4:	89 cf                	mov    %ecx,%edi
404cd6:	29 f9                	sub    %edi,%ecx
404cd8:	01 f2                	add    %esi,%edx
404cda:	8d 04 17             	lea    (%edi,%edx,1),%eax
404cdd:	e8 0a e2 ff ff       	call   0x402eec
404ce2:	8b 13                	mov    (%ebx),%edx
404ce4:	89 d8                	mov    %ebx,%eax
404ce6:	8b 52 fc             	mov    -0x4(%edx),%edx
404ce9:	29 fa                	sub    %edi,%edx
404ceb:	e8 a4 01 00 00       	call   0x404e94
404cf0:	5f                   	pop    %edi
404cf1:	5e                   	pop    %esi
404cf2:	5b                   	pop    %ebx
404cf3:	c3                   	ret
404cf4:	85 c0                	test   %eax,%eax
404cf6:	74 56                	je     0x404d4e
404cf8:	53                   	push   %ebx
404cf9:	56                   	push   %esi
404cfa:	57                   	push   %edi
404cfb:	55                   	push   %ebp
404cfc:	89 c3                	mov    %eax,%ebx
404cfe:	89 d6                	mov    %edx,%esi
404d00:	89 cf                	mov    %ecx,%edi
404d02:	8b 12                	mov    (%edx),%edx
404d04:	52                   	push   %edx
404d05:	85 d2                	test   %edx,%edx
404d07:	74 03                	je     0x404d0c
404d09:	8b 52 fc             	mov    -0x4(%edx),%edx
404d0c:	4f                   	dec    %edi
404d0d:	7d 02                	jge    0x404d11
404d0f:	31 ff                	xor    %edi,%edi
404d11:	39 d7                	cmp    %edx,%edi
404d13:	7e 02                	jle    0x404d17
404d15:	89 d7                	mov    %edx,%edi
404d17:	8b 6b fc             	mov    -0x4(%ebx),%ebp
404d1a:	89 f0                	mov    %esi,%eax
404d1c:	01 ea                	add    %ebp,%edx
404d1e:	e8 71 01 00 00       	call   0x404e94
404d23:	58                   	pop    %eax
404d24:	39 d8                	cmp    %ebx,%eax
404d26:	75 02                	jne    0x404d2a
404d28:	8b 1e                	mov    (%esi),%ebx
404d2a:	8b 06                	mov    (%esi),%eax
404d2c:	8d 14 2f             	lea    (%edi,%ebp,1),%edx
404d2f:	8b 48 fc             	mov    -0x4(%eax),%ecx
404d32:	29 d1                	sub    %edx,%ecx
404d34:	01 c2                	add    %eax,%edx
404d36:	01 f8                	add    %edi,%eax
404d38:	e8 af e1 ff ff       	call   0x402eec
404d3d:	89 d8                	mov    %ebx,%eax
404d3f:	8b 16                	mov    (%esi),%edx
404d41:	89 e9                	mov    %ebp,%ecx
404d43:	01 fa                	add    %edi,%edx
404d45:	e8 a2 e1 ff ff       	call   0x402eec
404d4a:	5d                   	pop    %ebp
404d4b:	5f                   	pop    %edi
404d4c:	5e                   	pop    %esi
404d4d:	5b                   	pop    %ebx
404d4e:	c3                   	ret
404d4f:	90                   	nop
404d50:	53                   	push   %ebx
404d51:	56                   	push   %esi
404d52:	83 c4 f0             	add    $0xfffffff0,%esp
404d55:	85 d2                	test   %edx,%edx
404d57:	74 4e                	je     0x404da7
404d59:	85 c0                	test   %eax,%eax
404d5b:	74 4a                	je     0x404da7
404d5d:	8b 72 fc             	mov    -0x4(%edx),%esi
404d60:	8b 58 fc             	mov    -0x4(%eax),%ebx
404d63:	39 de                	cmp    %ebx,%esi
404d65:	7c 40                	jl     0x404da7
404d67:	85 db                	test   %ebx,%ebx
404d69:	7e 3c                	jle    0x404da7
404d6b:	4b                   	dec    %ebx
404d6c:	01 d6                	add    %edx,%esi
404d6e:	01 da                	add    %ebx,%edx
404d70:	89 74 24 08          	mov    %esi,0x8(%esp)
404d74:	01 d8                	add    %ebx,%eax
404d76:	89 54 24 04          	mov    %edx,0x4(%esp)
404d7a:	f7 db                	neg    %ebx
404d7c:	0f b6 08             	movzbl (%eax),%ecx
404d7f:	89 1c 24             	mov    %ebx,(%esp)
404d82:	0f 85 99 00 00 00    	jne    0x404e21
404d88:	83 ee 02             	sub    $0x2,%esi
404d8b:	89 74 24 0c          	mov    %esi,0xc(%esp)
404d8f:	3a 0a                	cmp    (%edx),%cl
404d91:	74 41                	je     0x404dd4
404d93:	3a 4a 01             	cmp    0x1(%edx),%cl
404d96:	74 4c                	je     0x404de4
404d98:	83 c2 02             	add    $0x2,%edx
404d9b:	3b 54 24 0c          	cmp    0xc(%esp),%edx
404d9f:	72 0a                	jb     0x404dab
404da1:	3b 54 24 08          	cmp    0x8(%esp),%edx
404da5:	72 e8                	jb     0x404d8f
404da7:	31 c0                	xor    %eax,%eax
404da9:	eb 30                	jmp    0x404ddb
404dab:	3a 0a                	cmp    (%edx),%cl
404dad:	74 25                	je     0x404dd4
404daf:	3a 4a 01             	cmp    0x1(%edx),%cl
404db2:	74 30                	je     0x404de4
404db4:	3a 4a 02             	cmp    0x2(%edx),%cl
404db7:	74 18                	je     0x404dd1
404db9:	3a 4a 03             	cmp    0x3(%edx),%cl
404dbc:	74 23                	je     0x404de1
404dbe:	83 c2 04             	add    $0x4,%edx
404dc1:	3b 54 24 0c          	cmp    0xc(%esp),%edx
404dc5:	72 e4                	jb     0x404dab
404dc7:	3b 54 24 08          	cmp    0x8(%esp),%edx
404dcb:	72 c2                	jb     0x404d8f
404dcd:	31 c0                	xor    %eax,%eax
404dcf:	eb 0a                	jmp    0x404ddb
404dd1:	83 c2 02             	add    $0x2,%edx
404dd4:	42                   	inc    %edx
404dd5:	89 d0                	mov    %edx,%eax
404dd7:	2b 44 24 04          	sub    0x4(%esp),%eax
404ddb:	83 c4 10             	add    $0x10,%esp
404dde:	5e                   	pop    %esi
404ddf:	5b                   	pop    %ebx
404de0:	c3                   	ret
404de1:	83 c2 02             	add    $0x2,%edx
404de4:	83 c2 02             	add    $0x2,%edx
404de7:	31 c0                	xor    %eax,%eax
404de9:	3b 54 24 08          	cmp    0x8(%esp),%edx
404ded:	77 06                	ja     0x404df5
404def:	89 d0                	mov    %edx,%eax
404df1:	2b 44 24 04          	sub    0x4(%esp),%eax
404df5:	83 c4 10             	add    $0x10,%esp
404df8:	5e                   	pop    %esi
404df9:	5b                   	pop    %ebx
404dfa:	c3                   	ret
404dfb:	3a 0a                	cmp    (%edx),%cl
404dfd:	74 75                	je     0x404e74
404dff:	3a 4a 01             	cmp    0x1(%edx),%cl
404e02:	74 43                	je     0x404e47
404e04:	3a 4a 02             	cmp    0x2(%edx),%cl
404e07:	74 68                	je     0x404e71
404e09:	3a 4a 03             	cmp    0x3(%edx),%cl
404e0c:	74 36                	je     0x404e44
404e0e:	83 c2 04             	add    $0x4,%edx
404e11:	3b 54 24 0c          	cmp    0xc(%esp),%edx
404e15:	72 e4                	jb     0x404dfb
404e17:	3b 54 24 08          	cmp    0x8(%esp),%edx
404e1b:	72 0b                	jb     0x404e28
404e1d:	31 c0                	xor    %eax,%eax
404e1f:	eb 4a                	jmp    0x404e6b
404e21:	83 ee 02             	sub    $0x2,%esi
404e24:	89 74 24 0c          	mov    %esi,0xc(%esp)
404e28:	3a 0a                	cmp    (%edx),%cl
404e2a:	74 48                	je     0x404e74
404e2c:	3a 4a 01             	cmp    0x1(%edx),%cl
404e2f:	74 16                	je     0x404e47
404e31:	83 c2 02             	add    $0x2,%edx
404e34:	3b 54 24 0c          	cmp    0xc(%esp),%edx
404e38:	72 c1                	jb     0x404dfb
404e3a:	3b 54 24 08          	cmp    0x8(%esp),%edx
404e3e:	72 e8                	jb     0x404e28
404e40:	31 c0                	xor    %eax,%eax
404e42:	eb 27                	jmp    0x404e6b
404e44:	83 c2 02             	add    $0x2,%edx
404e47:	8b 34 24             	mov    (%esp),%esi
404e4a:	0f b7 1c 30          	movzwl (%eax,%esi,1),%ebx
404e4e:	66 3b 5c 32 01       	cmp    0x1(%edx,%esi,1),%bx
404e53:	75 dc                	jne    0x404e31
404e55:	83 c6 02             	add    $0x2,%esi
404e58:	7c f0                	jl     0x404e4a
404e5a:	83 c2 02             	add    $0x2,%edx
404e5d:	31 c0                	xor    %eax,%eax
404e5f:	3b 54 24 08          	cmp    0x8(%esp),%edx
404e63:	77 06                	ja     0x404e6b
404e65:	89 d0                	mov    %edx,%eax
404e67:	2b 44 24 04          	sub    0x4(%esp),%eax
404e6b:	83 c4 10             	add    $0x10,%esp
404e6e:	5e                   	pop    %esi
404e6f:	5b                   	pop    %ebx
404e70:	c3                   	ret
404e71:	83 c2 02             	add    $0x2,%edx
404e74:	8b 34 24             	mov    (%esp),%esi
404e77:	0f b7 1c 30          	movzwl (%eax,%esi,1),%ebx
404e7b:	66 3b 1c 32          	cmp    (%edx,%esi,1),%bx
404e7f:	75 ab                	jne    0x404e2c
404e81:	83 c6 02             	add    $0x2,%esi
404e84:	7c f1                	jl     0x404e77
404e86:	42                   	inc    %edx
404e87:	89 d0                	mov    %edx,%eax
404e89:	2b 44 24 04          	sub    0x4(%esp),%eax
404e8d:	83 c4 10             	add    $0x10,%esp
404e90:	5e                   	pop    %esi
404e91:	5b                   	pop    %ebx
404e92:	c3                   	ret
404e93:	90                   	nop
404e94:	53                   	push   %ebx
404e95:	56                   	push   %esi
404e96:	57                   	push   %edi
404e97:	89 c3                	mov    %eax,%ebx
404e99:	89 d6                	mov    %edx,%esi
404e9b:	31 ff                	xor    %edi,%edi
404e9d:	85 d2                	test   %edx,%edx
404e9f:	7e 48                	jle    0x404ee9
404ea1:	8b 03                	mov    (%ebx),%eax
404ea3:	85 c0                	test   %eax,%eax
404ea5:	74 23                	je     0x404eca
404ea7:	83 78 f8 01          	cmpl   $0x1,-0x8(%eax)
404eab:	75 1d                	jne    0x404eca
404ead:	83 e8 08             	sub    $0x8,%eax
404eb0:	83 c2 09             	add    $0x9,%edx
404eb3:	50                   	push   %eax
404eb4:	89 e0                	mov    %esp,%eax
404eb6:	e8 75 de ff ff       	call   0x402d30
404ebb:	58                   	pop    %eax
404ebc:	83 c0 08             	add    $0x8,%eax
404ebf:	89 03                	mov    %eax,(%ebx)
404ec1:	89 70 fc             	mov    %esi,-0x4(%eax)
404ec4:	c6 04 06 00          	movb   $0x0,(%esi,%eax,1)
404ec8:	eb 28                	jmp    0x404ef2
404eca:	89 d0                	mov    %edx,%eax
404ecc:	e8 3b f9 ff ff       	call   0x40480c
404ed1:	89 c7                	mov    %eax,%edi
404ed3:	8b 03                	mov    (%ebx),%eax
404ed5:	85 c0                	test   %eax,%eax
404ed7:	74 10                	je     0x404ee9
404ed9:	89 fa                	mov    %edi,%edx
404edb:	8b 48 fc             	mov    -0x4(%eax),%ecx
404ede:	39 f1                	cmp    %esi,%ecx
404ee0:	7c 02                	jl     0x404ee4
404ee2:	89 f1                	mov    %esi,%ecx
404ee4:	e8 03 e0 ff ff       	call   0x402eec
404ee9:	89 d8                	mov    %ebx,%eax
404eeb:	e8 58 f8 ff ff       	call   0x404748
404ef0:	89 3b                	mov    %edi,(%ebx)
404ef2:	5f                   	pop    %edi
404ef3:	5e                   	pop    %esi
404ef4:	5b                   	pop    %ebx
404ef5:	c3                   	ret
404ef6:	8b c0                	mov    %eax,%eax
404ef8:	53                   	push   %ebx
404ef9:	56                   	push   %esi
404efa:	57                   	push   %edi
404efb:	89 c3                	mov    %eax,%ebx
404efd:	89 d6                	mov    %edx,%esi
404eff:	89 cf                	mov    %ecx,%edi
404f01:	89 c8                	mov    %ecx,%eax
404f03:	e8 40 f8 ff ff       	call   0x404748
404f08:	85 f6                	test   %esi,%esi
404f0a:	7e 12                	jle    0x404f1e
404f0c:	89 f0                	mov    %esi,%eax
404f0e:	e8 f9 f8 ff ff       	call   0x40480c
404f13:	89 07                	mov    %eax,(%edi)
404f15:	89 f2                	mov    %esi,%edx
404f17:	88 d9                	mov    %bl,%cl
404f19:	e8 3a e3 ff ff       	call   0x403258
404f1e:	5f                   	pop    %edi
404f1f:	5e                   	pop    %esi
404f20:	5b                   	pop    %ebx
404f21:	c3                   	ret
404f22:	8b c0                	mov    %eax,%eax
404f24:	b0 01                	mov    $0x1,%al
404f26:	e9 21 df ff ff       	jmp    0x402e4c
404f2b:	c3                   	ret
404f2c:	85 c0                	test   %eax,%eax
404f2e:	74 10                	je     0x404f40
404f30:	50                   	push   %eax
404f31:	6a 00                	push   $0x0
404f33:	e8 14 c4 ff ff       	call   0x40134c
404f38:	85 c0                	test   %eax,%eax
404f3a:	0f 84 e4 ff ff ff    	je     0x404f24
404f40:	c3                   	ret
404f41:	8d 40 00             	lea    0x0(%eax),%eax
404f44:	87 10                	xchg   %edx,(%eax)
404f46:	85 d2                	test   %edx,%edx