405feb:	ff 15 d8 10 40 00    	call   *0x4010d8
405ff1:	8b 0d c4 0a 89 00    	mov    0x890ac4,%ecx
405ff7:	a1 bc cf 45 00       	mov    0x45cfbc,%eax
405ffc:	6b c9 14             	imul   $0x14,%ecx,%ecx
405fff:	8b 15 c8 0a 89 00    	mov    0x890ac8,%edx
406005:	2b c8                	sub    %eax,%ecx
406007:	8d 4c 11 ec          	lea    -0x14(%ecx,%edx,1),%ecx
40600b:	51                   	push   %ecx
40600c:	8d 48 14             	lea    0x14(%eax),%ecx
40600f:	51                   	push   %ecx
406010:	50                   	push   %eax
406011:	e8 9a 1b 00 00       	call   0x407bb0
406016:	8b 45 08             	mov    0x8(%ebp),%eax
406019:	83 c4 0c             	add    $0xc,%esp
40601c:	ff 0d c4 0a 89 00    	decl   0x890ac4
406022:	3b 05 bc cf 45 00    	cmp    0x45cfbc,%eax
406028:	76 04                	jbe    0x40602e
40602a:	83 6d 08 14          	subl   $0x14,0x8(%ebp)
40602e:	a1 c8 0a 89 00       	mov    0x890ac8,%eax
406033:	a3 d0 0a 89 00       	mov    %eax,0x890ad0
406038:	8b 45 08             	mov    0x8(%ebp),%eax
40603b:	a3 bc cf 45 00       	mov    %eax,0x45cfbc
406040:	89 3d d8 0a 89 00    	mov    %edi,0x890ad8
406046:	5b                   	pop    %ebx
406047:	5f                   	pop    %edi
406048:	5e                   	pop    %esi
406049:	c9                   	leave
40604a:	c3                   	ret
40604b:	a1 d4 0a 89 00       	mov    0x890ad4,%eax
406050:	56                   	push   %esi
406051:	8b 35 c4 0a 89 00    	mov    0x890ac4,%esi
406057:	57                   	push   %edi
406058:	33 ff                	xor    %edi,%edi
40605a:	3b f0                	cmp    %eax,%esi
40605c:	75 34                	jne    0x406092
40605e:	83 c0 10             	add    $0x10,%eax
406061:	6b c0 14             	imul   $0x14,%eax,%eax
406064:	50                   	push   %eax
406065:	ff 35 c8 0a 89 00    	push   0x890ac8
40606b:	57                   	push   %edi
40606c:	ff 35 dc cd 45 00    	push   0x45cddc
406072:	ff 15 0c 11 40 00    	call   *0x40110c
406078:	3b c7                	cmp    %edi,%eax
40607a:	75 04                	jne    0x406080
40607c:	33 c0                	xor    %eax,%eax
40607e:	eb 78                	jmp    0x4060f8
406080:	83 05 d4 0a 89 00 10 	addl   $0x10,0x890ad4
406087:	8b 35 c4 0a 89 00    	mov    0x890ac4,%esi
40608d:	a3 c8 0a 89 00       	mov    %eax,0x890ac8
406092:	6b f6 14             	imul   $0x14,%esi,%esi
406095:	03 35 c8 0a 89 00    	add    0x890ac8,%esi
40609b:	68 c4 41 00 00       	push   $0x41c4
4060a0:	6a 08                	push   $0x8
4060a2:	ff 35 dc cd 45 00    	push   0x45cddc
4060a8:	ff 15 04 11 40 00    	call   *0x401104
4060ae:	89 46 10             	mov    %eax,0x10(%esi)
4060b1:	3b c7                	cmp    %edi,%eax
4060b3:	74 c7                	je     0x40607c
4060b5:	6a 04                	push   $0x4
4060b7:	68 00 20 00 00       	push   $0x2000
4060bc:	68 00 00 10 00       	push   $0x100000
4060c1:	57                   	push   %edi
4060c2:	ff 15 08 11 40 00    	call   *0x401108
4060c8:	89 46 0c             	mov    %eax,0xc(%esi)
4060cb:	3b c7                	cmp    %edi,%eax
4060cd:	75 12                	jne    0x4060e1
4060cf:	ff 76 10             	push   0x10(%esi)
4060d2:	57                   	push   %edi
4060d3:	ff 35 dc cd 45 00    	push   0x45cddc
4060d9:	ff 15 d8 10 40 00    	call   *0x4010d8
4060df:	eb 9b                	jmp    0x40607c
4060e1:	83 4e 08 ff          	orl    $0xffffffff,0x8(%esi)
4060e5:	89 3e                	mov    %edi,(%esi)
4060e7:	89 7e 04             	mov    %edi,0x4(%esi)
4060ea:	ff 05 c4 0a 89 00    	incl   0x890ac4
4060f0:	8b 46 10             	mov    0x10(%esi),%eax
4060f3:	83 08 ff             	orl    $0xffffffff,(%eax)
4060f6:	8b c6                	mov    %esi,%eax
4060f8:	5f                   	pop    %edi
4060f9:	5e                   	pop    %esi
4060fa:	c3                   	ret
4060fb:	8b ff                	mov    %edi,%edi
4060fd:	55                   	push   %ebp
4060fe:	8b ec                	mov    %esp,%ebp
406100:	51                   	push   %ecx
406101:	51                   	push   %ecx
406102:	8b 4d 08             	mov    0x8(%ebp),%ecx
406105:	8b 41 08             	mov    0x8(%ecx),%eax
406108:	53                   	push   %ebx
406109:	56                   	push   %esi
40610a:	8b 71 10             	mov    0x10(%ecx),%esi
40610d:	57                   	push   %edi
40610e:	33 db                	xor    %ebx,%ebx
406110:	eb 03                	jmp    0x406115
406112:	03 c0                	add    %eax,%eax
406114:	43                   	inc    %ebx
406115:	85 c0                	test   %eax,%eax
406117:	7d f9                	jge    0x406112
406119:	8b c3                	mov    %ebx,%eax
40611b:	69 c0 04 02 00 00    	imul   $0x204,%eax,%eax
406121:	8d 84 30 44 01 00 00 	lea    0x144(%eax,%esi,1),%eax
406128:	6a 3f                	push   $0x3f
40612a:	89 45 f8             	mov    %eax,-0x8(%ebp)
40612d:	5a                   	pop    %edx
40612e:	89 40 08             	mov    %eax,0x8(%eax)
406131:	89 40 04             	mov    %eax,0x4(%eax)
406134:	83 c0 08             	add    $0x8,%eax
406137:	4a                   	dec    %edx
406138:	75 f4                	jne    0x40612e
40613a:	6a 04                	push   $0x4
40613c:	8b fb                	mov    %ebx,%edi
40613e:	68 00 10 00 00       	push   $0x1000
406143:	c1 e7 0f             	shl    $0xf,%edi
406146:	03 79 0c             	add    0xc(%ecx),%edi
406149:	68 00 80 00 00       	push   $0x8000
40614e:	57                   	push   %edi
40614f:	ff 15 08 11 40 00    	call   *0x401108
406155:	85 c0                	test   %eax,%eax
406157:	75 08                	jne    0x406161
406159:	83 c8 ff             	or     $0xffffffff,%eax
40615c:	e9 9d 00 00 00       	jmp    0x4061fe
406161:	8d 97 00 70 00 00    	lea    0x7000(%edi),%edx
406167:	89 55 fc             	mov    %edx,-0x4(%ebp)
40616a:	3b fa                	cmp    %edx,%edi
40616c:	77 43                	ja     0x4061b1
40616e:	8b ca                	mov    %edx,%ecx
406170:	2b cf                	sub    %edi,%ecx
406172:	c1 e9 0c             	shr    $0xc,%ecx
406175:	8d 47 10             	lea    0x10(%edi),%eax
406178:	41                   	inc    %ecx
406179:	83 48 f8 ff          	orl    $0xffffffff,-0x8(%eax)
40617d:	83 88 ec 0f 00 00 ff 	orl    $0xffffffff,0xfec(%eax)
406184:	8d 90 fc 0f 00 00    	lea    0xffc(%eax),%edx
40618a:	89 10                	mov    %edx,(%eax)
40618c:	8d 90 fc ef ff ff    	lea    -0x1004(%eax),%edx
406192:	c7 40 fc f0 0f 00 00 	movl   $0xff0,-0x4(%eax)
406199:	89 50 04             	mov    %edx,0x4(%eax)
40619c:	c7 80 e8 0f 00 00 f0 	movl   $0xff0,0xfe8(%eax)
4061a3:	0f 00 00
4061a6:	05 00 10 00 00       	add    $0x1000,%eax
4061ab:	49                   	dec    %ecx
4061ac:	75 cb                	jne    0x406179
4061ae:	8b 55 fc             	mov    -0x4(%ebp),%edx
4061b1:	8b 45 f8             	mov    -0x8(%ebp),%eax
4061b4:	05 f8 01 00 00       	add    $0x1f8,%eax
4061b9:	8d 4f 0c             	lea    0xc(%edi),%ecx
4061bc:	89 48 04             	mov    %ecx,0x4(%eax)
4061bf:	89 41 08             	mov    %eax,0x8(%ecx)
4061c2:	8d 4a 0c             	lea    0xc(%edx),%ecx
4061c5:	89 48 08             	mov    %ecx,0x8(%eax)
4061c8:	89 41 04             	mov    %eax,0x4(%ecx)
4061cb:	83 64 9e 44 00       	andl   $0x0,0x44(%esi,%ebx,4)
4061d0:	33 ff                	xor    %edi,%edi
4061d2:	47                   	inc    %edi
4061d3:	89 bc 9e c4 00 00 00 	mov    %edi,0xc4(%esi,%ebx,4)
4061da:	8a 46 43             	mov    0x43(%esi),%al
4061dd:	8a c8                	mov    %al,%cl
4061df:	fe c1                	inc    %cl
4061e1:	84 c0                	test   %al,%al
4061e3:	8b 45 08             	mov    0x8(%ebp),%eax
4061e6:	88 4e 43             	mov    %cl,0x43(%esi)
4061e9:	75 03                	jne    0x4061ee
4061eb:	09 78 04             	or     %edi,0x4(%eax)
4061ee:	ba 00 00 00 80       	mov    $0x80000000,%edx
4061f3:	8b cb                	mov    %ebx,%ecx
4061f5:	d3 ea                	shr    %cl,%edx
4061f7:	f7 d2                	not    %edx
4061f9:	21 50 08             	and    %edx,0x8(%eax)
4061fc:	8b c3                	mov    %ebx,%eax
4061fe:	5f                   	pop    %edi
4061ff:	5e                   	pop    %esi
406200:	5b                   	pop    %ebx
406201:	c9                   	leave
406202:	c3                   	ret
406203:	8b ff                	mov    %edi,%edi
406205:	55                   	push   %ebp
406206:	8b ec                	mov    %esp,%ebp
406208:	83 ec 0c             	sub    $0xc,%esp
40620b:	8b 4d 08             	mov    0x8(%ebp),%ecx
40620e:	8b 41 10             	mov    0x10(%ecx),%eax
406211:	53                   	push   %ebx
406212:	56                   	push   %esi
406213:	8b 75 10             	mov    0x10(%ebp),%esi
406216:	57                   	push   %edi
406217:	8b 7d 0c             	mov    0xc(%ebp),%edi
40621a:	8b d7                	mov    %edi,%edx
40621c:	2b 51 0c             	sub    0xc(%ecx),%edx
40621f:	83 c6 17             	add    $0x17,%esi
406222:	c1 ea 0f             	shr    $0xf,%edx
406225:	8b ca                	mov    %edx,%ecx
406227:	69 c9 04 02 00 00    	imul   $0x204,%ecx,%ecx
40622d:	8d 8c 01 44 01 00 00 	lea    0x144(%ecx,%eax,1),%ecx
406234:	89 4d f4             	mov    %ecx,-0xc(%ebp)
406237:	8b 4f fc             	mov    -0x4(%edi),%ecx
40623a:	83 e6 f0             	and    $0xfffffff0,%esi
40623d:	49                   	dec    %ecx
40623e:	3b f1                	cmp    %ecx,%esi
406240:	8d 7c 39 fc          	lea    -0x4(%ecx,%edi,1),%edi
406244:	8b 1f                	mov    (%edi),%ebx
406246:	89 4d 10             	mov    %ecx,0x10(%ebp)
406249:	89 5d fc             	mov    %ebx,-0x4(%ebp)
40624c:	0f 8e 55 01 00 00    	jle    0x4063a7
406252:	f6 c3 01             	test   $0x1,%bl
406255:	0f 85 45 01 00 00    	jne    0x4063a0
40625b:	03 d9                	add    %ecx,%ebx
40625d:	3b f3                	cmp    %ebx,%esi
40625f:	0f 8f 3b 01 00 00    	jg     0x4063a0
406265:	8b 4d fc             	mov    -0x4(%ebp),%ecx
406268:	c1 f9 04             	sar    $0x4,%ecx
40626b:	49                   	dec    %ecx
40626c:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40626f:	83 f9 3f             	cmp    $0x3f,%ecx
406272:	76 06                	jbe    0x40627a
406274:	6a 3f                	push   $0x3f
406276:	59                   	pop    %ecx
406277:	89 4d f8             	mov    %ecx,-0x8(%ebp)
40627a:	8b 5f 04             	mov    0x4(%edi),%ebx
40627d:	3b 5f 08             	cmp    0x8(%edi),%ebx
406280:	75 43                	jne    0x4062c5
406282:	bb 00 00 00 80       	mov    $0x80000000,%ebx
406287:	83 f9 20             	cmp    $0x20,%ecx
40628a:	73 1a                	jae    0x4062a6
40628c:	d3 eb                	shr    %cl,%ebx
40628e:	8b 4d f8             	mov    -0x8(%ebp),%ecx
406291:	8d 4c 01 04          	lea    0x4(%ecx,%eax,1),%ecx
406295:	f7 d3                	not    %ebx
406297:	21 5c 90 44          	and    %ebx,0x44(%eax,%edx,4)
40629b:	fe 09                	decb   (%ecx)
40629d:	75 26                	jne    0x4062c5
40629f:	8b 4d 08             	mov    0x8(%ebp),%ecx
4062a2:	21 19                	and    %ebx,(%ecx)
4062a4:	eb 1f                	jmp    0x4062c5
4062a6:	83 c1 e0             	add    $0xffffffe0,%ecx
4062a9:	d3 eb                	shr    %cl,%ebx
4062ab:	8b 4d f8             	mov    -0x8(%ebp),%ecx
4062ae:	8d 4c 01 04          	lea    0x4(%ecx,%eax,1),%ecx
4062b2:	f7 d3                	not    %ebx
4062b4:	21 9c 90 c4 00 00 00 	and    %ebx,0xc4(%eax,%edx,4)
4062bb:	fe 09                	decb   (%ecx)
4062bd:	75 06                	jne    0x4062c5
4062bf:	8b 4d 08             	mov    0x8(%ebp),%ecx
4062c2:	21 59 04             	and    %ebx,0x4(%ecx)
4062c5:	8b 4f 08             	mov    0x8(%edi),%ecx
4062c8:	8b 5f 04             	mov    0x4(%edi),%ebx
4062cb:	89 59 04             	mov    %ebx,0x4(%ecx)
4062ce:	8b 4f 04             	mov    0x4(%edi),%ecx
4062d1:	8b 7f 08             	mov    0x8(%edi),%edi
4062d4:	89 79 08             	mov    %edi,0x8(%ecx)
4062d7:	8b 4d 10             	mov    0x10(%ebp),%ecx
4062da:	2b ce                	sub    %esi,%ecx
4062dc:	01 4d fc             	add    %ecx,-0x4(%ebp)
4062df:	83 7d fc 00          	cmpl   $0x0,-0x4(%ebp)
4062e3:	0f 8e a5 00 00 00    	jle    0x40638e
4062e9:	8b 7d fc             	mov    -0x4(%ebp),%edi
4062ec:	8b 4d 0c             	mov    0xc(%ebp),%ecx
4062ef:	c1 ff 04             	sar    $0x4,%edi
4062f2:	4f                   	dec    %edi
4062f3:	8d 4c 31 fc          	lea    -0x4(%ecx,%esi,1),%ecx
4062f7:	83 ff 3f             	cmp    $0x3f,%edi
4062fa:	76 03                	jbe    0x4062ff
4062fc:	6a 3f                	push   $0x3f
4062fe:	5f                   	pop    %edi
4062ff:	8b 5d f4             	mov    -0xc(%ebp),%ebx
406302:	8d 1c fb             	lea    (%ebx,%edi,8),%ebx
406305:	89 5d 10             	mov    %ebx,0x10(%ebp)
406308:	8b 5b 04             	mov    0x4(%ebx),%ebx
40630b:	89 59 04             	mov    %ebx,0x4(%ecx)
40630e:	8b 5d 10             	mov    0x10(%ebp),%ebx
406311:	89 59 08             	mov    %ebx,0x8(%ecx)
406314:	89 4b 04             	mov    %ecx,0x4(%ebx)
406317:	8b 59 04             	mov    0x4(%ecx),%ebx
40631a:	89 4b 08             	mov    %ecx,0x8(%ebx)
40631d:	8b 59 04             	mov    0x4(%ecx),%ebx
406320:	3b 59 08             	cmp    0x8(%ecx),%ebx
406323:	75 57                	jne    0x40637c
406325:	8a 4c 07 04          	mov    0x4(%edi,%eax,1),%cl
406329:	88 4d 13             	mov    %cl,0x13(%ebp)
40632c:	fe c1                	inc    %cl
40632e:	88 4c 07 04          	mov    %cl,0x4(%edi,%eax,1)
406332:	83 ff 20             	cmp    $0x20,%edi
406335:	73 1c                	jae    0x406353
406337:	80 7d 13 00          	cmpb   $0x0,0x13(%ebp)
40633b:	75 0e                	jne    0x40634b
40633d:	8b cf                	mov    %edi,%ecx
40633f:	bb 00 00 00 80       	mov    $0x80000000,%ebx
406344:	d3 eb                	shr    %cl,%ebx
406346:	8b 4d 08             	mov    0x8(%ebp),%ecx
406349:	09 19                	or     %ebx,(%ecx)
40634b:	8d 44 90 44          	lea    0x44(%eax,%edx,4),%eax
40634f:	8b cf                	mov    %edi,%ecx
406351:	eb 20                	jmp    0x406373
406353:	80 7d 13 00          	cmpb   $0x0,0x13(%ebp)
406357:	75 10                	jne    0x406369
406359:	8d 4f e0             	lea    -0x20(%edi),%ecx
40635c:	bb 00 00 00 80       	mov    $0x80000000,%ebx
406361:	d3 eb                	shr    %cl,%ebx
406363:	8b 4d 08             	mov    0x8(%ebp),%ecx
406366:	09 59 04             	or     %ebx,0x4(%ecx)
406369:	8d 84 90 c4 00 00 00 	lea    0xc4(%eax,%edx,4),%eax
406370:	8d 4f e0             	lea    -0x20(%edi),%ecx
406373:	ba 00 00 00 80       	mov    $0x80000000,%edx
406378:	d3 ea                	shr    %cl,%edx
40637a:	09 10                	or     %edx,(%eax)
40637c:	8b 55 0c             	mov    0xc(%ebp),%edx
40637f:	8b 4d fc             	mov    -0x4(%ebp),%ecx
406382:	8d 44 32 fc          	lea    -0x4(%edx,%esi,1),%eax
406386:	89 08                	mov    %ecx,(%eax)
406388:	89 4c 01 fc          	mov    %ecx,-0x4(%ecx,%eax,1)
40638c:	eb 03                	jmp    0x406391
40638e:	8b 55 0c             	mov    0xc(%ebp),%edx
406391:	8d 46 01             	lea    0x1(%esi),%eax
406394:	89 42 fc             	mov    %eax,-0x4(%edx)
406397:	89 44 32 f8          	mov    %eax,-0x8(%edx,%esi,1)
40639b:	e9 3c 01 00 00       	jmp    0x4064dc
4063a0:	33 c0                	xor    %eax,%eax
4063a2:	e9 38 01 00 00       	jmp    0x4064df
4063a7:	0f 8d 2f 01 00 00    	jge    0x4064dc
4063ad:	8b 5d 0c             	mov    0xc(%ebp),%ebx
4063b0:	29 75 10             	sub    %esi,0x10(%ebp)
4063b3:	8d 4e 01             	lea    0x1(%esi),%ecx
4063b6:	89 4b fc             	mov    %ecx,-0x4(%ebx)
4063b9:	8d 5c 33 fc          	lea    -0x4(%ebx,%esi,1),%ebx
4063bd:	8b 75 10             	mov    0x10(%ebp),%esi
4063c0:	c1 fe 04             	sar    $0x4,%esi
4063c3:	4e                   	dec    %esi
4063c4:	89 5d 0c             	mov    %ebx,0xc(%ebp)
4063c7:	89 4b fc             	mov    %ecx,-0x4(%ebx)
4063ca:	83 fe 3f             	cmp    $0x3f,%esi
4063cd:	76 03                	jbe    0x4063d2
4063cf:	6a 3f                	push   $0x3f
4063d1:	5e                   	pop    %esi
4063d2:	f6 45 fc 01          	testb  $0x1,-0x4(%ebp)
4063d6:	0f 85 80 00 00 00    	jne    0x40645c
4063dc:	8b 75 fc             	mov    -0x4(%ebp),%esi
4063df:	c1 fe 04             	sar    $0x4,%esi
4063e2:	4e                   	dec    %esi
4063e3:	83 fe 3f             	cmp    $0x3f,%esi
4063e6:	76 03                	jbe    0x4063eb
4063e8:	6a 3f                	push   $0x3f
4063ea:	5e                   	pop    %esi
4063eb:	8b 4f 04             	mov    0x4(%edi),%ecx
4063ee:	3b 4f 08             	cmp    0x8(%edi),%ecx
4063f1:	75 42                	jne    0x406435
4063f3:	bb 00 00 00 80       	mov    $0x80000000,%ebx
4063f8:	83 fe 20             	cmp    $0x20,%esi
4063fb:	73 19                	jae    0x406416
4063fd:	8b ce                	mov    %esi,%ecx
4063ff:	d3 eb                	shr    %cl,%ebx
406401:	8d 74 06 04          	lea    0x4(%esi,%eax,1),%esi
406405:	f7 d3                	not    %ebx