405033:	8b f8                	mov    %eax,%edi
405035:	85 ff                	test   %edi,%edi
405037:	0f 85 83 01 00 00    	jne    0x4051c0
40503d:	8d 55 80             	lea    -0x80(%ebp),%edx
405040:	89 95 64 ff ff ff    	mov    %edx,-0x9c(%ebp)
405046:	6a 10                	push   $0x10
405048:	eb 77                	jmp    0x4050c1
40504a:	8b b5 70 ff ff ff    	mov    -0x90(%ebp),%esi
405050:	8b d6                	mov    %esi,%edx
405052:	8b fa                	mov    %edx,%edi
405054:	89 95 64 ff ff ff    	mov    %edx,-0x9c(%ebp)
40505a:	8d 4f 01             	lea    0x1(%edi),%ecx
40505d:	8a 07                	mov    (%edi),%al
40505f:	47                   	inc    %edi
405060:	84 c0                	test   %al,%al
405062:	75 f9                	jne    0x40505d
405064:	2b f9                	sub    %ecx,%edi
405066:	eb 5a                	jmp    0x4050c2
405068:	68 5a 04 00 00       	push   $0x45a
40506d:	e8 1d d9 ff ff       	call   0x40298f
405072:	59                   	pop    %ecx
405073:	33 ff                	xor    %edi,%edi
405075:	e9 46 01 00 00       	jmp    0x4051c0
40507a:	8d 85 68 ff ff ff    	lea    -0x98(%ebp),%eax
405080:	c7 85 68 ff ff ff 80 	movl   $0x80,-0x98(%ebp)
405087:	00 00 00
40508a:	50                   	push   %eax
40508b:	8d 85 78 ff ff ff    	lea    -0x88(%ebp),%eax
405091:	50                   	push   %eax
405092:	6a 00                	push   $0x0
405094:	6a 02                	push   $0x2
405096:	56                   	push   %esi
405097:	ff 15 c0 f0 40 00    	call   *0x40f0c0
40509d:	8b f8                	mov    %eax,%edi
40509f:	85 ff                	test   %edi,%edi
4050a1:	0f 85 19 01 00 00    	jne    0x4051c0
4050a7:	8b 85 7c ff ff ff    	mov    -0x84(%ebp),%eax
4050ad:	89 85 58 ff ff ff    	mov    %eax,-0xa8(%ebp)
4050b3:	8d 85 58 ff ff ff    	lea    -0xa8(%ebp),%eax
4050b9:	89 85 64 ff ff ff    	mov    %eax,-0x9c(%ebp)
4050bf:	6a 04                	push   $0x4
4050c1:	5f                   	pop    %edi
4050c2:	8b 43 1c             	mov    0x1c(%ebx),%eax
4050c5:	33 c9                	xor    %ecx,%ecx
4050c7:	6a 2a                	push   $0x2a
4050c9:	5a                   	pop    %edx
4050ca:	89 8d 70 ff ff ff    	mov    %ecx,-0x90(%ebp)
4050d0:	66 39 10             	cmp    %dx,(%eax)
4050d3:	75 04                	jne    0x4050d9
4050d5:	33 d2                	xor    %edx,%edx
4050d7:	eb 40                	jmp    0x405119
4050d9:	51                   	push   %ecx
4050da:	8d 95 70 ff ff ff    	lea    -0x90(%ebp),%edx
4050e0:	8b c8                	mov    %eax,%ecx
4050e2:	e8 eb de ff ff       	call   0x402fd2
4050e7:	8b 95 70 ff ff ff    	mov    -0x90(%ebp),%edx
4050ed:	8b c8                	mov    %eax,%ecx
4050ef:	89 8d 50 ff ff ff    	mov    %ecx,-0xb0(%ebp)
4050f5:	8d 42 01             	lea    0x1(%edx),%eax
4050f8:	89 85 6c ff ff ff    	mov    %eax,-0x94(%ebp)
4050fe:	8a 02                	mov    (%edx),%al
405100:	42                   	inc    %edx
405101:	84 c0                	test   %al,%al
405103:	75 f9                	jne    0x4050fe
405105:	2b 95 6c ff ff ff    	sub    -0x94(%ebp),%edx
40510b:	85 c9                	test   %ecx,%ecx
40510d:	0f 85 a7 00 00 00    	jne    0x4051ba
405113:	8b 8d 70 ff ff ff    	mov    -0x90(%ebp),%ecx
405119:	8b 43 20             	mov    0x20(%ebx),%eax
40511c:	6a 2a                	push   $0x2a
40511e:	5b                   	pop    %ebx
40511f:	0f b7 00             	movzwl (%eax),%eax
405122:	66 3b c3             	cmp    %bx,%ax
405125:	74 11                	je     0x405138
405127:	83 f8 74             	cmp    $0x74,%eax
40512a:	74 0c                	je     0x405138
40512c:	c6 85 6c ff ff ff 00 	movb   $0x0,-0x94(%ebp)
405133:	83 f8 54             	cmp    $0x54,%eax
405136:	75 07                	jne    0x40513f
405138:	c6 85 6c ff ff ff 01 	movb   $0x1,-0x94(%ebp)
40513f:	8b 85 54 ff ff ff    	mov    -0xac(%ebp),%eax
405145:	ff b5 6c ff ff ff    	push   -0x94(%ebp)
40514b:	83 a5 34 ff ff ff 00 	andl   $0x0,-0xcc(%ebp)
405152:	89 85 30 ff ff ff    	mov    %eax,-0xd0(%ebp)
405158:	8a 85 77 ff ff ff    	mov    -0x89(%ebp),%al
40515e:	88 85 38 ff ff ff    	mov    %al,-0xc8(%ebp)
405164:	8b 85 64 ff ff ff    	mov    -0x9c(%ebp),%eax
40516a:	89 85 40 ff ff ff    	mov    %eax,-0xc0(%ebp)
405170:	8d 85 28 ff ff ff    	lea    -0xd8(%ebp),%eax
405176:	50                   	push   %eax
405177:	ff b5 60 ff ff ff    	push   -0xa0(%ebp)
40517d:	c7 85 28 ff ff ff 01 	movl   $0x1,-0xd8(%ebp)
405184:	00 00 00
405187:	ff b5 5c ff ff ff    	push   -0xa4(%ebp)
40518d:	89 bd 3c ff ff ff    	mov    %edi,-0xc4(%ebp)
405193:	89 95 44 ff ff ff    	mov    %edx,-0xbc(%ebp)
405199:	89 8d 48 ff ff ff    	mov    %ecx,-0xb8(%ebp)
40519f:	ff 15 34 f0 40 00    	call   *0x40f034
4051a5:	8b f8                	mov    %eax,%edi
4051a7:	8b 85 70 ff ff ff    	mov    -0x90(%ebp),%eax
4051ad:	85 c0                	test   %eax,%eax
4051af:	74 0f                	je     0x4051c0
4051b1:	50                   	push   %eax
4051b2:	ff 15 b0 f0 40 00    	call   *0x40f0b0
4051b8:	eb 06                	jmp    0x4051c0
4051ba:	8b bd 50 ff ff ff    	mov    -0xb0(%ebp),%edi
4051c0:	56                   	push   %esi
4051c1:	ff 15 b0 f0 40 00    	call   *0x40f0b0
4051c7:	8b c7                	mov    %edi,%eax
4051c9:	8b 4d fc             	mov    -0x4(%ebp),%ecx
4051cc:	5f                   	pop    %edi
4051cd:	5e                   	pop    %esi
4051ce:	33 cd                	xor    %ebp,%ecx
4051d0:	5b                   	pop    %ebx
4051d1:	e8 fa 38 00 00       	call   0x408ad0
4051d6:	c9                   	leave
4051d7:	c3                   	ret
4051d8:	8b ff                	mov    %edi,%edi
4051da:	55                   	push   %ebp
4051db:	8b ec                	mov    %esp,%ebp
4051dd:	81 ec b4 00 00 00    	sub    $0xb4,%esp
4051e3:	a1 04 a0 40 00       	mov    0x40a004,%eax
4051e8:	33 c5                	xor    %ebp,%eax
4051ea:	89 45 fc             	mov    %eax,-0x4(%ebp)
4051ed:	53                   	push   %ebx
4051ee:	56                   	push   %esi
4051ef:	57                   	push   %edi
4051f0:	33 db                	xor    %ebx,%ebx
4051f2:	8d 45 a8             	lea    -0x58(%ebp),%eax
4051f5:	6a 40                	push   $0x40
4051f7:	53                   	push   %ebx
4051f8:	50                   	push   %eax
4051f9:	8b fa                	mov    %edx,%edi
4051fb:	88 9d 57 ff ff ff    	mov    %bl,-0xa9(%ebp)
405201:	8b f1                	mov    %ecx,%esi
405203:	e8 dc 3e 00 00       	call   0x4090e4
405208:	83 c4 0c             	add    $0xc,%esp
40520b:	8d 85 68 ff ff ff    	lea    -0x98(%ebp),%eax
405211:	6a 40                	push   $0x40
405213:	53                   	push   %ebx
405214:	50                   	push   %eax
405215:	e8 ca 3e 00 00       	call   0x4090e4
40521a:	83 c4 0c             	add    $0xc,%esp
40521d:	83 fe 03             	cmp    $0x3,%esi
405220:	74 0f                	je     0x405231
405222:	6a 12                	push   $0x12
405224:	59                   	pop    %ecx
405225:	e8 35 d8 ff ff       	call   0x402a5f
40522a:	8b f3                	mov    %ebx,%esi
40522c:	e9 c6 01 00 00       	jmp    0x4053f7
405231:	8b 4f 08             	mov    0x8(%edi),%ecx
405234:	8d 95 58 ff ff ff    	lea    -0xa8(%ebp),%edx
40523a:	e8 55 e8 ff ff       	call   0x403a94
40523f:	84 c0                	test   %al,%al
405241:	0f 84 7f 01 00 00    	je     0x4053c6
405247:	8d 45 e8             	lea    -0x18(%ebp),%eax
40524a:	c7 85 4c ff ff ff 12 	movl   $0x12,-0xb4(%ebp)
405251:	00 00 00
405254:	50                   	push   %eax
405255:	8d 85 4c ff ff ff    	lea    -0xb4(%ebp),%eax
40525b:	89 9d 50 ff ff ff    	mov    %ebx,-0xb0(%ebp)
405261:	50                   	push   %eax
405262:	53                   	push   %ebx
405263:	8d 85 50 ff ff ff    	lea    -0xb0(%ebp),%eax
405269:	50                   	push   %eax
40526a:	8d 85 57 ff ff ff    	lea    -0xa9(%ebp),%eax
405270:	50                   	push   %eax
405271:	8d 85 58 ff ff ff    	lea    -0xa8(%ebp),%eax
405277:	50                   	push   %eax
405278:	ff 15 70 f0 40 00    	call   *0x40f070
40527e:	8b f0                	mov    %eax,%esi
405280:	83 fe 7a             	cmp    $0x7a,%esi
405283:	0f 85 bc 00 00 00    	jne    0x405345
405289:	ff b5 50 ff ff ff    	push   -0xb0(%ebp)
40528f:	ff 15 a4 f0 40 00    	call   *0x40f0a4
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