40a35d:	2b f7                	sub    %edi,%esi
40a35f:	74 12                	je     0x40a373
40a361:	83 ee 01             	sub    $0x1,%esi
40a364:	74 09                	je     0x40a36f
40a366:	83 ee 01             	sub    $0x1,%esi
40a369:	75 12                	jne    0x40a37d
40a36b:	6a f4                	push   $0xfffffff4
40a36d:	eb 06                	jmp    0x40a375
40a36f:	6a f5                	push   $0xfffffff5
40a371:	eb 02                	jmp    0x40a375
40a373:	6a f6                	push   $0xfffffff6
40a375:	ff 15 58 20 41 00    	call   *0x412058
40a37b:	8b f8                	mov    %eax,%edi
40a37d:	8d 55 fc             	lea    -0x4(%ebp),%edx
40a380:	8b cf                	mov    %edi,%ecx
40a382:	e8 4b ff ff ff       	call   0x40a2d2
40a387:	eb 0a                	jmp    0x40a393
40a389:	6a 06                	push   $0x6
40a38b:	ff 15 74 20 41 00    	call   *0x412074
40a391:	33 c0                	xor    %eax,%eax
40a393:	5f                   	pop    %edi
40a394:	5e                   	pop    %esi
40a395:	5b                   	pop    %ebx
40a396:	c9                   	leave
40a397:	c3                   	ret
40a398:	8b ff                	mov    %edi,%edi
40a39a:	55                   	push   %ebp
40a39b:	8b ec                	mov    %esp,%ebp
40a39d:	56                   	push   %esi
40a39e:	8b f1                	mov    %ecx,%esi
40a3a0:	85 f6                	test   %esi,%esi
40a3a2:	74 46                	je     0x40a3ea
40a3a4:	85 d2                	test   %edx,%edx
40a3a6:	74 42                	je     0x40a3ea
40a3a8:	8b 45 08             	mov    0x8(%ebp),%eax
40a3ab:	85 c0                	test   %eax,%eax
40a3ad:	7e 3b                	jle    0x40a3ea
40a3af:	33 c9                	xor    %ecx,%ecx
40a3b1:	85 c0                	test   %eax,%eax
40a3b3:	74 07                	je     0x40a3bc
40a3b5:	3d ff ff ff 7f       	cmp    $0x7fffffff,%eax
40a3ba:	76 05                	jbe    0x40a3c1
40a3bc:	b9 57 00 07 80       	mov    $0x80070057,%ecx
40a3c1:	85 c9                	test   %ecx,%ecx
40a3c3:	78 10                	js     0x40a3d5
40a3c5:	51                   	push   %ecx
40a3c6:	52                   	push   %edx
40a3c7:	51                   	push   %ecx
40a3c8:	8b d0                	mov    %eax,%edx
40a3ca:	8b ce                	mov    %esi,%ecx
40a3cc:	e8 26 0b 00 00       	call   0x40aef7
40a3d1:	8b c8                	mov    %eax,%ecx
40a3d3:	eb 07                	jmp    0x40a3dc
40a3d5:	85 c0                	test   %eax,%eax
40a3d7:	74 03                	je     0x40a3dc
40a3d9:	c6 06 00             	movb   $0x0,(%esi)
40a3dc:	85 c9                	test   %ecx,%ecx
40a3de:	79 11                	jns    0x40a3f1
40a3e0:	0f b7 c1             	movzwl %cx,%eax
40a3e3:	50                   	push   %eax
40a3e4:	ff 15 74 20 41 00    	call   *0x412074
40a3ea:	33 c0                	xor    %eax,%eax
40a3ec:	5e                   	pop    %esi
40a3ed:	5d                   	pop    %ebp
40a3ee:	c2 04 00             	ret    $0x4
40a3f1:	33 c0                	xor    %eax,%eax
40a3f3:	40                   	inc    %eax
40a3f4:	eb f6                	jmp    0x40a3ec
40a3f6:	8b ff                	mov    %edi,%edi
40a3f8:	55                   	push   %ebp
40a3f9:	8b ec                	mov    %esp,%ebp
40a3fb:	56                   	push   %esi
40a3fc:	8b f1                	mov    %ecx,%esi
40a3fe:	85 f6                	test   %esi,%esi
40a400:	74 48                	je     0x40a44a
40a402:	85 d2                	test   %edx,%edx
40a404:	74 44                	je     0x40a44a
40a406:	8b 45 08             	mov    0x8(%ebp),%eax
40a409:	85 c0                	test   %eax,%eax
40a40b:	7e 3d                	jle    0x40a44a
40a40d:	33 c9                	xor    %ecx,%ecx
40a40f:	85 c0                	test   %eax,%eax
40a411:	74 07                	je     0x40a41a
40a413:	3d ff ff ff 7f       	cmp    $0x7fffffff,%eax
40a418:	76 05                	jbe    0x40a41f
40a41a:	b9 57 00 07 80       	mov    $0x80070057,%ecx
40a41f:	85 c9                	test   %ecx,%ecx
40a421:	78 10                	js     0x40a433
40a423:	51                   	push   %ecx
40a424:	52                   	push   %edx
40a425:	51                   	push   %ecx
40a426:	8b d0                	mov    %eax,%edx
40a428:	8b ce                	mov    %esi,%ecx
40a42a:	e8 78 0a 00 00       	call   0x40aea7
40a42f:	8b c8                	mov    %eax,%ecx
40a431:	eb 09                	jmp    0x40a43c
40a433:	85 c0                	test   %eax,%eax
40a435:	74 05                	je     0x40a43c
40a437:	33 c0                	xor    %eax,%eax
40a439:	66 89 06             	mov    %ax,(%esi)
40a43c:	85 c9                	test   %ecx,%ecx
40a43e:	79 11                	jns    0x40a451
40a440:	0f b7 c1             	movzwl %cx,%eax
40a443:	50                   	push   %eax
40a444:	ff 15 74 20 41 00    	call   *0x412074
40a44a:	33 c0                	xor    %eax,%eax
40a44c:	5e                   	pop    %esi
40a44d:	5d                   	pop    %ebp
40a44e:	c2 04 00             	ret    $0x4
40a451:	33 c0                	xor    %eax,%eax
40a453:	40                   	inc    %eax
40a454:	eb f6                	jmp    0x40a44c
40a456:	8b ff                	mov    %edi,%edi
40a458:	55                   	push   %ebp
40a459:	8b ec                	mov    %esp,%ebp
40a45b:	8b c2                	mov    %edx,%eax
40a45d:	85 c9                	test   %ecx,%ecx
40a45f:	74 1f                	je     0x40a480
40a461:	85 c0                	test   %eax,%eax
40a463:	74 1b                	je     0x40a480
40a465:	8b 55 08             	mov    0x8(%ebp),%edx
40a468:	85 d2                	test   %edx,%edx
40a46a:	7e 14                	jle    0x40a480
40a46c:	50                   	push   %eax
40a46d:	e8 c7 09 00 00       	call   0x40ae39
40a472:	85 c0                	test   %eax,%eax
40a474:	79 10                	jns    0x40a486
40a476:	0f b7 c0             	movzwl %ax,%eax
40a479:	50                   	push   %eax
40a47a:	ff 15 74 20 41 00    	call   *0x412074
40a480:	33 c0                	xor    %eax,%eax
40a482:	5d                   	pop    %ebp
40a483:	c2 04 00             	ret    $0x4
40a486:	33 c0                	xor    %eax,%eax
40a488:	40                   	inc    %eax
40a489:	eb f7                	jmp    0x40a482
40a48b:	85 c9                	test   %ecx,%ecx
40a48d:	75 03                	jne    0x40a492
40a48f:	33 c0                	xor    %eax,%eax
40a491:	c3                   	ret
40a492:	51                   	push   %ecx
40a493:	ff 15 d4 20 41 00    	call   *0x4120d4
40a499:	c3                   	ret
40a49a:	8b ff                	mov    %edi,%edi
40a49c:	55                   	push   %ebp
40a49d:	8b ec                	mov    %esp,%ebp
40a49f:	56                   	push   %esi
40a4a0:	8b f1                	mov    %ecx,%esi
40a4a2:	85 f6                	test   %esi,%esi
40a4a4:	74 2e                	je     0x40a4d4
40a4a6:	85 d2                	test   %edx,%edx
40a4a8:	74 2a                	je     0x40a4d4
40a4aa:	8b 45 0c             	mov    0xc(%ebp),%eax
40a4ad:	33 c9                	xor    %ecx,%ecx
40a4af:	83 7d 08 01          	cmpl   $0x1,0x8(%ebp)
40a4b3:	0f 94 c1             	sete   %cl
40a4b6:	85 c0                	test   %eax,%eax
40a4b8:	75 03                	jne    0x40a4bd
40a4ba:	83 c8 ff             	or     $0xffffffff,%eax
40a4bd:	50                   	push   %eax
40a4be:	52                   	push   %edx
40a4bf:	50                   	push   %eax
40a4c0:	56                   	push   %esi
40a4c1:	51                   	push   %ecx
40a4c2:	ff 15 b0 20 41 00    	call   *0x4120b0
40a4c8:	50                   	push   %eax
40a4c9:	ff 15 b4 20 41 00    	call   *0x4120b4
40a4cf:	83 e8 02             	sub    $0x2,%eax
40a4d2:	eb 14                	jmp    0x40a4e8
40a4d4:	ff 15 48 20 41 00    	call   *0x412048
40a4da:	85 c0                	test   %eax,%eax
40a4dc:	75 08                	jne    0x40a4e6
40a4de:	6a 57                	push   $0x57
40a4e0:	ff 15 74 20 41 00    	call   *0x412074
40a4e6:	33 c0                	xor    %eax,%eax
40a4e8:	5e                   	pop    %esi
40a4e9:	5d                   	pop    %ebp
40a4ea:	c2 08 00             	ret    $0x8
40a4ed:	8b ff                	mov    %edi,%edi
40a4ef:	55                   	push   %ebp
40a4f0:	8b ec                	mov    %esp,%ebp
40a4f2:	83 ec 14             	sub    $0x14,%esp
40a4f5:	53                   	push   %ebx
40a4f6:	56                   	push   %esi
40a4f7:	8b f1                	mov    %ecx,%esi
40a4f9:	8b da                	mov    %edx,%ebx
40a4fb:	89 75 f0             	mov    %esi,-0x10(%ebp)
40a4fe:	57                   	push   %edi
40a4ff:	85 f6                	test   %esi,%esi
40a501:	0f 84 24 02 00 00    	je     0x40a72b
40a507:	85 db                	test   %ebx,%ebx
40a509:	0f 84 1c 02 00 00    	je     0x40a72b
40a50f:	e8 f1 fd ff ff       	call   0x40a305
40a514:	83 f8 01             	cmp    $0x1,%eax
40a517:	0f 85 fe 00 00 00    	jne    0x40a61b
40a51d:	50                   	push   %eax
40a51e:	e8 b6 4d 00 00       	call   0x40f2d9
40a523:	59                   	pop    %ecx
40a524:	3b f0                	cmp    %eax,%esi
40a526:	75 0f                	jne    0x40a537
40a528:	6a f5                	push   $0xfffffff5
40a52a:	ff 15 58 20 41 00    	call   *0x412058
40a530:	8b f0                	mov    %eax,%esi
40a532:	89 75 f8             	mov    %esi,-0x8(%ebp)
40a535:	eb 1d                	jmp    0x40a554
40a537:	6a 02                	push   $0x2
40a539:	e8 9b 4d 00 00       	call   0x40f2d9
40a53e:	59                   	pop    %ecx
40a53f:	3b f0                	cmp    %eax,%esi
40a541:	0f 85 bc 00 00 00    	jne    0x40a603
40a547:	6a f4                	push   $0xfffffff4
40a549:	ff 15 58 20 41 00    	call   *0x412058
40a54f:	8b f0                	mov    %eax,%esi
40a551:	89 45 f8             	mov    %eax,-0x8(%ebp)
40a554:	33 ff                	xor    %edi,%edi
40a556:	8b cb                	mov    %ebx,%ecx
40a558:	89 7d fc             	mov    %edi,-0x4(%ebp)
40a55b:	e8 2b ff ff ff       	call   0x40a48b
40a560:	57                   	push   %edi
40a561:	8d 4d fc             	lea    -0x4(%ebp),%ecx
40a564:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a567:	51                   	push   %ecx
40a568:	50                   	push   %eax
40a569:	53                   	push   %ebx
40a56a:	56                   	push   %esi
40a56b:	ff 15 54 20 41 00    	call   *0x412054
40a571:	85 c0                	test   %eax,%eax
40a573:	74 08                	je     0x40a57d
40a575:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a578:	3b 45 fc             	cmp    -0x4(%ebp),%eax
40a57b:	74 62                	je     0x40a5df
40a57d:	ff 15 48 20 41 00    	call   *0x412048
40a583:	83 f8 08             	cmp    $0x8,%eax
40a586:	75 5f                	jne    0x40a5e7
40a588:	8b cb                	mov    %ebx,%ecx
40a58a:	e8 fc fe ff ff       	call   0x40a48b
40a58f:	8b c8                	mov    %eax,%ecx
40a591:	8b c7                	mov    %edi,%eax
40a593:	89 4d f0             	mov    %ecx,-0x10(%ebp)
40a596:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a599:	85 c9                	test   %ecx,%ecx
40a59b:	74 42                	je     0x40a5df
40a59d:	ba 00 04 00 00       	mov    $0x400,%edx
40a5a2:	8b f1                	mov    %ecx,%esi
40a5a4:	2b f0                	sub    %eax,%esi
40a5a6:	3b f2                	cmp    %edx,%esi
40a5a8:	76 02                	jbe    0x40a5ac
40a5aa:	8b f2                	mov    %edx,%esi
40a5ac:	57                   	push   %edi
40a5ad:	8d 45 fc             	lea    -0x4(%ebp),%eax
40a5b0:	50                   	push   %eax
40a5b1:	56                   	push   %esi
40a5b2:	53                   	push   %ebx
40a5b3:	ff 75 f8             	push   -0x8(%ebp)
40a5b6:	ff 15 54 20 41 00    	call   *0x412054
40a5bc:	85 c0                	test   %eax,%eax
40a5be:	74 27                	je     0x40a5e7
40a5c0:	3b 75 fc             	cmp    -0x4(%ebp),%esi
40a5c3:	75 22                	jne    0x40a5e7
40a5c5:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a5c8:	ba 00 04 00 00       	mov    $0x400,%edx
40a5cd:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40a5d0:	03 c2                	add    %edx,%eax
40a5d2:	81 c3 00 08 00 00    	add    $0x800,%ebx
40a5d8:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a5db:	3b c1                	cmp    %ecx,%eax
40a5dd:	72 c3                	jb     0x40a5a2
40a5df:	33 c0                	xor    %eax,%eax
40a5e1:	40                   	inc    %eax
40a5e2:	e9 58 01 00 00       	jmp    0x40a73f
40a5e7:	6a 02                	push   $0x2
40a5e9:	e8 eb 4c 00 00       	call   0x40f2d9
40a5ee:	59                   	pop    %ecx
40a5ef:	8b c8                	mov    %eax,%ecx
40a5f1:	e8 f6 f2 ff ff       	call   0x4098ec
40a5f6:	e8 1a f3 ff ff       	call   0x409915
40a5fb:	6a 01                	push   $0x1
40a5fd:	ff 15 a8 20 41 00    	call   *0x4120a8
40a603:	ff 15 48 20 41 00    	call   *0x412048
40a609:	85 c0                	test   %eax,%eax
40a60b:	0f 85 2c 01 00 00    	jne    0x40a73d
40a611:	68 2b 04 00 00       	push   $0x42b
40a616:	e9 1c 01 00 00       	jmp    0x40a737
40a61b:	8b cb                	mov    %ebx,%ecx
40a61d:	e8 69 fe ff ff       	call   0x40a48b
40a622:	68 00 01 00 00       	push   $0x100
40a627:	33 ff                	xor    %edi,%edi
40a629:	8b f0                	mov    %eax,%esi
40a62b:	57                   	push   %edi
40a62c:	68 a8 13 41 00       	push   $0x4113a8
40a631:	89 75 ec             	mov    %esi,-0x14(%ebp)
40a634:	e8 8b 4d 00 00       	call   0x40f3c4
40a639:	83 c4 0c             	add    $0xc,%esp
40a63c:	8b c7                	mov    %edi,%eax
40a63e:	89 45 f8             	mov    %eax,-0x8(%ebp)
40a641:	85 f6                	test   %esi,%esi
40a643:	74 9a                	je     0x40a5df
40a645:	2b f0                	sub    %eax,%esi
40a647:	81 fe ff 00 00 00    	cmp    $0xff,%esi
40a64d:	76 05                	jbe    0x40a654
40a64f:	be ff 00 00 00       	mov    $0xff,%esi
40a654:	8d 04 43             	lea    (%ebx,%eax,2),%eax
40a657:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a65a:	57                   	push   %edi
40a65b:	57                   	push   %edi
40a65c:	57                   	push   %edi
40a65d:	57                   	push   %edi
40a65e:	56                   	push   %esi
40a65f:	50                   	push   %eax
40a660:	57                   	push   %edi
40a661:	ff 15 a4 20 41 00    	call   *0x4120a4
40a667:	50                   	push   %eax
40a668:	ff 15 c4 20 41 00    	call   *0x4120c4
40a66e:	89 45 fc             	mov    %eax,-0x4(%ebp)
40a671:	85 c0                	test   %eax,%eax
40a673:	0f 84 ab 00 00 00    	je     0x40a724
40a679:	3d ff 00 00 00       	cmp    $0xff,%eax
40a67e:	76 1d                	jbe    0x40a69d
40a680:	05 01 ff ff ff       	add    $0xffffff01,%eax
40a685:	83 f8 03             	cmp    $0x3,%eax
40a688:	76 06                	jbe    0x40a690
40a68a:	d1 e8                	shr    $1,%eax
40a68c:	2b f0                	sub    %eax,%esi
40a68e:	eb 01                	jmp    0x40a691
40a690:	4e                   	dec    %esi
40a691:	89 7d fc             	mov    %edi,-0x4(%ebp)
40a694:	85 f6                	test   %esi,%esi
40a696:	74 77                	je     0x40a70f
40a698:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a69b:	eb bd                	jmp    0x40a65a
40a69d:	3b c6                	cmp    %esi,%eax
40a69f:	73 02                	jae    0x40a6a3
40a6a1:	8b f0                	mov    %eax,%esi
40a6a3:	68 00 01 00 00       	push   $0x100
40a6a8:	57                   	push   %edi
40a6a9:	68 a8 13 41 00       	push   $0x4113a8
40a6ae:	e8 11 4d 00 00       	call   0x40f3c4
40a6b3:	83 c4 0c             	add    $0xc,%esp
40a6b6:	57                   	push   %edi
40a6b7:	57                   	push   %edi
40a6b8:	68 ff 00 00 00       	push   $0xff
40a6bd:	68 a8 13 41 00       	push   $0x4113a8
40a6c2:	56                   	push   %esi
40a6c3:	ff 75 f4             	push   -0xc(%ebp)
40a6c6:	57                   	push   %edi
40a6c7:	ff 15 a4 20 41 00    	call   *0x4120a4
40a6cd:	50                   	push   %eax
40a6ce:	ff 15 c4 20 41 00    	call   *0x4120c4
40a6d4:	89 45 fc             	mov    %eax,-0x4(%ebp)
40a6d7:	85 c0                	test   %eax,%eax