40a2a9:	74 07                	je     0x40a2b2
40a2ab:	3d 00 40 04 00       	cmp    $0x44000,%eax
40a2b0:	75 1e                	jne    0x40a2d0
40a2b2:	c6 45 fe 01          	movb   $0x1,-0x2(%ebp)
40a2b6:	eb 18                	jmp    0x40a2d0
40a2b8:	8b 4d 10             	mov    0x10(%ebp),%ecx
40a2bb:	b8 01 03 00 00       	mov    $0x301,%eax
40a2c0:	23 c8                	and    %eax,%ecx
40a2c2:	3b c8                	cmp    %eax,%ecx
40a2c4:	75 0a                	jne    0x40a2d0
40a2c6:	c6 45 fe 02          	movb   $0x2,-0x2(%ebp)
40a2ca:	eb 04                	jmp    0x40a2d0
40a2cc:	c6 45 fe 00          	movb   $0x0,-0x2(%ebp)
40a2d0:	f7 45 10 00 00 07 00 	testl  $0x70000,0x10(%ebp)
40a2d7:	0f 84 ac 01 00 00    	je     0x40a489
40a2dd:	33 ff                	xor    %edi,%edi
40a2df:	f6 45 ff 40          	testb  $0x40,-0x1(%ebp)
40a2e3:	89 7d e4             	mov    %edi,-0x1c(%ebp)
40a2e6:	0f 85 9d 01 00 00    	jne    0x40a489
40a2ec:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a2ef:	b9 00 00 00 c0       	mov    $0xc0000000,%ecx
40a2f4:	23 c1                	and    %ecx,%eax
40a2f6:	3d 00 00 00 40       	cmp    $0x40000000,%eax
40a2fb:	0f 84 b0 00 00 00    	je     0x40a3b1
40a301:	3d 00 00 00 80       	cmp    $0x80000000,%eax
40a306:	74 71                	je     0x40a379
40a308:	3b c1                	cmp    %ecx,%eax
40a30a:	0f 85 79 01 00 00    	jne    0x40a489
40a310:	8b 45 e8             	mov    -0x18(%ebp),%eax
40a313:	3b c7                	cmp    %edi,%eax
40a315:	0f 86 6e 01 00 00    	jbe    0x40a489
40a31b:	83 f8 02             	cmp    $0x2,%eax
40a31e:	76 0e                	jbe    0x40a32e
40a320:	83 f8 04             	cmp    $0x4,%eax
40a323:	76 2b                	jbe    0x40a350
40a325:	83 f8 05             	cmp    $0x5,%eax
40a328:	0f 85 5b 01 00 00    	jne    0x40a489
40a32e:	0f be 45 fe          	movsbl -0x2(%ebp),%eax
40a332:	33 ff                	xor    %edi,%edi
40a334:	48                   	dec    %eax
40a335:	0f 84 1e 01 00 00    	je     0x40a459
40a33b:	48                   	dec    %eax
40a33c:	0f 85 47 01 00 00    	jne    0x40a489
40a342:	c7 45 e4 ff fe 00 00 	movl   $0xfeff,-0x1c(%ebp)
40a349:	6a 02                	push   $0x2
40a34b:	e9 12 01 00 00       	jmp    0x40a462
40a350:	6a 02                	push   $0x2
40a352:	57                   	push   %edi
40a353:	57                   	push   %edi
40a354:	ff 36                	push   (%esi)
40a356:	e8 d0 34 00 00       	call   0x40d82b
40a35b:	83 c4 10             	add    $0x10,%esp
40a35e:	0b c2                	or     %edx,%eax
40a360:	74 cc                	je     0x40a32e
40a362:	57                   	push   %edi
40a363:	57                   	push   %edi
40a364:	57                   	push   %edi
40a365:	ff 36                	push   (%esi)
40a367:	e8 bf 34 00 00       	call   0x40d82b
40a36c:	23 c2                	and    %edx,%eax
40a36e:	83 c4 10             	add    $0x10,%esp
40a371:	3b c3                	cmp    %ebx,%eax
40a373:	0f 84 8e fe ff ff    	je     0x40a207
40a379:	6a 03                	push   $0x3
40a37b:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40a37e:	50                   	push   %eax
40a37f:	ff 36                	push   (%esi)
40a381:	e8 2c cf ff ff       	call   0x4072b2
40a386:	83 c4 0c             	add    $0xc,%esp
40a389:	3b c3                	cmp    %ebx,%eax
40a38b:	0f 84 76 fe ff ff    	je     0x40a207
40a391:	83 f8 02             	cmp    $0x2,%eax
40a394:	74 6a                	je     0x40a400
40a396:	83 f8 03             	cmp    $0x3,%eax
40a399:	0f 85 ac 00 00 00    	jne    0x40a44b
40a39f:	81 7d e4 ef bb bf 00 	cmpl   $0xbfbbef,-0x1c(%ebp)
40a3a6:	75 58                	jne    0x40a400
40a3a8:	c6 45 fe 01          	movb   $0x1,-0x2(%ebp)
40a3ac:	e9 d8 00 00 00       	jmp    0x40a489
40a3b1:	8b 45 e8             	mov    -0x18(%ebp),%eax
40a3b4:	3b c7                	cmp    %edi,%eax
40a3b6:	0f 86 cd 00 00 00    	jbe    0x40a489
40a3bc:	83 f8 02             	cmp    $0x2,%eax
40a3bf:	0f 86 69 ff ff ff    	jbe    0x40a32e
40a3c5:	83 f8 04             	cmp    $0x4,%eax
40a3c8:	0f 87 57 ff ff ff    	ja     0x40a325
40a3ce:	6a 02                	push   $0x2
40a3d0:	57                   	push   %edi
40a3d1:	57                   	push   %edi
40a3d2:	ff 36                	push   (%esi)
40a3d4:	e8 52 34 00 00       	call   0x40d82b
40a3d9:	83 c4 10             	add    $0x10,%esp
40a3dc:	0b c2                	or     %edx,%eax
40a3de:	0f 84 4a ff ff ff    	je     0x40a32e
40a3e4:	57                   	push   %edi
40a3e5:	57                   	push   %edi
40a3e6:	57                   	push   %edi
40a3e7:	ff 36                	push   (%esi)
40a3e9:	e8 3d 34 00 00       	call   0x40d82b
40a3ee:	83 c4 10             	add    $0x10,%esp
40a3f1:	23 c2                	and    %edx,%eax
40a3f3:	3b c3                	cmp    %ebx,%eax
40a3f5:	0f 85 8e 00 00 00    	jne    0x40a489
40a3fb:	e9 07 fe ff ff       	jmp    0x40a207
40a400:	8b 45 e4             	mov    -0x1c(%ebp),%eax
40a403:	25 ff ff 00 00       	and    $0xffff,%eax
40a408:	3d fe ff 00 00       	cmp    $0xfffe,%eax
40a40d:	75 1a                	jne    0x40a429
40a40f:	ff 36                	push   (%esi)
40a411:	e8 e9 94 ff ff       	call   0x4038ff
40a416:	59                   	pop    %ecx
40a417:	e8 0b 9d ff ff       	call   0x404127
40a41c:	6a 16                	push   $0x16
40a41e:	5e                   	pop    %esi
40a41f:	89 30                	mov    %esi,(%eax)
40a421:	89 75 f8             	mov    %esi,-0x8(%ebp)
40a424:	e9 5f 01 00 00       	jmp    0x40a588
40a429:	3d ff fe 00 00       	cmp    $0xfeff,%eax
40a42e:	75 1b                	jne    0x40a44b
40a430:	57                   	push   %edi
40a431:	6a 02                	push   $0x2
40a433:	ff 36                	push   (%esi)
40a435:	e8 92 e2 ff ff       	call   0x4086cc
40a43a:	83 c4 0c             	add    $0xc,%esp
40a43d:	3b c3                	cmp    %ebx,%eax
40a43f:	0f 84 c2 fd ff ff    	je     0x40a207
40a445:	c6 45 fe 02          	movb   $0x2,-0x2(%ebp)
40a449:	eb 3e                	jmp    0x40a489
40a44b:	57                   	push   %edi
40a44c:	57                   	push   %edi
40a44d:	ff 36                	push   (%esi)
40a44f:	e8 78 e2 ff ff       	call   0x4086cc
40a454:	83 c4 0c             	add    $0xc,%esp
40a457:	eb 9a                	jmp    0x40a3f3
40a459:	c7 45 e4 ef bb bf 00 	movl   $0xbfbbef,-0x1c(%ebp)
40a460:	6a 03                	push   $0x3
40a462:	5b                   	pop    %ebx
40a463:	8b c3                	mov    %ebx,%eax
40a465:	2b c7                	sub    %edi,%eax
40a467:	50                   	push   %eax
40a468:	8d 44 3d e4          	lea    -0x1c(%ebp,%edi,1),%eax
40a46c:	50                   	push   %eax
40a46d:	ff 36                	push   (%esi)
40a46f:	e8 6a 25 00 00       	call   0x40c9de
40a474:	83 c4 0c             	add    $0xc,%esp
40a477:	83 f8 ff             	cmp    $0xffffffff,%eax
40a47a:	0f 84 87 fd ff ff    	je     0x40a207
40a480:	03 f8                	add    %eax,%edi
40a482:	3b df                	cmp    %edi,%ebx
40a484:	7f dd                	jg     0x40a463
40a486:	83 cb ff             	or     $0xffffffff,%ebx
40a489:	8b 06                	mov    (%esi),%eax
40a48b:	8b c8                	mov    %eax,%ecx
40a48d:	c1 f9 05             	sar    $0x5,%ecx
40a490:	8b 0c 8d 20 46 41 00 	mov    0x414620(,%ecx,4),%ecx
40a497:	83 e0 1f             	and    $0x1f,%eax
40a49a:	c1 e0 06             	shl    $0x6,%eax
40a49d:	8d 44 01 24          	lea    0x24(%ecx,%eax,1),%eax
40a4a1:	8a 08                	mov    (%eax),%cl
40a4a3:	32 4d fe             	xor    -0x2(%ebp),%cl
40a4a6:	80 e1 7f             	and    $0x7f,%cl
40a4a9:	30 08                	xor    %cl,(%eax)
40a4ab:	8b 06                	mov    (%esi),%eax
40a4ad:	8b c8                	mov    %eax,%ecx
40a4af:	c1 f9 05             	sar    $0x5,%ecx
40a4b2:	8b 0c 8d 20 46 41 00 	mov    0x414620(,%ecx,4),%ecx
40a4b9:	83 e0 1f             	and    $0x1f,%eax
40a4bc:	c1 e0 06             	shl    $0x6,%eax
40a4bf:	8d 44 01 24          	lea    0x24(%ecx,%eax,1),%eax
40a4c3:	8b 4d 10             	mov    0x10(%ebp),%ecx
40a4c6:	8a 10                	mov    (%eax),%dl
40a4c8:	c1 e9 10             	shr    $0x10,%ecx
40a4cb:	c0 e1 07             	shl    $0x7,%cl
40a4ce:	80 e2 7f             	and    $0x7f,%dl
40a4d1:	0a ca                	or     %dl,%cl
40a4d3:	80 7d fd 00          	cmpb   $0x0,-0x3(%ebp)
40a4d7:	88 08                	mov    %cl,(%eax)
40a4d9:	75 21                	jne    0x40a4fc
40a4db:	f6 45 10 08          	testb  $0x8,0x10(%ebp)
40a4df:	74 1b                	je     0x40a4fc
40a4e1:	8b 06                	mov    (%esi),%eax
40a4e3:	8b c8                	mov    %eax,%ecx
40a4e5:	83 e0 1f             	and    $0x1f,%eax
40a4e8:	c1 f9 05             	sar    $0x5,%ecx
40a4eb:	8b 0c 8d 20 46 41 00 	mov    0x414620(,%ecx,4),%ecx
40a4f2:	c1 e0 06             	shl    $0x6,%eax
40a4f5:	8d 44 01 04          	lea    0x4(%ecx,%eax,1),%eax
40a4f9:	80 08 20             	orb    $0x20,(%eax)
40a4fc:	8b 4d f4             	mov    -0xc(%ebp),%ecx
40a4ff:	b8 00 00 00 c0       	mov    $0xc0000000,%eax
40a504:	23 c8                	and    %eax,%ecx
40a506:	3b c8                	cmp    %eax,%ecx
40a508:	75 7e                	jne    0x40a588
40a50a:	f6 45 10 01          	testb  $0x1,0x10(%ebp)
40a50e:	74 78                	je     0x40a588
40a510:	ff 75 e0             	push   -0x20(%ebp)
40a513:	ff 15 58 f0 40 00    	call   *0x40f058
40a519:	6a 00                	push   $0x0
40a51b:	ff 75 f0             	push   -0x10(%ebp)
40a51e:	8d 45 cc             	lea    -0x34(%ebp),%eax
40a521:	6a 03                	push   $0x3
40a523:	50                   	push   %eax
40a524:	ff 75 ec             	push   -0x14(%ebp)
40a527:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a52a:	25 ff ff ff 7f       	and    $0x7fffffff,%eax
40a52f:	50                   	push   %eax
40a530:	ff 75 0c             	push   0xc(%ebp)
40a533:	ff 15 24 f1 40 00    	call   *0x40f124
40a539:	3b c3                	cmp    %ebx,%eax
40a53b:	75 34                	jne    0x40a571
40a53d:	ff 15 44 f0 40 00    	call   *0x40f044
40a543:	50                   	push   %eax
40a544:	e8 04 9c ff ff       	call   0x40414d
40a549:	8b 06                	mov    (%esi),%eax
40a54b:	8b c8                	mov    %eax,%ecx
40a54d:	83 e0 1f             	and    $0x1f,%eax
40a550:	c1 f9 05             	sar    $0x5,%ecx
40a553:	8b 0c 8d 20 46 41 00 	mov    0x414620(,%ecx,4),%ecx
40a55a:	c1 e0 06             	shl    $0x6,%eax
40a55d:	8d 44 01 04          	lea    0x4(%ecx,%eax,1),%eax
40a561:	80 20 fe             	andb   $0xfe,(%eax)
40a564:	ff 36                	push   (%esi)
40a566:	e8 84 8a ff ff       	call   0x402fef
40a56b:	59                   	pop    %ecx
40a56c:	e9 a1 fb ff ff       	jmp    0x40a112
40a571:	8b 36                	mov    (%esi),%esi
40a573:	8b ce                	mov    %esi,%ecx
40a575:	c1 f9 05             	sar    $0x5,%ecx
40a578:	8b 0c 8d 20 46 41 00 	mov    0x414620(,%ecx,4),%ecx
40a57f:	83 e6 1f             	and    $0x1f,%esi
40a582:	c1 e6 06             	shl    $0x6,%esi
40a585:	89 04 0e             	mov    %eax,(%esi,%ecx,1)
40a588:	8b 45 f8             	mov    -0x8(%ebp),%eax
40a58b:	e9 55 fa ff ff       	jmp    0x409fe5
40a590:	53                   	push   %ebx
40a591:	53                   	push   %ebx
40a592:	53                   	push   %ebx
40a593:	53                   	push   %ebx
40a594:	53                   	push   %ebx
40a595:	e8 9b 86 ff ff       	call   0x402c35
40a59a:	cc                   	int3
40a59b:	6a 14                	push   $0x14
40a59d:	68 70 13 41 00       	push   $0x411370
40a5a2:	e8 c9 9b ff ff       	call   0x404170
40a5a7:	33 ff                	xor    %edi,%edi
40a5a9:	89 7d e4             	mov    %edi,-0x1c(%ebp)
40a5ac:	33 c0                	xor    %eax,%eax
40a5ae:	8b 75 18             	mov    0x18(%ebp),%esi
40a5b1:	3b f7                	cmp    %edi,%esi
40a5b3:	0f 95 c0             	setne  %al
40a5b6:	3b c7                	cmp    %edi,%eax
40a5b8:	75 13                	jne    0x40a5cd
40a5ba:	e8 68 9b ff ff       	call   0x404127
40a5bf:	6a 16                	push   $0x16
40a5c1:	5e                   	pop    %esi
40a5c2:	89 30                	mov    %esi,(%eax)
40a5c4:	e8 be 86 ff ff       	call   0x402c87
40a5c9:	8b c6                	mov    %esi,%eax
40a5cb:	eb 59                	jmp    0x40a626
40a5cd:	83 0e ff             	orl    $0xffffffff,(%esi)
40a5d0:	33 c0                	xor    %eax,%eax
40a5d2:	39 7d 08             	cmp    %edi,0x8(%ebp)
40a5d5:	0f 95 c0             	setne  %al
40a5d8:	3b c7                	cmp    %edi,%eax
40a5da:	74 de                	je     0x40a5ba
40a5dc:	39 7d 1c             	cmp    %edi,0x1c(%ebp)
40a5df:	74 0f                	je     0x40a5f0
40a5e1:	8b 45 14             	mov    0x14(%ebp),%eax
40a5e4:	25 7f fe ff ff       	and    $0xfffffe7f,%eax
40a5e9:	f7 d8                	neg    %eax
40a5eb:	1b c0                	sbb    %eax,%eax
40a5ed:	40                   	inc    %eax
40a5ee:	74 ca                	je     0x40a5ba
40a5f0:	89 7d fc             	mov    %edi,-0x4(%ebp)
40a5f3:	ff 75 14             	push   0x14(%ebp)
40a5f6:	ff 75 10             	push   0x10(%ebp)
40a5f9:	ff 75 0c             	push   0xc(%ebp)
40a5fc:	ff 75 08             	push   0x8(%ebp)
40a5ff:	8d 45 e4             	lea    -0x1c(%ebp),%eax
40a602:	50                   	push   %eax
40a603:	8b c6                	mov    %esi,%eax
40a605:	e8 5c f8 ff ff       	call   0x409e66
40a60a:	83 c4 14             	add    $0x14,%esp
40a60d:	89 45 e0             	mov    %eax,-0x20(%ebp)
40a610:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40a617:	e8 15 00 00 00       	call   0x40a631
40a61c:	8b 45 e0             	mov    -0x20(%ebp),%eax
40a61f:	3b c7                	cmp    %edi,%eax
40a621:	74 03                	je     0x40a626
40a623:	83 0e ff             	orl    $0xffffffff,(%esi)
40a626:	e8 8a 9b ff ff       	call   0x4041b5
40a62b:	c3                   	ret
40a62c:	33 ff                	xor    %edi,%edi
40a62e:	8b 75 18             	mov    0x18(%ebp),%esi
40a631:	39 7d e4             	cmp    %edi,-0x1c(%ebp)
40a634:	74 28                	je     0x40a65e
40a636:	39 7d e0             	cmp    %edi,-0x20(%ebp)
40a639:	74 1b                	je     0x40a656
40a63b:	8b 06                	mov    (%esi),%eax
40a63d:	8b c8                	mov    %eax,%ecx
40a63f:	c1 f9 05             	sar    $0x5,%ecx
40a642:	83 e0 1f             	and    $0x1f,%eax
40a645:	c1 e0 06             	shl    $0x6,%eax
40a648:	8b 0c 8d 20 46 41 00 	mov    0x414620(,%ecx,4),%ecx
40a64f:	8d 44 01 04          	lea    0x4(%ecx,%eax,1),%eax
40a653:	80 20 fe             	andb   $0xfe,(%eax)
40a656:	ff 36                	push   (%esi)
40a658:	e8 20 8b ff ff       	call   0x40317d
40a65d:	59                   	pop    %ecx
40a65e:	c3                   	ret
40a65f:	8b ff                	mov    %edi,%edi
40a661:	55                   	push   %ebp
40a662:	8b ec                	mov    %esp,%ebp
40a664:	6a 01                	push   $0x1
40a666:	ff 75 08             	push   0x8(%ebp)
40a669:	ff 75 18             	push   0x18(%ebp)
40a66c:	ff 75 14             	push   0x14(%ebp)
40a66f:	ff 75 10             	push   0x10(%ebp)
40a672:	ff 75 0c             	push   0xc(%ebp)
40a675:	e8 21 ff ff ff       	call   0x40a59b
40a67a:	83 c4 18             	add    $0x18,%esp
40a67d:	5d                   	pop    %ebp
40a67e:	c3                   	ret
40a67f:	8b ff                	mov    %edi,%edi
40a681:	55                   	push   %ebp
40a682:	8b ec                	mov    %esp,%ebp
40a684:	83 7d 10 00          	cmpl   $0x0,0x10(%ebp)
40a688:	75 04                	jne    0x40a68e
40a68a:	33 c0                	xor    %eax,%eax
40a68c:	5d                   	pop    %ebp
40a68d:	c3                   	ret
40a68e:	8b 55 0c             	mov    0xc(%ebp),%edx
40a691:	8b 4d 08             	mov    0x8(%ebp),%ecx
40a694:	ff 4d 10             	decl   0x10(%ebp)
40a697:	74 15                	je     0x40a6ae
40a699:	0f b7 01             	movzwl (%ecx),%eax
40a69c:	66 85 c0             	test   %ax,%ax
40a69f:	74 0d                	je     0x40a6ae
40a6a1:	66 3b 02             	cmp    (%edx),%ax
40a6a4:	75 08                	jne    0x40a6ae
40a6a6:	83 c1 02             	add    $0x2,%ecx
40a6a9:	83 c2 02             	add    $0x2,%edx
40a6ac:	eb e6                	jmp    0x40a694
40a6ae:	0f b7 01             	movzwl (%ecx),%eax
40a6b1:	0f b7 0a             	movzwl (%edx),%ecx
40a6b4:	2b c1                	sub    %ecx,%eax
40a6b6:	5d                   	pop    %ebp
40a6b7:	c3                   	ret
40a6b8:	cc                   	int3
40a6b9:	cc                   	int3