40f21c:	53                   	push   %ebx
40f21d:	56                   	push   %esi
40f21e:	57                   	push   %edi
40f21f:	51                   	push   %ecx
40f220:	8b f2                	mov    %edx,%esi
40f222:	8b d8                	mov    %eax,%ebx
40f224:	66 f7 03 e8 bf       	testw  $0xbfe8,(%ebx)
40f229:	74 07                	je     0x40f232
40f22b:	8b c3                	mov    %ebx,%eax
40f22d:	e8 de fc ff ff       	call   0x40ef10
40f232:	66 8b 3e             	mov    (%esi),%di
40f235:	66 83 ff 14          	cmp    $0x14,%di
40f239:	73 0e                	jae    0x40f249
40f23b:	56                   	push   %esi
40f23c:	53                   	push   %ebx
40f23d:	e8 c6 e7 ff ff       	call   0x40da08
40f242:	e8 19 fa ff ff       	call   0x40ec60
40f247:	eb 79                	jmp    0x40f2c2
40f249:	66 81 ff 00 01       	cmp    $0x100,%di
40f24e:	75 17                	jne    0x40f267
40f250:	66 c7 03 00 01       	movw   $0x100,(%ebx)
40f255:	33 c0                	xor    %eax,%eax
40f257:	89 43 08             	mov    %eax,0x8(%ebx)
40f25a:	8d 43 08             	lea    0x8(%ebx),%eax
40f25d:	8b 56 08             	mov    0x8(%esi),%edx
40f260:	e8 5f 53 ff ff       	call   0x4045c4
40f265:	eb 5b                	jmp    0x40f2c2
40f267:	66 81 ff 01 01       	cmp    $0x101,%di
40f26c:	75 13                	jne    0x40f281
40f26e:	66 89 3b             	mov    %di,(%ebx)
40f271:	8b 46 08             	mov    0x8(%esi),%eax
40f274:	89 43 08             	mov    %eax,0x8(%ebx)
40f277:	8b c3                	mov    %ebx,%eax
40f279:	ff 15 1c 18 46 00    	call   *0x46181c
40f27f:	eb 41                	jmp    0x40f2c2
40f281:	66 f7 c7 00 20       	test   $0x2000,%di
40f286:	74 10                	je     0x40f298
40f288:	b9 14 f2 40 00       	mov    $0x40f214,%ecx
40f28d:	8b d6                	mov    %esi,%edx
40f28f:	8b c3                	mov    %ebx,%eax
40f291:	e8 9e fd ff ff       	call   0x40f034
40f296:	eb 2a                	jmp    0x40f2c2
40f298:	8b d4                	mov    %esp,%edx
40f29a:	8b c7                	mov    %edi,%eax
40f29c:	e8 d7 16 00 00       	call   0x410978
40f2a1:	84 c0                	test   %al,%al
40f2a3:	74 11                	je     0x40f2b6
40f2a5:	6a 00                	push   $0x0
40f2a7:	8b ce                	mov    %esi,%ecx
40f2a9:	8b d3                	mov    %ebx,%edx
40f2ab:	8b 44 24 04          	mov    0x4(%esp),%eax
40f2af:	8b 18                	mov    (%eax),%ebx
40f2b1:	ff 53 28             	call   *0x28(%ebx)
40f2b4:	eb 0c                	jmp    0x40f2c2
40f2b6:	56                   	push   %esi
40f2b7:	53                   	push   %ebx
40f2b8:	e8 4b e7 ff ff       	call   0x40da08
40f2bd:	e8 9e f9 ff ff       	call   0x40ec60
40f2c2:	5a                   	pop    %edx
40f2c3:	5f                   	pop    %edi
40f2c4:	5e                   	pop    %esi
40f2c5:	5b                   	pop    %ebx
40f2c6:	c3                   	ret
40f2c7:	90                   	nop
40f2c8:	53                   	push   %ebx
40f2c9:	56                   	push   %esi
40f2ca:	8b da                	mov    %edx,%ebx
40f2cc:	8b f0                	mov    %eax,%esi
40f2ce:	3b f3                	cmp    %ebx,%esi
40f2d0:	74 36                	je     0x40f308
40f2d2:	66 f7 03 e8 bf       	testw  $0xbfe8,(%ebx)
40f2d7:	75 26                	jne    0x40f2ff
40f2d9:	66 f7 06 e8 bf       	testw  $0xbfe8,(%esi)
40f2de:	74 07                	je     0x40f2e7
40f2e0:	8b c6                	mov    %esi,%eax
40f2e2:	e8 29 fc ff ff       	call   0x40ef10
40f2e7:	8b 03                	mov    (%ebx),%eax
40f2e9:	89 06                	mov    %eax,(%esi)
40f2eb:	8b 43 04             	mov    0x4(%ebx),%eax
40f2ee:	89 46 04             	mov    %eax,0x4(%esi)
40f2f1:	8b 43 08             	mov    0x8(%ebx),%eax
40f2f4:	89 46 08             	mov    %eax,0x8(%esi)
40f2f7:	8b 43 0c             	mov    0xc(%ebx),%eax
40f2fa:	89 46 0c             	mov    %eax,0xc(%esi)
40f2fd:	eb 09                	jmp    0x40f308
40f2ff:	8b d3                	mov    %ebx,%edx
40f301:	8b c6                	mov    %esi,%eax
40f303:	e8 14 ff ff ff       	call   0x40f21c
40f308:	5e                   	pop    %esi
40f309:	5b                   	pop    %ebx
40f30a:	c3                   	ret
40f30b:	90                   	nop
40f30c:	55                   	push   %ebp
40f30d:	8b ec                	mov    %esp,%ebp
40f30f:	53                   	push   %ebx
40f310:	8b d8                	mov    %eax,%ebx
40f312:	8b c3                	mov    %ebx,%eax
40f314:	e8 37 59 ff ff       	call   0x404c50
40f319:	50                   	push   %eax
40f31a:	6a 00                	push   $0x0
40f31c:	68 00 04 00 00       	push   $0x400
40f321:	ff 75 0c             	push   0xc(%ebp)
40f324:	ff 75 08             	push   0x8(%ebp)
40f327:	a1 18 0a 46 00       	mov    0x460a18,%eax
40f32c:	8b 00                	mov    (%eax),%eax
40f32e:	ff d0                	call   *%eax
40f330:	66 b9 08 00          	mov    $0x8,%cx
40f334:	66 ba 06 00          	mov    $0x6,%dx
40f338:	e8 2f f9 ff ff       	call   0x40ec6c
40f33d:	5b                   	pop    %ebx
40f33e:	5d                   	pop    %ebp
40f33f:	c2 08 00             	ret    $0x8
40f342:	8b c0                	mov    %eax,%eax
40f344:	55                   	push   %ebp
40f345:	8b ec                	mov    %esp,%ebp
40f347:	53                   	push   %ebx
40f348:	8b d8                	mov    %eax,%ebx
40f34a:	8b c3                	mov    %ebx,%eax
40f34c:	e8 ff 58 ff ff       	call   0x404c50
40f351:	50                   	push   %eax
40f352:	6a 00                	push   $0x0
40f354:	68 00 04 00 00       	push   $0x400
40f359:	ff 75 0c             	push   0xc(%ebp)
40f35c:	ff 75 08             	push   0x8(%ebp)
40f35f:	a1 84 0b 46 00       	mov    0x460b84,%eax
40f364:	8b 00                	mov    (%eax),%eax
40f366:	ff d0                	call   *%eax
40f368:	66 b9 08 00          	mov    $0x8,%cx
40f36c:	66 ba 07 00          	mov    $0x7,%dx
40f370:	e8 f7 f8 ff ff       	call   0x40ec6c
40f375:	5b                   	pop    %ebx
40f376:	5d                   	pop    %ebp
40f377:	c2 08 00             	ret    $0x8
40f37a:	8b c0                	mov    %eax,%eax
40f37c:	55                   	push   %ebp
40f37d:	8b ec                	mov    %esp,%ebp
40f37f:	33 c9                	xor    %ecx,%ecx
40f381:	51                   	push   %ecx
40f382:	51                   	push   %ecx
40f383:	51                   	push   %ecx
40f384:	51                   	push   %ecx
40f385:	53                   	push   %ebx
40f386:	56                   	push   %esi
40f387:	8b da                	mov    %edx,%ebx
40f389:	8b f0                	mov    %eax,%esi
40f38b:	33 c0                	xor    %eax,%eax
40f38d:	55                   	push   %ebp
40f38e:	68 32 f4 40 00       	push   $0x40f432
40f393:	64 ff 30             	push   %fs:(%eax)
40f396:	64 89 20             	mov    %esp,%fs:(%eax)
40f399:	8b c3                	mov    %ebx,%eax
40f39b:	e8 b0 58 ff ff       	call   0x404c50
40f3a0:	50                   	push   %eax
40f3a1:	6a 00                	push   $0x0
40f3a3:	68 00 04 00 00       	push   $0x400
40f3a8:	56                   	push   %esi
40f3a9:	a1 6c 0c 46 00       	mov    0x460c6c,%eax
40f3ae:	8b 00                	mov    (%eax),%eax
40f3b0:	ff d0                	call   *%eax
40f3b2:	66 b9 08 00          	mov    $0x8,%cx
40f3b6:	66 ba 0b 00          	mov    $0xb,%dx
40f3ba:	e8 ad f8 ff ff       	call   0x40ec6c
40f3bf:	a0 50 53 45 00       	mov    0x455350,%al
40f3c4:	2c 01                	sub    $0x1,%al
40f3c6:	72 4f                	jb     0x40f417
40f3c8:	74 06                	je     0x40f3d0
40f3ca:	fe c8                	dec    %al
40f3cc:	74 23                	je     0x40f3f1
40f3ce:	eb 42                	jmp    0x40f412
40f3d0:	8d 45 f8             	lea    -0x8(%ebp),%eax
40f3d3:	8b 13                	mov    (%ebx),%edx
40f3d5:	e8 1e 54 ff ff       	call   0x4047f8
40f3da:	8b 45 f8             	mov    -0x8(%ebp),%eax
40f3dd:	8d 55 fc             	lea    -0x4(%ebp),%edx
40f3e0:	e8 97 8d ff ff       	call   0x40817c
40f3e5:	8b 55 fc             	mov    -0x4(%ebp),%edx
40f3e8:	8b c3                	mov    %ebx,%eax
40f3ea:	e8 ad 59 ff ff       	call   0x404d9c
40f3ef:	eb 26                	jmp    0x40f417
40f3f1:	8d 45 f0             	lea    -0x10(%ebp),%eax
40f3f4:	8b 13                	mov    (%ebx),%edx
40f3f6:	e8 fd 53 ff ff       	call   0x4047f8
40f3fb:	8b 45 f0             	mov    -0x10(%ebp),%eax
40f3fe:	8d 55 f4             	lea    -0xc(%ebp),%edx
40f401:	e8 26 8d ff ff       	call   0x40812c
40f406:	8b 55 f4             	mov    -0xc(%ebp),%edx
40f409:	8b c3                	mov    %ebx,%eax
40f40b:	e8 8c 59 ff ff       	call   0x404d9c
40f410:	eb 05                	jmp    0x40f417
40f412:	e8 b1 f4 ff ff       	call   0x40e8c8
40f417:	33 c0                	xor    %eax,%eax
40f419:	5a                   	pop    %edx
40f41a:	59                   	pop    %ecx
40f41b:	59                   	pop    %ecx
40f41c:	64 89 10             	mov    %edx,%fs:(%eax)
40f41f:	68 39 f4 40 00       	push   $0x40f439
40f424:	8d 45 f0             	lea    -0x10(%ebp),%eax
40f427:	ba 04 00 00 00       	mov    $0x4,%edx
40f42c:	e8 63 51 ff ff       	call   0x404594
40f431:	c3                   	ret
40f432:	e9 15 4b ff ff       	jmp    0x403f4c
40f437:	eb eb                	jmp    0x40f424
40f439:	5e                   	pop    %esi
40f43a:	5b                   	pop    %ebx
40f43b:	8b e5                	mov    %ebp,%esp
40f43d:	5d                   	pop    %ebp
40f43e:	c3                   	ret
40f43f:	90                   	nop
40f440:	55                   	push   %ebp
40f441:	8b ec                	mov    %esp,%ebp
40f443:	83 c4 e8             	add    $0xffffffe8,%esp
40f446:	53                   	push   %ebx
40f447:	56                   	push   %esi
40f448:	33 c9                	xor    %ecx,%ecx
40f44a:	89 4d ec             	mov    %ecx,-0x14(%ebp)
40f44d:	89 4d e8             	mov    %ecx,-0x18(%ebp)
40f450:	8b f2                	mov    %edx,%esi
40f452:	8b d8                	mov    %eax,%ebx
40f454:	33 c0                	xor    %eax,%eax
40f456:	55                   	push   %ebp
40f457:	68 ff f4 40 00       	push   $0x40f4ff
40f45c:	64 ff 30             	push   %fs:(%eax)
40f45f:	64 89 20             	mov    %esp,%fs:(%eax)
40f462:	8d 45 f0             	lea    -0x10(%ebp),%eax
40f465:	50                   	push   %eax
40f466:	e8 8d e5 ff ff       	call   0x40d9f8
40f46b:	33 c0                	xor    %eax,%eax
40f46d:	55                   	push   %ebp
40f46e:	68 dd f4 40 00       	push   $0x40f4dd
40f473:	64 ff 30             	push   %fs:(%eax)
40f476:	64 89 20             	mov    %esp,%fs:(%eax)
40f479:	6a 08                	push   $0x8
40f47b:	6a 00                	push   $0x0
40f47d:	68 00 04 00 00       	push   $0x400
40f482:	53                   	push   %ebx
40f483:	8d 45 f0             	lea    -0x10(%ebp),%eax
40f486:	50                   	push   %eax
40f487:	a1 80 0c 46 00       	mov    0x460c80,%eax
40f48c:	8b 00                	mov    (%eax),%eax
40f48e:	ff d0                	call   *%eax
40f490:	66 8b 13             	mov    (%ebx),%dx
40f493:	66 b9 00 01          	mov    $0x100,%cx
40f497:	e8 d0 f7 ff ff       	call   0x40ec6c
40f49c:	8d 45 ec             	lea    -0x14(%ebp),%eax
40f49f:	50                   	push   %eax
40f4a0:	8d 45 e8             	lea    -0x18(%ebp),%eax
40f4a3:	8b 55 f8             	mov    -0x8(%ebp),%edx
40f4a6:	e8 b5 58 ff ff       	call   0x404d60
40f4ab:	8b 45 e8             	mov    -0x18(%ebp),%eax
40f4ae:	b9 ff ff ff 7f       	mov    $0x7fffffff,%ecx
40f4b3:	ba 01 00 00 00       	mov    $0x1,%edx
40f4b8:	e8 8f 59 ff ff       	call   0x404e4c
40f4bd:	8b 55 ec             	mov    -0x14(%ebp),%edx
40f4c0:	8b c6                	mov    %esi,%eax
40f4c2:	e8 31 53 ff ff       	call   0x4047f8
40f4c7:	33 c0                	xor    %eax,%eax
40f4c9:	5a                   	pop    %edx
40f4ca:	59                   	pop    %ecx
40f4cb:	59                   	pop    %ecx
40f4cc:	64 89 10             	mov    %edx,%fs:(%eax)
40f4cf:	68 e4 f4 40 00       	push   $0x40f4e4
40f4d4:	8d 45 f0             	lea    -0x10(%ebp),%eax
40f4d7:	e8 b0 fa ff ff       	call   0x40ef8c
40f4dc:	c3                   	ret
40f4dd:	e9 6a 4a ff ff       	jmp    0x403f4c
40f4e2:	eb f0                	jmp    0x40f4d4
40f4e4:	33 c0                	xor    %eax,%eax
40f4e6:	5a                   	pop    %edx
40f4e7:	59                   	pop    %ecx
40f4e8:	59                   	pop    %ecx
40f4e9:	64 89 10             	mov    %edx,%fs:(%eax)
40f4ec:	68 06 f5 40 00       	push   $0x40f506
40f4f1:	8d 45 e8             	lea    -0x18(%ebp),%eax
40f4f4:	ba 02 00 00 00       	mov    $0x2,%edx
40f4f9:	e8 6a 57 ff ff       	call   0x404c68
40f4fe:	c3                   	ret
40f4ff:	e9 48 4a ff ff       	jmp    0x403f4c
40f504:	eb eb                	jmp    0x40f4f1
40f506:	5e                   	pop    %esi
40f507:	5b                   	pop    %ebx
40f508:	8b e5                	mov    %ebp,%esp
40f50a:	5d                   	pop    %ebp
40f50b:	c3                   	ret
40f50c:	55                   	push   %ebp
40f50d:	8b ec                	mov    %esp,%ebp
40f50f:	83 c4 f0             	add    $0xfffffff0,%esp
40f512:	53                   	push   %ebx
40f513:	56                   	push   %esi
40f514:	8b f2                	mov    %edx,%esi
40f516:	8b d8                	mov    %eax,%ebx
40f518:	8d 45 f0             	lea    -0x10(%ebp),%eax
40f51b:	50                   	push   %eax
40f51c:	e8 d7 e4 ff ff       	call   0x40d9f8
40f521:	33 c0                	xor    %eax,%eax
40f523:	55                   	push   %ebp
40f524:	68 62 f5 40 00       	push   $0x40f562
40f529:	64 ff 30             	push   %fs:(%eax)
40f52c:	64 89 20             	mov    %esp,%fs:(%eax)
40f52f:	8b d3                	mov    %ebx,%edx
40f531:	8d 45 f0             	lea    -0x10(%ebp),%eax
40f534:	e8 8f fd ff ff       	call   0x40f2c8
40f539:	8d 45 f0             	lea    -0x10(%ebp),%eax
40f53c:	ff 15 18 18 46 00    	call   *0x461818
40f542:	8d 55 f0             	lea    -0x10(%ebp),%edx
40f545:	8b c6                	mov    %esi,%eax
40f547:	e8 a8 00 00 00       	call   0x40f5f4
40f54c:	33 c0                	xor    %eax,%eax
40f54e:	5a                   	pop    %edx
40f54f:	59                   	pop    %ecx
40f550:	59                   	pop    %ecx
40f551:	64 89 10             	mov    %edx,%fs:(%eax)
40f554:	68 69 f5 40 00       	push   $0x40f569
40f559:	8d 45 f0             	lea    -0x10(%ebp),%eax
40f55c:	e8 2b fa ff ff       	call   0x40ef8c
40f561:	c3                   	ret
40f562:	e9 e5 49 ff ff       	jmp    0x403f4c
40f567:	eb f0                	jmp    0x40f559
40f569:	5e                   	pop    %esi
40f56a:	5b                   	pop    %ebx
40f56b:	8b e5                	mov    %ebp,%esp
40f56d:	5d                   	pop    %ebp
40f56e:	c3                   	ret
40f56f:	90                   	nop
40f570:	55                   	push   %ebp
40f571:	8b ec                	mov    %esp,%ebp
40f573:	83 c4 e4             	add    $0xffffffe4,%esp
40f576:	53                   	push   %ebx
40f577:	89 55 fc             	mov    %edx,-0x4(%ebp)
40f57a:	8b d8                	mov    %eax,%ebx
40f57c:	8b 45 fc             	mov    -0x4(%ebp),%eax
40f57f:	85 c0                	test   %eax,%eax
40f581:	74 04                	je     0x40f587
40f583:	33 d2                	xor    %edx,%edx
40f585:	89 10                	mov    %edx,(%eax)
40f587:	8d 55 f4             	lea    -0xc(%ebp),%edx
40f58a:	66 8b 03             	mov    (%ebx),%ax
40f58d:	e8 e6 13 00 00       	call   0x410978
40f592:	88 45 fb             	mov    %al,-0x5(%ebp)
40f595:	80 7d fb 00          	cmpb   $0x0,-0x5(%ebp)
40f599:	74 51                	je     0x40f5ec
40f59b:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40f59e:	50                   	push   %eax
40f59f:	e8 54 e4 ff ff       	call   0x40d9f8
40f5a4:	33 c0                	xor    %eax,%eax
40f5a6:	55                   	push   %ebp
40f5a7:	68 e5 f5 40 00       	push   $0x40f5e5
40f5ac:	64 ff 30             	push   %fs:(%eax)
40f5af:	64 89 20             	mov    %esp,%fs:(%eax)
40f5b2:	68 00 01 00 00       	push   $0x100
40f5b7:	8b cb                	mov    %ebx,%ecx