40eb6d:	89 06                	mov    %eax,(%esi)
40eb6f:	83 e0 03             	and    $0x3,%eax
40eb72:	3c 03                	cmp    $0x3,%al
40eb74:	0f 84 c6 00 00 00    	je     0x40ec40
40eb7a:	53                   	push   %ebx
40eb7b:	e8 1c b6 ff ff       	call   0x40a19c
40eb80:	89 45 f4             	mov    %eax,-0xc(%ebp)
40eb83:	8d 45 f8             	lea    -0x8(%ebp),%eax
40eb86:	50                   	push   %eax
40eb87:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40eb8a:	50                   	push   %eax
40eb8b:	e8 37 05 00 00       	call   0x40f0c7
40eb90:	8b 06                	mov    (%esi),%eax
40eb92:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40eb95:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
40eb99:	8b d8                	mov    %eax,%ebx
40eb9b:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40eb9e:	8b c8                	mov    %eax,%ecx
40eba0:	89 06                	mov    %eax,(%esi)
40eba2:	74 13                	je     0x40ebb7
40eba4:	a8 01                	test   $0x1,%al
40eba6:	75 0f                	jne    0x40ebb7
40eba8:	33 ca                	xor    %edx,%ecx
40ebaa:	81 e1 18 01 00 00    	and    $0x118,%ecx
40ebb0:	33 c8                	xor    %eax,%ecx
40ebb2:	83 c9 01             	or     $0x1,%ecx
40ebb5:	89 0e                	mov    %ecx,(%esi)
40ebb7:	83 e3 02             	and    $0x2,%ebx
40ebba:	75 10                	jne    0x40ebcc
40ebbc:	8b c1                	mov    %ecx,%eax
40ebbe:	33 c2                	xor    %edx,%eax
40ebc0:	25 80 00 00 00       	and    $0x80,%eax
40ebc5:	33 c8                	xor    %eax,%ecx
40ebc7:	83 c9 02             	or     $0x2,%ecx
40ebca:	89 0e                	mov    %ecx,(%esi)
40ebcc:	8b 45 fc             	mov    -0x4(%ebp),%eax
40ebcf:	f0 0f b1 0f          	lock cmpxchg %ecx,(%edi)
40ebd3:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40ebd6:	75 bd                	jne    0x40eb95
40ebd8:	85 db                	test   %ebx,%ebx
40ebda:	75 52                	jne    0x40ec2e
40ebdc:	38 1d 84 48 42 00    	cmp    %bl,0x424884
40ebe2:	74 4a                	je     0x40ec2e
40ebe4:	bb 88 48 42 00       	mov    $0x424888,%ebx
40ebe9:	53                   	push   %ebx
40ebea:	ff 15 60 61 42 00    	call   *0x426160
40ebf0:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40ebf3:	a1 94 48 42 00       	mov    0x424894,%eax
40ebf8:	85 c9                	test   %ecx,%ecx
40ebfa:	74 22                	je     0x40ec1e
40ebfc:	3b c8                	cmp    %eax,%ecx
40ebfe:	75 1e                	jne    0x40ec1e
40ec00:	6a 08                	push   $0x8
40ec02:	8d 45 ec             	lea    -0x14(%ebp),%eax
40ec05:	c7 45 ec 01 00 00 00 	movl   $0x1,-0x14(%ebp)
40ec0c:	50                   	push   %eax
40ec0d:	b9 b0 48 42 00       	mov    $0x4248b0,%ecx
40ec12:	89 7d f0             	mov    %edi,-0x10(%ebp)
40ec15:	e8 5f 97 ff ff       	call   0x408379
40ec1a:	84 c0                	test   %al,%al
40ec1c:	75 06                	jne    0x40ec24
40ec1e:	6a fd                	push   $0xfffffffd
40ec20:	58                   	pop    %eax
40ec21:	f0 21 07             	lock and %eax,(%edi)
40ec24:	53                   	push   %ebx
40ec25:	ff 15 6c 61 42 00    	call   *0x42616c
40ec2b:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40ec2e:	f6 06 01             	testb  $0x1,(%esi)
40ec31:	5b                   	pop    %ebx
40ec32:	75 0c                	jne    0x40ec40
40ec34:	8b 0e                	mov    (%esi),%ecx
40ec36:	33 ca                	xor    %edx,%ecx
40ec38:	81 e1 18 01 00 00    	and    $0x118,%ecx
40ec3e:	31 0e                	xor    %ecx,(%esi)
40ec40:	5f                   	pop    %edi
40ec41:	8b c6                	mov    %esi,%eax
40ec43:	5e                   	pop    %esi
40ec44:	c9                   	leave
40ec45:	c2 04 00             	ret    $0x4
40ec48:	8b ff                	mov    %edi,%edi
40ec4a:	55                   	push   %ebp
40ec4b:	8b ec                	mov    %esp,%ebp
40ec4d:	83 ec 10             	sub    $0x10,%esp
40ec50:	56                   	push   %esi
40ec51:	8b f1                	mov    %ecx,%esi
40ec53:	8b 16                	mov    (%esi),%edx
40ec55:	f6 c2 02             	test   $0x2,%dl
40ec58:	75 0b                	jne    0x40ec65
40ec5a:	8d 45 f0             	lea    -0x10(%ebp),%eax
40ec5d:	50                   	push   %eax
40ec5e:	e8 f9 fe ff ff       	call   0x40eb5c
40ec63:	8b 10                	mov    (%eax),%edx
40ec65:	33 c0                	xor    %eax,%eax
40ec67:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
40ec6b:	51                   	push   %ecx
40ec6c:	89 45 f8             	mov    %eax,-0x8(%ebp)
40ec6f:	0f b6 45 08          	movzbl 0x8(%ebp),%eax
40ec73:	51                   	push   %ecx
40ec74:	50                   	push   %eax
40ec75:	8d 45 f8             	lea    -0x8(%ebp),%eax
40ec78:	50                   	push   %eax
40ec79:	8b c2                	mov    %edx,%eax
40ec7b:	8d 4e 08             	lea    0x8(%esi),%ecx
40ec7e:	c1 e8 08             	shr    $0x8,%eax
40ec81:	c1 ea 07             	shr    $0x7,%edx
40ec84:	83 e0 01             	and    $0x1,%eax
40ec87:	83 e2 01             	and    $0x1,%edx
40ec8a:	50                   	push   %eax
40ec8b:	52                   	push   %edx
40ec8c:	ba 5e 65 27 01       	mov    $0x127655e,%edx
40ec91:	e8 70 0d 00 00       	call   0x40fa06
40ec96:	5e                   	pop    %esi
40ec97:	c9                   	leave
40ec98:	c2 0c 00             	ret    $0xc
40ec9b:	8b ff                	mov    %edi,%edi
40ec9d:	55                   	push   %ebp
40ec9e:	8b ec                	mov    %esp,%ebp
40eca0:	83 ec 1c             	sub    $0x1c,%esp
40eca3:	56                   	push   %esi
40eca4:	8b 75 08             	mov    0x8(%ebp),%esi
40eca7:	57                   	push   %edi
40eca8:	8b f9                	mov    %ecx,%edi
40ecaa:	8b 07                	mov    (%edi),%eax
40ecac:	89 06                	mov    %eax,(%esi)
40ecae:	83 e0 03             	and    $0x3,%eax
40ecb1:	3c 03                	cmp    $0x3,%al
40ecb3:	0f 84 c6 00 00 00    	je     0x40ed7f
40ecb9:	53                   	push   %ebx
40ecba:	e8 dd b4 ff ff       	call   0x40a19c
40ecbf:	89 45 f4             	mov    %eax,-0xc(%ebp)
40ecc2:	8d 45 f8             	lea    -0x8(%ebp),%eax
40ecc5:	50                   	push   %eax
40ecc6:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40ecc9:	50                   	push   %eax
40ecca:	e8 63 04 00 00       	call   0x40f132
40eccf:	8b 06                	mov    (%esi),%eax
40ecd1:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40ecd4:	83 7d f8 00          	cmpl   $0x0,-0x8(%ebp)
40ecd8:	8b d8                	mov    %eax,%ebx
40ecda:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40ecdd:	8b c8                	mov    %eax,%ecx
40ecdf:	89 06                	mov    %eax,(%esi)
40ece1:	74 13                	je     0x40ecf6
40ece3:	a8 01                	test   $0x1,%al
40ece5:	75 0f                	jne    0x40ecf6
40ece7:	33 ca                	xor    %edx,%ecx
40ece9:	81 e1 18 01 00 00    	and    $0x118,%ecx
40ecef:	33 c8                	xor    %eax,%ecx
40ecf1:	83 c9 01             	or     $0x1,%ecx
40ecf4:	89 0e                	mov    %ecx,(%esi)
40ecf6:	83 e3 02             	and    $0x2,%ebx
40ecf9:	75 10                	jne    0x40ed0b
40ecfb:	8b c1                	mov    %ecx,%eax
40ecfd:	33 c2                	xor    %edx,%eax
40ecff:	25 80 00 00 00       	and    $0x80,%eax
40ed04:	33 c8                	xor    %eax,%ecx
40ed06:	83 c9 02             	or     $0x2,%ecx
40ed09:	89 0e                	mov    %ecx,(%esi)
40ed0b:	8b 45 fc             	mov    -0x4(%ebp),%eax
40ed0e:	f0 0f b1 0f          	lock cmpxchg %ecx,(%edi)
40ed12:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40ed15:	75 bd                	jne    0x40ecd4
40ed17:	85 db                	test   %ebx,%ebx
40ed19:	75 52                	jne    0x40ed6d
40ed1b:	38 1d 84 48 42 00    	cmp    %bl,0x424884
40ed21:	74 4a                	je     0x40ed6d
40ed23:	bb 88 48 42 00       	mov    $0x424888,%ebx
40ed28:	53                   	push   %ebx
40ed29:	ff 15 60 61 42 00    	call   *0x426160
40ed2f:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40ed32:	a1 94 48 42 00       	mov    0x424894,%eax
40ed37:	85 c9                	test   %ecx,%ecx
40ed39:	74 22                	je     0x40ed5d
40ed3b:	3b c8                	cmp    %eax,%ecx
40ed3d:	75 1e                	jne    0x40ed5d
40ed3f:	6a 08                	push   $0x8
40ed41:	8d 45 ec             	lea    -0x14(%ebp),%eax
40ed44:	c7 45 ec 01 00 00 00 	movl   $0x1,-0x14(%ebp)
40ed4b:	50                   	push   %eax
40ed4c:	b9 b0 48 42 00       	mov    $0x4248b0,%ecx
40ed51:	89 7d f0             	mov    %edi,-0x10(%ebp)
40ed54:	e8 20 96 ff ff       	call   0x408379
40ed59:	84 c0                	test   %al,%al
40ed5b:	75 06                	jne    0x40ed63
40ed5d:	6a fd                	push   $0xfffffffd
40ed5f:	58                   	pop    %eax
40ed60:	f0 21 07             	lock and %eax,(%edi)
40ed63:	53                   	push   %ebx
40ed64:	ff 15 6c 61 42 00    	call   *0x42616c
40ed6a:	8b 55 e4             	mov    -0x1c(%ebp),%edx
40ed6d:	f6 06 01             	testb  $0x1,(%esi)
40ed70:	5b                   	pop    %ebx
40ed71:	75 0c                	jne    0x40ed7f
40ed73:	8b 0e                	mov    (%esi),%ecx
40ed75:	33 ca                	xor    %edx,%ecx
40ed77:	81 e1 18 01 00 00    	and    $0x118,%ecx
40ed7d:	31 0e                	xor    %ecx,(%esi)
40ed7f:	5f                   	pop    %edi
40ed80:	8b c6                	mov    %esi,%eax
40ed82:	5e                   	pop    %esi
40ed83:	c9                   	leave
40ed84:	c2 04 00             	ret    $0x4
40ed87:	8b ff                	mov    %edi,%edi
40ed89:	55                   	push   %ebp
40ed8a:	8b ec                	mov    %esp,%ebp
40ed8c:	83 ec 10             	sub    $0x10,%esp
40ed8f:	56                   	push   %esi
40ed90:	8b f1                	mov    %ecx,%esi
40ed92:	8b 16                	mov    (%esi),%edx
40ed94:	f6 c2 02             	test   $0x2,%dl
40ed97:	75 0b                	jne    0x40eda4
40ed99:	8d 45 f0             	lea    -0x10(%ebp),%eax
40ed9c:	50                   	push   %eax
40ed9d:	e8 f9 fe ff ff       	call   0x40ec9b
40eda2:	8b 10                	mov    (%eax),%edx
40eda4:	33 c0                	xor    %eax,%eax
40eda6:	c6 45 fc 03          	movb   $0x3,-0x4(%ebp)
40edaa:	51                   	push   %ecx
40edab:	89 45 f8             	mov    %eax,-0x8(%ebp)
40edae:	0f b6 45 08          	movzbl 0x8(%ebp),%eax
40edb2:	51                   	push   %ecx
40edb3:	50                   	push   %eax
40edb4:	8d 45 f8             	lea    -0x8(%ebp),%eax
40edb7:	50                   	push   %eax
40edb8:	8b c2                	mov    %edx,%eax
40edba:	8d 4e 08             	lea    0x8(%esi),%ecx
40edbd:	c1 e8 08             	shr    $0x8,%eax
40edc0:	c1 ea 07             	shr    $0x7,%edx
40edc3:	83 e0 01             	and    $0x1,%eax
40edc6:	83 e2 01             	and    $0x1,%edx
40edc9:	50                   	push   %eax
40edca:	52                   	push   %edx
40edcb:	ba 44 b9 07 01       	mov    $0x107b944,%edx
40edd0:	e8 31 0c 00 00       	call   0x40fa06
40edd5:	5e                   	pop    %esi
40edd6:	c9                   	leave
40edd7:	c2 0c 00             	ret    $0xc
40edda:	8b ff                	mov    %edi,%edi
40eddc:	55                   	push   %ebp
40eddd:	8b ec                	mov    %esp,%ebp
40eddf:	56                   	push   %esi
40ede0:	57                   	push   %edi
40ede1:	ff 75 0c             	push   0xc(%ebp)
40ede4:	b9 ff 56 28 01       	mov    $0x12856ff,%ecx
40ede9:	e8 c8 07 00 00       	call   0x40f5b6
40edee:	8b 7d 08             	mov    0x8(%ebp),%edi
40edf1:	8b d0                	mov    %eax,%edx
40edf3:	8b f2                	mov    %edx,%esi
40edf5:	25 80 00 00 00       	and    $0x80,%eax
40edfa:	83 e6 40             	and    $0x40,%esi
40edfd:	c1 e6 02             	shl    $0x2,%esi
40ee00:	83 27 00             	andl   $0x0,(%edi)
40ee03:	83 67 04 00          	andl   $0x0,0x4(%edi)
40ee07:	8b 0f                	mov    (%edi),%ecx
40ee09:	81 e1 7f fe ff ff    	and    $0xfffffe7f,%ecx
40ee0f:	0b f1                	or     %ecx,%esi
40ee11:	0b f0                	or     %eax,%esi
40ee13:	81 e2 3f ff ff ff    	and    $0xffffff3f,%edx
40ee19:	74 08                	je     0x40ee23
40ee1b:	83 fa 02             	cmp    $0x2,%edx
40ee1e:	0f 94 c0             	sete   %al
40ee21:	eb 02                	jmp    0x40ee25
40ee23:	b0 01                	mov    $0x1,%al
40ee25:	0f b6 d0             	movzbl %al,%edx
40ee28:	83 e6 ef             	and    $0xffffffef,%esi
40ee2b:	c1 e2 04             	shl    $0x4,%edx
40ee2e:	0b d6                	or     %esi,%edx
40ee30:	0f b6 c8             	movzbl %al,%ecx
40ee33:	83 e2 f7             	and    $0xfffffff7,%edx
40ee36:	c1 e1 03             	shl    $0x3,%ecx
40ee39:	0b d1                	or     %ecx,%edx
40ee3b:	8b c7                	mov    %edi,%eax
40ee3d:	89 17                	mov    %edx,(%edi)
40ee3f:	5f                   	pop    %edi
40ee40:	5e                   	pop    %esi
40ee41:	5d                   	pop    %ebp
40ee42:	c2 08 00             	ret    $0x8
40ee45:	8b ff                	mov    %edi,%edi
40ee47:	55                   	push   %ebp
40ee48:	8b ec                	mov    %esp,%ebp
40ee4a:	56                   	push   %esi
40ee4b:	57                   	push   %edi
40ee4c:	ff 75 0c             	push   0xc(%ebp)
40ee4f:	b9 05 61 0f 01       	mov    $0x10f6105,%ecx
40ee54:	e8 5d 07 00 00       	call   0x40f5b6
40ee59:	8b 7d 08             	mov    0x8(%ebp),%edi
40ee5c:	8b d0                	mov    %eax,%edx
40ee5e:	8b f2                	mov    %edx,%esi
40ee60:	25 80 00 00 00       	and    $0x80,%eax
40ee65:	83 e6 40             	and    $0x40,%esi
40ee68:	c1 e6 02             	shl    $0x2,%esi
40ee6b:	83 27 00             	andl   $0x0,(%edi)
40ee6e:	83 67 04 00          	andl   $0x0,0x4(%edi)
40ee72:	8b 0f                	mov    (%edi),%ecx
40ee74:	81 e1 7f fe ff ff    	and    $0xfffffe7f,%ecx
40ee7a:	0b f1                	or     %ecx,%esi
40ee7c:	0b f0                	or     %eax,%esi
40ee7e:	81 e2 3f ff ff ff    	and    $0xffffff3f,%edx
40ee84:	74 08                	je     0x40ee8e
40ee86:	83 fa 02             	cmp    $0x2,%edx
40ee89:	0f 94 c0             	sete   %al
40ee8c:	eb 02                	jmp    0x40ee90
40ee8e:	b0 01                	mov    $0x1,%al
40ee90:	0f b6 d0             	movzbl %al,%edx
40ee93:	83 e6 ef             	and    $0xffffffef,%esi
40ee96:	c1 e2 04             	shl    $0x4,%edx
40ee99:	0b d6                	or     %esi,%edx
40ee9b:	0f b6 c8             	movzbl %al,%ecx
40ee9e:	83 e2 f7             	and    $0xfffffff7,%edx
40eea1:	c1 e1 03             	shl    $0x3,%ecx
40eea4:	0b d1                	or     %ecx,%edx
40eea6:	8b c7                	mov    %edi,%eax
40eea8:	89 17                	mov    %edx,(%edi)
40eeaa:	5f                   	pop    %edi
40eeab:	5e                   	pop    %esi
40eeac:	5d                   	pop    %ebp
40eead:	c2 08 00             	ret    $0x8
40eeb0:	8b ff                	mov    %edi,%edi
40eeb2:	55                   	push   %ebp
40eeb3:	8b ec                	mov    %esp,%ebp
40eeb5:	56                   	push   %esi
40eeb6:	57                   	push   %edi
40eeb7:	ff 75 0c             	push   0xc(%ebp)
40eeba:	b9 70 2a 07 01       	mov    $0x1072a70,%ecx
40eebf:	e8 f2 06 00 00       	call   0x40f5b6
40eec4:	8b 7d 08             	mov    0x8(%ebp),%edi
40eec7:	8b d0                	mov    %eax,%edx
40eec9:	8b f2                	mov    %edx,%esi
40eecb:	25 80 00 00 00       	and    $0x80,%eax
40eed0:	83 e6 40             	and    $0x40,%esi
40eed3:	c1 e6 02             	shl    $0x2,%esi
40eed6:	83 27 00             	andl   $0x0,(%edi)
40eed9:	83 67 04 00          	andl   $0x0,0x4(%edi)
40eedd:	8b 0f                	mov    (%edi),%ecx
40eedf:	81 e1 7f fe ff ff    	and    $0xfffffe7f,%ecx
40eee5:	0b f1                	or     %ecx,%esi
40eee7:	0b f0                	or     %eax,%esi
40eee9:	81 e2 3f ff ff ff    	and    $0xffffff3f,%edx
40eeef:	74 08                	je     0x40eef9
40eef1:	83 fa 02             	cmp    $0x2,%edx
40eef4:	0f 94 c0             	sete   %al
40eef7:	eb 02                	jmp    0x40eefb
40eef9:	b0 01                	mov    $0x1,%al
40eefb:	0f b6 d0             	movzbl %al,%edx
40eefe:	83 e6 ef             	and    $0xffffffef,%esi
40ef01:	c1 e2 04             	shl    $0x4,%edx
40ef04:	0b d6                	or     %esi,%edx
40ef06:	0f b6 c8             	movzbl %al,%ecx
40ef09:	83 e2 f7             	and    $0xfffffff7,%edx
40ef0c:	c1 e1 03             	shl    $0x3,%ecx