40a210:	8b c8                	mov    %eax,%ecx
40a212:	89 45 0c             	mov    %eax,0xc(%ebp)
40a215:	f6 c2 01             	test   $0x1,%dl
40a218:	74 09                	je     0x40a223
40a21a:	c6 44 35 fc 30       	movb   $0x30,-0x4(%ebp,%esi,1)
40a21f:	46                   	inc    %esi
40a220:	89 75 f8             	mov    %esi,-0x8(%ebp)
40a223:	8b 75 ec             	mov    -0x14(%ebp),%esi
40a226:	0f ac ce 03          	shrd   $0x3,%ecx,%esi
40a22a:	47                   	inc    %edi
40a22b:	c1 e9 03             	shr    $0x3,%ecx
40a22e:	8b c6                	mov    %esi,%eax
40a230:	0b c1                	or     %ecx,%eax
40a232:	75 f2                	jne    0x40a226
40a234:	8b 75 f8             	mov    -0x8(%ebp),%esi
40a237:	8d 45 fc             	lea    -0x4(%ebp),%eax
40a23a:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40a23d:	56                   	push   %esi
40a23e:	50                   	push   %eax
40a23f:	8d 45 10             	lea    0x10(%ebp),%eax
40a242:	50                   	push   %eax
40a243:	57                   	push   %edi
40a244:	e8 65 e2 ff ff       	call   0x4084ae
40a249:	8b d0                	mov    %eax,%edx
40a24b:	8b 45 f0             	mov    -0x10(%ebp),%eax
40a24e:	8a c8                	mov    %al,%cl
40a250:	80 e1 07             	and    $0x7,%cl
40a253:	80 c1 30             	add    $0x30,%cl
40a256:	88 0a                	mov    %cl,(%edx)
40a258:	4a                   	dec    %edx
40a259:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40a25c:	0f ac c8 03          	shrd   $0x3,%ecx,%eax
40a260:	c1 e9 03             	shr    $0x3,%ecx
40a263:	89 45 f0             	mov    %eax,-0x10(%ebp)
40a266:	0b c1                	or     %ecx,%eax
40a268:	89 4d 0c             	mov    %ecx,0xc(%ebp)
40a26b:	75 de                	jne    0x40a24b
40a26d:	eb 74                	jmp    0x40a2e3
40a26f:	ff 75 0c             	push   0xc(%ebp)
40a272:	ff 75 08             	push   0x8(%ebp)
40a275:	e8 38 59 01 00       	call   0x41fbb2
40a27a:	59                   	pop    %ecx
40a27b:	59                   	pop    %ecx
40a27c:	89 45 f0             	mov    %eax,-0x10(%ebp)
40a27f:	e8 59 db 05 00       	call   0x467ddd
40a284:	8b 50 04             	mov    0x4(%eax),%edx
40a287:	8b ca                	mov    %edx,%ecx
40a289:	8d 41 01             	lea    0x1(%ecx),%eax
40a28c:	89 45 ec             	mov    %eax,-0x14(%ebp)
40a28f:	8a 01                	mov    (%ecx),%al
40a291:	41                   	inc    %ecx
40a292:	84 c0                	test   %al,%al
40a294:	75 f9                	jne    0x40a28f
40a296:	56                   	push   %esi
40a297:	8b 75 f0             	mov    -0x10(%ebp),%esi
40a29a:	8d 45 fc             	lea    -0x4(%ebp),%eax
40a29d:	50                   	push   %eax
40a29e:	8d 45 10             	lea    0x10(%ebp),%eax
40a2a1:	89 55 e0             	mov    %edx,-0x20(%ebp)
40a2a4:	50                   	push   %eax
40a2a5:	6a 03                	push   $0x3
40a2a7:	89 7d e8             	mov    %edi,-0x18(%ebp)
40a2aa:	8d 46 ff             	lea    -0x1(%esi),%eax
40a2ad:	5f                   	pop    %edi
40a2ae:	33 d2                	xor    %edx,%edx
40a2b0:	2b 4d ec             	sub    -0x14(%ebp),%ecx
40a2b3:	f7 f7                	div    %edi
40a2b5:	89 4d e4             	mov    %ecx,-0x1c(%ebp)
40a2b8:	0f af c1             	imul   %ecx,%eax
40a2bb:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40a2be:	03 c6                	add    %esi,%eax
40a2c0:	50                   	push   %eax
40a2c1:	e8 e8 e1 ff ff       	call   0x4084ae
40a2c6:	83 ec 0c             	sub    $0xc,%esp
40a2c9:	8d 75 e0             	lea    -0x20(%ebp),%esi
40a2cc:	8b fc                	mov    %esp,%edi
40a2ce:	40                   	inc    %eax
40a2cf:	6a 00                	push   $0x0
40a2d1:	ff 75 0c             	push   0xc(%ebp)
40a2d4:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40a2d5:	ff 75 08             	push   0x8(%ebp)
40a2d8:	50                   	push   %eax
40a2d9:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40a2da:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40a2db:	e8 74 d8 ff ff       	call   0x407b54
40a2e0:	83 c4 1c             	add    $0x1c,%esp
40a2e3:	5f                   	pop    %edi
40a2e4:	5e                   	pop    %esi
40a2e5:	c9                   	leave
40a2e6:	c2 20 00             	ret    $0x20
40a2e9:	6a 10                	push   $0x10
40a2eb:	8d 4d 10             	lea    0x10(%ebp),%ecx
40a2ee:	e8 b2 6c 01 00       	call   0x420fa5
40a2f3:	84 c0                	test   %al,%al
40a2f5:	ba 90 63 49 00       	mov    $0x496390,%edx
40a2fa:	b9 b8 65 49 00       	mov    $0x4965b8,%ecx
40a2ff:	0f 44 ca             	cmove  %edx,%ecx
40a302:	51                   	push   %ecx
40a303:	8d 4d 10             	lea    0x10(%ebp),%ecx
40a306:	e8 e1 90 01 00       	call   0x4233ec
40a30b:	0f b6 c0             	movzbl %al,%eax
40a30e:	50                   	push   %eax
40a30f:	e8 fa 83 01 00       	call   0x42270e
40a314:	cc                   	int3
40a315:	55                   	push   %ebp
40a316:	8b ec                	mov    %esp,%ebp
40a318:	83 ec 1c             	sub    $0x1c,%esp
40a31b:	0f b6 45 08          	movzbl 0x8(%ebp),%eax
40a31f:	8b 55 18             	mov    0x18(%ebp),%edx
40a322:	56                   	push   %esi
40a323:	57                   	push   %edi
40a324:	33 ff                	xor    %edi,%edi
40a326:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40a329:	89 45 fc             	mov    %eax,-0x4(%ebp)
40a32c:	8b f7                	mov    %edi,%esi
40a32e:	89 7d 08             	mov    %edi,0x8(%ebp)
40a331:	f6 c2 01             	test   $0x1,%dl
40a334:	74 15                	je     0x40a34b
40a336:	8b c2                	mov    %edx,%eax
40a338:	d1 e8                	shr    $1,%eax
40a33a:	24 01                	and    $0x1,%al
40a33c:	f6 d8                	neg    %al
40a33e:	1a c0                	sbb    %al,%al
40a340:	24 0b                	and    $0xb,%al
40a342:	04 20                	add    $0x20,%al
40a344:	46                   	inc    %esi
40a345:	88 45 08             	mov    %al,0x8(%ebp)
40a348:	8b 45 fc             	mov    -0x4(%ebp),%eax
40a34b:	0f be 4d 20          	movsbl 0x20(%ebp),%ecx
40a34f:	83 f9 64             	cmp    $0x64,%ecx
40a352:	0f 8f 94 00 00 00    	jg     0x40a3ec
40a358:	74 62                	je     0x40a3bc
40a35a:	85 c9                	test   %ecx,%ecx
40a35c:	74 5e                	je     0x40a3bc
40a35e:	83 f9 42             	cmp    $0x42,%ecx
40a361:	74 12                	je     0x40a375
40a363:	83 f9 58             	cmp    $0x58,%ecx
40a366:	0f 84 97 00 00 00    	je     0x40a403
40a36c:	83 f9 62             	cmp    $0x62,%ecx
40a36f:	0f 85 9d 01 00 00    	jne    0x40a512
40a375:	c1 ea 03             	shr    $0x3,%edx
40a378:	8b c8                	mov    %eax,%ecx
40a37a:	f6 c2 01             	test   $0x1,%dl
40a37d:	74 0f                	je     0x40a38e
40a37f:	8a 45 20             	mov    0x20(%ebp),%al
40a382:	c6 44 35 08 30       	movb   $0x30,0x8(%ebp,%esi,1)
40a387:	88 44 35 09          	mov    %al,0x9(%ebp,%esi,1)
40a38b:	83 c6 02             	add    $0x2,%esi
40a38e:	47                   	inc    %edi
40a38f:	d1 e9                	shr    $1,%ecx
40a391:	75 fb                	jne    0x40a38e
40a393:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a396:	8d 45 08             	lea    0x8(%ebp),%eax
40a399:	56                   	push   %esi
40a39a:	50                   	push   %eax
40a39b:	8d 45 0c             	lea    0xc(%ebp),%eax
40a39e:	50                   	push   %eax
40a39f:	57                   	push   %edi
40a3a0:	e8 09 e1 ff ff       	call   0x4084ae
40a3a5:	8b 55 fc             	mov    -0x4(%ebp),%edx
40a3a8:	8a ca                	mov    %dl,%cl
40a3aa:	80 e1 01             	and    $0x1,%cl
40a3ad:	80 c1 30             	add    $0x30,%cl
40a3b0:	88 08                	mov    %cl,(%eax)
40a3b2:	48                   	dec    %eax
40a3b3:	d1 ea                	shr    $1,%edx
40a3b5:	75 f1                	jne    0x40a3a8
40a3b7:	e9 50 01 00 00       	jmp    0x40a50c
40a3bc:	50                   	push   %eax
40a3bd:	e8 c7 57 01 00       	call   0x41fb89
40a3c2:	59                   	pop    %ecx
40a3c3:	56                   	push   %esi
40a3c4:	8d 4d 08             	lea    0x8(%ebp),%ecx
40a3c7:	51                   	push   %ecx
40a3c8:	8d 4d 0c             	lea    0xc(%ebp),%ecx
40a3cb:	51                   	push   %ecx
40a3cc:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a3cf:	50                   	push   %eax
40a3d0:	e8 d9 e0 ff ff       	call   0x4084ae
40a3d5:	ff 75 08             	push   0x8(%ebp)
40a3d8:	8b 55 fc             	mov    -0x4(%ebp),%edx
40a3db:	40                   	inc    %eax
40a3dc:	57                   	push   %edi
40a3dd:	52                   	push   %edx
40a3de:	50                   	push   %eax
40a3df:	e8 06 d6 ff ff       	call   0x4079ea
40a3e4:	83 c4 10             	add    $0x10,%esp
40a3e7:	e9 20 01 00 00       	jmp    0x40a50c
40a3ec:	83 e9 6e             	sub    $0x6e,%ecx
40a3ef:	0f 84 ab 00 00 00    	je     0x40a4a0
40a3f5:	83 e9 01             	sub    $0x1,%ecx
40a3f8:	74 67                	je     0x40a461
40a3fa:	83 e9 09             	sub    $0x9,%ecx
40a3fd:	0f 85 0f 01 00 00    	jne    0x40a512
40a403:	c1 ea 03             	shr    $0x3,%edx
40a406:	f6 c2 01             	test   $0x1,%dl
40a409:	74 0f                	je     0x40a41a
40a40b:	8a 4d 20             	mov    0x20(%ebp),%cl
40a40e:	c6 44 35 08 30       	movb   $0x30,0x8(%ebp,%esi,1)
40a413:	88 4c 35 09          	mov    %cl,0x9(%ebp,%esi,1)
40a417:	83 c6 02             	add    $0x2,%esi
40a41a:	c1 e8 04             	shr    $0x4,%eax
40a41d:	47                   	inc    %edi
40a41e:	85 c0                	test   %eax,%eax
40a420:	75 f8                	jne    0x40a41a
40a422:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a425:	8d 45 08             	lea    0x8(%ebp),%eax
40a428:	56                   	push   %esi
40a429:	50                   	push   %eax
40a42a:	8d 45 0c             	lea    0xc(%ebp),%eax
40a42d:	50                   	push   %eax
40a42e:	57                   	push   %edi
40a42f:	e8 7a e0 ff ff       	call   0x4084ae
40a434:	80 7d 20 78          	cmpb   $0x78,0x20(%ebp)
40a438:	8b c8                	mov    %eax,%ecx
40a43a:	8b 55 fc             	mov    -0x4(%ebp),%edx
40a43d:	be 90 65 49 00       	mov    $0x496590,%esi
40a442:	b8 a4 65 49 00       	mov    $0x4965a4,%eax
40a447:	0f 45 f0             	cmovne %eax,%esi
40a44a:	8b c2                	mov    %edx,%eax
40a44c:	c1 ea 04             	shr    $0x4,%edx
40a44f:	83 e0 0f             	and    $0xf,%eax
40a452:	8a 04 30             	mov    (%eax,%esi,1),%al
40a455:	88 01                	mov    %al,(%ecx)
40a457:	49                   	dec    %ecx
40a458:	85 d2                	test   %edx,%edx
40a45a:	75 ee                	jne    0x40a44a
40a45c:	e9 ab 00 00 00       	jmp    0x40a50c
40a461:	c1 ea 03             	shr    $0x3,%edx
40a464:	f6 c2 01             	test   $0x1,%dl
40a467:	74 06                	je     0x40a46f
40a469:	c6 44 35 08 30       	movb   $0x30,0x8(%ebp,%esi,1)
40a46e:	46                   	inc    %esi
40a46f:	c1 e8 03             	shr    $0x3,%eax
40a472:	47                   	inc    %edi
40a473:	85 c0                	test   %eax,%eax
40a475:	75 f8                	jne    0x40a46f
40a477:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a47a:	8d 45 08             	lea    0x8(%ebp),%eax
40a47d:	56                   	push   %esi
40a47e:	50                   	push   %eax
40a47f:	8d 45 0c             	lea    0xc(%ebp),%eax
40a482:	50                   	push   %eax
40a483:	57                   	push   %edi
40a484:	e8 25 e0 ff ff       	call   0x4084ae
40a489:	8b 55 fc             	mov    -0x4(%ebp),%edx
40a48c:	8a ca                	mov    %dl,%cl
40a48e:	c1 ea 03             	shr    $0x3,%edx
40a491:	80 e1 07             	and    $0x7,%cl
40a494:	80 c1 30             	add    $0x30,%cl
40a497:	88 08                	mov    %cl,(%eax)
40a499:	48                   	dec    %eax
40a49a:	85 d2                	test   %edx,%edx
40a49c:	75 ee                	jne    0x40a48c
40a49e:	eb 6c                	jmp    0x40a50c
40a4a0:	50                   	push   %eax
40a4a1:	e8 e3 56 01 00       	call   0x41fb89
40a4a6:	59                   	pop    %ecx
40a4a7:	89 45 f0             	mov    %eax,-0x10(%ebp)
40a4aa:	e8 2e d9 05 00       	call   0x467ddd
40a4af:	8b 50 04             	mov    0x4(%eax),%edx
40a4b2:	8b ca                	mov    %edx,%ecx
40a4b4:	8d 41 01             	lea    0x1(%ecx),%eax
40a4b7:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a4ba:	8a 01                	mov    (%ecx),%al
40a4bc:	41                   	inc    %ecx
40a4bd:	84 c0                	test   %al,%al
40a4bf:	75 f9                	jne    0x40a4ba
40a4c1:	56                   	push   %esi
40a4c2:	8b 75 f0             	mov    -0x10(%ebp),%esi
40a4c5:	8d 45 08             	lea    0x8(%ebp),%eax
40a4c8:	50                   	push   %eax
40a4c9:	8d 45 0c             	lea    0xc(%ebp),%eax
40a4cc:	89 55 e4             	mov    %edx,-0x1c(%ebp)
40a4cf:	50                   	push   %eax
40a4d0:	6a 03                	push   $0x3
40a4d2:	89 7d ec             	mov    %edi,-0x14(%ebp)
40a4d5:	8d 46 ff             	lea    -0x1(%esi),%eax
40a4d8:	5f                   	pop    %edi
40a4d9:	33 d2                	xor    %edx,%edx
40a4db:	2b 4d f4             	sub    -0xc(%ebp),%ecx
40a4de:	f7 f7                	div    %edi
40a4e0:	89 4d e8             	mov    %ecx,-0x18(%ebp)
40a4e3:	0f af c1             	imul   %ecx,%eax
40a4e6:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40a4e9:	03 c6                	add    %esi,%eax
40a4eb:	50                   	push   %eax
40a4ec:	e8 bd df ff ff       	call   0x4084ae
40a4f1:	8b 55 fc             	mov    -0x4(%ebp),%edx
40a4f4:	8d 75 e4             	lea    -0x1c(%ebp),%esi
40a4f7:	83 ec 0c             	sub    $0xc,%esp
40a4fa:	40                   	inc    %eax
40a4fb:	8b fc                	mov    %esp,%edi
40a4fd:	6a 00                	push   $0x0
40a4ff:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40a500:	52                   	push   %edx
40a501:	50                   	push   %eax
40a502:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40a503:	a5                   	movsl  %ds:(%esi),%es:(%edi)
40a504:	e8 3b d5 ff ff       	call   0x407a44
40a509:	83 c4 18             	add    $0x18,%esp
40a50c:	5f                   	pop    %edi
40a50d:	5e                   	pop    %esi
40a50e:	c9                   	leave
40a50f:	c2 1c 00             	ret    $0x1c
40a512:	6a 10                	push   $0x10
40a514:	8d 4d 0c             	lea    0xc(%ebp),%ecx
40a517:	e8 89 6a 01 00       	call   0x420fa5
40a51c:	84 c0                	test   %al,%al
40a51e:	ba 90 63 49 00       	mov    $0x496390,%edx
40a523:	b9 b8 65 49 00       	mov    $0x4965b8,%ecx
40a528:	0f 44 ca             	cmove  %edx,%ecx
40a52b:	51                   	push   %ecx
40a52c:	8d 4d 0c             	lea    0xc(%ebp),%ecx
40a52f:	e8 b8 8e 01 00       	call   0x4233ec
40a534:	0f b6 c0             	movzbl %al,%eax
40a537:	50                   	push   %eax
40a538:	e8 d1 81 01 00       	call   0x42270e
40a53d:	cc                   	int3
40a53e:	55                   	push   %ebp
40a53f:	8b ec                	mov    %esp,%ebp
40a541:	53                   	push   %ebx
40a542:	8b 5d 10             	mov    0x10(%ebp),%ebx
40a545:	56                   	push   %esi
40a546:	57                   	push   %edi
40a547:	8b 7d 0c             	mov    0xc(%ebp),%edi
40a54a:	39 3b                	cmp    %edi,(%ebx)
40a54c:	76 5d                	jbe    0x40a5ab
40a54e:	ff 33                	push   (%ebx)
40a550:	e8 a7 78 01 00       	call   0x421dfc
40a555:	83 7b 08 02          	cmpl   $0x2,0x8(%ebx)
40a559:	8b f0                	mov    %eax,%esi
40a55b:	8a 43 04             	mov    0x4(%ebx),%al
40a55e:	8b 0b                	mov    (%ebx),%ecx
40a560:	88 45 13             	mov    %al,0x13(%ebp)
40a563:	75 18                	jne    0x40a57d
40a565:	8d 45 13             	lea    0x13(%ebp),%eax
40a568:	2b cf                	sub    %edi,%ecx
40a56a:	50                   	push   %eax
40a56b:	51                   	push   %ecx
40a56c:	56                   	push   %esi
40a56d:	e8 d6 e5 ff ff       	call   0x408b48
40a572:	8b 03                	mov    (%ebx),%eax
40a574:	83 c4 0c             	add    $0xc,%esp
40a577:	2b c7                	sub    %edi,%eax
40a579:	03 f0                	add    %eax,%esi
40a57b:	eb 36                	jmp    0x40a5b3
40a57d:	83 7b 08 03          	cmpl   $0x3,0x8(%ebx)
40a581:	75 13                	jne    0x40a596
40a583:	66 98                	cbtw