4021ce:	33 c0                	xor    %eax,%eax
4021d0:	66 39 06             	cmp    %ax,(%esi)
4021d3:	75 ae                	jne    0x402183
4021d5:	33 d2                	xor    %edx,%edx
4021d7:	66 39 13             	cmp    %dx,(%ebx)
4021da:	74 1d                	je     0x4021f9
4021dc:	57                   	push   %edi
4021dd:	ff 15 14 71 40 00    	call   *0x407114
4021e3:	8b 55 f8             	mov    -0x8(%ebp),%edx
4021e6:	8b f8                	mov    %eax,%edi
4021e8:	0f b7 0f             	movzwl (%edi),%ecx
4021eb:	8b c1                	mov    %ecx,%eax
4021ed:	66 85 c9             	test   %cx,%cx
4021f0:	75 88                	jne    0x40217a
4021f2:	33 c0                	xor    %eax,%eax
4021f4:	5e                   	pop    %esi
4021f5:	5b                   	pop    %ebx
4021f6:	5f                   	pop    %edi
4021f7:	c9                   	leave
4021f8:	c3                   	ret
4021f9:	8b c7                	mov    %edi,%eax
4021fb:	eb f7                	jmp    0x4021f4
4021fd:	8b ff                	mov    %edi,%edi
4021ff:	56                   	push   %esi
402200:	8b f1                	mov    %ecx,%esi
402202:	8b 16                	mov    (%esi),%edx
402204:	0f b7 0a             	movzwl (%edx),%ecx
402207:	8b c1                	mov    %ecx,%eax
402209:	83 f8 09             	cmp    $0x9,%eax
40220c:	72 1a                	jb     0x402228
40220e:	83 f8 0a             	cmp    $0xa,%eax
402211:	76 0a                	jbe    0x40221d
402213:	83 f8 0d             	cmp    $0xd,%eax
402216:	74 05                	je     0x40221d
402218:	83 f9 20             	cmp    $0x20,%ecx
40221b:	75 0b                	jne    0x402228
40221d:	52                   	push   %edx
40221e:	ff 15 14 71 40 00    	call   *0x407114
402224:	89 06                	mov    %eax,(%esi)
402226:	eb da                	jmp    0x402202
402228:	5e                   	pop    %esi
402229:	c3                   	ret
40222a:	8b ff                	mov    %edi,%edi
40222c:	55                   	push   %ebp
40222d:	8b ec                	mov    %esp,%ebp
40222f:	51                   	push   %ecx
402230:	51                   	push   %ecx
402231:	53                   	push   %ebx
402232:	56                   	push   %esi
402233:	57                   	push   %edi
402234:	8b f1                	mov    %ecx,%esi
402236:	e8 c2 ff ff ff       	call   0x4021fd
40223b:	8b 3e                	mov    (%esi),%edi
40223d:	33 d2                	xor    %edx,%edx
40223f:	0f b7 07             	movzwl (%edi),%eax
402242:	8b c8                	mov    %eax,%ecx
402244:	66 3b d0             	cmp    %ax,%dx
402247:	74 70                	je     0x4022b9
402249:	8b 5d 08             	mov    0x8(%ebp),%ebx
40224c:	6a 27                	push   $0x27
40224e:	5a                   	pop    %edx
40224f:	89 5d fc             	mov    %ebx,-0x4(%ebp)
402252:	66 3b d0             	cmp    %ax,%dx
402255:	0f 85 a4 00 00 00    	jne    0x4022ff
40225b:	57                   	push   %edi
40225c:	ff 15 14 71 40 00    	call   *0x407114
402262:	8b d0                	mov    %eax,%edx
402264:	33 ff                	xor    %edi,%edi
402266:	89 16                	mov    %edx,(%esi)
402268:	0f b7 0a             	movzwl (%edx),%ecx
40226b:	8b c1                	mov    %ecx,%eax
40226d:	66 3b f9             	cmp    %cx,%di
402270:	74 73                	je     0x4022e5
402272:	6a 27                	push   $0x27
402274:	5f                   	pop    %edi
402275:	66 3b f8             	cmp    %ax,%di
402278:	75 0c                	jne    0x402286
40227a:	52                   	push   %edx
40227b:	ff 15 14 71 40 00    	call   *0x407114
402281:	66 3b 38             	cmp    (%eax),%di
402284:	75 5f                	jne    0x4022e5
402286:	8b 3e                	mov    (%esi),%edi
402288:	6a 27                	push   $0x27
40228a:	58                   	pop    %eax
40228b:	66 3b 07             	cmp    (%edi),%ax
40228e:	75 0b                	jne    0x40229b
402290:	57                   	push   %edi
402291:	ff 15 14 71 40 00    	call   *0x407114
402297:	8b f8                	mov    %eax,%edi
402299:	89 3e                	mov    %edi,(%esi)
40229b:	57                   	push   %edi
40229c:	ff 15 14 71 40 00    	call   *0x407114
4022a2:	8b d0                	mov    %eax,%edx
4022a4:	2b c7                	sub    %edi,%eax
4022a6:	d1 f8                	sar    $1,%eax
4022a8:	89 16                	mov    %edx,(%esi)
4022aa:	8d 0c 43             	lea    (%ebx,%eax,2),%ecx
4022ad:	8b 45 fc             	mov    -0x4(%ebp),%eax
4022b0:	05 00 20 00 00       	add    $0x2000,%eax
4022b5:	3b c8                	cmp    %eax,%ecx
4022b7:	72 1a                	jb     0x4022d3
4022b9:	b8 09 00 02 80       	mov    $0x80020009,%eax
4022be:	5f                   	pop    %edi
4022bf:	5e                   	pop    %esi
4022c0:	5b                   	pop    %ebx
4022c1:	c9                   	leave
4022c2:	c2 04 00             	ret    $0x4
4022c5:	66 8b 07             	mov    (%edi),%ax
4022c8:	83 c7 02             	add    $0x2,%edi
4022cb:	66 89 03             	mov    %ax,(%ebx)
4022ce:	83 c3 02             	add    $0x2,%ebx
4022d1:	8b 16                	mov    (%esi),%edx
4022d3:	3b fa                	cmp    %edx,%edi
4022d5:	72 ee                	jb     0x4022c5
4022d7:	0f b7 02             	movzwl (%edx),%eax
4022da:	33 ff                	xor    %edi,%edi
4022dc:	8b c8                	mov    %eax,%ecx
4022de:	66 3b f8             	cmp    %ax,%di
4022e1:	74 02                	je     0x4022e5
4022e3:	eb 8d                	jmp    0x402272
4022e5:	8b 06                	mov    (%esi),%eax
4022e7:	33 c9                	xor    %ecx,%ecx
4022e9:	66 3b 08             	cmp    (%eax),%cx
4022ec:	74 cb                	je     0x4022b9
4022ee:	33 c0                	xor    %eax,%eax
4022f0:	66 89 03             	mov    %ax,(%ebx)
4022f3:	ff 36                	push   (%esi)
4022f5:	ff 15 14 71 40 00    	call   *0x407114
4022fb:	89 06                	mov    %eax,(%esi)
4022fd:	eb 6b                	jmp    0x40236a
4022ff:	0f b7 c1             	movzwl %cx,%eax
402302:	0f b7 c9             	movzwl %cx,%ecx
402305:	83 f8 09             	cmp    $0x9,%eax
402308:	72 0f                	jb     0x402319
40230a:	83 f8 0a             	cmp    $0xa,%eax
40230d:	76 56                	jbe    0x402365
40230f:	83 f8 0d             	cmp    $0xd,%eax
402312:	74 51                	je     0x402365
402314:	83 f9 20             	cmp    $0x20,%ecx
402317:	74 4c                	je     0x402365
402319:	57                   	push   %edi
40231a:	ff 15 14 71 40 00    	call   *0x407114
402320:	8b c8                	mov    %eax,%ecx
402322:	89 45 f8             	mov    %eax,-0x8(%ebp)
402325:	2b cf                	sub    %edi,%ecx
402327:	89 06                	mov    %eax,(%esi)
402329:	d1 f9                	sar    $1,%ecx
40232b:	8d 14 4b             	lea    (%ebx,%ecx,2),%edx
40232e:	8b 4d fc             	mov    -0x4(%ebp),%ecx
402331:	81 c1 00 20 00 00    	add    $0x2000,%ecx
402337:	3b d1                	cmp    %ecx,%edx
402339:	0f 83 7a ff ff ff    	jae    0x4022b9
40233f:	eb 11                	jmp    0x402352
402341:	66 8b 07             	mov    (%edi),%ax
402344:	83 c7 02             	add    $0x2,%edi
402347:	66 89 03             	mov    %ax,(%ebx)
40234a:	83 c3 02             	add    $0x2,%ebx
40234d:	8b 06                	mov    (%esi),%eax
40234f:	89 45 f8             	mov    %eax,-0x8(%ebp)
402352:	3b f8                	cmp    %eax,%edi
402354:	72 eb                	jb     0x402341
402356:	0f b7 00             	movzwl (%eax),%eax
402359:	33 d2                	xor    %edx,%edx
40235b:	8b 7d f8             	mov    -0x8(%ebp),%edi
40235e:	8b c8                	mov    %eax,%ecx
402360:	66 3b d0             	cmp    %ax,%dx
402363:	75 9a                	jne    0x4022ff
402365:	33 c0                	xor    %eax,%eax
402367:	66 89 03             	mov    %ax,(%ebx)
40236a:	33 c0                	xor    %eax,%eax
40236c:	e9 4d ff ff ff       	jmp    0x4022be
402371:	8b ff                	mov    %edi,%edi
402373:	55                   	push   %ebp
402374:	8b ec                	mov    %esp,%ebp
402376:	83 ec 24             	sub    $0x24,%esp
402379:	a1 54 60 40 00       	mov    0x406054,%eax
40237e:	33 c5                	xor    %ebp,%eax
402380:	89 45 fc             	mov    %eax,-0x4(%ebp)
402383:	53                   	push   %ebx
402384:	56                   	push   %esi
402385:	57                   	push   %edi
402386:	8b f1                	mov    %ecx,%esi
402388:	33 c0                	xor    %eax,%eax
40238a:	bf 00 20 00 00       	mov    $0x2000,%edi
40238f:	89 75 ec             	mov    %esi,-0x14(%ebp)
402392:	57                   	push   %edi
402393:	89 45 e0             	mov    %eax,-0x20(%ebp)
402396:	ff 15 84 71 40 00    	call   *0x407184
40239c:	8b d8                	mov    %eax,%ebx
40239e:	89 5d dc             	mov    %ebx,-0x24(%ebp)
4023a1:	59                   	pop    %ecx
4023a2:	85 db                	test   %ebx,%ebx
4023a4:	75 0a                	jne    0x4023b0
4023a6:	be 0e 00 07 80       	mov    $0x8007000e,%esi
4023ab:	e9 7c 03 00 00       	jmp    0x40272c
4023b0:	53                   	push   %ebx
4023b1:	8b ce                	mov    %esi,%ecx
4023b3:	e8 72 fe ff ff       	call   0x40222a
4023b8:	8b f0                	mov    %eax,%esi
4023ba:	85 f6                	test   %esi,%esi
4023bc:	79 0c                	jns    0x4023ca
4023be:	53                   	push   %ebx
4023bf:	ff 15 64 71 40 00    	call   *0x407164
4023c5:	e9 61 03 00 00       	jmp    0x40272b
4023ca:	33 c0                	xor    %eax,%eax
4023cc:	8b f0                	mov    %eax,%esi
4023ce:	ff 34 f5 d0 10 40 00 	push   0x4010d0(,%esi,8)
4023d5:	53                   	push   %ebx
4023d6:	ff 15 1c 71 40 00    	call   *0x40711c
4023dc:	85 c0                	test   %eax,%eax
4023de:	74 17                	je     0x4023f7
4023e0:	46                   	inc    %esi
4023e1:	83 fe 03             	cmp    $0x3,%esi
4023e4:	72 e8                	jb     0x4023ce
4023e6:	53                   	push   %ebx
4023e7:	ff 15 64 71 40 00    	call   *0x407164
4023ed:	be 09 00 02 80       	mov    $0x80020009,%esi
4023f2:	e9 34 03 00 00       	jmp    0x40272b
4023f7:	0f b7 04 f5 d4 10 40 	movzwl 0x4010d4(,%esi,8),%eax
4023fe:	00
4023ff:	57                   	push   %edi
402400:	89 45 f0             	mov    %eax,-0x10(%ebp)
402403:	ff 15 84 71 40 00    	call   *0x407184
402409:	8b f8                	mov    %eax,%edi
40240b:	59                   	pop    %ecx
40240c:	85 ff                	test   %edi,%edi
40240e:	75 11                	jne    0x402421
402410:	53                   	push   %ebx
402411:	ff 15 64 71 40 00    	call   *0x407164
402417:	be 0e 00 07 80       	mov    $0x8007000e,%esi
40241c:	e9 0a 03 00 00       	jmp    0x40272b
402421:	8b 4d ec             	mov    -0x14(%ebp),%ecx
402424:	e8 d4 fd ff ff       	call   0x4021fd
402429:	8b 4d ec             	mov    -0x14(%ebp),%ecx
40242c:	57                   	push   %edi
40242d:	e8 f8 fd ff ff       	call   0x40222a
402432:	8b f0                	mov    %eax,%esi
402434:	85 f6                	test   %esi,%esi
402436:	79 13                	jns    0x40244b
402438:	57                   	push   %edi
402439:	ff 15 64 71 40 00    	call   *0x407164
40243f:	53                   	push   %ebx
402440:	ff 15 64 71 40 00    	call   *0x407164
402446:	e9 df 02 00 00       	jmp    0x40272a
40244b:	8b 45 f0             	mov    -0x10(%ebp),%eax
40244e:	33 c9                	xor    %ecx,%ecx
402450:	0f b7 c0             	movzwl %ax,%eax
402453:	89 4d e4             	mov    %ecx,-0x1c(%ebp)
402456:	83 e8 08             	sub    $0x8,%eax
402459:	0f 84 5f 01 00 00    	je     0x4025be
40245f:	83 e8 09             	sub    $0x9,%eax
402462:	74 2d                	je     0x402491
402464:	48                   	dec    %eax
402465:	83 e8 01             	sub    $0x1,%eax
402468:	0f 85 99 02 00 00    	jne    0x402707
40246e:	8d 45 e4             	lea    -0x1c(%ebp),%eax
402471:	50                   	push   %eax
402472:	51                   	push   %ecx
402473:	51                   	push   %ecx
402474:	57                   	push   %edi
402475:	ff 15 00 80 40 00    	call   *0x408000
40247b:	8b 45 e4             	mov    -0x1c(%ebp),%eax
40247e:	89 45 f0             	mov    %eax,-0x10(%ebp)
402481:	8d 45 f0             	lea    -0x10(%ebp),%eax
402484:	6a 04                	push   $0x4
402486:	50                   	push   %eax
402487:	6a 04                	push   $0x4
402489:	33 c0                	xor    %eax,%eax
40248b:	50                   	push   %eax
40248c:	e9 02 01 00 00       	jmp    0x402593
402491:	8b cf                	mov    %edi,%ecx
402493:	33 f6                	xor    %esi,%esi
402495:	8d 51 02             	lea    0x2(%ecx),%edx
402498:	66 8b 01             	mov    (%ecx),%ax
40249b:	83 c1 02             	add    $0x2,%ecx
40249e:	66 3b c6             	cmp    %si,%ax
4024a1:	75 f5                	jne    0x402498
4024a3:	2b ca                	sub    %edx,%ecx
4024a5:	d1 f9                	sar    $1,%ecx
4024a7:	89 4d f0             	mov    %ecx,-0x10(%ebp)
4024aa:	f6 c1 01             	test   $0x1,%cl
4024ad:	0f 85 f3 00 00 00    	jne    0x4025a6
4024b3:	8b c1                	mov    %ecx,%eax
4024b5:	99                   	cltd
4024b6:	2b c2                	sub    %edx,%eax
4024b8:	8b f0                	mov    %eax,%esi
4024ba:	d1 fe                	sar    $1,%esi
4024bc:	89 75 e8             	mov    %esi,-0x18(%ebp)
4024bf:	81 fe 00 04 00 00    	cmp    $0x400,%esi
4024c5:	77 18                	ja     0x4024df
4024c7:	8b ce                	mov    %esi,%ecx
4024c9:	e8 9d f5 ff ff       	call   0x401a6b
4024ce:	84 c0                	test   %al,%al
4024d0:	74 0d                	je     0x4024df
4024d2:	8b c6                	mov    %esi,%eax
4024d4:	e8 87 31 00 00       	call   0x405660
4024d9:	8b c4                	mov    %esp,%eax
4024db:	33 c9                	xor    %ecx,%ecx
4024dd:	eb 23                	jmp    0x402502
4024df:	8d 46 08             	lea    0x8(%esi),%eax
4024e2:	3b c6                	cmp    %esi,%eax
4024e4:	73 06                	jae    0x4024ec
4024e6:	33 c9                	xor    %ecx,%ecx
4024e8:	8b c1                	mov    %ecx,%eax
4024ea:	eb 16                	jmp    0x402502
4024ec:	50                   	push   %eax
4024ed:	ff 15 84 71 40 00    	call   *0x407184
4024f3:	59                   	pop    %ecx
4024f4:	33 c9                	xor    %ecx,%ecx
4024f6:	85 c0                	test   %eax,%eax
4024f8:	74 ee                	je     0x4024e8
4024fa:	89 08                	mov    %ecx,(%eax)
4024fc:	89 45 e0             	mov    %eax,-0x20(%ebp)
4024ff:	83 c0 08             	add    $0x8,%eax
402502:	89 45 f8             	mov    %eax,-0x8(%ebp)
402505:	85 c0                	test   %eax,%eax
402507:	0f 84 99 00 00 00    	je     0x4025a6
40250d:	56                   	push   %esi
40250e:	51                   	push   %ecx
40250f:	50                   	push   %eax
402510:	e8 7d 31 00 00       	call   0x405692
402515:	8b 75 f0             	mov    -0x10(%ebp),%esi
402518:	83 c4 0c             	add    $0xc,%esp
40251b:	33 d2                	xor    %edx,%edx
40251d:	85 f6                	test   %esi,%esi
40251f:	7e 68                	jle    0x402589
402521:	8b da                	mov    %edx,%ebx
402523:	0f b7 04 5f          	movzwl (%edi,%ebx,2),%eax
402527:	8b c8                	mov    %eax,%ecx
402529:	83 f9 30             	cmp    $0x30,%ecx
40252c:	72 28                	jb     0x402556
40252e:	83 f9 39             	cmp    $0x39,%ecx
402531:	76 1c                	jbe    0x40254f
402533:	83 f9 40             	cmp    $0x40,%ecx
402536:	76 1e                	jbe    0x402556
402538:	83 f9 46             	cmp    $0x46,%ecx
40253b:	76 0e                	jbe    0x40254b
40253d:	83 f9 60             	cmp    $0x60,%ecx
402540:	76 14                	jbe    0x402556
402542:	83 f8 66             	cmp    $0x66,%eax
402545:	77 0f                	ja     0x402556
402547:	2c 57                	sub    $0x57,%al
402549:	eb 06                	jmp    0x402551
40254b:	2c 37                	sub    $0x37,%al
40254d:	eb 02                	jmp    0x402551
40254f:	2c 30                	sub    $0x30,%al
402551:	89 45 f4             	mov    %eax,-0xc(%ebp)
402554:	eb 03                	jmp    0x402559
402556:	88 55 f4             	mov    %dl,-0xc(%ebp)
402559:	8b d3                	mov    %ebx,%edx