4040fa:	8b f8                	mov    %eax,%edi
4040fc:	85 ff                	test   %edi,%edi
4040fe:	74 49                	je     0x404149
404100:	57                   	push   %edi
404101:	8d 45 b8             	lea    -0x48(%ebp),%eax
404104:	50                   	push   %eax
404105:	ff 15 90 f0 40 00    	call   *0x40f090
40410b:	8b f0                	mov    %eax,%esi
40410d:	85 f6                	test   %esi,%esi
40410f:	75 3b                	jne    0x40414c
404111:	6a 20                	push   $0x20
404113:	8d 45 bc             	lea    -0x44(%ebp),%eax
404116:	50                   	push   %eax
404117:	68 83 04 00 00       	push   $0x483
40411c:	53                   	push   %ebx
40411d:	ff 15 20 f1 40 00    	call   *0x40f120
404123:	85 c0                	test   %eax,%eax
404125:	75 04                	jne    0x40412b
404127:	66 89 45 bc          	mov    %ax,-0x44(%ebp)
40412b:	ff 75 b8             	push   -0x48(%ebp)
40412e:	ba e0 11 40 00       	mov    $0x4011e0,%edx
404133:	8d 4d bc             	lea    -0x44(%ebp),%ecx
404136:	57                   	push   %edi
404137:	e8 a2 f3 ff ff       	call   0x4034de
40413c:	68 c4 13 40 00       	push   $0x4013c4
404141:	e8 74 e7 ff ff       	call   0x4028ba
404146:	59                   	pop    %ecx
404147:	eb 03                	jmp    0x40414c
404149:	6a 08                	push   $0x8
40414b:	5e                   	pop    %esi
40414c:	5f                   	pop    %edi
40414d:	8b 4d fc             	mov    -0x4(%ebp),%ecx
404150:	8b c6                	mov    %esi,%eax
404152:	5e                   	pop    %esi
404153:	33 cd                	xor    %ebp,%ecx
404155:	5b                   	pop    %ebx
404156:	e8 75 49 00 00       	call   0x408ad0
40415b:	c9                   	leave
40415c:	c3                   	ret
40415d:	8b ff                	mov    %edi,%edi
40415f:	55                   	push   %ebp
404160:	8b ec                	mov    %esp,%ebp
404162:	81 ec 4c 02 00 00    	sub    $0x24c,%esp
404168:	a1 04 a0 40 00       	mov    0x40a004,%eax
40416d:	33 c5                	xor    %ebp,%eax
40416f:	89 45 fc             	mov    %eax,-0x4(%ebp)
404172:	53                   	push   %ebx
404173:	56                   	push   %esi
404174:	57                   	push   %edi
404175:	6a 04                	push   $0x4
404177:	8b f9                	mov    %ecx,%edi
404179:	8b f2                	mov    %edx,%esi
40417b:	5b                   	pop    %ebx
40417c:	3b fb                	cmp    %ebx,%edi
40417e:	7d 0f                	jge    0x40418f
404180:	6a 29                	push   $0x29
404182:	59                   	pop    %ecx
404183:	e8 d7 e8 ff ff       	call   0x402a5f
404188:	33 c0                	xor    %eax,%eax
40418a:	e9 3d 01 00 00       	jmp    0x4042cc
40418f:	8b 46 08             	mov    0x8(%esi),%eax
404192:	89 85 bc fd ff ff    	mov    %eax,-0x244(%ebp)
404198:	8b 46 0c             	mov    0xc(%esi),%eax
40419b:	6a 2a                	push   $0x2a
40419d:	89 85 b8 fd ff ff    	mov    %eax,-0x248(%ebp)
4041a3:	c7 85 c4 fd ff ff 20 	movl   $0x20,-0x23c(%ebp)
4041aa:	00 00 00
4041ad:	58                   	pop    %eax
4041ae:	7e 12                	jle    0x4041c2
4041b0:	8b 4e 10             	mov    0x10(%esi),%ecx
4041b3:	66 39 01             	cmp    %ax,(%ecx)
4041b6:	74 0a                	je     0x4041c2
4041b8:	e8 b9 fa ff ff       	call   0x403c76
4041bd:	6a 2a                	push   $0x2a
4041bf:	8b d8                	mov    %eax,%ebx
4041c1:	58                   	pop    %eax
4041c2:	83 ff 05             	cmp    $0x5,%edi
4041c5:	7e 13                	jle    0x4041da
4041c7:	8b 4e 14             	mov    0x14(%esi),%ecx
4041ca:	66 39 01             	cmp    %ax,(%ecx)
4041cd:	74 0b                	je     0x4041da
4041cf:	e8 a2 fa ff ff       	call   0x403c76
4041d4:	89 85 c4 fd ff ff    	mov    %eax,-0x23c(%ebp)
4041da:	83 ff 06             	cmp    $0x6,%edi
4041dd:	7e 14                	jle    0x4041f3
4041df:	8b 4e 18             	mov    0x18(%esi),%ecx
4041e2:	6a 2a                	push   $0x2a
4041e4:	58                   	pop    %eax
4041e5:	66 39 01             	cmp    %ax,(%ecx)
4041e8:	74 09                	je     0x4041f3
4041ea:	e8 87 fa ff ff       	call   0x403c76
4041ef:	8b f8                	mov    %eax,%edi
4041f1:	eb 05                	jmp    0x4041f8
4041f3:	bf 88 13 00 00       	mov    $0x1388,%edi
4041f8:	8b 8d b8 fd ff ff    	mov    -0x248(%ebp),%ecx
4041fe:	8d 85 d4 fd ff ff    	lea    -0x22c(%ebp),%eax
404204:	50                   	push   %eax
404205:	e8 9b 44 00 00       	call   0x4086a5
40420a:	8b f0                	mov    %eax,%esi
40420c:	85 f6                	test   %esi,%esi
40420e:	0f 85 b6 00 00 00    	jne    0x4042ca
404214:	8b 85 c4 fd ff ff    	mov    -0x23c(%ebp),%eax
40421a:	21 b5 c0 fd ff ff    	and    %esi,-0x240(%ebp)
404220:	6a 08                	push   $0x8
404222:	89 85 cc fd ff ff    	mov    %eax,-0x234(%ebp)
404228:	8d 85 b4 fd ff ff    	lea    -0x24c(%ebp),%eax
40422e:	50                   	push   %eax
40422f:	8d 85 c0 fd ff ff    	lea    -0x240(%ebp),%eax
404235:	89 9d c8 fd ff ff    	mov    %ebx,-0x238(%ebp)
40423b:	50                   	push   %eax
40423c:	68 30 02 00 00       	push   $0x230
404241:	8d 85 c8 fd ff ff    	lea    -0x238(%ebp),%eax
404247:	89 bd d0 fd ff ff    	mov    %edi,-0x230(%ebp)
40424d:	50                   	push   %eax
40424e:	6a 0a                	push   $0xa
404250:	ff b5 bc fd ff ff    	push   -0x244(%ebp)
404256:	56                   	push   %esi
404257:	68 3c 24 40 00       	push   $0x40243c
40425c:	ff 15 a0 f0 40 00    	call   *0x40f0a0
404262:	8b f0                	mov    %eax,%esi
404264:	85 f6                	test   %esi,%esi
404266:	75 35                	jne    0x40429d
404268:	8b 85 c0 fd ff ff    	mov    -0x240(%ebp),%eax
40426e:	8b 30                	mov    (%eax),%esi
404270:	85 f6                	test   %esi,%esi
404272:	75 1e                	jne    0x404292
404274:	ff 70 04             	push   0x4(%eax)
404277:	57                   	push   %edi
404278:	ff b5 c4 fd ff ff    	push   -0x23c(%ebp)
40427e:	53                   	push   %ebx
40427f:	68 3f 04 00 00       	push   $0x43f
404284:	e8 06 e7 ff ff       	call   0x40298f
404289:	8b 85 c0 fd ff ff    	mov    -0x240(%ebp),%eax
40428f:	83 c4 14             	add    $0x14,%esp
404292:	50                   	push   %eax
404293:	ff 15 b0 f0 40 00    	call   *0x40f0b0
404299:	85 f6                	test   %esi,%esi
40429b:	74 22                	je     0x4042bf
40429d:	68 28 16 40 00       	push   $0x401628
4042a2:	ff b5 bc fd ff ff    	push   -0x244(%ebp)
4042a8:	ff 15 e8 f1 40 00    	call   *0x40f1e8
4042ae:	59                   	pop    %ecx
4042af:	59                   	pop    %ecx
4042b0:	85 c0                	test   %eax,%eax
4042b2:	75 0b                	jne    0x4042bf
4042b4:	68 40 04 00 00       	push   $0x440
4042b9:	e8 d1 e6 ff ff       	call   0x40298f
4042be:	59                   	pop    %ecx
4042bf:	81 fe 68 10 00 00    	cmp    $0x1068,%esi
4042c5:	75 03                	jne    0x4042ca
4042c7:	6a 32                	push   $0x32
4042c9:	5e                   	pop    %esi
4042ca:	8b c6                	mov    %esi,%eax
4042cc:	8b 4d fc             	mov    -0x4(%ebp),%ecx
4042cf:	5f                   	pop    %edi
4042d0:	5e                   	pop    %esi
4042d1:	33 cd                	xor    %ebp,%ecx
4042d3:	5b                   	pop    %ebx
4042d4:	e8 f7 47 00 00       	call   0x408ad0
4042d9:	c9                   	leave
4042da:	c3                   	ret
4042db:	cc                   	int3
4042dc:	cc                   	int3
4042dd:	cc                   	int3
4042de:	cc                   	int3
4042df:	cc                   	int3
4042e0:	8b ff                	mov    %edi,%edi
4042e2:	55                   	push   %ebp
4042e3:	8b ec                	mov    %esp,%ebp
4042e5:	83 ec 10             	sub    $0x10,%esp
4042e8:	53                   	push   %ebx
4042e9:	56                   	push   %esi
4042ea:	57                   	push   %edi
4042eb:	8b 7d 14             	mov    0x14(%ebp),%edi
4042ee:	8b 4f 40             	mov    0x40(%edi),%ecx
4042f1:	83 c1 04             	add    $0x4,%ecx
4042f4:	33 db                	xor    %ebx,%ebx
4042f6:	8d 51 02             	lea    0x2(%ecx),%edx
4042f9:	66 8b 01             	mov    (%ecx),%ax
4042fc:	83 c1 02             	add    $0x2,%ecx
4042ff:	66 3b c3             	cmp    %bx,%ax
404302:	75 f5                	jne    0x4042f9
404304:	2b ca                	sub    %edx,%ecx
404306:	d1 f9                	sar    $1,%ecx
404308:	8d 41 02             	lea    0x2(%ecx),%eax
40430b:	89 45 fc             	mov    %eax,-0x4(%ebp)
40430e:	8d 04 45 08 02 00 00 	lea    0x208(,%eax,2),%eax
404315:	50                   	push   %eax
404316:	ff 15 a4 f0 40 00    	call   *0x40f0a4
40431c:	8b d8                	mov    %eax,%ebx
40431e:	89 5d f4             	mov    %ebx,-0xc(%ebp)
404321:	85 db                	test   %ebx,%ebx
404323:	0f 84 18 01 00 00    	je     0x404441
404329:	8b 4f 40             	mov    0x40(%edi),%ecx
40432c:	8d b3 08 02 00 00    	lea    0x208(%ebx),%esi
404332:	8b 55 fc             	mov    -0x4(%ebp),%edx
404335:	83 c1 04             	add    $0x4,%ecx
404338:	51                   	push   %ecx
404339:	8b ce                	mov    %esi,%ecx
40433b:	e8 20 e4 ff ff       	call   0x402760
404340:	8b 55 fc             	mov    -0x4(%ebp),%edx
404343:	8b ce                	mov    %esi,%ecx
404345:	68 dc 11 40 00       	push   $0x4011dc
40434a:	e8 46 e4 ff ff       	call   0x402795
40434f:	68 04 01 00 00       	push   $0x104
404354:	53                   	push   %ebx
404355:	56                   	push   %esi
404356:	ff 15 00 f1 40 00    	call   *0x40f100
40435c:	85 c0                	test   %eax,%eax
40435e:	0f 84 cc 00 00 00    	je     0x404430
404364:	8d 45 f8             	lea    -0x8(%ebp),%eax
404367:	8b cb                	mov    %ebx,%ecx
404369:	50                   	push   %eax
40436a:	8d 55 fc             	lea    -0x4(%ebp),%edx
40436d:	e8 a2 43 00 00       	call   0x408714
404372:	8b f0                	mov    %eax,%esi
404374:	85 f6                	test   %esi,%esi
404376:	0f 85 bc 00 00 00    	jne    0x404438
40437c:	50                   	push   %eax
40437d:	68 80 00 00 00       	push   $0x80
404382:	6a 03                	push   $0x3
404384:	50                   	push   %eax
404385:	8b 47 40             	mov    0x40(%edi),%eax
404388:	6a 03                	push   $0x3
40438a:	68 00 00 00 80       	push   $0x80000000
40438f:	83 c0 04             	add    $0x4,%eax
404392:	50                   	push   %eax
404393:	ff 15 f4 f0 40 00    	call   *0x40f0f4
404399:	8b d8                	mov    %eax,%ebx
40439b:	83 fb ff             	cmp    $0xffffffff,%ebx
40439e:	74 7a                	je     0x40441a
4043a0:	8b 4d f8             	mov    -0x8(%ebp),%ecx
4043a3:	8d 04 09             	lea    (%ecx,%ecx,1),%eax
4043a6:	8d 88 20 60 00 00    	lea    0x6020(%eax),%ecx
4043ac:	89 45 f8             	mov    %eax,-0x8(%ebp)
4043af:	51                   	push   %ecx
4043b0:	ff 15 a4 f0 40 00    	call   *0x40f0a4
4043b6:	8b f0                	mov    %eax,%esi
4043b8:	89 77 44             	mov    %esi,0x44(%edi)
4043bb:	85 f6                	test   %esi,%esi
4043bd:	74 4f                	je     0x40440e
4043bf:	33 c9                	xor    %ecx,%ecx
4043c1:	8d 45 f0             	lea    -0x10(%ebp),%eax
4043c4:	51                   	push   %ecx
4043c5:	50                   	push   %eax
4043c6:	68 20 60 00 00       	push   $0x6020
4043cb:	56                   	push   %esi
4043cc:	51                   	push   %ecx
4043cd:	51                   	push   %ecx
4043ce:	68 00 00 56 00       	push   $0x560000
4043d3:	53                   	push   %ebx
4043d4:	ff 15 18 f1 40 00    	call   *0x40f118
4043da:	85 c0                	test   %eax,%eax
4043dc:	74 19                	je     0x4043f7
4043de:	ff 75 f8             	push   -0x8(%ebp)
4043e1:	8d 86 20 60 00 00    	lea    0x6020(%esi),%eax
4043e7:	ff 75 fc             	push   -0x4(%ebp)
4043ea:	50                   	push   %eax
4043eb:	e8 ee 4c 00 00       	call   0x4090de
4043f0:	83 c4 0c             	add    $0xc,%esp
4043f3:	33 f6                	xor    %esi,%esi
4043f5:	eb 1a                	jmp    0x404411
4043f7:	ff 77 44             	push   0x44(%edi)
4043fa:	ff 15 b0 f0 40 00    	call   *0x40f0b0
404400:	83 67 44 00          	andl   $0x0,0x44(%edi)
404404:	ff 15 e0 f0 40 00    	call   *0x40f0e0
40440a:	8b f0                	mov    %eax,%esi
40440c:	eb 03                	jmp    0x404411
40440e:	6a 08                	push   $0x8
404410:	5e                   	pop    %esi
404411:	53                   	push   %ebx
404412:	ff 15 08 f1 40 00    	call   *0x40f108
404418:	eb 08                	jmp    0x404422
40441a:	ff 15 e0 f0 40 00    	call   *0x40f0e0
404420:	8b f0                	mov    %eax,%esi
404422:	ff 75 fc             	push   -0x4(%ebp)
404425:	ff 15 b0 f0 40 00    	call   *0x40f0b0
40442b:	8b 5d f4             	mov    -0xc(%ebp),%ebx
40442e:	eb 08                	jmp    0x404438
404430:	ff 15 e0 f0 40 00    	call   *0x40f0e0
404436:	8b f0                	mov    %eax,%esi
404438:	53                   	push   %ebx
404439:	ff 15 b0 f0 40 00    	call   *0x40f0b0
40443f:	eb 03                	jmp    0x404444
404441:	6a 08                	push   $0x8
404443:	5e                   	pop    %esi
404444:	5f                   	pop    %edi
404445:	8b c6                	mov    %esi,%eax
404447:	5e                   	pop    %esi
404448:	5b                   	pop    %ebx
404449:	c9                   	leave
40444a:	c2 10 00             	ret    $0x10
40444d:	8b ff                	mov    %edi,%edi
40444f:	55                   	push   %ebp
404450:	8b ec                	mov    %esp,%ebp
404452:	51                   	push   %ecx
404453:	53                   	push   %ebx
404454:	56                   	push   %esi
404455:	33 f6                	xor    %esi,%esi
404457:	89 55 fc             	mov    %edx,-0x4(%ebp)
40445a:	57                   	push   %edi
40445b:	8b d9                	mov    %ecx,%ebx
40445d:	8b fe                	mov    %esi,%edi
40445f:	b9 5c 24 40 00       	mov    $0x40245c,%ecx
404464:	8b 04 bb             	mov    (%ebx,%edi,4),%eax
404467:	3b 04 b9             	cmp    (%ecx,%edi,4),%eax
40446a:	75 10                	jne    0x40447c
40446c:	47                   	inc    %edi
40446d:	83 ff 04             	cmp    $0x4,%edi
404470:	75 f2                	jne    0x404464
404472:	b9 90 04 00 00       	mov    $0x490,%ecx
404477:	e9 b5 00 00 00       	jmp    0x404531
40447c:	6a 04                	push   $0x4
40447e:	8b ce                	mov    %esi,%ecx
404480:	5f                   	pop    %edi
404481:	8b 04 8b             	mov    (%ebx,%ecx,4),%eax
404484:	ba bc 24 40 00       	mov    $0x4024bc,%edx
404489:	3b 04 8a             	cmp    (%edx,%ecx,4),%eax
40448c:	8b 55 fc             	mov    -0x4(%ebp),%edx
40448f:	75 0f                	jne    0x4044a0
404491:	41                   	inc    %ecx
404492:	3b cf                	cmp    %edi,%ecx
404494:	75 eb                	jne    0x404481
404496:	b9 91 04 00 00       	mov    $0x491,%ecx
40449b:	e9 91 00 00 00       	jmp    0x404531
4044a0:	8b ce                	mov    %esi,%ecx
4044a2:	8b 04 8b             	mov    (%ebx,%ecx,4),%eax
4044a5:	ba 7c 24 40 00       	mov    $0x40247c,%edx
4044aa:	3b 04 8a             	cmp    (%edx,%ecx,4),%eax
4044ad:	8b 55 fc             	mov    -0x4(%ebp),%edx
4044b0:	75 07                	jne    0x4044b9
4044b2:	41                   	inc    %ecx
4044b3:	3b cf                	cmp    %edi,%ecx
4044b5:	75 eb                	jne    0x4044a2
4044b7:	eb dd                	jmp    0x404496
4044b9:	8b ce                	mov    %esi,%ecx
4044bb:	8b 04 8b             	mov    (%ebx,%ecx,4),%eax
4044be:	ba 9c 24 40 00       	mov    $0x40249c,%edx
4044c3:	3b 04 8a             	cmp    (%edx,%ecx,4),%eax
4044c6:	8b 55 fc             	mov    -0x4(%ebp),%edx
4044c9:	75 0c                	jne    0x4044d7
4044cb:	41                   	inc    %ecx
4044cc:	3b cf                	cmp    %edi,%ecx
4044ce:	75 eb                	jne    0x4044bb
4044d0:	b9 92 04 00 00       	mov    $0x492,%ecx
4044d5:	eb 5a                	jmp    0x404531
4044d7:	8b ce                	mov    %esi,%ecx
4044d9:	8b 04 8b             	mov    (%ebx,%ecx,4),%eax
4044dc:	ba 6c 24 40 00       	mov    $0x40246c,%edx
4044e1:	3b 04 8a             	cmp    (%edx,%ecx,4),%eax