405295:	8b f8                	mov    %eax,%edi
405297:	85 ff                	test   %edi,%edi
405299:	0f 84 58 01 00 00    	je     0x4053f7
40529f:	8d 45 e8             	lea    -0x18(%ebp),%eax
4052a2:	50                   	push   %eax
4052a3:	8d 85 4c ff ff ff    	lea    -0xb4(%ebp),%eax
4052a9:	50                   	push   %eax
4052aa:	57                   	push   %edi
4052ab:	8d 85 50 ff ff ff    	lea    -0xb0(%ebp),%eax
4052b1:	50                   	push   %eax
4052b2:	8d 85 57 ff ff ff    	lea    -0xa9(%ebp),%eax
4052b8:	50                   	push   %eax
4052b9:	8d 85 58 ff ff ff    	lea    -0xa8(%ebp),%eax
4052bf:	50                   	push   %eax
4052c0:	ff 15 70 f0 40 00    	call   *0x40f070
4052c6:	8b f0                	mov    %eax,%esi
4052c8:	85 f6                	test   %esi,%esi
4052ca:	75 72                	jne    0x40533e
4052cc:	6a 20                	push   $0x20
4052ce:	8d 85 68 ff ff ff    	lea    -0x98(%ebp),%eax
4052d4:	50                   	push   %eax
4052d5:	68 5c 04 00 00       	push   $0x45c
4052da:	53                   	push   %ebx
4052db:	ff 15 20 f1 40 00    	call   *0x40f120
4052e1:	85 c0                	test   %eax,%eax
4052e3:	75 07                	jne    0x4052ec
4052e5:	66 89 85 68 ff ff ff 	mov    %ax,-0x98(%ebp)
4052ec:	6a 20                	push   $0x20
4052ee:	8d 45 a8             	lea    -0x58(%ebp),%eax
4052f1:	50                   	push   %eax
4052f2:	68 5b 04 00 00       	push   $0x45b
4052f7:	53                   	push   %ebx
4052f8:	ff 15 20 f1 40 00    	call   *0x40f120
4052fe:	85 c0                	test   %eax,%eax
405300:	75 04                	jne    0x405306
405302:	66 89 45 a8          	mov    %ax,-0x58(%ebp)
405306:	ff b5 50 ff ff ff    	push   -0xb0(%ebp)
40530c:	8d 85 68 ff ff ff    	lea    -0x98(%ebp),%eax
405312:	50                   	push   %eax
405313:	0f b6 85 57 ff ff ff 	movzbl -0xa9(%ebp),%eax
40531a:	50                   	push   %eax
40531b:	8d 45 a8             	lea    -0x58(%ebp),%eax
40531e:	50                   	push   %eax
40531f:	68 d0 18 40 00       	push   $0x4018d0
405324:	e8 91 d5 ff ff       	call   0x4028ba
405329:	83 c4 14             	add    $0x14,%esp
40532c:	8b d7                	mov    %edi,%edx
40532e:	b9 2c 19 40 00       	mov    $0x40192c,%ecx
405333:	ff b5 50 ff ff ff    	push   -0xb0(%ebp)
405339:	e8 fc e1 ff ff       	call   0x40353a
40533e:	57                   	push   %edi
40533f:	ff 15 b0 f0 40 00    	call   *0x40f0b0
405345:	81 fe 1d 00 ff ef    	cmp    $0xefff001d,%esi
40534b:	0f 85 a6 00 00 00    	jne    0x4053f7
405351:	6a 20                	push   $0x20
405353:	8d 85 68 ff ff ff    	lea    -0x98(%ebp),%eax
405359:	50                   	push   %eax
40535a:	68 5d 04 00 00       	push   $0x45d
40535f:	53                   	push   %ebx
405360:	ff 15 20 f1 40 00    	call   *0x40f120
405366:	85 c0                	test   %eax,%eax
405368:	75 07                	jne    0x405371
40536a:	66 89 85 68 ff ff ff 	mov    %ax,-0x98(%ebp)
405371:	6a 20                	push   $0x20
405373:	8d 45 a8             	lea    -0x58(%ebp),%eax
405376:	50                   	push   %eax
405377:	68 5b 04 00 00       	push   $0x45b
40537c:	53                   	push   %ebx
40537d:	ff 15 20 f1 40 00    	call   *0x40f120
405383:	85 c0                	test   %eax,%eax
405385:	75 04                	jne    0x40538b
405387:	66 89 45 a8          	mov    %ax,-0x58(%ebp)
40538b:	ff b5 4c ff ff ff    	push   -0xb4(%ebp)
405391:	8d 85 68 ff ff ff    	lea    -0x98(%ebp),%eax
405397:	50                   	push   %eax
405398:	0f b6 85 57 ff ff ff 	movzbl -0xa9(%ebp),%eax
40539f:	50                   	push   %eax
4053a0:	8d 45 a8             	lea    -0x58(%ebp),%eax
4053a3:	50                   	push   %eax
4053a4:	68 40 19 40 00       	push   $0x401940
4053a9:	e8 0c d5 ff ff       	call   0x4028ba
4053ae:	83 c4 14             	add    $0x14,%esp
4053b1:	8d 55 e8             	lea    -0x18(%ebp),%edx
4053b4:	b9 04 14 40 00       	mov    $0x401404,%ecx
4053b9:	ff b5 4c ff ff ff    	push   -0xb4(%ebp)
4053bf:	e8 76 e1 ff ff       	call   0x40353a
4053c4:	eb 31                	jmp    0x4053f7
4053c6:	6a 20                	push   $0x20
4053c8:	8d 45 a8             	lea    -0x58(%ebp),%eax
4053cb:	50                   	push   %eax
4053cc:	68 5e 04 00 00       	push   $0x45e
4053d1:	53                   	push   %ebx
4053d2:	ff 15 20 f1 40 00    	call   *0x40f120
4053d8:	85 c0                	test   %eax,%eax
4053da:	75 04                	jne    0x4053e0
4053dc:	66 89 45 a8          	mov    %ax,-0x58(%ebp)
4053e0:	ff 77 08             	push   0x8(%edi)
4053e3:	8d 45 a8             	lea    -0x58(%ebp),%eax
4053e6:	50                   	push   %eax
4053e7:	68 a0 19 40 00       	push   $0x4019a0
4053ec:	e8 c9 d4 ff ff       	call   0x4028ba
4053f1:	83 c4 0c             	add    $0xc,%esp
4053f4:	6a 57                	push   $0x57
4053f6:	5e                   	pop    %esi
4053f7:	8b 4d fc             	mov    -0x4(%ebp),%ecx
4053fa:	8b c6                	mov    %esi,%eax
4053fc:	5f                   	pop    %edi
4053fd:	5e                   	pop    %esi
4053fe:	33 cd                	xor    %ebp,%ecx
405400:	5b                   	pop    %ebx
405401:	e8 ca 36 00 00       	call   0x408ad0
405406:	c9                   	leave
405407:	c3                   	ret
405408:	8b ff                	mov    %edi,%edi
40540a:	55                   	push   %ebp
40540b:	8b ec                	mov    %esp,%ebp
40540d:	81 ec cc 00 00 00    	sub    $0xcc,%esp
405413:	a1 04 a0 40 00       	mov    0x40a004,%eax
405418:	33 c5                	xor    %ebp,%eax
40541a:	89 45 fc             	mov    %eax,-0x4(%ebp)
40541d:	53                   	push   %ebx
40541e:	56                   	push   %esi
40541f:	57                   	push   %edi
405420:	33 db                	xor    %ebx,%ebx
405422:	8d 85 60 ff ff ff    	lea    -0xa0(%ebp),%eax
405428:	6a 40                	push   $0x40
40542a:	53                   	push   %ebx
40542b:	50                   	push   %eax
40542c:	8b fa                	mov    %edx,%edi
40542e:	88 9d 4f ff ff ff    	mov    %bl,-0xb1(%ebp)
405434:	8b f1                	mov    %ecx,%esi
405436:	e8 a9 3c 00 00       	call   0x4090e4
40543b:	83 c4 0c             	add    $0xc,%esp
40543e:	8d 45 b8             	lea    -0x48(%ebp),%eax
405441:	6a 40                	push   $0x40
405443:	53                   	push   %ebx
405444:	50                   	push   %eax
405445:	e8 9a 3c 00 00       	call   0x4090e4
40544a:	83 c4 0c             	add    $0xc,%esp
40544d:	83 fe 04             	cmp    $0x4,%esi
405450:	74 0f                	je     0x405461
405452:	6a 11                	push   $0x11
405454:	59                   	pop    %ecx
405455:	e8 05 d6 ff ff       	call   0x402a5f
40545a:	8b f3                	mov    %ebx,%esi
40545c:	e9 15 02 00 00       	jmp    0x405676
405461:	8b 4f 08             	mov    0x8(%edi),%ecx
405464:	8d 95 50 ff ff ff    	lea    -0xb0(%ebp),%edx
40546a:	e8 25 e6 ff ff       	call   0x403a94
40546f:	84 c0                	test   %al,%al
405471:	0f 84 ce 01 00 00    	je     0x405645
405477:	51                   	push   %ecx
405478:	51                   	push   %ecx
405479:	8b 4f 0c             	mov    0xc(%edi),%ecx
40547c:	8d 95 38 ff ff ff    	lea    -0xc8(%ebp),%edx
405482:	e8 71 e5 ff ff       	call   0x4039f8
405487:	85 c0                	test   %eax,%eax
405489:	0f 84 97 01 00 00    	je     0x405626
40548f:	8d 45 a4             	lea    -0x5c(%ebp),%eax
405492:	c7 85 44 ff ff ff 12 	movl   $0x12,-0xbc(%ebp)
405499:	00 00 00
40549c:	50                   	push   %eax
40549d:	8d 85 44 ff ff ff    	lea    -0xbc(%ebp),%eax
4054a3:	89 9d 48 ff ff ff    	mov    %ebx,-0xb8(%ebp)
4054a9:	50                   	push   %eax
4054aa:	53                   	push   %ebx
4054ab:	8d 85 48 ff ff ff    	lea    -0xb8(%ebp),%eax
4054b1:	50                   	push   %eax
4054b2:	8d 85 4f ff ff ff    	lea    -0xb1(%ebp),%eax
4054b8:	50                   	push   %eax
4054b9:	ff b5 3c ff ff ff    	push   -0xc4(%ebp)
4054bf:	8d 85 50 ff ff ff    	lea    -0xb0(%ebp),%eax
4054c5:	ff b5 38 ff ff ff    	push   -0xc8(%ebp)
4054cb:	50                   	push   %eax
4054cc:	ff 15 4c f0 40 00    	call   *0x40f04c
4054d2:	8b f0                	mov    %eax,%esi
4054d4:	83 fe 7a             	cmp    $0x7a,%esi
4054d7:	0f 85 c8 00 00 00    	jne    0x4055a5
4054dd:	ff b5 48 ff ff ff    	push   -0xb8(%ebp)
4054e3:	ff 15 a4 f0 40 00    	call   *0x40f0a4
4054e9:	8b f8                	mov    %eax,%edi
4054eb:	85 ff                	test   %edi,%edi
4054ed:	0f 84 83 01 00 00    	je     0x405676
4054f3:	8d 45 a4             	lea    -0x5c(%ebp),%eax
4054f6:	50                   	push   %eax
4054f7:	8d 85 44 ff ff ff    	lea    -0xbc(%ebp),%eax
4054fd:	50                   	push   %eax
4054fe:	57                   	push   %edi
4054ff:	8d 85 48 ff ff ff    	lea    -0xb8(%ebp),%eax
405505:	50                   	push   %eax
405506:	8d 85 4f ff ff ff    	lea    -0xb1(%ebp),%eax
40550c:	50                   	push   %eax
40550d:	ff b5 3c ff ff ff    	push   -0xc4(%ebp)
405513:	8d 85 50 ff ff ff    	lea    -0xb0(%ebp),%eax
405519:	ff b5 38 ff ff ff    	push   -0xc8(%ebp)
40551f:	50                   	push   %eax
405520:	ff 15 4c f0 40 00    	call   *0x40f04c
405526:	8b f0                	mov    %eax,%esi
405528:	85 f6                	test   %esi,%esi
40552a:	75 72                	jne    0x40559e
40552c:	6a 20                	push   $0x20
40552e:	8d 45 b8             	lea    -0x48(%ebp),%eax
405531:	50                   	push   %eax
405532:	68 5c 04 00 00       	push   $0x45c
405537:	53                   	push   %ebx
405538:	ff 15 20 f1 40 00    	call   *0x40f120
40553e:	85 c0                	test   %eax,%eax
405540:	75 04                	jne    0x405546
405542:	66 89 45 b8          	mov    %ax,-0x48(%ebp)
405546:	6a 20                	push   $0x20
405548:	8d 85 60 ff ff ff    	lea    -0xa0(%ebp),%eax
40554e:	50                   	push   %eax
40554f:	68 5b 04 00 00       	push   $0x45b
405554:	53                   	push   %ebx
405555:	ff 15 20 f1 40 00    	call   *0x40f120
40555b:	85 c0                	test   %eax,%eax
40555d:	75 07                	jne    0x405566
40555f:	66 89 85 60 ff ff ff 	mov    %ax,-0xa0(%ebp)
405566:	ff b5 48 ff ff ff    	push   -0xb8(%ebp)
40556c:	8d 45 b8             	lea    -0x48(%ebp),%eax
40556f:	50                   	push   %eax
405570:	0f b6 85 4f ff ff ff 	movzbl -0xb1(%ebp),%eax
405577:	50                   	push   %eax
405578:	8d 85 60 ff ff ff    	lea    -0xa0(%ebp),%eax
40557e:	50                   	push   %eax
40557f:	68 d0 18 40 00       	push   $0x4018d0
405584:	e8 31 d3 ff ff       	call   0x4028ba
405589:	83 c4 14             	add    $0x14,%esp
40558c:	8b d7                	mov    %edi,%edx
40558e:	b9 2c 19 40 00       	mov    $0x40192c,%ecx
405593:	ff b5 48 ff ff ff    	push   -0xb8(%ebp)
405599:	e8 9c df ff ff       	call   0x40353a
40559e:	57                   	push   %edi
40559f:	ff 15 b0 f0 40 00    	call   *0x40f0b0
4055a5:	81 fe 1d 00 ff ef    	cmp    $0xefff001d,%esi
4055ab:	0f 85 c5 00 00 00    	jne    0x405676
4055b1:	6a 20                	push   $0x20
4055b3:	8d 45 b8             	lea    -0x48(%ebp),%eax
4055b6:	50                   	push   %eax
4055b7:	68 5d 04 00 00       	push   $0x45d
4055bc:	53                   	push   %ebx
4055bd:	ff 15 20 f1 40 00    	call   *0x40f120
4055c3:	85 c0                	test   %eax,%eax
4055c5:	75 04                	jne    0x4055cb
4055c7:	66 89 45 b8          	mov    %ax,-0x48(%ebp)
4055cb:	6a 20                	push   $0x20
4055cd:	8d 85 60 ff ff ff    	lea    -0xa0(%ebp),%eax
4055d3:	50                   	push   %eax
4055d4:	68 5b 04 00 00       	push   $0x45b
4055d9:	53                   	push   %ebx
4055da:	ff 15 20 f1 40 00    	call   *0x40f120
4055e0:	85 c0                	test   %eax,%eax
4055e2:	75 07                	jne    0x4055eb
4055e4:	66 89 85 60 ff ff ff 	mov    %ax,-0xa0(%ebp)
4055eb:	ff b5 44 ff ff ff    	push   -0xbc(%ebp)
4055f1:	8d 45 b8             	lea    -0x48(%ebp),%eax
4055f4:	50                   	push   %eax
4055f5:	0f b6 85 4f ff ff ff 	movzbl -0xb1(%ebp),%eax
4055fc:	50                   	push   %eax
4055fd:	8d 85 60 ff ff ff    	lea    -0xa0(%ebp),%eax
405603:	50                   	push   %eax
405604:	68 40 19 40 00       	push   $0x401940
405609:	e8 ac d2 ff ff       	call   0x4028ba
40560e:	83 c4 14             	add    $0x14,%esp
405611:	8d 55 a4             	lea    -0x5c(%ebp),%edx
405614:	b9 04 14 40 00       	mov    $0x401404,%ecx
405619:	ff b5 44 ff ff ff    	push   -0xbc(%ebp)
40561f:	e8 16 df ff ff       	call   0x40353a
405624:	eb 50                	jmp    0x405676
405626:	6a 20                	push   $0x20
405628:	8d 45 b8             	lea    -0x48(%ebp),%eax
40562b:	50                   	push   %eax
40562c:	68 5f 04 00 00       	push   $0x45f
405631:	53                   	push   %ebx
405632:	ff 15 20 f1 40 00    	call   *0x40f120
405638:	85 c0                	test   %eax,%eax
40563a:	75 04                	jne    0x405640
40563c:	66 89 45 b8          	mov    %ax,-0x48(%ebp)
405640:	ff 77 0c             	push   0xc(%edi)
405643:	eb 1d                	jmp    0x405662
405645:	6a 20                	push   $0x20
405647:	8d 45 b8             	lea    -0x48(%ebp),%eax
40564a:	50                   	push   %eax
40564b:	68 5e 04 00 00       	push   $0x45e
405650:	53                   	push   %ebx
405651:	ff 15 20 f1 40 00    	call   *0x40f120
405657:	85 c0                	test   %eax,%eax
405659:	75 04                	jne    0x40565f
40565b:	66 89 45 b8          	mov    %ax,-0x48(%ebp)
40565f:	ff 77 08             	push   0x8(%edi)
405662:	8d 45 b8             	lea    -0x48(%ebp),%eax
405665:	50                   	push   %eax
405666:	68 a0 19 40 00       	push   $0x4019a0
40566b:	e8 4a d2 ff ff       	call   0x4028ba
405670:	83 c4 0c             	add    $0xc,%esp
405673:	6a 57                	push   $0x57
405675:	5e                   	pop    %esi
405676:	8b 4d fc             	mov    -0x4(%ebp),%ecx
405679:	8b c6                	mov    %esi,%eax
40567b:	5f                   	pop    %edi
40567c:	5e                   	pop    %esi
40567d:	33 cd                	xor    %ebp,%ecx
40567f:	5b                   	pop    %ebx
405680:	e8 4b 34 00 00       	call   0x408ad0
405685:	c9                   	leave
405686:	c3                   	ret
405687:	8b ff                	mov    %edi,%edi
405689:	55                   	push   %ebp
40568a:	8b ec                	mov    %esp,%ebp
40568c:	81 ec d4 00 00 00    	sub    $0xd4,%esp
405692:	a1 04 a0 40 00       	mov    0x40a004,%eax
405697:	33 c5                	xor    %ebp,%eax
405699:	89 45 fc             	mov    %eax,-0x4(%ebp)
40569c:	53                   	push   %ebx
40569d:	56                   	push   %esi
40569e:	57                   	push   %edi
40569f:	6a 40                	push   $0x40
4056a1:	33 db                	xor    %ebx,%ebx
4056a3:	8d 85 60 ff ff ff    	lea    -0xa0(%ebp),%eax
4056a9:	53                   	push   %ebx
4056aa:	50                   	push   %eax
4056ab:	8b fa                	mov    %edx,%edi
4056ad:	8b f1                	mov    %ecx,%esi
4056af:	e8 30 3a 00 00       	call   0x4090e4
4056b4:	83 c4 0c             	add    $0xc,%esp
4056b7:	8d 45 b8             	lea    -0x48(%ebp),%eax
4056ba:	6a 40                	push   $0x40
4056bc:	53                   	push   %ebx
4056bd:	50                   	push   %eax
4056be:	e8 21 3a 00 00       	call   0x4090e4
4056c3:	83 c4 0c             	add    $0xc,%esp
4056c6:	83 fe 06             	cmp    $0x6,%esi
4056c9:	74 0f                	je     0x4056da
4056cb:	6a 10                	push   $0x10
4056cd:	59                   	pop    %ecx
4056ce:	e8 8c d3 ff ff       	call   0x402a5f
4056d3:	8b f3                	mov    %ebx,%esi
4056d5:	e9 49 02 00 00       	jmp    0x405923
4056da:	8b 4f 08             	mov    0x8(%edi),%ecx
4056dd:	8d 95 50 ff ff ff    	lea    -0xb0(%ebp),%edx
4056e3:	e8 ac e3 ff ff       	call   0x403a94
4056e8:	84 c0                	test   %al,%al
4056ea:	0f 84 02 02 00 00    	je     0x4058f2
4056f0:	51                   	push   %ecx
4056f1:	51                   	push   %ecx
4056f2:	8b 4f 0c             	mov    0xc(%edi),%ecx
4056f5:	8d 95 30 ff ff ff    	lea    -0xd0(%ebp),%edx
4056fb:	e8 f8 e2 ff ff       	call   0x4039f8
405700:	85 c0                	test   %eax,%eax
405702:	0f 84 cb 01 00 00    	je     0x4058d3