40a369:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40a36c:	83 a1 50 03 00 00 fd 	andl   $0xfffffffd,0x350(%ecx)
40a373:	8b e5                	mov    %ebp,%esp
40a375:	5d                   	pop    %ebp
40a376:	c3                   	ret
40a377:	8b ff                	mov    %edi,%edi
40a379:	55                   	push   %ebp
40a37a:	8b ec                	mov    %esp,%ebp
40a37c:	a1 98 41 42 00       	mov    0x424198,%eax
40a381:	85 c0                	test   %eax,%eax
40a383:	74 0e                	je     0x40a393
40a385:	6a 00                	push   $0x0
40a387:	ff 75 08             	push   0x8(%ebp)
40a38a:	e8 b0 ff ff ff       	call   0x40a33f
40a38f:	59                   	pop    %ecx
40a390:	59                   	pop    %ecx
40a391:	5d                   	pop    %ebp
40a392:	c3                   	ret
40a393:	8b 4d 08             	mov    0x8(%ebp),%ecx
40a396:	a1 08 31 42 00       	mov    0x423108,%eax
40a39b:	0f b7 04 48          	movzwl (%eax,%ecx,2),%eax
40a39f:	83 e0 04             	and    $0x4,%eax
40a3a2:	5d                   	pop    %ebp
40a3a3:	c3                   	ret
40a3a4:	8b ff                	mov    %edi,%edi
40a3a6:	55                   	push   %ebp
40a3a7:	8b ec                	mov    %esp,%ebp
40a3a9:	83 ec 1c             	sub    $0x1c,%esp
40a3ac:	8d 4d e4             	lea    -0x1c(%ebp),%ecx
40a3af:	53                   	push   %ebx
40a3b0:	ff 75 10             	push   0x10(%ebp)
40a3b3:	e8 f9 b2 ff ff       	call   0x4056b1
40a3b8:	8b 5d 08             	mov    0x8(%ebp),%ebx
40a3bb:	81 fb 00 01 00 00    	cmp    $0x100,%ebx
40a3c1:	73 4b                	jae    0x40a40e
40a3c3:	8d 45 e8             	lea    -0x18(%ebp),%eax
40a3c6:	50                   	push   %eax
40a3c7:	53                   	push   %ebx
40a3c8:	e8 21 01 00 00       	call   0x40a4ee
40a3cd:	59                   	pop    %ecx
40a3ce:	59                   	pop    %ecx
40a3cf:	84 c0                	test   %al,%al
40a3d1:	74 24                	je     0x40a3f7
40a3d3:	80 7d f0 00          	cmpb   $0x0,-0x10(%ebp)
40a3d7:	8b 45 e8             	mov    -0x18(%ebp),%eax
40a3da:	8b 80 94 00 00 00    	mov    0x94(%eax),%eax
40a3e0:	0f b6 0c 18          	movzbl (%eax,%ebx,1),%ecx
40a3e4:	74 0a                	je     0x40a3f0
40a3e6:	8b 45 e4             	mov    -0x1c(%ebp),%eax
40a3e9:	83 a0 50 03 00 00 fd 	andl   $0xfffffffd,0x350(%eax)
40a3f0:	8b c1                	mov    %ecx,%eax
40a3f2:	e9 f2 00 00 00       	jmp    0x40a4e9
40a3f7:	80 7d f0 00          	cmpb   $0x0,-0x10(%ebp)
40a3fb:	74 0a                	je     0x40a407
40a3fd:	8b 4d e4             	mov    -0x1c(%ebp),%ecx
40a400:	83 a1 50 03 00 00 fd 	andl   $0xfffffffd,0x350(%ecx)
40a407:	8b c3                	mov    %ebx,%eax
40a409:	e9 db 00 00 00       	jmp    0x40a4e9
40a40e:	33 c0                	xor    %eax,%eax
40a410:	66 89 45 fc          	mov    %ax,-0x4(%ebp)
40a414:	88 45 fe             	mov    %al,-0x2(%ebp)
40a417:	8b 45 e8             	mov    -0x18(%ebp),%eax
40a41a:	83 78 04 01          	cmpl   $0x1,0x4(%eax)
40a41e:	7e 2e                	jle    0x40a44e
40a420:	8b c3                	mov    %ebx,%eax
40a422:	8d 4d e8             	lea    -0x18(%ebp),%ecx
40a425:	c1 f8 08             	sar    $0x8,%eax
40a428:	89 45 f4             	mov    %eax,-0xc(%ebp)
40a42b:	51                   	push   %ecx
40a42c:	0f b6 c0             	movzbl %al,%eax
40a42f:	50                   	push   %eax
40a430:	e8 c2 73 00 00       	call   0x4117f7
40a435:	59                   	pop    %ecx
40a436:	59                   	pop    %ecx
40a437:	85 c0                	test   %eax,%eax
40a439:	74 13                	je     0x40a44e
40a43b:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a43e:	88 45 fc             	mov    %al,-0x4(%ebp)
40a441:	33 c0                	xor    %eax,%eax
40a443:	6a 02                	push   $0x2
40a445:	88 5d fd             	mov    %bl,-0x3(%ebp)
40a448:	88 45 fe             	mov    %al,-0x2(%ebp)
40a44b:	59                   	pop    %ecx
40a44c:	eb 16                	jmp    0x40a464
40a44e:	e8 b4 d8 ff ff       	call   0x407d07
40a453:	33 c9                	xor    %ecx,%ecx
40a455:	c7 00 2a 00 00 00    	movl   $0x2a,(%eax)
40a45b:	33 c0                	xor    %eax,%eax
40a45d:	88 5d fc             	mov    %bl,-0x4(%ebp)
40a460:	41                   	inc    %ecx
40a461:	88 45 fd             	mov    %al,-0x3(%ebp)
40a464:	66 89 45 f8          	mov    %ax,-0x8(%ebp)
40a468:	8d 55 f8             	lea    -0x8(%ebp),%edx
40a46b:	88 45 fa             	mov    %al,-0x6(%ebp)
40a46e:	8b 45 e8             	mov    -0x18(%ebp),%eax
40a471:	6a 01                	push   $0x1
40a473:	ff 70 08             	push   0x8(%eax)
40a476:	6a 03                	push   $0x3
40a478:	52                   	push   %edx
40a479:	51                   	push   %ecx
40a47a:	8d 4d fc             	lea    -0x4(%ebp),%ecx
40a47d:	51                   	push   %ecx
40a47e:	ff 75 0c             	push   0xc(%ebp)
40a481:	ff b0 a8 00 00 00    	push   0xa8(%eax)
40a487:	8d 45 e8             	lea    -0x18(%ebp),%eax
40a48a:	50                   	push   %eax
40a48b:	e8 bd 75 00 00       	call   0x411a4d
40a490:	83 c4 24             	add    $0x24,%esp
40a493:	85 c0                	test   %eax,%eax
40a495:	75 18                	jne    0x40a4af
40a497:	38 45 f0             	cmp    %al,-0x10(%ebp)
40a49a:	0f 84 67 ff ff ff    	je     0x40a407
40a4a0:	8b 45 e4             	mov    -0x1c(%ebp),%eax
40a4a3:	83 a0 50 03 00 00 fd 	andl   $0xfffffffd,0x350(%eax)
40a4aa:	e9 58 ff ff ff       	jmp    0x40a407
40a4af:	83 f8 01             	cmp    $0x1,%eax
40a4b2:	75 16                	jne    0x40a4ca
40a4b4:	80 7d f0 00          	cmpb   $0x0,-0x10(%ebp)
40a4b8:	0f b6 45 f8          	movzbl -0x8(%ebp),%eax
40a4bc:	74 2b                	je     0x40a4e9
40a4be:	8b 4d e4             	mov    -0x1c(%ebp),%ecx
40a4c1:	83 a1 50 03 00 00 fd 	andl   $0xfffffffd,0x350(%ecx)
40a4c8:	eb 1f                	jmp    0x40a4e9
40a4ca:	0f b6 55 f8          	movzbl -0x8(%ebp),%edx
40a4ce:	0f b6 45 f9          	movzbl -0x7(%ebp),%eax
40a4d2:	c1 e2 08             	shl    $0x8,%edx
40a4d5:	0b d0                	or     %eax,%edx
40a4d7:	80 7d f0 00          	cmpb   $0x0,-0x10(%ebp)
40a4db:	74 0a                	je     0x40a4e7
40a4dd:	8b 4d e4             	mov    -0x1c(%ebp),%ecx
40a4e0:	83 a1 50 03 00 00 fd 	andl   $0xfffffffd,0x350(%ecx)
40a4e7:	8b c2                	mov    %edx,%eax
40a4e9:	5b                   	pop    %ebx
40a4ea:	8b e5                	mov    %ebp,%esp
40a4ec:	5d                   	pop    %ebp
40a4ed:	c3                   	ret
40a4ee:	8b ff                	mov    %edi,%edi
40a4f0:	55                   	push   %ebp
40a4f1:	8b ec                	mov    %esp,%ebp
40a4f3:	ff 75 0c             	push   0xc(%ebp)
40a4f6:	6a 01                	push   $0x1
40a4f8:	ff 75 08             	push   0x8(%ebp)
40a4fb:	e8 e2 fd ff ff       	call   0x40a2e2
40a500:	83 c4 0c             	add    $0xc,%esp
40a503:	f7 d8                	neg    %eax
40a505:	1b c0                	sbb    %eax,%eax
40a507:	f7 d8                	neg    %eax
40a509:	5d                   	pop    %ebp
40a50a:	c3                   	ret
40a50b:	8b ff                	mov    %edi,%edi
40a50d:	55                   	push   %ebp
40a50e:	8b ec                	mov    %esp,%ebp
40a510:	ff 75 0c             	push   0xc(%ebp)
40a513:	68 00 01 00 00       	push   $0x100
40a518:	ff 75 08             	push   0x8(%ebp)
40a51b:	e8 84 fe ff ff       	call   0x40a3a4
40a520:	83 c4 0c             	add    $0xc,%esp
40a523:	5d                   	pop    %ebp
40a524:	c3                   	ret
40a525:	8b ff                	mov    %edi,%edi
40a527:	55                   	push   %ebp
40a528:	8b ec                	mov    %esp,%ebp
40a52a:	a1 98 41 42 00       	mov    0x424198,%eax
40a52f:	85 c0                	test   %eax,%eax
40a531:	74 10                	je     0x40a543
40a533:	6a 00                	push   $0x0
40a535:	ff 75 08             	push   0x8(%ebp)
40a538:	e8 ce ff ff ff       	call   0x40a50b
40a53d:	59                   	pop    %ecx
40a53e:	59                   	pop    %ecx
40a53f:	8b c8                	mov    %eax,%ecx
40a541:	eb 0e                	jmp    0x40a551
40a543:	8b 4d 08             	mov    0x8(%ebp),%ecx
40a546:	8d 41 bf             	lea    -0x41(%ecx),%eax
40a549:	83 f8 19             	cmp    $0x19,%eax
40a54c:	77 03                	ja     0x40a551
40a54e:	83 c1 20             	add    $0x20,%ecx
40a551:	8b c1                	mov    %ecx,%eax
40a553:	5d                   	pop    %ebp
40a554:	c3                   	ret
40a555:	8b ff                	mov    %edi,%edi
40a557:	55                   	push   %ebp
40a558:	8b ec                	mov    %esp,%ebp
40a55a:	8b 45 08             	mov    0x8(%ebp),%eax
40a55d:	8b 4d 10             	mov    0x10(%ebp),%ecx
40a560:	8b 55 0c             	mov    0xc(%ebp),%edx
40a563:	89 10                	mov    %edx,(%eax)
40a565:	89 48 04             	mov    %ecx,0x4(%eax)
40a568:	85 c9                	test   %ecx,%ecx
40a56a:	74 02                	je     0x40a56e
40a56c:	89 11                	mov    %edx,(%ecx)
40a56e:	5d                   	pop    %ebp
40a56f:	c3                   	ret
40a570:	8b ff                	mov    %edi,%edi
40a572:	55                   	push   %ebp
40a573:	8b ec                	mov    %esp,%ebp
40a575:	51                   	push   %ecx
40a576:	6a 01                	push   $0x1
40a578:	ff 75 10             	push   0x10(%ebp)
40a57b:	51                   	push   %ecx
40a57c:	51                   	push   %ecx
40a57d:	8b c4                	mov    %esp,%eax
40a57f:	ff 75 0c             	push   0xc(%ebp)
40a582:	ff 75 08             	push   0x8(%ebp)
40a585:	50                   	push   %eax
40a586:	e8 ca ff ff ff       	call   0x40a555
40a58b:	83 c4 0c             	add    $0xc,%esp
40a58e:	6a 00                	push   $0x0
40a590:	e8 cf f5 ff ff       	call   0x409b64
40a595:	83 c4 14             	add    $0x14,%esp
40a598:	8b e5                	mov    %ebp,%esp
40a59a:	5d                   	pop    %ebp
40a59b:	c3                   	ret
40a59c:	8b ff                	mov    %edi,%edi
40a59e:	55                   	push   %ebp
40a59f:	8b ec                	mov    %esp,%ebp
40a5a1:	83 ec 10             	sub    $0x10,%esp
40a5a4:	53                   	push   %ebx
40a5a5:	56                   	push   %esi
40a5a6:	8b 75 0c             	mov    0xc(%ebp),%esi
40a5a9:	85 f6                	test   %esi,%esi
40a5ab:	74 18                	je     0x40a5c5
40a5ad:	8b 5d 10             	mov    0x10(%ebp),%ebx
40a5b0:	85 db                	test   %ebx,%ebx
40a5b2:	74 11                	je     0x40a5c5
40a5b4:	80 3e 00             	cmpb   $0x0,(%esi)
40a5b7:	75 14                	jne    0x40a5cd
40a5b9:	8b 45 08             	mov    0x8(%ebp),%eax
40a5bc:	85 c0                	test   %eax,%eax
40a5be:	74 05                	je     0x40a5c5
40a5c0:	33 c9                	xor    %ecx,%ecx
40a5c2:	66 89 08             	mov    %cx,(%eax)
40a5c5:	33 c0                	xor    %eax,%eax
40a5c7:	5e                   	pop    %esi
40a5c8:	5b                   	pop    %ebx
40a5c9:	8b e5                	mov    %ebp,%esp
40a5cb:	5d                   	pop    %ebp
40a5cc:	c3                   	ret
40a5cd:	57                   	push   %edi
40a5ce:	ff 75 14             	push   0x14(%ebp)
40a5d1:	8d 4d f0             	lea    -0x10(%ebp),%ecx
40a5d4:	e8 d8 b0 ff ff       	call   0x4056b1
40a5d9:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a5dc:	83 b8 a8 00 00 00 00 	cmpl   $0x0,0xa8(%eax)
40a5e3:	75 15                	jne    0x40a5fa
40a5e5:	8b 4d 08             	mov    0x8(%ebp),%ecx
40a5e8:	85 c9                	test   %ecx,%ecx
40a5ea:	74 06                	je     0x40a5f2
40a5ec:	0f b6 06             	movzbl (%esi),%eax
40a5ef:	66 89 01             	mov    %ax,(%ecx)
40a5f2:	33 ff                	xor    %edi,%edi
40a5f4:	47                   	inc    %edi
40a5f5:	e9 84 00 00 00       	jmp    0x40a67e
40a5fa:	8d 45 f4             	lea    -0xc(%ebp),%eax
40a5fd:	50                   	push   %eax
40a5fe:	0f b6 06             	movzbl (%esi),%eax
40a601:	50                   	push   %eax
40a602:	e8 f0 71 00 00       	call   0x4117f7
40a607:	59                   	pop    %ecx
40a608:	59                   	pop    %ecx
40a609:	85 c0                	test   %eax,%eax
40a60b:	74 40                	je     0x40a64d
40a60d:	8b 7d f4             	mov    -0xc(%ebp),%edi
40a610:	83 7f 04 01          	cmpl   $0x1,0x4(%edi)
40a614:	7e 27                	jle    0x40a63d
40a616:	3b 5f 04             	cmp    0x4(%edi),%ebx
40a619:	7c 25                	jl     0x40a640
40a61b:	33 c0                	xor    %eax,%eax
40a61d:	39 45 08             	cmp    %eax,0x8(%ebp)
40a620:	0f 95 c0             	setne  %al
40a623:	50                   	push   %eax
40a624:	ff 75 08             	push   0x8(%ebp)
40a627:	ff 77 04             	push   0x4(%edi)
40a62a:	56                   	push   %esi
40a62b:	6a 09                	push   $0x9
40a62d:	ff 77 08             	push   0x8(%edi)
40a630:	ff 15 2c b1 41 00    	call   *0x41b12c
40a636:	8b 7d f4             	mov    -0xc(%ebp),%edi
40a639:	85 c0                	test   %eax,%eax
40a63b:	75 0b                	jne    0x40a648
40a63d:	3b 5f 04             	cmp    0x4(%edi),%ebx
40a640:	72 2e                	jb     0x40a670
40a642:	80 7e 01 00          	cmpb   $0x0,0x1(%esi)
40a646:	74 28                	je     0x40a670
40a648:	8b 7f 04             	mov    0x4(%edi),%edi
40a64b:	eb 31                	jmp    0x40a67e
40a64d:	33 c0                	xor    %eax,%eax
40a64f:	39 45 08             	cmp    %eax,0x8(%ebp)
40a652:	0f 95 c0             	setne  %al
40a655:	33 ff                	xor    %edi,%edi
40a657:	50                   	push   %eax
40a658:	ff 75 08             	push   0x8(%ebp)
40a65b:	8b 45 f4             	mov    -0xc(%ebp),%eax
40a65e:	47                   	inc    %edi
40a65f:	57                   	push   %edi
40a660:	56                   	push   %esi
40a661:	6a 09                	push   $0x9
40a663:	ff 70 08             	push   0x8(%eax)
40a666:	ff 15 2c b1 41 00    	call   *0x41b12c
40a66c:	85 c0                	test   %eax,%eax
40a66e:	75 0e                	jne    0x40a67e
40a670:	e8 92 d6 ff ff       	call   0x407d07
40a675:	83 cf ff             	or     $0xffffffff,%edi
40a678:	c7 00 2a 00 00 00    	movl   $0x2a,(%eax)
40a67e:	80 7d fc 00          	cmpb   $0x0,-0x4(%ebp)
40a682:	74 0a                	je     0x40a68e
40a684:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40a687:	83 a1 50 03 00 00 fd 	andl   $0xfffffffd,0x350(%ecx)
40a68e:	8b c7                	mov    %edi,%eax
40a690:	5f                   	pop    %edi
40a691:	e9 31 ff ff ff       	jmp    0x40a5c7
40a696:	8b ff                	mov    %edi,%edi
40a698:	55                   	push   %ebp
40a699:	8b ec                	mov    %esp,%ebp
40a69b:	6a 00                	push   $0x0
40a69d:	ff 75 10             	push   0x10(%ebp)
40a6a0:	ff 75 0c             	push   0xc(%ebp)
40a6a3:	ff 75 08             	push   0x8(%ebp)
40a6a6:	e8 f1 fe ff ff       	call   0x40a59c
40a6ab:	83 c4 10             	add    $0x10,%esp
40a6ae:	5d                   	pop    %ebp
40a6af:	c3                   	ret
40a6b0:	6a 08                	push   $0x8
40a6b2:	68 c0 1c 42 00       	push   $0x421cc0
40a6b7:	e8 94 94 ff ff       	call   0x403b50
40a6bc:	8b 45 08             	mov    0x8(%ebp),%eax
40a6bf:	ff 30                	push   (%eax)
40a6c1:	e8 df 47 00 00       	call   0x40eea5
40a6c6:	59                   	pop    %ecx
40a6c7:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40a6cb:	8b 4d 0c             	mov    0xc(%ebp),%ecx
40a6ce:	8b 41 04             	mov    0x4(%ecx),%eax
40a6d1:	8b 00                	mov    (%eax),%eax
40a6d3:	ff 30                	push   (%eax)
40a6d5:	8b 01                	mov    (%ecx),%eax
40a6d7:	ff 30                	push   (%eax)
40a6d9:	e8 f9 02 00 00       	call   0x40a9d7
40a6de:	59                   	pop    %ecx
40a6df:	59                   	pop    %ecx
40a6e0:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40a6e7:	e8 08 00 00 00       	call   0x40a6f4
40a6ec:	e8 a5 94 ff ff       	call   0x403b96
40a6f1:	c2 0c 00             	ret    $0xc
40a6f4:	8b 45 10             	mov    0x10(%ebp),%eax
40a6f7:	ff 30                	push   (%eax)
40a6f9:	e8 ef 47 00 00       	call   0x40eeed
40a6fe:	59                   	pop    %ecx
40a6ff:	c3                   	ret
40a700:	6a 08                	push   $0x8
40a702:	68 e0 1c 42 00       	push   $0x421ce0