407db7:	89 45 f4             	mov    %eax,-0xc(%ebp)
407dba:	39 55 e0             	cmp    %edx,-0x20(%ebp)
407dbd:	74 6e                	je     0x407e2d
407dbf:	8b d9                	mov    %ecx,%ebx
407dc1:	8b f9                	mov    %ecx,%edi
407dc3:	c1 eb 0c             	shr    $0xc,%ebx
407dc6:	8b f1                	mov    %ecx,%esi
407dc8:	c1 ef 0a             	shr    $0xa,%edi
407dcb:	8b c3                	mov    %ebx,%eax
407dcd:	c1 ee 08             	shr    $0x8,%esi
407dd0:	0b c7                	or     %edi,%eax
407dd2:	0b c6                	or     %esi,%eax
407dd4:	a8 03                	test   $0x3,%al
407dd6:	75 0d                	jne    0x407de5
407dd8:	f7 c1 00 00 00 3f    	test   $0x3f000000,%ecx
407dde:	75 05                	jne    0x407de5
407de0:	f6 c1 02             	test   $0x2,%cl
407de3:	74 48                	je     0x407e2d
407de5:	8b 45 f8             	mov    -0x8(%ebp),%eax
407de8:	8b 55 f4             	mov    -0xc(%ebp),%edx
407deb:	89 50 0c             	mov    %edx,0xc(%eax)
407dee:	8b c1                	mov    %ecx,%eax
407df0:	8b 55 f8             	mov    -0x8(%ebp),%edx
407df3:	c1 e8 1e             	shr    $0x1e,%eax
407df6:	89 42 08             	mov    %eax,0x8(%edx)
407df9:	8b c1                	mov    %ecx,%eax
407dfb:	c1 e8 18             	shr    $0x18,%eax
407dfe:	24 3f                	and    $0x3f,%al
407e00:	d1 e9                	shr    $1,%ecx
407e02:	88 42 04             	mov    %al,0x4(%edx)
407e05:	83 e1 01             	and    $0x1,%ecx
407e08:	8b c2                	mov    %edx,%eax
407e0a:	89 48 14             	mov    %ecx,0x14(%eax)
407e0d:	83 e3 03             	and    $0x3,%ebx
407e10:	74 04                	je     0x407e16
407e12:	89 18                	mov    %ebx,(%eax)
407e14:	eb 10                	jmp    0x407e26
407e16:	83 e7 03             	and    $0x3,%edi
407e19:	74 04                	je     0x407e1f
407e1b:	89 38                	mov    %edi,(%eax)
407e1d:	eb 07                	jmp    0x407e26
407e1f:	83 e6 03             	and    $0x3,%esi
407e22:	74 02                	je     0x407e26
407e24:	89 30                	mov    %esi,(%eax)
407e26:	33 c0                	xor    %eax,%eax
407e28:	40                   	inc    %eax
407e29:	33 d2                	xor    %edx,%edx
407e2b:	eb 02                	jmp    0x407e2f
407e2d:	8b c2                	mov    %edx,%eax
407e2f:	8b 7d f0             	mov    -0x10(%ebp),%edi
407e32:	8b f2                	mov    %edx,%esi
407e34:	8b 4d fc             	mov    -0x4(%ebp),%ecx
407e37:	0f b7 7f 06          	movzwl 0x6(%edi),%edi
407e3b:	8b 49 1c             	mov    0x1c(%ecx),%ecx
407e3e:	85 ff                	test   %edi,%edi
407e40:	74 14                	je     0x407e56
407e42:	8b 5d 08             	mov    0x8(%ebp),%ebx
407e45:	39 19                	cmp    %ebx,(%ecx)
407e47:	74 0a                	je     0x407e53
407e49:	46                   	inc    %esi
407e4a:	83 c1 10             	add    $0x10,%ecx
407e4d:	3b f7                	cmp    %edi,%esi
407e4f:	72 f4                	jb     0x407e45
407e51:	eb 03                	jmp    0x407e56
407e53:	33 d2                	xor    %edx,%edx
407e55:	42                   	inc    %edx
407e56:	8b 4d f8             	mov    -0x8(%ebp),%ecx
407e59:	5f                   	pop    %edi
407e5a:	5e                   	pop    %esi
407e5b:	5b                   	pop    %ebx
407e5c:	89 51 10             	mov    %edx,0x10(%ecx)
407e5f:	c9                   	leave
407e60:	c2 08 00             	ret    $0x8
407e63:	8b ff                	mov    %edi,%edi
407e65:	55                   	push   %ebp
407e66:	8b ec                	mov    %esp,%ebp
407e68:	8b 45 0c             	mov    0xc(%ebp),%eax
407e6b:	c7 00 01 00 00 00    	movl   $0x1,(%eax)
407e71:	33 c0                	xor    %eax,%eax
407e73:	5d                   	pop    %ebp
407e74:	c2 08 00             	ret    $0x8
407e77:	8b ff                	mov    %edi,%edi
407e79:	55                   	push   %ebp
407e7a:	8b ec                	mov    %esp,%ebp
407e7c:	83 ec 14             	sub    $0x14,%esp
407e7f:	8b c1                	mov    %ecx,%eax
407e81:	53                   	push   %ebx
407e82:	56                   	push   %esi
407e83:	33 f6                	xor    %esi,%esi
407e85:	89 45 ec             	mov    %eax,-0x14(%ebp)
407e88:	8b 50 14             	mov    0x14(%eax),%edx
407e8b:	8b de                	mov    %esi,%ebx
407e8d:	8b 48 18             	mov    0x18(%eax),%ecx
407e90:	89 75 fc             	mov    %esi,-0x4(%ebp)
407e93:	89 55 f0             	mov    %edx,-0x10(%ebp)
407e96:	0f b7 42 04          	movzwl 0x4(%edx),%eax
407e9a:	33 d2                	xor    %edx,%edx
407e9c:	89 4d f8             	mov    %ecx,-0x8(%ebp)
407e9f:	66 3b d0             	cmp    %ax,%dx
407ea2:	73 5f                	jae    0x407f03
407ea4:	57                   	push   %edi
407ea5:	8b d0                	mov    %eax,%edx
407ea7:	8b f9                	mov    %ecx,%edi
407ea9:	8b cf                	mov    %edi,%ecx
407eab:	e8 6f fb ff ff       	call   0x407a1f
407eb0:	85 c0                	test   %eax,%eax
407eb2:	74 38                	je     0x407eec
407eb4:	f6 47 04 01          	testb  $0x1,0x4(%edi)
407eb8:	75 24                	jne    0x407ede
407eba:	0f b7 c2             	movzwl %dx,%eax
407ebd:	8b ce                	mov    %esi,%ecx
407ebf:	89 45 f4             	mov    %eax,-0xc(%ebp)
407ec2:	85 c0                	test   %eax,%eax
407ec4:	74 18                	je     0x407ede
407ec6:	8b 55 f8             	mov    -0x8(%ebp),%edx
407ec9:	3b cb                	cmp    %ebx,%ecx
407ecb:	74 09                	je     0x407ed6
407ecd:	8b 07                	mov    (%edi),%eax
407ecf:	3b 02                	cmp    (%edx),%eax
407ed1:	74 19                	je     0x407eec
407ed3:	8b 45 f4             	mov    -0xc(%ebp),%eax
407ed6:	41                   	inc    %ecx
407ed7:	83 c2 0c             	add    $0xc,%edx
407eda:	3b c8                	cmp    %eax,%ecx
407edc:	72 eb                	jb     0x407ec9
407ede:	8d 45 fc             	lea    -0x4(%ebp),%eax
407ee1:	50                   	push   %eax
407ee2:	57                   	push   %edi
407ee3:	e8 7b ff ff ff       	call   0x407e63
407ee8:	85 c0                	test   %eax,%eax
407eea:	74 11                	je     0x407efd
407eec:	8b 45 f0             	mov    -0x10(%ebp),%eax
407eef:	43                   	inc    %ebx
407ef0:	83 c7 0c             	add    $0xc,%edi
407ef3:	0f b7 40 04          	movzwl 0x4(%eax),%eax
407ef7:	8b d0                	mov    %eax,%edx
407ef9:	3b d8                	cmp    %eax,%ebx
407efb:	72 ac                	jb     0x407ea9
407efd:	5f                   	pop    %edi
407efe:	39 75 fc             	cmp    %esi,-0x4(%ebp)
407f01:	75 0c                	jne    0x407f0f
407f03:	8b 45 ec             	mov    -0x14(%ebp),%eax
407f06:	8b 40 14             	mov    0x14(%eax),%eax
407f09:	66 39 70 06          	cmp    %si,0x6(%eax)
407f0d:	76 03                	jbe    0x407f12
407f0f:	33 f6                	xor    %esi,%esi
407f11:	46                   	inc    %esi
407f12:	8b c6                	mov    %esi,%eax
407f14:	5e                   	pop    %esi
407f15:	5b                   	pop    %ebx
407f16:	c9                   	leave
407f17:	c3                   	ret
407f18:	8b ff                	mov    %edi,%edi
407f1a:	55                   	push   %ebp
407f1b:	8b ec                	mov    %esp,%ebp
407f1d:	b8 24 10 00 00       	mov    $0x1024,%eax
407f22:	e8 29 ac 01 00       	call   0x422b50
407f27:	a1 10 42 42 00       	mov    0x424210,%eax
407f2c:	33 c5                	xor    %ebp,%eax
407f2e:	89 45 fc             	mov    %eax,-0x4(%ebp)
407f31:	8b 41 14             	mov    0x14(%ecx),%eax
407f34:	53                   	push   %ebx
407f35:	56                   	push   %esi
407f36:	33 f6                	xor    %esi,%esi
407f38:	89 95 e8 ef ff ff    	mov    %edx,-0x1018(%ebp)
407f3e:	21 b5 e4 ef ff ff    	and    %esi,-0x101c(%ebp)
407f44:	33 db                	xor    %ebx,%ebx
407f46:	57                   	push   %edi
407f47:	8b 79 1c             	mov    0x1c(%ecx),%edi
407f4a:	89 8d dc ef ff ff    	mov    %ecx,-0x1024(%ebp)
407f50:	66 3b 58 06          	cmp    0x6(%eax),%bx
407f54:	0f 83 2c 01 00 00    	jae    0x408086
407f5a:	8b 5d 08             	mov    0x8(%ebp),%ebx
407f5d:	83 c7 04             	add    $0x4,%edi
407f60:	39 57 fc             	cmp    %edx,-0x4(%edi)
407f63:	0f 85 01 01 00 00    	jne    0x40806a
407f69:	66 39 5f 08          	cmp    %bx,0x8(%edi)
407f6d:	0f 85 f7 00 00 00    	jne    0x40806a
407f73:	f7 47 08 00 00 01 00 	testl  $0x10000,0x8(%edi)
407f7a:	74 0a                	je     0x407f86
407f7c:	83 7d 0c 00          	cmpl   $0x0,0xc(%ebp)
407f80:	0f 84 e4 00 00 00    	je     0x40806a
407f86:	8b 07                	mov    (%edi),%eax
407f88:	89 85 f0 ef ff ff    	mov    %eax,-0x1010(%ebp)
407f8e:	8b 47 04             	mov    0x4(%edi),%eax
407f91:	89 85 f4 ef ff ff    	mov    %eax,-0x100c(%ebp)
407f97:	8d 85 ec ef ff ff    	lea    -0x1014(%ebp),%eax
407f9d:	c7 85 ec ef ff ff 00 	movl   $0x1000,-0x1014(%ebp)
407fa4:	10 00 00
407fa7:	50                   	push   %eax
407fa8:	8d 85 f8 ef ff ff    	lea    -0x1008(%ebp),%eax
407fae:	50                   	push   %eax
407faf:	8d 85 e0 ef ff ff    	lea    -0x1020(%ebp),%eax
407fb5:	50                   	push   %eax
407fb6:	51                   	push   %ecx
407fb7:	8d 8d f0 ef ff ff    	lea    -0x1010(%ebp),%ecx
407fbd:	e8 50 f9 ff ff       	call   0x407912
407fc2:	8b f0                	mov    %eax,%esi
407fc4:	85 f6                	test   %esi,%esi
407fc6:	0f 85 86 00 00 00    	jne    0x408052
407fcc:	8a 85 ec ef ff ff    	mov    -0x1014(%ebp),%al
407fd2:	8b b5 e8 ef ff ff    	mov    -0x1018(%ebp),%esi
407fd8:	24 07                	and    $0x7,%al
407fda:	0f b6 c0             	movzbl %al,%eax
407fdd:	f7 d8                	neg    %eax
407fdf:	1b c0                	sbb    %eax,%eax
407fe1:	33 c9                	xor    %ecx,%ecx
407fe3:	f7 d0                	not    %eax
407fe5:	23 85 ec ef ff ff    	and    -0x1014(%ebp),%eax
407feb:	8b d0                	mov    %eax,%edx
407fed:	89 85 ec ef ff ff    	mov    %eax,-0x1014(%ebp)
407ff3:	c1 ea 03             	shr    $0x3,%edx
407ff6:	85 d2                	test   %edx,%edx
407ff8:	74 18                	je     0x408012
407ffa:	39 b4 cd f8 ef ff ff 	cmp    %esi,-0x1008(%ebp,%ecx,8)
408001:	75 0a                	jne    0x40800d
408003:	66 39 9c cd fc ef ff 	cmp    %bx,-0x1004(%ebp,%ecx,8)
40800a:	ff
40800b:	74 27                	je     0x408034
40800d:	41                   	inc    %ecx
40800e:	3b ca                	cmp    %edx,%ecx
408010:	72 e8                	jb     0x407ffa
408012:	8d 48 08             	lea    0x8(%eax),%ecx
408015:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
40801b:	77 17                	ja     0x408034
40801d:	8b c1                	mov    %ecx,%eax
40801f:	89 b4 d5 f8 ef ff ff 	mov    %esi,-0x1008(%ebp,%edx,8)
408026:	66 89 9c d5 fc ef ff 	mov    %bx,-0x1004(%ebp,%edx,8)
40802d:	ff
40802e:	89 85 ec ef ff ff    	mov    %eax,-0x1014(%ebp)
408034:	6a 01                	push   $0x1
408036:	ff b5 e0 ef ff ff    	push   -0x1020(%ebp)
40803c:	8d 95 f8 ef ff ff    	lea    -0x1008(%ebp),%edx
408042:	51                   	push   %ecx
408043:	51                   	push   %ecx
408044:	50                   	push   %eax
408045:	8d 8d f0 ef ff ff    	lea    -0x1010(%ebp),%ecx
40804b:	e8 17 f9 ff ff       	call   0x407967
408050:	8b f0                	mov    %eax,%esi
408052:	81 fe 01 00 00 c0    	cmp    $0xc0000001,%esi
408058:	0f 84 39 ff ff ff    	je     0x407f97
40805e:	8b 95 e8 ef ff ff    	mov    -0x1018(%ebp),%edx
408064:	8b 8d dc ef ff ff    	mov    -0x1024(%ebp),%ecx
40806a:	8b 41 14             	mov    0x14(%ecx),%eax
40806d:	83 c7 10             	add    $0x10,%edi
408070:	ff 85 e4 ef ff ff    	incl   -0x101c(%ebp)
408076:	0f b7 40 06          	movzwl 0x6(%eax),%eax
40807a:	39 85 e4 ef ff ff    	cmp    %eax,-0x101c(%ebp)
408080:	0f 82 da fe ff ff    	jb     0x407f60
408086:	8b 4d fc             	mov    -0x4(%ebp),%ecx
408089:	8b c6                	mov    %esi,%eax
40808b:	5f                   	pop    %edi
40808c:	5e                   	pop    %esi
40808d:	33 cd                	xor    %ebp,%ecx
40808f:	5b                   	pop    %ebx
408090:	e8 db 97 01 00       	call   0x421870
408095:	c9                   	leave
408096:	c2 08 00             	ret    $0x8
408099:	8b ff                	mov    %edi,%edi
40809b:	55                   	push   %ebp
40809c:	8b ec                	mov    %esp,%ebp
40809e:	83 ec 24             	sub    $0x24,%esp
4080a1:	a1 10 42 42 00       	mov    0x424210,%eax
4080a6:	33 c5                	xor    %ebp,%eax
4080a8:	89 45 fc             	mov    %eax,-0x4(%ebp)
4080ab:	8b 45 0c             	mov    0xc(%ebp),%eax
4080ae:	89 45 e4             	mov    %eax,-0x1c(%ebp)
4080b1:	33 c0                	xor    %eax,%eax
4080b3:	53                   	push   %ebx
4080b4:	33 db                	xor    %ebx,%ebx
4080b6:	89 55 e8             	mov    %edx,-0x18(%ebp)
4080b9:	39 45 08             	cmp    %eax,0x8(%ebp)
4080bc:	56                   	push   %esi
4080bd:	0f 94 c0             	sete   %al
4080c0:	8b f1                	mov    %ecx,%esi
4080c2:	57                   	push   %edi
4080c3:	89 45 ec             	mov    %eax,-0x14(%ebp)
4080c6:	8d 7d f0             	lea    -0x10(%ebp),%edi
4080c9:	33 c0                	xor    %eax,%eax
4080cb:	ab                   	stos   %eax,%es:(%edi)
4080cc:	ab                   	stos   %eax,%es:(%edi)
4080cd:	ab                   	stos   %eax,%es:(%edi)
4080ce:	8b 3d 7c 4c 42 00    	mov    0x424c7c,%edi
4080d4:	85 ff                	test   %edi,%edi
4080d6:	75 24                	jne    0x4080fc
4080d8:	68 5c 1b 40 00       	push   $0x401b5c
4080dd:	e8 4d f7 ff ff       	call   0x40782f
4080e2:	50                   	push   %eax
4080e3:	ff 15 68 60 42 00    	call   *0x426068
4080e9:	8b f8                	mov    %eax,%edi
4080eb:	89 3d 7c 4c 42 00    	mov    %edi,0x424c7c
4080f1:	85 ff                	test   %edi,%edi
4080f3:	75 07                	jne    0x4080fc
4080f5:	ba 39 01 00 c0       	mov    $0xc0000139,%edx
4080fa:	eb 1a                	jmp    0x408116
4080fc:	8d 45 f0             	lea    -0x10(%ebp),%eax
4080ff:	8b cf                	mov    %edi,%ecx
408101:	50                   	push   %eax
408102:	8d 45 dc             	lea    -0x24(%ebp),%eax
408105:	50                   	push   %eax
408106:	ff 75 ec             	push   -0x14(%ebp)
408109:	ff 75 e8             	push   -0x18(%ebp)
40810c:	ff 15 78 64 42 00    	call   *0x426478
408112:	ff d7                	call   *%edi
408114:	8b d0                	mov    %eax,%edx
408116:	85 d2                	test   %edx,%edx
408118:	75 3f                	jne    0x408159
40811a:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40811d:	33 db                	xor    %ebx,%ebx
40811f:	8b c1                	mov    %ecx,%eax
408121:	43                   	inc    %ebx
408122:	c1 e8 04             	shr    $0x4,%eax
408125:	83 e0 03             	and    $0x3,%eax
408128:	89 06                	mov    %eax,(%esi)
40812a:	8b c1                	mov    %ecx,%eax
40812c:	c1 e8 08             	shr    $0x8,%eax
40812f:	24 3f                	and    $0x3f,%al
408131:	88 46 04             	mov    %al,0x4(%esi)
408134:	8b 45 f8             	mov    -0x8(%ebp),%eax
408137:	89 46 0c             	mov    %eax,0xc(%esi)
40813a:	8b c1                	mov    %ecx,%eax
40813c:	c1 e8 0e             	shr    $0xe,%eax
40813f:	83 e0 03             	and    $0x3,%eax
408142:	89 46 08             	mov    %eax,0x8(%esi)
408145:	8b c1                	mov    %ecx,%eax
408147:	c1 e8 06             	shr    $0x6,%eax
40814a:	23 c3                	and    %ebx,%eax
40814c:	c1 e9 07             	shr    $0x7,%ecx
40814f:	23 cb                	and    %ebx,%ecx
408151:	89 46 14             	mov    %eax,0x14(%esi)
408154:	89 4e 10             	mov    %ecx,0x10(%esi)
408157:	eb 14                	jmp    0x40816d
408159:	81 fa 17 01 00 00    	cmp    $0x117,%edx
40815f:	75 0c                	jne    0x40816d
408161:	8b 45 f4             	mov    -0xc(%ebp),%eax
408164:	c1 e8 07             	shr    $0x7,%eax
408167:	83 e0 01             	and    $0x1,%eax
40816a:	89 46 10             	mov    %eax,0x10(%esi)
40816d:	8b 45 e4             	mov    -0x1c(%ebp),%eax
408170:	85 c0                	test   %eax,%eax
408172:	74 0d                	je     0x408181
408174:	33 c9                	xor    %ecx,%ecx
408176:	81 fa 22 00 00 80    	cmp    $0x80000022,%edx
40817c:	0f 95 c1             	setne  %cl
40817f:	89 08                	mov    %ecx,(%eax)
408181:	8b 4d fc             	mov    -0x4(%ebp),%ecx
408184:	8b c3                	mov    %ebx,%eax
408186:	5f                   	pop    %edi
408187:	5e                   	pop    %esi
408188:	33 cd                	xor    %ebp,%ecx