506f4b:	8a 4c 24 28          	mov    0x28(%esp),%cl
506f4f:	89 48 1c             	mov    %ecx,0x1c(%eax)
506f52:	8b 07                	mov    (%edi),%eax
506f54:	c7 40 14 55 00 00 00 	movl   $0x55,0x14(%eax)
506f5b:	ba 02 00 00 00       	mov    $0x2,%edx
506f60:	8b c7                	mov    %edi,%eax
506f62:	8b 08                	mov    (%eax),%ecx
506f64:	ff 51 04             	call   *0x4(%ecx)
506f67:	81 7c 24 08 00 01 00 	cmpl   $0x100,0x8(%esp)
506f6e:	00
506f6f:	7f 09                	jg     0x506f7a
506f71:	8b 44 24 08          	mov    0x8(%esp),%eax
506f75:	3b 04 24             	cmp    (%esp),%eax
506f78:	7e 0f                	jle    0x506f89
506f7a:	8b 17                	mov    (%edi),%edx
506f7c:	8b c7                	mov    %edi,%eax
506f7e:	c7 42 14 1c 00 00 00 	movl   $0x1c,0x14(%edx)
506f85:	8b 10                	mov    (%eax),%edx
506f87:	ff 12                	call   *(%edx)
506f89:	33 ed                	xor    %ebp,%ebp
506f8b:	8d 44 24 2c          	lea    0x2c(%esp),%eax
506f8f:	89 44 24 14          	mov    %eax,0x14(%esp)
506f93:	3b 6c 24 08          	cmp    0x8(%esp),%ebp
506f97:	7d 3a                	jge    0x506fd3
506f99:	85 f6                	test   %esi,%esi
506f9b:	75 21                	jne    0x506fbe
506f9d:	8b 5c 24 0c          	mov    0xc(%esp),%ebx
506fa1:	8b c7                	mov    %edi,%eax
506fa3:	ff 53 0c             	call   *0xc(%ebx)
506fa6:	85 c0                	test   %eax,%eax
506fa8:	75 07                	jne    0x506fb1
506faa:	33 c0                	xor    %eax,%eax
506fac:	e9 d1 00 00 00       	jmp    0x507082
506fb1:	8b 54 24 0c          	mov    0xc(%esp),%edx
506fb5:	8b 44 24 0c          	mov    0xc(%esp),%eax
506fb9:	8b 70 04             	mov    0x4(%eax),%esi
506fbc:	8b 1a                	mov    (%edx),%ebx
506fbe:	4e                   	dec    %esi
506fbf:	8b 44 24 14          	mov    0x14(%esp),%eax
506fc3:	8a 13                	mov    (%ebx),%dl
506fc5:	88 10                	mov    %dl,(%eax)
506fc7:	43                   	inc    %ebx
506fc8:	45                   	inc    %ebp
506fc9:	ff 44 24 14          	incl   0x14(%esp)
506fcd:	3b 6c 24 08          	cmp    0x8(%esp),%ebp
506fd1:	7c c6                	jl     0x506f99
506fd3:	8b 4c 24 08          	mov    0x8(%esp),%ecx
506fd7:	29 0c 24             	sub    %ecx,(%esp)
506fda:	f6 44 24 04 10       	testb  $0x10,0x4(%esp)
506fdf:	74 16                	je     0x506ff7
506fe1:	83 6c 24 04 10       	subl   $0x10,0x4(%esp)
506fe6:	8b 6c 24 04          	mov    0x4(%esp),%ebp
506fea:	c1 e5 02             	shl    $0x2,%ebp
506fed:	03 ef                	add    %edi,%ebp
506fef:	81 c5 c0 00 00 00    	add    $0xc0,%ebp
506ff5:	eb 0f                	jmp    0x507006
506ff7:	8b 6c 24 04          	mov    0x4(%esp),%ebp
506ffb:	c1 e5 02             	shl    $0x2,%ebp
506ffe:	03 ef                	add    %edi,%ebp
507000:	81 c5 b0 00 00 00    	add    $0xb0,%ebp
507006:	83 7c 24 04 00       	cmpl   $0x0,0x4(%esp)
50700b:	7c 07                	jl     0x507014
50700d:	83 7c 24 04 04       	cmpl   $0x4,0x4(%esp)
507012:	7c 16                	jl     0x50702a
507014:	8b 07                	mov    (%edi),%eax
507016:	c7 40 14 1d 00 00 00 	movl   $0x1d,0x14(%eax)
50701d:	8b 54 24 04          	mov    0x4(%esp),%edx
507021:	89 50 18             	mov    %edx,0x18(%eax)
507024:	8b c7                	mov    %edi,%eax
507026:	8b 10                	mov    (%eax),%edx
507028:	ff 12                	call   *(%edx)
50702a:	83 7d 00 00          	cmpl   $0x0,0x0(%ebp)
50702e:	75 0a                	jne    0x50703a
507030:	8b c7                	mov    %edi,%eax
507032:	e8 21 0c 00 00       	call   0x507c58
507037:	89 45 00             	mov    %eax,0x0(%ebp)
50703a:	6a 11                	push   $0x11
50703c:	8d 54 24 1c          	lea    0x1c(%esp),%edx
507040:	52                   	push   %edx
507041:	8b 4d 00             	mov    0x0(%ebp),%ecx
507044:	51                   	push   %ecx
507045:	e8 82 42 ff ff       	call   0x4fb2cc
50704a:	83 c4 0c             	add    $0xc,%esp
50704d:	68 00 01 00 00       	push   $0x100
507052:	8d 44 24 30          	lea    0x30(%esp),%eax
507056:	50                   	push   %eax
507057:	8b 55 00             	mov    0x0(%ebp),%edx
50705a:	83 c2 11             	add    $0x11,%edx
50705d:	52                   	push   %edx
50705e:	e8 69 42 ff ff       	call   0x4fb2cc
507063:	83 c4 0c             	add    $0xc,%esp
507066:	83 3c 24 00          	cmpl   $0x0,(%esp)
50706a:	0f 8f 8d fd ff ff    	jg     0x506dfd
507070:	8b 4c 24 0c          	mov    0xc(%esp),%ecx
507074:	89 19                	mov    %ebx,(%ecx)
507076:	8b 44 24 0c          	mov    0xc(%esp),%eax
50707a:	89 70 04             	mov    %esi,0x4(%eax)
50707d:	b8 01 00 00 00       	mov    $0x1,%eax
507082:	81 c4 2c 01 00 00    	add    $0x12c,%esp
507088:	5d                   	pop    %ebp
507089:	5f                   	pop    %edi
50708a:	5e                   	pop    %esi
50708b:	5b                   	pop    %ebx
50708c:	c3                   	ret
50708d:	90                   	nop
50708e:	90                   	nop
50708f:	90                   	nop
507090:	53                   	push   %ebx
507091:	56                   	push   %esi
507092:	57                   	push   %edi
507093:	55                   	push   %ebp
507094:	8b e8                	mov    %eax,%ebp
507096:	83 c4 e8             	add    $0xffffffe8,%esp
507099:	8b 45 14             	mov    0x14(%ebp),%eax
50709c:	89 44 24 10          	mov    %eax,0x10(%esp)
5070a0:	8b 44 24 10          	mov    0x10(%esp),%eax
5070a4:	8b 54 24 10          	mov    0x10(%esp),%edx
5070a8:	8b 78 04             	mov    0x4(%eax),%edi
5070ab:	8b 32                	mov    (%edx),%esi
5070ad:	85 ff                	test   %edi,%edi
5070af:	75 21                	jne    0x5070d2
5070b1:	8b 5c 24 10          	mov    0x10(%esp),%ebx
5070b5:	8b c5                	mov    %ebp,%eax
5070b7:	ff 53 0c             	call   *0xc(%ebx)
5070ba:	85 c0                	test   %eax,%eax
5070bc:	75 07                	jne    0x5070c5
5070be:	33 c0                	xor    %eax,%eax
5070c0:	e9 47 02 00 00       	jmp    0x50730c
5070c5:	8b 54 24 10          	mov    0x10(%esp),%edx
5070c9:	8b 44 24 10          	mov    0x10(%esp),%eax
5070cd:	8b 78 04             	mov    0x4(%eax),%edi
5070d0:	8b 32                	mov    (%edx),%esi
5070d2:	33 c0                	xor    %eax,%eax
5070d4:	4f                   	dec    %edi
5070d5:	8a 06                	mov    (%esi),%al
5070d7:	46                   	inc    %esi
5070d8:	c1 e0 08             	shl    $0x8,%eax
5070db:	85 ff                	test   %edi,%edi
5070dd:	89 04 24             	mov    %eax,(%esp)
5070e0:	75 21                	jne    0x507103
5070e2:	8b 5c 24 10          	mov    0x10(%esp),%ebx
5070e6:	8b c5                	mov    %ebp,%eax
5070e8:	ff 53 0c             	call   *0xc(%ebx)
5070eb:	85 c0                	test   %eax,%eax
5070ed:	75 07                	jne    0x5070f6
5070ef:	33 c0                	xor    %eax,%eax
5070f1:	e9 16 02 00 00       	jmp    0x50730c
5070f6:	8b 54 24 10          	mov    0x10(%esp),%edx
5070fa:	8b 44 24 10          	mov    0x10(%esp),%eax
5070fe:	8b 78 04             	mov    0x4(%eax),%edi
507101:	8b 32                	mov    (%edx),%esi
507103:	4f                   	dec    %edi
507104:	33 c0                	xor    %eax,%eax
507106:	8a 06                	mov    (%esi),%al
507108:	01 04 24             	add    %eax,(%esp)
50710b:	46                   	inc    %esi
50710c:	83 2c 24 02          	subl   $0x2,(%esp)
507110:	83 3c 24 00          	cmpl   $0x0,(%esp)
507114:	0f 8e e0 01 00 00    	jle    0x5072fa
50711a:	85 ff                	test   %edi,%edi
50711c:	75 21                	jne    0x50713f
50711e:	8b 5c 24 10          	mov    0x10(%esp),%ebx
507122:	8b c5                	mov    %ebp,%eax
507124:	ff 53 0c             	call   *0xc(%ebx)
507127:	85 c0                	test   %eax,%eax
507129:	75 07                	jne    0x507132
50712b:	33 c0                	xor    %eax,%eax
50712d:	e9 da 01 00 00       	jmp    0x50730c
507132:	8b 54 24 10          	mov    0x10(%esp),%edx
507136:	8b 44 24 10          	mov    0x10(%esp),%eax
50713a:	8b 78 04             	mov    0x4(%eax),%edi
50713d:	8b 32                	mov    (%edx),%esi
50713f:	33 db                	xor    %ebx,%ebx
507141:	4f                   	dec    %edi
507142:	8a 1e                	mov    (%esi),%bl
507144:	46                   	inc    %esi
507145:	8b c3                	mov    %ebx,%eax
507147:	c1 f8 04             	sar    $0x4,%eax
50714a:	83 e3 0f             	and    $0xf,%ebx
50714d:	89 44 24 08          	mov    %eax,0x8(%esp)
507151:	8b 45 00             	mov    0x0(%ebp),%eax
507154:	c7 40 14 50 00 00 00 	movl   $0x50,0x14(%eax)
50715b:	89 58 18             	mov    %ebx,0x18(%eax)
50715e:	8b 54 24 08          	mov    0x8(%esp),%edx
507162:	89 50 1c             	mov    %edx,0x1c(%eax)
507165:	8b c5                	mov    %ebp,%eax
507167:	ba 01 00 00 00       	mov    $0x1,%edx
50716c:	8b 08                	mov    (%eax),%ecx
50716e:	ff 51 04             	call   *0x4(%ecx)
507171:	83 fb 04             	cmp    $0x4,%ebx
507174:	7c 13                	jl     0x507189
507176:	8b 45 00             	mov    0x0(%ebp),%eax
507179:	c7 40 14 1e 00 00 00 	movl   $0x1e,0x14(%eax)
507180:	89 58 18             	mov    %ebx,0x18(%eax)
507183:	8b c5                	mov    %ebp,%eax
507185:	8b 10                	mov    (%eax),%edx
507187:	ff 12                	call   *(%edx)
507189:	83 bc 9d a0 00 00 00 	cmpl   $0x0,0xa0(%ebp,%ebx,4)
507190:	00
507191:	75 0e                	jne    0x5071a1
507193:	8b c5                	mov    %ebp,%eax
507195:	e8 a6 0a 00 00       	call   0x507c40
50719a:	89 84 9d a0 00 00 00 	mov    %eax,0xa0(%ebp,%ebx,4)
5071a1:	8b 94 9d a0 00 00 00 	mov    0xa0(%ebp,%ebx,4),%edx
5071a8:	33 c9                	xor    %ecx,%ecx
5071aa:	89 54 24 0c          	mov    %edx,0xc(%esp)
5071ae:	89 4c 24 04          	mov    %ecx,0x4(%esp)
5071b2:	c7 44 24 14 64 d9 68 	movl   $0x68d964,0x14(%esp)
5071b9:	00
5071ba:	83 7c 24 08 00       	cmpl   $0x0,0x8(%esp)
5071bf:	74 5d                	je     0x50721e
5071c1:	85 ff                	test   %edi,%edi
5071c3:	75 21                	jne    0x5071e6
5071c5:	8b 5c 24 10          	mov    0x10(%esp),%ebx
5071c9:	8b c5                	mov    %ebp,%eax
5071cb:	ff 53 0c             	call   *0xc(%ebx)
5071ce:	85 c0                	test   %eax,%eax
5071d0:	75 07                	jne    0x5071d9
5071d2:	33 c0                	xor    %eax,%eax
5071d4:	e9 33 01 00 00       	jmp    0x50730c
5071d9:	8b 54 24 10          	mov    0x10(%esp),%edx
5071dd:	8b 44 24 10          	mov    0x10(%esp),%eax
5071e1:	8b 78 04             	mov    0x4(%eax),%edi
5071e4:	8b 32                	mov    (%edx),%esi
5071e6:	4f                   	dec    %edi
5071e7:	33 db                	xor    %ebx,%ebx
5071e9:	8a 1e                	mov    (%esi),%bl
5071eb:	c1 e3 08             	shl    $0x8,%ebx
5071ee:	46                   	inc    %esi
5071ef:	85 ff                	test   %edi,%edi
5071f1:	75 21                	jne    0x507214
5071f3:	8b 74 24 10          	mov    0x10(%esp),%esi
5071f7:	8b c5                	mov    %ebp,%eax
5071f9:	ff 56 0c             	call   *0xc(%esi)
5071fc:	85 c0                	test   %eax,%eax
5071fe:	75 07                	jne    0x507207
507200:	33 c0                	xor    %eax,%eax
507202:	e9 05 01 00 00       	jmp    0x50730c
507207:	8b 54 24 10          	mov    0x10(%esp),%edx
50720b:	8b 44 24 10          	mov    0x10(%esp),%eax
50720f:	8b 78 04             	mov    0x4(%eax),%edi
507212:	8b 32                	mov    (%edx),%esi
507214:	4f                   	dec    %edi
507215:	33 c0                	xor    %eax,%eax
507217:	8a 06                	mov    (%esi),%al
507219:	03 d8                	add    %eax,%ebx
50721b:	46                   	inc    %esi
50721c:	eb 2b                	jmp    0x507249
50721e:	85 ff                	test   %edi,%edi
507220:	75 21                	jne    0x507243
507222:	8b 5c 24 10          	mov    0x10(%esp),%ebx
507226:	8b c5                	mov    %ebp,%eax
507228:	ff 53 0c             	call   *0xc(%ebx)
50722b:	85 c0                	test   %eax,%eax
50722d:	75 07                	jne    0x507236
50722f:	33 c0                	xor    %eax,%eax
507231:	e9 d6 00 00 00       	jmp    0x50730c
507236:	8b 54 24 10          	mov    0x10(%esp),%edx
50723a:	8b 44 24 10          	mov    0x10(%esp),%eax
50723e:	8b 78 04             	mov    0x4(%eax),%edi
507241:	8b 32                	mov    (%edx),%esi
507243:	4f                   	dec    %edi
507244:	33 db                	xor    %ebx,%ebx
507246:	8a 1e                	mov    (%esi),%bl
507248:	46                   	inc    %esi
507249:	8b 44 24 14          	mov    0x14(%esp),%eax
50724d:	8b 10                	mov    (%eax),%edx
50724f:	8b 4c 24 0c          	mov    0xc(%esp),%ecx
507253:	66 89 1c 51          	mov    %bx,(%ecx,%edx,2)
507257:	ff 44 24 04          	incl   0x4(%esp)
50725b:	83 44 24 14 04       	addl   $0x4,0x14(%esp)
507260:	83 7c 24 04 40       	cmpl   $0x40,0x4(%esp)
507265:	0f 8c 4f ff ff ff    	jl     0x5071ba
50726b:	8b 45 00             	mov    0x0(%ebp),%eax
50726e:	83 78 68 02          	cmpl   $0x2,0x68(%eax)
507272:	7c 6d                	jl     0x5072e1
507274:	33 d2                	xor    %edx,%edx
507276:	89 54 24 04          	mov    %edx,0x4(%esp)
50727a:	8b 4c 24 0c          	mov    0xc(%esp),%ecx
50727e:	8b d9                	mov    %ecx,%ebx
507280:	8b 45 00             	mov    0x0(%ebp),%eax
507283:	83 c0 18             	add    $0x18,%eax
507286:	0f b7 13             	movzwl (%ebx),%edx
507289:	89 10                	mov    %edx,(%eax)
50728b:	0f b7 4b 02          	movzwl 0x2(%ebx),%ecx
50728f:	89 48 04             	mov    %ecx,0x4(%eax)
507292:	0f b7 53 04          	movzwl 0x4(%ebx),%edx
507296:	89 50 08             	mov    %edx,0x8(%eax)
507299:	0f b7 4b 06          	movzwl 0x6(%ebx),%ecx
50729d:	89 48 0c             	mov    %ecx,0xc(%eax)
5072a0:	0f b7 53 08          	movzwl 0x8(%ebx),%edx
5072a4:	89 50 10             	mov    %edx,0x10(%eax)
5072a7:	0f b7 4b 0a          	movzwl 0xa(%ebx),%ecx
5072ab:	89 48 14             	mov    %ecx,0x14(%eax)
5072ae:	0f b7 53 0c          	movzwl 0xc(%ebx),%edx
5072b2:	89 50 18             	mov    %edx,0x18(%eax)
5072b5:	0f b7 4b 0e          	movzwl 0xe(%ebx),%ecx
5072b9:	89 48 1c             	mov    %ecx,0x1c(%eax)
5072bc:	8b 45 00             	mov    0x0(%ebp),%eax
5072bf:	c7 40 14 5c 00 00 00 	movl   $0x5c,0x14(%eax)
5072c6:	ba 02 00 00 00       	mov    $0x2,%edx
5072cb:	8b c5                	mov    %ebp,%eax
5072cd:	8b 08                	mov    (%eax),%ecx
5072cf:	ff 51 04             	call   *0x4(%ecx)
5072d2:	83 44 24 04 08       	addl   $0x8,0x4(%esp)
5072d7:	83 c3 10             	add    $0x10,%ebx
5072da:	83 7c 24 04 40       	cmpl   $0x40,0x4(%esp)
5072df:	7c 9f                	jl     0x507280
5072e1:	83 2c 24 41          	subl   $0x41,(%esp)
5072e5:	83 7c 24 08 00       	cmpl   $0x0,0x8(%esp)
5072ea:	74 04                	je     0x5072f0
5072ec:	83 2c 24 40          	subl   $0x40,(%esp)
5072f0:	83 3c 24 00          	cmpl   $0x0,(%esp)
5072f4:	0f 8f 20 fe ff ff    	jg     0x50711a
5072fa:	8b 44 24 10          	mov    0x10(%esp),%eax
5072fe:	89 30                	mov    %esi,(%eax)
507300:	b8 01 00 00 00       	mov    $0x1,%eax
507305:	8b 54 24 10          	mov    0x10(%esp),%edx
507309:	89 7a 04             	mov    %edi,0x4(%edx)
50730c:	83 c4 18             	add    $0x18,%esp
50730f:	5d                   	pop    %ebp
507310:	5f                   	pop    %edi
507311:	5e                   	pop    %esi
507312:	5b                   	pop    %ebx
507313:	c3                   	ret
507314:	53                   	push   %ebx
507315:	56                   	push   %esi
507316:	57                   	push   %edi
507317:	55                   	push   %ebp
507318:	83 c4 f8             	add    $0xfffffff8,%esp
50731b:	8b e8                	mov    %eax,%ebp
50731d:	8b 7d 14             	mov    0x14(%ebp),%edi
507320:	8b 1f                	mov    (%edi),%ebx
507322:	8b 77 04             	mov    0x4(%edi),%esi
507325:	85 f6                	test   %esi,%esi
507327:	75 15                	jne    0x50733e
507329:	8b c5                	mov    %ebp,%eax
50732b:	ff 57 0c             	call   *0xc(%edi)
50732e:	85 c0                	test   %eax,%eax
507330:	75 07                	jne    0x507339
507332:	33 c0                	xor    %eax,%eax
507334:	e9 bd 00 00 00       	jmp    0x5073f6
507339:	8b 1f                	mov    (%edi),%ebx
50733b:	8b 77 04             	mov    0x4(%edi),%esi
50733e:	33 c0                	xor    %eax,%eax
507340:	4e                   	dec    %esi
507341:	8a 03                	mov    (%ebx),%al
507343:	43                   	inc    %ebx
507344:	c1 e0 08             	shl    $0x8,%eax
507347:	85 f6                	test   %esi,%esi