476fc5:	7f 04                	jg     0x476fcb
476fc7:	0b c7                	or     %edi,%eax
476fc9:	74 4f                	je     0x47701a
476fcb:	6a 00                	push   $0x0
476fcd:	6a 0a                	push   $0xa
476fcf:	57                   	push   %edi
476fd0:	ff 75 fc             	push   -0x4(%ebp)
476fd3:	8d 42 ff             	lea    -0x1(%edx),%eax
476fd6:	89 46 24             	mov    %eax,0x24(%esi)
476fd9:	e8 f2 e9 01 00       	call   0x4959d0
476fde:	6a 00                	push   $0x0
476fe0:	6a 0a                	push   $0xa
476fe2:	8a d8                	mov    %al,%bl
476fe4:	57                   	push   %edi
476fe5:	ff 75 fc             	push   -0x4(%ebp)
476fe8:	80 c3 30             	add    $0x30,%bl
476feb:	8a fb                	mov    %bl,%bh
476fed:	e8 6e 33 ff ff       	call   0x46a360
476ff2:	89 45 fc             	mov    %eax,-0x4(%ebp)
476ff5:	8b fa                	mov    %edx,%edi
476ff7:	80 fb 39             	cmp    $0x39,%bl
476ffa:	7e 0e                	jle    0x47700a
476ffc:	8a 5d 10             	mov    0x10(%ebp),%bl
476fff:	80 f3 01             	xor    $0x1,%bl
477002:	c0 e3 05             	shl    $0x5,%bl
477005:	80 c3 07             	add    $0x7,%bl
477008:	02 df                	add    %bh,%bl
47700a:	8b 4d f8             	mov    -0x8(%ebp),%ecx
47700d:	88 19                	mov    %bl,(%ecx)
47700f:	ff 4e 30             	decl   0x30(%esi)
477012:	8b 4e 30             	mov    0x30(%esi),%ecx
477015:	89 4d f8             	mov    %ecx,-0x8(%ebp)
477018:	eb a6                	jmp    0x476fc0
47701a:	8b 7d f4             	mov    -0xc(%ebp),%edi
47701d:	8d 41 01             	lea    0x1(%ecx),%eax
477020:	2b f9                	sub    %ecx,%edi
477022:	89 7e 34             	mov    %edi,0x34(%esi)
477025:	5f                   	pop    %edi
477026:	89 46 30             	mov    %eax,0x30(%esi)
477029:	5e                   	pop    %esi
47702a:	5b                   	pop    %ebx
47702b:	c9                   	leave
47702c:	c2 0c 00             	ret    $0xc
47702f:	8b ff                	mov    %edi,%edi
477031:	55                   	push   %ebp
477032:	8b ec                	mov    %esp,%ebp
477034:	83 ec 0c             	sub    $0xc,%esp
477037:	53                   	push   %ebx
477038:	56                   	push   %esi
477039:	8b f1                	mov    %ecx,%esi
47703b:	57                   	push   %edi
47703c:	8d 4e 3c             	lea    0x3c(%esi),%ecx
47703f:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
477045:	85 ff                	test   %edi,%edi
477047:	75 02                	jne    0x47704b
477049:	8b f9                	mov    %ecx,%edi
47704b:	e8 f2 e7 ff ff       	call   0x475842
477050:	8b 5d 08             	mov    0x8(%ebp),%ebx
477053:	89 5d fc             	mov    %ebx,-0x4(%ebp)
477056:	8d 3c 47             	lea    (%edi,%eax,2),%edi
477059:	83 c7 fe             	add    $0xfffffffe,%edi
47705c:	89 7d f4             	mov    %edi,-0xc(%ebp)
47705f:	8b cf                	mov    %edi,%ecx
477061:	89 7e 30             	mov    %edi,0x30(%esi)
477064:	89 7d f8             	mov    %edi,-0x8(%ebp)
477067:	8b 7d 0c             	mov    0xc(%ebp),%edi
47706a:	8b 56 24             	mov    0x24(%esi),%edx
47706d:	85 d2                	test   %edx,%edx
47706f:	7f 06                	jg     0x477077
477071:	8b c3                	mov    %ebx,%eax
477073:	0b c7                	or     %edi,%eax
477075:	74 5e                	je     0x4770d5
477077:	6a 00                	push   $0x0
477079:	6a 0a                	push   $0xa
47707b:	57                   	push   %edi
47707c:	8d 42 ff             	lea    -0x1(%edx),%eax
47707f:	53                   	push   %ebx
477080:	89 46 24             	mov    %eax,0x24(%esi)
477083:	e8 48 e9 01 00       	call   0x4959d0
477088:	6a 00                	push   $0x0
47708a:	66 83 c0 30          	add    $0x30,%ax
47708e:	6a 0a                	push   $0xa
477090:	0f b7 d8             	movzwl %ax,%ebx
477093:	8b 45 fc             	mov    -0x4(%ebp),%eax
477096:	57                   	push   %edi
477097:	50                   	push   %eax
477098:	e8 c3 32 ff ff       	call   0x46a360
47709d:	89 45 fc             	mov    %eax,-0x4(%ebp)
4770a0:	8b fa                	mov    %edx,%edi
4770a2:	83 fb 39             	cmp    $0x39,%ebx
4770a5:	76 15                	jbe    0x4770bc
4770a7:	8a 4d 10             	mov    0x10(%ebp),%cl
4770aa:	80 f1 01             	xor    $0x1,%cl
4770ad:	c0 e1 05             	shl    $0x5,%cl
4770b0:	80 c1 07             	add    $0x7,%cl
4770b3:	02 cb                	add    %bl,%cl
4770b5:	66 0f be c1          	movsbw %cl,%ax
4770b9:	0f b7 d8             	movzwl %ax,%ebx
4770bc:	8b 4d f8             	mov    -0x8(%ebp),%ecx
4770bf:	66 0f be c3          	movsbw %bl,%ax
4770c3:	8b 5d fc             	mov    -0x4(%ebp),%ebx
4770c6:	66 89 01             	mov    %ax,(%ecx)
4770c9:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
4770cd:	8b 4e 30             	mov    0x30(%esi),%ecx
4770d0:	89 4d f8             	mov    %ecx,-0x8(%ebp)
4770d3:	eb 95                	jmp    0x47706a
4770d5:	8b 7d f4             	mov    -0xc(%ebp),%edi
4770d8:	8d 41 02             	lea    0x2(%ecx),%eax
4770db:	2b f9                	sub    %ecx,%edi
4770dd:	d1 ff                	sar    $1,%edi
4770df:	89 7e 34             	mov    %edi,0x34(%esi)
4770e2:	5f                   	pop    %edi
4770e3:	89 46 30             	mov    %eax,0x30(%esi)
4770e6:	5e                   	pop    %esi
4770e7:	5b                   	pop    %ebx
4770e8:	c9                   	leave
4770e9:	c2 0c 00             	ret    $0xc
4770ec:	8b ff                	mov    %edi,%edi
4770ee:	55                   	push   %ebp
4770ef:	8b ec                	mov    %esp,%ebp
4770f1:	51                   	push   %ecx
4770f2:	51                   	push   %ecx
4770f3:	53                   	push   %ebx
4770f4:	56                   	push   %esi
4770f5:	8b f1                	mov    %ecx,%esi
4770f7:	57                   	push   %edi
4770f8:	8d 4e 3c             	lea    0x3c(%esi),%ecx
4770fb:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
477101:	85 ff                	test   %edi,%edi
477103:	75 02                	jne    0x477107
477105:	8b f9                	mov    %ecx,%edi
477107:	e8 1e e7 ff ff       	call   0x47582a
47710c:	8b 5d 08             	mov    0x8(%ebp),%ebx
47710f:	8d 48 ff             	lea    -0x1(%eax),%ecx
477112:	03 cf                	add    %edi,%ecx
477114:	8b 7d 0c             	mov    0xc(%ebp),%edi
477117:	89 4d f8             	mov    %ecx,-0x8(%ebp)
47711a:	8b d1                	mov    %ecx,%edx
47711c:	89 4e 30             	mov    %ecx,0x30(%esi)
47711f:	89 4d fc             	mov    %ecx,-0x4(%ebp)
477122:	8b 46 24             	mov    0x24(%esi),%eax
477125:	85 c0                	test   %eax,%eax
477127:	7f 09                	jg     0x477132
477129:	8b c3                	mov    %ebx,%eax
47712b:	0b c7                	or     %edi,%eax
47712d:	74 32                	je     0x477161
47712f:	8b 46 24             	mov    0x24(%esi),%eax
477132:	48                   	dec    %eax
477133:	89 46 24             	mov    %eax,0x24(%esi)
477136:	8a c3                	mov    %bl,%al
477138:	24 0f                	and    $0xf,%al
47713a:	0f ac fb 04          	shrd   $0x4,%edi,%ebx
47713e:	04 30                	add    $0x30,%al
477140:	c1 ef 04             	shr    $0x4,%edi
477143:	8a d0                	mov    %al,%dl
477145:	3c 39                	cmp    $0x39,%al
477147:	76 0c                	jbe    0x477155
477149:	8a 45 10             	mov    0x10(%ebp),%al
47714c:	34 01                	xor    $0x1,%al
47714e:	c0 e0 05             	shl    $0x5,%al
477151:	04 07                	add    $0x7,%al
477153:	02 c2                	add    %dl,%al
477155:	88 01                	mov    %al,(%ecx)
477157:	ff 4e 30             	decl   0x30(%esi)
47715a:	8b 56 30             	mov    0x30(%esi),%edx
47715d:	8b ca                	mov    %edx,%ecx
47715f:	eb c1                	jmp    0x477122
477161:	8b 4d f8             	mov    -0x8(%ebp),%ecx
477164:	8d 42 01             	lea    0x1(%edx),%eax
477167:	2b ca                	sub    %edx,%ecx
477169:	89 4e 34             	mov    %ecx,0x34(%esi)
47716c:	5f                   	pop    %edi
47716d:	89 46 30             	mov    %eax,0x30(%esi)
477170:	5e                   	pop    %esi
477171:	5b                   	pop    %ebx
477172:	c9                   	leave
477173:	c2 0c 00             	ret    $0xc
477176:	8b ff                	mov    %edi,%edi
477178:	55                   	push   %ebp
477179:	8b ec                	mov    %esp,%ebp
47717b:	51                   	push   %ecx
47717c:	51                   	push   %ecx
47717d:	53                   	push   %ebx
47717e:	56                   	push   %esi
47717f:	8b f1                	mov    %ecx,%esi
477181:	57                   	push   %edi
477182:	8d 4e 3c             	lea    0x3c(%esi),%ecx
477185:	8b b9 04 04 00 00    	mov    0x404(%ecx),%edi
47718b:	85 ff                	test   %edi,%edi
47718d:	75 02                	jne    0x477191
47718f:	8b f9                	mov    %ecx,%edi
477191:	e8 ac e6 ff ff       	call   0x475842
477196:	8b 5d 08             	mov    0x8(%ebp),%ebx
477199:	8d 48 ff             	lea    -0x1(%eax),%ecx
47719c:	8d 0c 4f             	lea    (%edi,%ecx,2),%ecx
47719f:	8b 7d 0c             	mov    0xc(%ebp),%edi
4771a2:	89 4d f8             	mov    %ecx,-0x8(%ebp)
4771a5:	8b d1                	mov    %ecx,%edx
4771a7:	89 4e 30             	mov    %ecx,0x30(%esi)
4771aa:	89 4d fc             	mov    %ecx,-0x4(%ebp)
4771ad:	8b 46 24             	mov    0x24(%esi),%eax
4771b0:	85 c0                	test   %eax,%eax
4771b2:	7f 09                	jg     0x4771bd
4771b4:	8b c3                	mov    %ebx,%eax
4771b6:	0b c7                	or     %edi,%eax
4771b8:	74 3b                	je     0x4771f5
4771ba:	8b 46 24             	mov    0x24(%esi),%eax
4771bd:	48                   	dec    %eax
4771be:	89 46 24             	mov    %eax,0x24(%esi)
4771c1:	8b c3                	mov    %ebx,%eax
4771c3:	83 e0 0f             	and    $0xf,%eax
4771c6:	83 c0 30             	add    $0x30,%eax
4771c9:	0f ac fb 04          	shrd   $0x4,%edi,%ebx
4771cd:	0f b7 d0             	movzwl %ax,%edx
4771d0:	c1 ef 04             	shr    $0x4,%edi
4771d3:	83 fa 39             	cmp    $0x39,%edx
4771d6:	76 0f                	jbe    0x4771e7
4771d8:	8a 45 10             	mov    0x10(%ebp),%al
4771db:	34 01                	xor    $0x1,%al
4771dd:	c0 e0 05             	shl    $0x5,%al
4771e0:	04 07                	add    $0x7,%al
4771e2:	02 c2                	add    %dl,%al
4771e4:	0f b6 d0             	movzbl %al,%edx
4771e7:	66 89 11             	mov    %dx,(%ecx)
4771ea:	83 46 30 fe          	addl   $0xfffffffe,0x30(%esi)
4771ee:	8b 56 30             	mov    0x30(%esi),%edx
4771f1:	8b ca                	mov    %edx,%ecx
4771f3:	eb b8                	jmp    0x4771ad
4771f5:	8b 4d f8             	mov    -0x8(%ebp),%ecx
4771f8:	8d 42 02             	lea    0x2(%edx),%eax
4771fb:	2b ca                	sub    %edx,%ecx
4771fd:	d1 f9                	sar    $1,%ecx
4771ff:	89 4e 34             	mov    %ecx,0x34(%esi)
477202:	5f                   	pop    %edi
477203:	89 46 30             	mov    %eax,0x30(%esi)
477206:	5e                   	pop    %esi
477207:	5b                   	pop    %ebx
477208:	c9                   	leave
477209:	c2 0c 00             	ret    $0xc
47720c:	8b ff                	mov    %edi,%edi
47720e:	55                   	push   %ebp
47720f:	8b ec                	mov    %esp,%ebp
477211:	8b 45 18             	mov    0x18(%ebp),%eax
477214:	8b d1                	mov    %ecx,%edx
477216:	33 c9                	xor    %ecx,%ecx
477218:	89 42 08             	mov    %eax,0x8(%edx)
47721b:	8b 45 08             	mov    0x8(%ebp),%eax
47721e:	89 0a                	mov    %ecx,(%edx)
477220:	89 4a 04             	mov    %ecx,0x4(%edx)
477223:	89 4a 0c             	mov    %ecx,0xc(%edx)
477226:	89 4a 10             	mov    %ecx,0x10(%edx)
477229:	89 8a 3c 04 00 00    	mov    %ecx,0x43c(%edx)
47722f:	89 8a 40 04 00 00    	mov    %ecx,0x440(%edx)
477235:	89 4a 14             	mov    %ecx,0x14(%edx)
477238:	88 4a 18             	mov    %cl,0x18(%edx)
47723b:	89 4a 1c             	mov    %ecx,0x1c(%edx)
47723e:	89 4a 20             	mov    %ecx,0x20(%edx)
477241:	89 4a 24             	mov    %ecx,0x24(%edx)
477244:	66 89 4a 2c          	mov    %cx,0x2c(%edx)
477248:	89 4a 34             	mov    %ecx,0x34(%edx)
47724b:	88 4a 38             	mov    %cl,0x38(%edx)
47724e:	8b 00                	mov    (%eax),%eax
477250:	8b 4d 10             	mov    0x10(%ebp),%ecx
477253:	89 82 48 04 00 00    	mov    %eax,0x448(%edx)
477259:	8b 45 0c             	mov    0xc(%ebp),%eax
47725c:	89 02                	mov    %eax,(%edx)
47725e:	8b 45 14             	mov    0x14(%ebp),%eax
477261:	89 42 0c             	mov    %eax,0xc(%edx)
477264:	8b 45 1c             	mov    0x1c(%ebp),%eax
477267:	89 42 10             	mov    %eax,0x10(%edx)
47726a:	8b c2                	mov    %edx,%eax
47726c:	89 4a 04             	mov    %ecx,0x4(%edx)
47726f:	5d                   	pop    %ebp
477270:	c2 18 00             	ret    $0x18
477273:	8b ff                	mov    %edi,%edi
477275:	55                   	push   %ebp
477276:	8b ec                	mov    %esp,%ebp
477278:	8b 45 18             	mov    0x18(%ebp),%eax
47727b:	8b d1                	mov    %ecx,%edx
47727d:	33 c9                	xor    %ecx,%ecx
47727f:	89 42 08             	mov    %eax,0x8(%edx)
477282:	33 c0                	xor    %eax,%eax
477284:	66 89 42 2e          	mov    %ax,0x2e(%edx)
477288:	8b 45 08             	mov    0x8(%ebp),%eax
47728b:	89 0a                	mov    %ecx,(%edx)
47728d:	89 4a 04             	mov    %ecx,0x4(%edx)
477290:	89 4a 0c             	mov    %ecx,0xc(%edx)
477293:	89 4a 10             	mov    %ecx,0x10(%edx)
477296:	89 8a 3c 04 00 00    	mov    %ecx,0x43c(%edx)
47729c:	89 8a 40 04 00 00    	mov    %ecx,0x440(%edx)
4772a2:	89 4a 14             	mov    %ecx,0x14(%edx)
4772a5:	88 4a 18             	mov    %cl,0x18(%edx)
4772a8:	89 4a 1c             	mov    %ecx,0x1c(%edx)
4772ab:	89 4a 20             	mov    %ecx,0x20(%edx)
4772ae:	89 4a 24             	mov    %ecx,0x24(%edx)
4772b1:	88 4a 2c             	mov    %cl,0x2c(%edx)
4772b4:	89 4a 34             	mov    %ecx,0x34(%edx)
4772b7:	88 4a 38             	mov    %cl,0x38(%edx)
4772ba:	8b 00                	mov    (%eax),%eax
4772bc:	8b 4d 10             	mov    0x10(%ebp),%ecx
4772bf:	89 82 48 04 00 00    	mov    %eax,0x448(%edx)
4772c5:	8b 45 0c             	mov    0xc(%ebp),%eax
4772c8:	89 02                	mov    %eax,(%edx)
4772ca:	8b 45 14             	mov    0x14(%ebp),%eax
4772cd:	89 42 0c             	mov    %eax,0xc(%edx)
4772d0:	8b 45 1c             	mov    0x1c(%ebp),%eax
4772d3:	89 42 10             	mov    %eax,0x10(%edx)
4772d6:	8b c2                	mov    %edx,%eax
4772d8:	89 4a 04             	mov    %ecx,0x4(%edx)
4772db:	5d                   	pop    %ebp
4772dc:	c2 18 00             	ret    $0x18
4772df:	cc                   	int3
4772e0:	8b ff                	mov    %edi,%edi
4772e2:	55                   	push   %ebp
4772e3:	8b ec                	mov    %esp,%ebp
4772e5:	8b d1                	mov    %ecx,%edx
4772e7:	8b 4d 08             	mov    0x8(%ebp),%ecx
4772ea:	c6 42 14 00          	movb   $0x0,0x14(%edx)
4772ee:	c7 02 00 00 00 00    	movl   $0x0,(%edx)
4772f4:	c6 42 08 00          	movb   $0x0,0x8(%edx)
4772f8:	c6 42 1c 00          	movb   $0x0,0x1c(%edx)
4772fc:	c6 42 24 00          	movb   $0x0,0x24(%edx)
477300:	85 c9                	test   %ecx,%ecx
477302:	74 15                	je     0x477319
477304:	8b 01                	mov    (%ecx),%eax
477306:	8b 49 04             	mov    0x4(%ecx),%ecx
477309:	89 42 0c             	mov    %eax,0xc(%edx)
47730c:	8b c2                	mov    %edx,%eax
47730e:	c6 42 14 01          	movb   $0x1,0x14(%edx)
477312:	89 4a 10             	mov    %ecx,0x10(%edx)
477315:	5d                   	pop    %ebp
477316:	c2 04 00             	ret    $0x4
477319:	83 3d c0 87 4c 00 00 	cmpl   $0x0,0x4c87c0
477320:	75 15                	jne    0x477337
477322:	a1 88 42 4c 00       	mov    0x4c4288,%eax
477327:	8b 0d 8c 42 4c 00    	mov    0x4c428c,%ecx
47732d:	c6 42 14 01          	movb   $0x1,0x14(%edx)
477331:	89 4a 10             	mov    %ecx,0x10(%edx)
477334:	89 42 0c             	mov    %eax,0xc(%edx)
477337:	8b c2                	mov    %edx,%eax
477339:	5d                   	pop    %ebp
47733a:	c2 04 00             	ret    $0x4
47733d:	cc                   	int3
47733e:	cc                   	int3
47733f:	cc                   	int3
477340:	8b ff                	mov    %edi,%edi
477342:	56                   	push   %esi
477343:	57                   	push   %edi
477344:	8b f9                	mov    %ecx,%edi
477346:	80 7f 14 02          	cmpb   $0x2,0x14(%edi)