506fc8:	8b 00                	mov    (%eax),%eax
506fca:	8b 40 08             	mov    0x8(%eax),%eax
506fcd:	89 45 fc             	mov    %eax,-0x4(%ebp)
506fd0:	85 c0                	test   %eax,%eax
506fd2:	74 eb                	je     0x506fbf
506fd4:	83 38 00             	cmpl   $0x0,(%eax)
506fd7:	53                   	push   %ebx
506fd8:	56                   	push   %esi
506fd9:	57                   	push   %edi
506fda:	c7 45 f4 00 00 00 00 	movl   $0x0,-0xc(%ebp)
506fe1:	0f 8e 2a 01 00 00    	jle    0x507111
506fe7:	8d 58 04             	lea    0x4(%eax),%ebx
506fea:	8b d0                	mov    %eax,%edx
506fec:	89 5d f8             	mov    %ebx,-0x8(%ebp)
506fef:	90                   	nop
506ff0:	8b 33                	mov    (%ebx),%esi
506ff2:	85 f6                	test   %esi,%esi
506ff4:	74 20                	je     0x507016
506ff6:	8b 46 04             	mov    0x4(%esi),%eax
506ff9:	a9 00 10 04 00       	test   $0x41000,%eax
506ffe:	74 16                	je     0x507016
507000:	a9 00 00 04 00       	test   $0x40000,%eax
507005:	74 08                	je     0x50700f
507007:	8b 46 14             	mov    0x14(%esi),%eax
50700a:	8b 70 04             	mov    0x4(%eax),%esi
50700d:	eb 03                	jmp    0x507012
50700f:	8b 76 0c             	mov    0xc(%esi),%esi
507012:	85 f6                	test   %esi,%esi
507014:	75 e0                	jne    0x506ff6
507016:	80 3e a4             	cmpb   $0xa4,(%esi)
507019:	75 42                	jne    0x50705d
50701b:	8b 45 10             	mov    0x10(%ebp),%eax
50701e:	39 46 1c             	cmp    %eax,0x1c(%esi)
507021:	75 3a                	jne    0x50705d
507023:	0f b7 56 20          	movzwl 0x20(%esi),%edx
507027:	66 85 d2             	test   %dx,%dx
50702a:	0f 88 ee 00 00 00    	js     0x50711e
507030:	8b 45 0c             	mov    0xc(%ebp),%eax
507033:	33 c9                	xor    %ecx,%ecx
507035:	0f b7 70 32          	movzwl 0x32(%eax),%esi
507039:	85 f6                	test   %esi,%esi
50703b:	0f 84 d9 00 00 00    	je     0x50711a
507041:	8b 40 04             	mov    0x4(%eax),%eax
507044:	66 3b 10             	cmp    (%eax),%dx
507047:	0f 84 d1 00 00 00    	je     0x50711e
50704d:	41                   	inc    %ecx
50704e:	83 c0 02             	add    $0x2,%eax
507051:	3b ce                	cmp    %esi,%ecx
507053:	7c ef                	jl     0x507044
507055:	8b 4d 0c             	mov    0xc(%ebp),%ecx
507058:	e9 9c 00 00 00       	jmp    0x5070f9
50705d:	8b 41 28             	mov    0x28(%ecx),%eax
507060:	85 c0                	test   %eax,%eax
507062:	0f 84 94 00 00 00    	je     0x5070fc
507068:	33 db                	xor    %ebx,%ebx
50706a:	33 ff                	xor    %edi,%edi
50706c:	66 3b 59 32          	cmp    0x32(%ecx),%bx
507070:	8b 5d f8             	mov    -0x8(%ebp),%ebx
507073:	0f 83 83 00 00 00    	jae    0x5070fc
507079:	8d 58 04             	lea    0x4(%eax),%ebx
50707c:	0f 1f 40 00          	nopl   0x0(%eax)
507080:	8b 41 04             	mov    0x4(%ecx),%eax
507083:	66 83 3c 78 fe       	cmpw   $0xfffe,(%eax,%edi,2)
507088:	75 60                	jne    0x5070ea
50708a:	8b 0b                	mov    (%ebx),%ecx
50708c:	85 c9                	test   %ecx,%ecx
50708e:	74 20                	je     0x5070b0
507090:	8b 41 04             	mov    0x4(%ecx),%eax
507093:	a9 00 10 04 00       	test   $0x41000,%eax
507098:	74 16                	je     0x5070b0
50709a:	a9 00 00 04 00       	test   $0x40000,%eax
50709f:	74 08                	je     0x5070a9
5070a1:	8b 41 14             	mov    0x14(%ecx),%eax
5070a4:	8b 48 04             	mov    0x4(%eax),%ecx
5070a7:	eb 03                	jmp    0x5070ac
5070a9:	8b 49 0c             	mov    0xc(%ecx),%ecx
5070ac:	85 c9                	test   %ecx,%ecx
5070ae:	75 e0                	jne    0x507090
5070b0:	8b c6                	mov    %esi,%eax
5070b2:	8b 50 04             	mov    0x4(%eax),%edx
5070b5:	f7 c2 00 10 04 00    	test   $0x41000,%edx
5070bb:	74 17                	je     0x5070d4
5070bd:	f7 c2 00 00 04 00    	test   $0x40000,%edx
5070c3:	74 08                	je     0x5070cd
5070c5:	8b 40 14             	mov    0x14(%eax),%eax
5070c8:	8b 40 04             	mov    0x4(%eax),%eax
5070cb:	eb 03                	jmp    0x5070d0
5070cd:	8b 40 0c             	mov    0xc(%eax),%eax
5070d0:	85 c0                	test   %eax,%eax
5070d2:	75 de                	jne    0x5070b2
5070d4:	ff 75 10             	push   0x10(%ebp)
5070d7:	51                   	push   %ecx
5070d8:	50                   	push   %eax
5070d9:	6a 00                	push   $0x0
5070db:	e8 f0 f3 01 00       	call   0x5264d0
5070e0:	83 c4 10             	add    $0x10,%esp
5070e3:	85 c0                	test   %eax,%eax
5070e5:	74 37                	je     0x50711e
5070e7:	8b 4d 0c             	mov    0xc(%ebp),%ecx
5070ea:	0f b7 41 32          	movzwl 0x32(%ecx),%eax
5070ee:	47                   	inc    %edi
5070ef:	83 c3 14             	add    $0x14,%ebx
5070f2:	3b f8                	cmp    %eax,%edi
5070f4:	7c 8a                	jl     0x507080
5070f6:	8b 5d f8             	mov    -0x8(%ebp),%ebx
5070f9:	8b 55 fc             	mov    -0x4(%ebp),%edx
5070fc:	8b 45 f4             	mov    -0xc(%ebp),%eax
5070ff:	83 c3 14             	add    $0x14,%ebx
507102:	40                   	inc    %eax
507103:	89 5d f8             	mov    %ebx,-0x8(%ebp)
507106:	89 45 f4             	mov    %eax,-0xc(%ebp)
507109:	3b 02                	cmp    (%edx),%eax
50710b:	0f 8c df fe ff ff    	jl     0x506ff0
507111:	5f                   	pop    %edi
507112:	5e                   	pop    %esi
507113:	33 c0                	xor    %eax,%eax
507115:	5b                   	pop    %ebx
507116:	8b e5                	mov    %ebp,%esp
507118:	5d                   	pop    %ebp
507119:	c3                   	ret
50711a:	8b c8                	mov    %eax,%ecx
50711c:	eb db                	jmp    0x5070f9
50711e:	5f                   	pop    %edi
50711f:	5e                   	pop    %esi
507120:	b8 01 00 00 00       	mov    $0x1,%eax
507125:	5b                   	pop    %ebx
507126:	8b e5                	mov    %ebp,%esp
507128:	5d                   	pop    %ebp
507129:	c3                   	ret
50712a:	cc                   	int3
50712b:	cc                   	int3
50712c:	cc                   	int3
50712d:	cc                   	int3
50712e:	cc                   	int3
50712f:	cc                   	int3
507130:	55                   	push   %ebp
507131:	8b ec                	mov    %esp,%ebp
507133:	51                   	push   %ecx
507134:	53                   	push   %ebx
507135:	56                   	push   %esi
507136:	8b 75 14             	mov    0x14(%ebp),%esi
507139:	57                   	push   %edi
50713a:	8b 7d 08             	mov    0x8(%ebp),%edi
50713d:	c7 45 fc 00 00 00 00 	movl   $0x0,-0x4(%ebp)
507144:	80 7f 0c 00          	cmpb   $0x0,0xc(%edi)
507148:	0f 85 ec 00 00 00    	jne    0x50723a
50714e:	8d 46 02             	lea    0x2(%esi),%eax
507151:	3b 47 14             	cmp    0x14(%edi),%eax
507154:	0f 8f e0 00 00 00    	jg     0x50723a
50715a:	ff 77 48             	push   0x48(%edi)
50715d:	e8 de c7 02 00       	call   0x533940
507162:	83 c4 04             	add    $0x4,%esp
507165:	85 c0                	test   %eax,%eax
507167:	74 0c                	je     0x507175
507169:	8b 4d 20             	mov    0x20(%ebp),%ecx
50716c:	5f                   	pop    %edi
50716d:	5e                   	pop    %esi
50716e:	5b                   	pop    %ebx
50716f:	89 01                	mov    %eax,(%ecx)
507171:	8b e5                	mov    %ebp,%esp
507173:	5d                   	pop    %ebp
507174:	c3                   	ret
507175:	8b 47 38             	mov    0x38(%edi),%eax
507178:	89 45 08             	mov    %eax,0x8(%ebp)
50717b:	8d 45 fc             	lea    -0x4(%ebp),%eax
50717e:	50                   	push   %eax
50717f:	56                   	push   %esi
507180:	57                   	push   %edi
507181:	e8 aa bb fe ff       	call   0x4f2d30
507186:	83 c4 0c             	add    $0xc,%esp
507189:	85 c0                	test   %eax,%eax
50718b:	75 dc                	jne    0x507169
50718d:	8b 5d 10             	mov    0x10(%ebp),%ebx
507190:	8d 46 02             	lea    0x2(%esi),%eax
507193:	0f b7 c0             	movzwl %ax,%eax
507196:	29 47 14             	sub    %eax,0x14(%edi)
507199:	83 7d 1c 00          	cmpl   $0x0,0x1c(%ebp)
50719d:	74 26                	je     0x5071c5
50719f:	8d 46 fc             	lea    -0x4(%esi),%eax
5071a2:	8b 75 fc             	mov    -0x4(%ebp),%esi
5071a5:	50                   	push   %eax
5071a6:	8d 43 04             	lea    0x4(%ebx),%eax
5071a9:	50                   	push   %eax
5071aa:	8b 45 08             	mov    0x8(%ebp),%eax
5071ad:	83 c0 04             	add    $0x4,%eax
5071b0:	03 c6                	add    %esi,%eax
5071b2:	50                   	push   %eax
5071b3:	e8 48 bd 0d 00       	call   0x5e2f00
5071b8:	8b 45 08             	mov    0x8(%ebp),%eax
5071bb:	8b 4d 1c             	mov    0x1c(%ebp),%ecx
5071be:	0f c9                	bswap  %ecx
5071c0:	89 0c 30             	mov    %ecx,(%eax,%esi,1)
5071c3:	eb 0e                	jmp    0x5071d3
5071c5:	8b 45 08             	mov    0x8(%ebp),%eax
5071c8:	03 45 fc             	add    -0x4(%ebp),%eax
5071cb:	56                   	push   %esi
5071cc:	53                   	push   %ebx
5071cd:	50                   	push   %eax
5071ce:	e8 2d bd 0d 00       	call   0x5e2f00
5071d3:	8b 47 40             	mov    0x40(%edi),%eax
5071d6:	83 c4 0c             	add    $0xc,%esp
5071d9:	8b 4d 0c             	mov    0xc(%ebp),%ecx
5071dc:	8d 34 48             	lea    (%eax,%ecx,2),%esi
5071df:	0f b7 47 18          	movzwl 0x18(%edi),%eax
5071e3:	2b c1                	sub    %ecx,%eax
5071e5:	03 c0                	add    %eax,%eax
5071e7:	50                   	push   %eax
5071e8:	8d 46 02             	lea    0x2(%esi),%eax
5071eb:	56                   	push   %esi
5071ec:	50                   	push   %eax
5071ed:	e8 8e c2 0d 00       	call   0x5e3480
5071f2:	8b 4d fc             	mov    -0x4(%ebp),%ecx
5071f5:	83 c4 0c             	add    $0xc,%esp
5071f8:	8b c1                	mov    %ecx,%eax
5071fa:	88 4e 01             	mov    %cl,0x1(%esi)
5071fd:	8b 4d 08             	mov    0x8(%ebp),%ecx
507200:	c1 f8 08             	sar    $0x8,%eax
507203:	88 06                	mov    %al,(%esi)
507205:	0f b6 47 09          	movzbl 0x9(%edi),%eax
507209:	66 ff 47 18          	incw   0x18(%edi)
50720d:	80 44 08 04 01       	addb   $0x1,0x4(%eax,%ecx,1)
507212:	75 08                	jne    0x50721c
507214:	0f b6 47 09          	movzbl 0x9(%edi),%eax
507218:	fe 44 08 03          	incb   0x3(%eax,%ecx,1)
50721c:	8b 47 34             	mov    0x34(%edi),%eax
50721f:	80 78 11 00          	cmpb   $0x0,0x11(%eax)
507223:	74 51                	je     0x507276
507225:	ff 75 20             	push   0x20(%ebp)
507228:	53                   	push   %ebx
507229:	57                   	push   %edi
50722a:	57                   	push   %edi
50722b:	e8 80 99 00 00       	call   0x510bb0
507230:	83 c4 10             	add    $0x10,%esp
507233:	5f                   	pop    %edi
507234:	5e                   	pop    %esi
507235:	5b                   	pop    %ebx
507236:	8b e5                	mov    %ebp,%esp
507238:	5d                   	pop    %ebp
507239:	c3                   	ret
50723a:	8b 5d 18             	mov    0x18(%ebp),%ebx
50723d:	85 db                	test   %ebx,%ebx
50723f:	74 0f                	je     0x507250
507241:	56                   	push   %esi
507242:	ff 75 10             	push   0x10(%ebp)
507245:	53                   	push   %ebx
507246:	e8 b5 bc 0d 00       	call   0x5e2f00
50724b:	83 c4 0c             	add    $0xc,%esp
50724e:	eb 03                	jmp    0x507253
507250:	8b 5d 10             	mov    0x10(%ebp),%ebx
507253:	8b 45 1c             	mov    0x1c(%ebp),%eax
507256:	85 c0                	test   %eax,%eax
507258:	74 04                	je     0x50725e
50725a:	0f c8                	bswap  %eax
50725c:	89 03                	mov    %eax,(%ebx)
50725e:	8a 47 0c             	mov    0xc(%edi),%al
507261:	0f b6 c8             	movzbl %al,%ecx
507264:	fe c0                	inc    %al
507266:	88 47 0c             	mov    %al,0xc(%edi)
507269:	66 8b 45 0c          	mov    0xc(%ebp),%ax
50726d:	89 5c 8f 24          	mov    %ebx,0x24(%edi,%ecx,4)
507271:	66 89 44 4f 1c       	mov    %ax,0x1c(%edi,%ecx,2)
507276:	5f                   	pop    %edi
507277:	5e                   	pop    %esi
507278:	5b                   	pop    %ebx
507279:	8b e5                	mov    %ebp,%esp
50727b:	5d                   	pop    %ebp
50727c:	c3                   	ret
50727d:	cc                   	int3
50727e:	cc                   	int3
50727f:	cc                   	int3
507280:	55                   	push   %ebp
507281:	8b ec                	mov    %esp,%ebp
507283:	8b 55 0c             	mov    0xc(%ebp),%edx
507286:	8b 4d 10             	mov    0x10(%ebp),%ecx
507289:	56                   	push   %esi
50728a:	85 d2                	test   %edx,%edx
50728c:	74 3a                	je     0x5072c8
50728e:	8b 02                	mov    (%edx),%eax
507290:	85 c0                	test   %eax,%eax
507292:	74 05                	je     0x507299
507294:	8b 72 04             	mov    0x4(%edx),%esi
507297:	eb 02                	jmp    0x50729b
507299:	33 f6                	xor    %esi,%esi
50729b:	40                   	inc    %eax
50729c:	89 4a 04             	mov    %ecx,0x4(%edx)
50729f:	89 02                	mov    %eax,(%edx)
5072a1:	85 f6                	test   %esi,%esi
5072a3:	74 23                	je     0x5072c8
5072a5:	89 31                	mov    %esi,(%ecx)
5072a7:	8b 46 04             	mov    0x4(%esi),%eax
5072aa:	89 41 04             	mov    %eax,0x4(%ecx)
5072ad:	8b 46 04             	mov    0x4(%esi),%eax
5072b0:	85 c0                	test   %eax,%eax
5072b2:	74 08                	je     0x5072bc
5072b4:	89 08                	mov    %ecx,(%eax)
5072b6:	89 4e 04             	mov    %ecx,0x4(%esi)
5072b9:	5e                   	pop    %esi
5072ba:	5d                   	pop    %ebp
5072bb:	c3                   	ret
5072bc:	8b 45 08             	mov    0x8(%ebp),%eax
5072bf:	89 48 08             	mov    %ecx,0x8(%eax)
5072c2:	89 4e 04             	mov    %ecx,0x4(%esi)
5072c5:	5e                   	pop    %esi
5072c6:	5d                   	pop    %ebp
5072c7:	c3                   	ret
5072c8:	8b 55 08             	mov    0x8(%ebp),%edx
5072cb:	8b 42 08             	mov    0x8(%edx),%eax
5072ce:	89 01                	mov    %eax,(%ecx)
5072d0:	8b 42 08             	mov    0x8(%edx),%eax
5072d3:	85 c0                	test   %eax,%eax
5072d5:	74 03                	je     0x5072da
5072d7:	89 48 04             	mov    %ecx,0x4(%eax)
5072da:	c7 41 04 00 00 00 00 	movl   $0x0,0x4(%ecx)
5072e1:	89 4a 08             	mov    %ecx,0x8(%edx)
5072e4:	5e                   	pop    %esi
5072e5:	5d                   	pop    %ebp
5072e6:	c3                   	ret
5072e7:	cc                   	int3
5072e8:	cc                   	int3
5072e9:	cc                   	int3
5072ea:	cc                   	int3
5072eb:	cc                   	int3
5072ec:	cc                   	int3
5072ed:	cc                   	int3
5072ee:	cc                   	int3
5072ef:	cc                   	int3
5072f0:	55                   	push   %ebp
5072f1:	8b ec                	mov    %esp,%ebp
5072f3:	56                   	push   %esi
5072f4:	8b 75 08             	mov    0x8(%ebp),%esi
5072f7:	57                   	push   %edi
5072f8:	8b 4e 6c             	mov    0x6c(%esi),%ecx
5072fb:	39 4e 70             	cmp    %ecx,0x70(%esi)
5072fe:	7f 13                	jg     0x507313
507300:	6a 00                	push   $0x0
507302:	6a 01                	push   $0x1
507304:	6a 03                	push   $0x3
507306:	6a 50                	push   $0x50
507308:	56                   	push   %esi
507309:	e8 f2 f1 ff ff       	call   0x506500
50730e:	83 c4 14             	add    $0x14,%esp
507311:	eb 33                	jmp    0x507346
507313:	8d 41 01             	lea    0x1(%ecx),%eax
507316:	89 46 6c             	mov    %eax,0x6c(%esi)
507319:	8d 0c 89             	lea    (%ecx,%ecx,4),%ecx
50731c:	8b 46 68             	mov    0x68(%esi),%eax
50731f:	c7 04 88 50 00 00 00 	movl   $0x50,(%eax,%ecx,4)
507326:	c7 44 88 04 03 00 00 	movl   $0x3,0x4(%eax,%ecx,4)
50732d:	00
50732e:	c7 44 88 08 01 00 00 	movl   $0x1,0x8(%eax,%ecx,4)