4081f5:	39 55 10             	cmp    %edx,0x10(%ebp)
4081f8:	74 12                	je     0x40820c
4081fa:	8b 45 f0             	mov    -0x10(%ebp),%eax
4081fd:	8b 80 90 00 00 00    	mov    0x90(%eax),%eax
408203:	0f b7 04 70          	movzwl (%eax,%esi,2),%eax
408207:	23 45 10             	and    0x10(%ebp),%eax
40820a:	eb 02                	jmp    0x40820e
40820c:	8b c2                	mov    %edx,%eax
40820e:	85 c0                	test   %eax,%eax
408210:	74 03                	je     0x408215
408212:	33 d2                	xor    %edx,%edx
408214:	42                   	inc    %edx
408215:	80 7d fc 00          	cmpb   $0x0,-0x4(%ebp)
408219:	5e                   	pop    %esi
40821a:	74 07                	je     0x408223
40821c:	8b 4d f8             	mov    -0x8(%ebp),%ecx
40821f:	83 61 70 fd          	andl   $0xfffffffd,0x70(%ecx)
408223:	8b c2                	mov    %edx,%eax
408225:	c9                   	leave
408226:	c3                   	ret
408227:	55                   	push   %ebp
408228:	8b ec                	mov    %esp,%ebp
40822a:	6a 04                	push   $0x4
40822c:	6a 00                	push   $0x0
40822e:	ff 75 08             	push   0x8(%ebp)
408231:	6a 00                	push   $0x0
408233:	e8 99 ff ff ff       	call   0x4081d1
408238:	83 c4 10             	add    $0x10,%esp
40823b:	5d                   	pop    %ebp
40823c:	c3                   	ret
40823d:	55                   	push   %ebp
40823e:	8b ec                	mov    %esp,%ebp
408240:	56                   	push   %esi
408241:	8b 75 08             	mov    0x8(%ebp),%esi
408244:	83 fe e0             	cmp    $0xffffffe0,%esi
408247:	77 6f                	ja     0x4082b8
408249:	53                   	push   %ebx
40824a:	57                   	push   %edi
40824b:	a1 54 27 42 00       	mov    0x422754,%eax
408250:	85 c0                	test   %eax,%eax
408252:	75 1d                	jne    0x408271
408254:	e8 4c 2d 00 00       	call   0x40afa5
408259:	6a 1e                	push   $0x1e
40825b:	e8 a2 2d 00 00       	call   0x40b002
408260:	68 ff 00 00 00       	push   $0xff
408265:	e8 4b 28 00 00       	call   0x40aab5
40826a:	a1 54 27 42 00       	mov    0x422754,%eax
40826f:	59                   	pop    %ecx
408270:	59                   	pop    %ecx
408271:	85 f6                	test   %esi,%esi
408273:	74 04                	je     0x408279
408275:	8b ce                	mov    %esi,%ecx
408277:	eb 03                	jmp    0x40827c
408279:	33 c9                	xor    %ecx,%ecx
40827b:	41                   	inc    %ecx
40827c:	51                   	push   %ecx
40827d:	6a 00                	push   $0x0
40827f:	50                   	push   %eax
408280:	ff 15 90 90 41 00    	call   *0x419090
408286:	8b f8                	mov    %eax,%edi
408288:	85 ff                	test   %edi,%edi
40828a:	75 26                	jne    0x4082b2
40828c:	6a 0c                	push   $0xc
40828e:	5b                   	pop    %ebx
40828f:	39 05 90 28 42 00    	cmp    %eax,0x422890
408295:	74 0d                	je     0x4082a4
408297:	56                   	push   %esi
408298:	e8 75 31 00 00       	call   0x40b412
40829d:	59                   	pop    %ecx
40829e:	85 c0                	test   %eax,%eax
4082a0:	75 a9                	jne    0x40824b
4082a2:	eb 07                	jmp    0x4082ab
4082a4:	e8 d4 fe ff ff       	call   0x40817d
4082a9:	89 18                	mov    %ebx,(%eax)
4082ab:	e8 cd fe ff ff       	call   0x40817d
4082b0:	89 18                	mov    %ebx,(%eax)
4082b2:	8b c7                	mov    %edi,%eax
4082b4:	5f                   	pop    %edi
4082b5:	5b                   	pop    %ebx
4082b6:	eb 14                	jmp    0x4082cc
4082b8:	56                   	push   %esi
4082b9:	e8 54 31 00 00       	call   0x40b412
4082be:	59                   	pop    %ecx
4082bf:	e8 b9 fe ff ff       	call   0x40817d
4082c4:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)
4082ca:	33 c0                	xor    %eax,%eax
4082cc:	5e                   	pop    %esi
4082cd:	5d                   	pop    %ebp
4082ce:	c3                   	ret
4082cf:	6a 20                	push   $0x20
4082d1:	68 70 e4 41 00       	push   $0x41e470
4082d6:	e8 d5 2a 00 00       	call   0x40adb0
4082db:	33 db                	xor    %ebx,%ebx
4082dd:	89 5d e4             	mov    %ebx,-0x1c(%ebp)
4082e0:	8b fb                	mov    %ebx,%edi
4082e2:	8b 75 0c             	mov    0xc(%ebp),%esi
4082e5:	85 f6                	test   %esi,%esi
4082e7:	74 70                	je     0x408359
4082e9:	68 ff ff ff 7f       	push   $0x7fffffff
4082ee:	56                   	push   %esi
4082ef:	53                   	push   %ebx
4082f0:	53                   	push   %ebx
4082f1:	8d 45 e4             	lea    -0x1c(%ebp),%eax
4082f4:	50                   	push   %eax
4082f5:	e8 94 73 00 00       	call   0x40f68e
4082fa:	83 c4 14             	add    $0x14,%esp
4082fd:	85 c0                	test   %eax,%eax
4082ff:	74 14                	je     0x408315
408301:	83 f8 16             	cmp    $0x16,%eax
408304:	74 05                	je     0x40830b
408306:	83 f8 22             	cmp    $0x22,%eax
408309:	75 0a                	jne    0x408315
40830b:	53                   	push   %ebx
40830c:	53                   	push   %ebx
40830d:	53                   	push   %ebx
40830e:	53                   	push   %ebx
40830f:	53                   	push   %ebx
408310:	e8 f0 32 00 00       	call   0x40b605
408315:	6a 02                	push   $0x2
408317:	ff 75 e4             	push   -0x1c(%ebp)
40831a:	e8 39 07 00 00       	call   0x408a58
40831f:	59                   	pop    %ecx
408320:	59                   	pop    %ecx
408321:	8b f8                	mov    %eax,%edi
408323:	85 ff                	test   %edi,%edi
408325:	75 07                	jne    0x40832e
408327:	33 c0                	xor    %eax,%eax
408329:	e9 67 01 00 00       	jmp    0x408495
40832e:	6a ff                	push   $0xffffffff
408330:	56                   	push   %esi
408331:	ff 75 e4             	push   -0x1c(%ebp)
408334:	57                   	push   %edi
408335:	53                   	push   %ebx
408336:	e8 53 73 00 00       	call   0x40f68e
40833b:	83 c4 14             	add    $0x14,%esp
40833e:	85 c0                	test   %eax,%eax
408340:	74 17                	je     0x408359
408342:	83 f8 16             	cmp    $0x16,%eax
408345:	74 c4                	je     0x40830b
408347:	83 f8 22             	cmp    $0x22,%eax
40834a:	74 bf                	je     0x40830b
40834c:	85 c0                	test   %eax,%eax
40834e:	74 09                	je     0x408359
408350:	57                   	push   %edi
408351:	e8 c2 cd ff ff       	call   0x405118
408356:	59                   	pop    %ecx
408357:	eb ce                	jmp    0x408327
408359:	57                   	push   %edi
40835a:	8b 75 08             	mov    0x8(%ebp),%esi
40835d:	56                   	push   %esi
40835e:	e8 d5 47 00 00       	call   0x40cb38
408363:	8b d8                	mov    %eax,%ebx
408365:	89 5d 0c             	mov    %ebx,0xc(%ebp)
408368:	57                   	push   %edi
408369:	e8 aa cd ff ff       	call   0x405118
40836e:	83 c4 0c             	add    $0xc,%esp
408371:	85 db                	test   %ebx,%ebx
408373:	74 b2                	je     0x408327
408375:	e8 5c 40 00 00       	call   0x40c3d6
40837a:	89 45 e0             	mov    %eax,-0x20(%ebp)
40837d:	8b 48 6c             	mov    0x6c(%eax),%ecx
408380:	89 4d d0             	mov    %ecx,-0x30(%ebp)
408383:	8b 48 68             	mov    0x68(%eax),%ecx
408386:	89 4d d4             	mov    %ecx,-0x2c(%ebp)
408389:	33 ff                	xor    %edi,%edi
40838b:	89 7d e4             	mov    %edi,-0x1c(%ebp)
40838e:	8d 45 d0             	lea    -0x30(%ebp),%eax
408391:	50                   	push   %eax
408392:	57                   	push   %edi
408393:	53                   	push   %ebx
408394:	57                   	push   %edi
408395:	57                   	push   %edi
408396:	8d 45 e4             	lea    -0x1c(%ebp),%eax
408399:	50                   	push   %eax
40839a:	e8 72 75 00 00       	call   0x40f911
40839f:	83 c4 18             	add    $0x18,%esp
4083a2:	85 c0                	test   %eax,%eax
4083a4:	74 1c                	je     0x4083c2
4083a6:	83 f8 16             	cmp    $0x16,%eax
4083a9:	74 05                	je     0x4083b0
4083ab:	83 f8 22             	cmp    $0x22,%eax
4083ae:	75 0a                	jne    0x4083ba
4083b0:	57                   	push   %edi
4083b1:	57                   	push   %edi
4083b2:	57                   	push   %edi
4083b3:	57                   	push   %edi
4083b4:	57                   	push   %edi
4083b5:	e9 56 ff ff ff       	jmp    0x408310
4083ba:	85 c0                	test   %eax,%eax
4083bc:	0f 85 65 ff ff ff    	jne    0x408327
4083c2:	8b 45 e4             	mov    -0x1c(%ebp),%eax
4083c5:	83 c0 04             	add    $0x4,%eax
4083c8:	50                   	push   %eax
4083c9:	e8 d4 06 00 00       	call   0x408aa2
4083ce:	59                   	pop    %ecx
4083cf:	8b f8                	mov    %eax,%edi
4083d1:	89 7d dc             	mov    %edi,-0x24(%ebp)
4083d4:	85 ff                	test   %edi,%edi
4083d6:	0f 84 4b ff ff ff    	je     0x408327
4083dc:	8d 5f 04             	lea    0x4(%edi),%ebx
4083df:	89 5d d8             	mov    %ebx,-0x28(%ebp)
4083e2:	8d 45 d0             	lea    -0x30(%ebp),%eax
4083e5:	50                   	push   %eax
4083e6:	6a ff                	push   $0xffffffff
4083e8:	ff 75 0c             	push   0xc(%ebp)
4083eb:	ff 75 e4             	push   -0x1c(%ebp)
4083ee:	53                   	push   %ebx
4083ef:	6a 00                	push   $0x0
4083f1:	e8 1b 75 00 00       	call   0x40f911
4083f6:	83 c4 18             	add    $0x18,%esp
4083f9:	85 c0                	test   %eax,%eax
4083fb:	74 1e                	je     0x40841b
4083fd:	83 f8 16             	cmp    $0x16,%eax
408400:	74 05                	je     0x408407
408402:	83 f8 22             	cmp    $0x22,%eax
408405:	75 0c                	jne    0x408413
408407:	33 c0                	xor    %eax,%eax
408409:	50                   	push   %eax
40840a:	50                   	push   %eax
40840b:	50                   	push   %eax
40840c:	50                   	push   %eax
40840d:	50                   	push   %eax
40840e:	e9 fd fe ff ff       	jmp    0x408310
408413:	85 c0                	test   %eax,%eax
408415:	0f 85 35 ff ff ff    	jne    0x408350
40841b:	8b 7d d0             	mov    -0x30(%ebp),%edi
40841e:	6a 0c                	push   $0xc
408420:	e8 82 00 00 00       	call   0x4084a7
408425:	59                   	pop    %ecx
408426:	83 65 fc 00          	andl   $0x0,-0x4(%ebp)
40842a:	03 f6                	add    %esi,%esi
40842c:	8b 44 f7 18          	mov    0x18(%edi,%esi,8),%eax
408430:	85 c0                	test   %eax,%eax
408432:	74 15                	je     0x408449
408434:	50                   	push   %eax
408435:	ff 15 54 90 41 00    	call   *0x419054
40843b:	85 c0                	test   %eax,%eax
40843d:	75 0a                	jne    0x408449
40843f:	ff 74 f7 18          	push   0x18(%edi,%esi,8)
408443:	e8 d0 cc ff ff       	call   0x405118
408448:	59                   	pop    %ecx
408449:	8b 45 e0             	mov    -0x20(%ebp),%eax
40844c:	f6 40 70 02          	testb  $0x2,0x70(%eax)
408450:	75 26                	jne    0x408478
408452:	f6 05 0c 10 42 00 01 	testb  $0x1,0x42100c
408459:	75 1d                	jne    0x408478
40845b:	8b 44 f7 18          	mov    0x18(%edi,%esi,8),%eax
40845f:	85 c0                	test   %eax,%eax
408461:	74 15                	je     0x408478
408463:	50                   	push   %eax
408464:	ff 15 54 90 41 00    	call   *0x419054
40846a:	85 c0                	test   %eax,%eax
40846c:	75 0a                	jne    0x408478
40846e:	ff 74 f7 18          	push   0x18(%edi,%esi,8)
408472:	e8 a1 cc ff ff       	call   0x405118
408477:	59                   	pop    %ecx
408478:	8b 07                	mov    (%edi),%eax
40847a:	8b 4d dc             	mov    -0x24(%ebp),%ecx
40847d:	89 01                	mov    %eax,(%ecx)
40847f:	89 4c f7 18          	mov    %ecx,0x18(%edi,%esi,8)
408483:	89 5c f7 10          	mov    %ebx,0x10(%edi,%esi,8)
408487:	c7 45 fc fe ff ff ff 	movl   $0xfffffffe,-0x4(%ebp)
40848e:	e8 0b 00 00 00       	call   0x40849e
408493:	8b c3                	mov    %ebx,%eax
408495:	e8 5b 29 00 00       	call   0x40adf5
40849a:	c3                   	ret
40849b:	8b 5d d8             	mov    -0x28(%ebp),%ebx
40849e:	6a 0c                	push   $0xc
4084a0:	e8 66 01 00 00       	call   0x40860b
4084a5:	59                   	pop    %ecx
4084a6:	c3                   	ret
4084a7:	55                   	push   %ebp
4084a8:	8b ec                	mov    %esp,%ebp
4084aa:	56                   	push   %esi
4084ab:	8b 75 08             	mov    0x8(%ebp),%esi
4084ae:	83 3c f5 60 07 42 00 	cmpl   $0x0,0x420760(,%esi,8)
4084b5:	00
4084b6:	75 13                	jne    0x4084cb
4084b8:	56                   	push   %esi
4084b9:	e8 71 00 00 00       	call   0x40852f
4084be:	59                   	pop    %ecx
4084bf:	85 c0                	test   %eax,%eax
4084c1:	75 08                	jne    0x4084cb
4084c3:	6a 11                	push   $0x11
4084c5:	e8 01 26 00 00       	call   0x40aacb
4084ca:	59                   	pop    %ecx
4084cb:	ff 34 f5 60 07 42 00 	push   0x420760(,%esi,8)
4084d2:	ff 15 60 90 41 00    	call   *0x419060
4084d8:	5e                   	pop    %esi
4084d9:	5d                   	pop    %ebp
4084da:	c3                   	ret
4084db:	56                   	push   %esi
4084dc:	57                   	push   %edi
4084dd:	be 60 07 42 00       	mov    $0x420760,%esi
4084e2:	8b fe                	mov    %esi,%edi
4084e4:	53                   	push   %ebx
4084e5:	8b 1f                	mov    (%edi),%ebx
4084e7:	85 db                	test   %ebx,%ebx
4084e9:	74 17                	je     0x408502
4084eb:	83 7f 04 01          	cmpl   $0x1,0x4(%edi)
4084ef:	74 11                	je     0x408502
4084f1:	53                   	push   %ebx
4084f2:	ff 15 6c 90 41 00    	call   *0x41906c
4084f8:	53                   	push   %ebx
4084f9:	e8 1a cc ff ff       	call   0x405118
4084fe:	83 27 00             	andl   $0x0,(%edi)
408501:	59                   	pop    %ecx
408502:	83 c7 08             	add    $0x8,%edi
408505:	81 ff 80 08 42 00    	cmp    $0x420880,%edi
40850b:	7c d8                	jl     0x4084e5
40850d:	5b                   	pop    %ebx
40850e:	83 3e 00             	cmpl   $0x0,(%esi)
408511:	74 0e                	je     0x408521
408513:	83 7e 04 01          	cmpl   $0x1,0x4(%esi)
408517:	75 08                	jne    0x408521
408519:	ff 36                	push   (%esi)
40851b:	ff 15 6c 90 41 00    	call   *0x41906c
408521:	83 c6 08             	add    $0x8,%esi
408524:	81 fe 80 08 42 00    	cmp    $0x420880,%esi
40852a:	7c e2                	jl     0x40850e
40852c:	5f                   	pop    %edi
40852d:	5e                   	pop    %esi
40852e:	c3                   	ret
40852f:	6a 08                	push   $0x8
408531:	68 90 e4 41 00       	push   $0x41e490
408536:	e8 75 28 00 00       	call   0x40adb0
40853b:	83 3d 54 27 42 00 00 	cmpl   $0x0,0x422754
408542:	75 18                	jne    0x40855c
408544:	e8 5c 2a 00 00       	call   0x40afa5
408549:	6a 1e                	push   $0x1e
40854b:	e8 b2 2a 00 00       	call   0x40b002
408550:	68 ff 00 00 00       	push   $0xff
408555:	e8 5b 25 00 00       	call   0x40aab5
40855a:	59                   	pop    %ecx
40855b:	59                   	pop    %ecx
40855c:	8b 7d 08             	mov    0x8(%ebp),%edi
40855f:	83 3c fd 60 07 42 00 	cmpl   $0x0,0x420760(,%edi,8)
408566:	00
408567:	75 5b                	jne    0x4085c4
408569:	6a 18                	push   $0x18
40856b:	e8 32 05 00 00       	call   0x408aa2
408570:	59                   	pop    %ecx
408571:	8b f0                	mov    %eax,%esi
408573:	85 f6                	test   %esi,%esi
408575:	75 0f                	jne    0x408586
408577:	e8 01 fc ff ff       	call   0x40817d
40857c:	c7 00 0c 00 00 00    	movl   $0xc,(%eax)
408582:	33 c0                	xor    %eax,%eax
408584:	eb 41                	jmp    0x4085c7
408586:	6a 0a                	push   $0xa