509ff7:	89 45 90             	mov    %eax,-0x70(%ebp)
509ffa:	8b 45 a4             	mov    -0x5c(%ebp),%eax
509ffd:	89 47 34             	mov    %eax,0x34(%edi)
50a000:	0f b7 40 02          	movzwl 0x2(%eax),%eax
50a004:	66 39 47 02          	cmp    %ax,0x2(%edi)
50a008:	7e 04                	jle    0x50a00e
50a00a:	66 89 47 02          	mov    %ax,0x2(%edi)
50a00e:	8b 47 3c             	mov    0x3c(%edi),%eax
50a011:	85 c0                	test   %eax,%eax
50a013:	74 0c                	je     0x50a021
50a015:	50                   	push   %eax
50a016:	ff 75 98             	push   -0x68(%ebp)
50a019:	e8 92 c7 01 00       	call   0x5267b0
50a01e:	83 c4 08             	add    $0x8,%esp
50a021:	8b 45 f8             	mov    -0x8(%ebp),%eax
50a024:	89 77 3c             	mov    %esi,0x3c(%edi)
50a027:	8b 73 38             	mov    0x38(%ebx),%esi
50a02a:	4e                   	dec    %esi
50a02b:	56                   	push   %esi
50a02c:	57                   	push   %edi
50a02d:	50                   	push   %eax
50a02e:	8d 5e ff             	lea    -0x1(%esi),%ebx
50a031:	89 75 a4             	mov    %esi,-0x5c(%ebp)
50a034:	89 58 38             	mov    %ebx,0x38(%eax)
50a037:	e8 b4 12 ff ff       	call   0x4fb2f0
50a03c:	8b 7d 94             	mov    -0x6c(%ebp),%edi
50a03f:	56                   	push   %esi
50a040:	ff 75 ac             	push   -0x54(%ebp)
50a043:	6a 25                	push   $0x25
50a045:	57                   	push   %edi
50a046:	e8 95 7a 03 00       	call   0x541ae0
50a04b:	ff 75 f8             	push   -0x8(%ebp)
50a04e:	e8 2d 2f 02 00       	call   0x52cf80
50a053:	8b f0                	mov    %eax,%esi
50a055:	56                   	push   %esi
50a056:	ff 75 ac             	push   -0x54(%ebp)
50a059:	6a 7e                	push   $0x7e
50a05b:	57                   	push   %edi
50a05c:	e8 7f 7a 03 00       	call   0x541ae0
50a061:	6a 00                	push   $0x0
50a063:	56                   	push   %esi
50a064:	53                   	push   %ebx
50a065:	ff 75 a0             	push   -0x60(%ebp)
50a068:	8b f8                	mov    %eax,%edi
50a06a:	6a 1d                	push   $0x1d
50a06c:	ff 75 94             	push   -0x6c(%ebp)
50a06f:	e8 9c 7b 03 00       	call   0x541c10
50a074:	83 c4 48             	add    $0x48,%esp
50a077:	56                   	push   %esi
50a078:	ff 75 f8             	push   -0x8(%ebp)
50a07b:	e8 10 dd 02 00       	call   0x537d90
50a080:	8b 75 a4             	mov    -0x5c(%ebp),%esi
50a083:	8d 45 e0             	lea    -0x20(%ebp),%eax
50a086:	56                   	push   %esi
50a087:	53                   	push   %ebx
50a088:	50                   	push   %eax
50a089:	6a 00                	push   $0x0
50a08b:	6a 00                	push   $0x0
50a08d:	ff 75 ac             	push   -0x54(%ebp)
50a090:	ff 75 9c             	push   -0x64(%ebp)
50a093:	ff 75 f8             	push   -0x8(%ebp)
50a096:	e8 a5 be 00 00       	call   0x515f40
50a09b:	53                   	push   %ebx
50a09c:	8b 5d 94             	mov    -0x6c(%ebp),%ebx
50a09f:	53                   	push   %ebx
50a0a0:	e8 2b 2c 04 00       	call   0x54ccd0
50a0a5:	57                   	push   %edi
50a0a6:	8b 7d ac             	mov    -0x54(%ebp),%edi
50a0a9:	57                   	push   %edi
50a0aa:	6a 05                	push   $0x5
50a0ac:	53                   	push   %ebx
50a0ad:	e8 2e 7a 03 00       	call   0x541ae0
50a0b2:	83 c4 40             	add    $0x40,%esp
50a0b5:	56                   	push   %esi
50a0b6:	53                   	push   %ebx
50a0b7:	e8 14 2c 04 00       	call   0x54ccd0
50a0bc:	6a 00                	push   $0x0
50a0be:	8d 47 01             	lea    0x1(%edi),%eax
50a0c1:	50                   	push   %eax
50a0c2:	6a 74                	push   $0x74
50a0c4:	53                   	push   %ebx
50a0c5:	e8 16 7a 03 00       	call   0x541ae0
50a0ca:	6a 00                	push   $0x0
50a0cc:	57                   	push   %edi
50a0cd:	6a 74                	push   $0x74
50a0cf:	53                   	push   %ebx
50a0d0:	e9 86 02 00 00       	jmp    0x50a35b
50a0d5:	33 c0                	xor    %eax,%eax
50a0d7:	89 45 a0             	mov    %eax,-0x60(%ebp)
50a0da:	8b 47 08             	mov    0x8(%edi),%eax
50a0dd:	89 41 08             	mov    %eax,0x8(%ecx)
50a0e0:	8b 47 0c             	mov    0xc(%edi),%eax
50a0e3:	89 41 0c             	mov    %eax,0xc(%ecx)
50a0e6:	8b 47 3c             	mov    0x3c(%edi),%eax
50a0e9:	89 41 3c             	mov    %eax,0x3c(%ecx)
50a0ec:	8d 45 e0             	lea    -0x20(%ebp),%eax
50a0ef:	50                   	push   %eax
50a0f0:	51                   	push   %ecx
50a0f1:	53                   	push   %ebx
50a0f2:	e8 a9 f9 02 00       	call   0x539aa0
50a0f7:	8b c8                	mov    %eax,%ecx
50a0f9:	c7 47 3c 00 00 00 00 	movl   $0x0,0x3c(%edi)
50a100:	83 c4 0c             	add    $0xc,%esp
50a103:	89 4d a8             	mov    %ecx,-0x58(%ebp)
50a106:	85 c9                	test   %ecx,%ecx
50a108:	0f 85 8b 03 00 00    	jne    0x50a499
50a10e:	89 47 34             	mov    %eax,0x34(%edi)
50a111:	8b 45 a4             	mov    -0x5c(%ebp),%eax
50a114:	8b 48 08             	mov    0x8(%eax),%ecx
50a117:	89 4f 08             	mov    %ecx,0x8(%edi)
50a11a:	8b 40 0c             	mov    0xc(%eax),%eax
50a11d:	89 47 0c             	mov    %eax,0xc(%edi)
50a120:	85 c9                	test   %ecx,%ecx
50a122:	74 2a                	je     0x50a14e
50a124:	51                   	push   %ecx
50a125:	6a 14                	push   $0x14
50a127:	56                   	push   %esi
50a128:	e8 53 79 03 00       	call   0x541a80
50a12d:	8b 4f 0c             	mov    0xc(%edi),%ecx
50a130:	83 c4 0c             	add    $0xc,%esp
50a133:	89 45 a0             	mov    %eax,-0x60(%ebp)
50a136:	85 c9                	test   %ecx,%ecx
50a138:	74 14                	je     0x50a14e
50a13a:	51                   	push   %ecx
50a13b:	41                   	inc    %ecx
50a13c:	51                   	push   %ecx
50a13d:	ff 77 08             	push   0x8(%edi)
50a140:	68 98 00 00 00       	push   $0x98
50a145:	56                   	push   %esi
50a146:	e8 f5 79 03 00       	call   0x541b40
50a14b:	83 c4 14             	add    $0x14,%esp
50a14e:	68 e8 ae 6b 00       	push   $0x6baee8
50a153:	6a 01                	push   $0x1
50a155:	53                   	push   %ebx
50a156:	e8 85 fa 03 00       	call   0x549be0
50a15b:	8d 45 e0             	lea    -0x20(%ebp),%eax
50a15e:	50                   	push   %eax
50a15f:	57                   	push   %edi
50a160:	53                   	push   %ebx
50a161:	e8 3a f9 02 00       	call   0x539aa0
50a166:	89 45 a8             	mov    %eax,-0x58(%ebp)
50a169:	8b 47 34             	mov    0x34(%edi),%eax
50a16c:	89 45 90             	mov    %eax,-0x70(%ebp)
50a16f:	8b 45 a4             	mov    -0x5c(%ebp),%eax
50a172:	89 47 34             	mov    %eax,0x34(%edi)
50a175:	0f b7 40 02          	movzwl 0x2(%eax),%eax
50a179:	50                   	push   %eax
50a17a:	0f b7 47 02          	movzwl 0x2(%edi),%eax
50a17e:	50                   	push   %eax
50a17f:	e8 bc 6c 02 00       	call   0x530e40
50a184:	66 89 47 02          	mov    %ax,0x2(%edi)
50a188:	83 c4 20             	add    $0x20,%esp
50a18b:	8b 45 a4             	mov    -0x5c(%ebp),%eax
50a18e:	8b 40 3c             	mov    0x3c(%eax),%eax
50a191:	85 c0                	test   %eax,%eax
50a193:	74 2f                	je     0x50a1c4
50a195:	8d 4d f8             	lea    -0x8(%ebp),%ecx
50a198:	51                   	push   %ecx
50a199:	ff 70 0c             	push   0xc(%eax)
50a19c:	e8 7f d2 01 00       	call   0x527420
50a1a1:	83 c4 08             	add    $0x8,%esp
50a1a4:	85 c0                	test   %eax,%eax
50a1a6:	74 1c                	je     0x50a1c4
50a1a8:	8b 45 f8             	mov    -0x8(%ebp),%eax
50a1ab:	85 c0                	test   %eax,%eax
50a1ad:	7e 15                	jle    0x50a1c4
50a1af:	99                   	cltd
50a1b0:	52                   	push   %edx
50a1b1:	50                   	push   %eax
50a1b2:	e8 d9 6b 02 00       	call   0x530d90
50a1b7:	83 c4 08             	add    $0x8,%esp
50a1ba:	66 39 47 02          	cmp    %ax,0x2(%edi)
50a1be:	7e 04                	jle    0x50a1c4
50a1c0:	66 89 47 02          	mov    %ax,0x2(%edi)
50a1c4:	8b 45 a0             	mov    -0x60(%ebp),%eax
50a1c7:	85 c0                	test   %eax,%eax
50a1c9:	0f 84 9a 01 00 00    	je     0x50a369
50a1cf:	50                   	push   %eax
50a1d0:	56                   	push   %esi
50a1d1:	e8 8a 05 04 00       	call   0x54a760
50a1d6:	83 c4 08             	add    $0x8,%esp
50a1d9:	e9 8b 01 00 00       	jmp    0x50a369
50a1de:	80 7d e0 01          	cmpb   $0x1,-0x20(%ebp)
50a1e2:	75 08                	jne    0x50a1ec
50a1e4:	8b 45 e4             	mov    -0x1c(%ebp),%eax
50a1e7:	89 45 ac             	mov    %eax,-0x54(%ebp)
50a1ea:	eb 2a                	jmp    0x50a216
50a1ec:	8b 4b 28             	mov    0x28(%ebx),%ecx
50a1ef:	6a 00                	push   $0x0
50a1f1:	51                   	push   %ecx
50a1f2:	6a 64                	push   $0x64
50a1f4:	8d 41 01             	lea    0x1(%ecx),%eax
50a1f7:	89 4d ac             	mov    %ecx,-0x54(%ebp)
50a1fa:	56                   	push   %esi
50a1fb:	89 43 28             	mov    %eax,0x28(%ebx)
50a1fe:	e8 dd 78 03 00       	call   0x541ae0
50a203:	57                   	push   %edi
50a204:	89 47 14             	mov    %eax,0x14(%edi)
50a207:	e8 44 7f ff ff       	call   0x502150
50a20c:	83 c4 14             	add    $0x14,%esp
50a20f:	83 48 04 20          	orl    $0x20,0x4(%eax)
50a213:	8b 45 ac             	mov    -0x54(%ebp),%eax
50a216:	50                   	push   %eax
50a217:	8d 45 b0             	lea    -0x50(%ebp),%eax
50a21a:	6a 01                	push   $0x1
50a21c:	50                   	push   %eax
50a21d:	e8 8e 1f 03 00       	call   0x53c1b0
50a222:	8d 45 b0             	lea    -0x50(%ebp),%eax
50a225:	50                   	push   %eax
50a226:	8b 45 a4             	mov    -0x5c(%ebp),%eax
50a229:	50                   	push   %eax
50a22a:	53                   	push   %ebx
50a22b:	e8 70 f8 02 00       	call   0x539aa0
50a230:	8b c8                	mov    %eax,%ecx
50a232:	83 c4 18             	add    $0x18,%esp
50a235:	89 4d a8             	mov    %ecx,-0x58(%ebp)
50a238:	85 c9                	test   %ecx,%ecx
50a23a:	0f 85 59 02 00 00    	jne    0x50a499
50a240:	80 3f 86             	cmpb   $0x86,(%edi)
50a243:	89 47 34             	mov    %eax,0x34(%edi)
50a246:	8b 47 3c             	mov    0x3c(%edi),%eax
50a249:	89 45 a0             	mov    %eax,-0x60(%ebp)
50a24c:	0f 94 c0             	sete   %al
50a24f:	fe c0                	inc    %al
50a251:	89 4f 3c             	mov    %ecx,0x3c(%edi)
50a254:	88 45 b0             	mov    %al,-0x50(%ebp)
50a257:	0f b6 07             	movzbl (%edi),%eax
50a25a:	50                   	push   %eax
50a25b:	e8 90 c8 00 00       	call   0x516af0
50a260:	50                   	push   %eax
50a261:	68 34 b0 6b 00       	push   $0x6bb034
50a266:	6a 01                	push   $0x1
50a268:	53                   	push   %ebx
50a269:	e8 72 f9 03 00       	call   0x549be0
50a26e:	8d 45 b0             	lea    -0x50(%ebp),%eax
50a271:	50                   	push   %eax
50a272:	57                   	push   %edi
50a273:	53                   	push   %ebx
50a274:	e8 27 f8 02 00       	call   0x539aa0
50a279:	89 45 a8             	mov    %eax,-0x58(%ebp)
50a27c:	83 c4 20             	add    $0x20,%esp
50a27f:	8b 47 30             	mov    0x30(%edi),%eax
50a282:	85 c0                	test   %eax,%eax
50a284:	74 0c                	je     0x50a292
50a286:	50                   	push   %eax
50a287:	ff 75 98             	push   -0x68(%ebp)
50a28a:	e8 71 6d ff ff       	call   0x501000
50a28f:	83 c4 08             	add    $0x8,%esp
50a292:	80 3f 84             	cmpb   $0x84,(%edi)
50a295:	8b 47 34             	mov    0x34(%edi),%eax
50a298:	89 45 90             	mov    %eax,-0x70(%ebp)
50a29b:	8b 45 a4             	mov    -0x5c(%ebp),%eax
50a29e:	89 47 34             	mov    %eax,0x34(%edi)
50a2a1:	c7 47 30 00 00 00 00 	movl   $0x0,0x30(%edi)
50a2a8:	75 16                	jne    0x50a2c0
50a2aa:	0f b7 40 02          	movzwl 0x2(%eax),%eax
50a2ae:	50                   	push   %eax
50a2af:	0f b7 47 02          	movzwl 0x2(%edi),%eax
50a2b3:	50                   	push   %eax
50a2b4:	e8 87 6b 02 00       	call   0x530e40
50a2b9:	83 c4 08             	add    $0x8,%esp
50a2bc:	66 89 47 02          	mov    %ax,0x2(%edi)
50a2c0:	8b 47 3c             	mov    0x3c(%edi),%eax
50a2c3:	85 c0                	test   %eax,%eax
50a2c5:	74 0c                	je     0x50a2d3
50a2c7:	50                   	push   %eax
50a2c8:	ff 75 98             	push   -0x68(%ebp)
50a2cb:	e8 e0 c4 01 00       	call   0x5267b0
50a2d0:	83 c4 08             	add    $0x8,%esp
50a2d3:	80 7d e0 01          	cmpb   $0x1,-0x20(%ebp)
50a2d7:	8b 45 a0             	mov    -0x60(%ebp),%eax
50a2da:	89 47 3c             	mov    %eax,0x3c(%edi)
50a2dd:	c7 47 08 00 00 00 00 	movl   $0x0,0x8(%edi)
50a2e4:	c7 47 0c 00 00 00 00 	movl   $0x0,0xc(%edi)
50a2eb:	74 7c                	je     0x50a369
50a2ed:	8b 45 98             	mov    -0x68(%ebp),%eax
50a2f0:	80 78 51 00          	cmpb   $0x0,0x51(%eax)
50a2f4:	75 73                	jne    0x50a369
50a2f6:	8b 5b 38             	mov    0x38(%ebx),%ebx
50a2f9:	8b 45 f8             	mov    -0x8(%ebp),%eax
50a2fc:	4b                   	dec    %ebx
50a2fd:	53                   	push   %ebx
50a2fe:	ff 75 9c             	push   -0x64(%ebp)
50a301:	8d 7b ff             	lea    -0x1(%ebx),%edi
50a304:	50                   	push   %eax
50a305:	89 78 38             	mov    %edi,0x38(%eax)
50a308:	e8 e3 0f ff ff       	call   0x4fb2f0
50a30d:	53                   	push   %ebx
50a30e:	ff 75 ac             	push   -0x54(%ebp)
50a311:	6a 25                	push   $0x25
50a313:	56                   	push   %esi
50a314:	e8 c7 77 03 00       	call   0x541ae0
50a319:	8b 76 6c             	mov    0x6c(%esi),%esi
50a31c:	8d 45 e0             	lea    -0x20(%ebp),%eax
50a31f:	53                   	push   %ebx
50a320:	57                   	push   %edi
50a321:	50                   	push   %eax
50a322:	6a 00                	push   $0x0
50a324:	6a 00                	push   $0x0
50a326:	ff 75 ac             	push   -0x54(%ebp)
50a329:	ff 75 9c             	push   -0x64(%ebp)
50a32c:	ff 75 f8             	push   -0x8(%ebp)
50a32f:	e8 0c bc 00 00       	call   0x515f40
50a334:	57                   	push   %edi
50a335:	8b 7d 94             	mov    -0x6c(%ebp),%edi
50a338:	57                   	push   %edi
50a339:	e8 92 29 04 00       	call   0x54ccd0
50a33e:	83 c4 44             	add    $0x44,%esp
50a341:	56                   	push   %esi
50a342:	8b 75 ac             	mov    -0x54(%ebp),%esi
50a345:	56                   	push   %esi
50a346:	6a 05                	push   $0x5
50a348:	57                   	push   %edi
50a349:	e8 92 77 03 00       	call   0x541ae0
50a34e:	53                   	push   %ebx
50a34f:	57                   	push   %edi
50a350:	e8 7b 29 04 00       	call   0x54ccd0
50a355:	6a 00                	push   $0x0
50a357:	56                   	push   %esi
50a358:	6a 74                	push   $0x74
50a35a:	57                   	push   %edi
50a35b:	e8 80 77 03 00       	call   0x541ae0
50a360:	8b 5d f8             	mov    -0x8(%ebp),%ebx
50a363:	83 c4 28             	add    $0x28,%esp
50a366:	8b 7d 9c             	mov    -0x64(%ebp),%edi
50a369:	83 7f 38 00          	cmpl   $0x0,0x38(%edi)
50a36d:	75 09                	jne    0x50a378
50a36f:	53                   	push   %ebx
50a370:	e8 bb f8 03 00       	call   0x549c30
50a375:	83 c4 04             	add    $0x4,%esp
50a378:	83 7b 24 00          	cmpl   $0x0,0x24(%ebx)
50a37c:	0f 85 17 01 00 00    	jne    0x50a499
50a382:	f6 47 04 20          	testb  $0x20,0x4(%edi)
50a386:	0f 84 0d 01 00 00    	je     0x50a499
50a38c:	8b 47 1c             	mov    0x1c(%edi),%eax
50a38f:	6a 01                	push   $0x1
50a391:	8b 00                	mov    (%eax),%eax
50a393:	50                   	push   %eax
50a394:	ff 75 98             	push   -0x68(%ebp)
50a397:	89 45 a0             	mov    %eax,-0x60(%ebp)
50a39a:	e8 11 58 02 00       	call   0x52fbb0
50a39f:	8b f0                	mov    %eax,%esi
50a3a1:	83 c4 0c             	add    $0xc,%esp
50a3a4:	89 75 88             	mov    %esi,-0x78(%ebp)
50a3a7:	85 f6                	test   %esi,%esi
50a3a9:	75 08                	jne    0x50a3b3
50a3ab:	8d 58 07             	lea    0x7(%eax),%ebx
50a3ae:	e9 e9 00 00 00       	jmp    0x50a49c
50a3b3:	8d 46 14             	lea    0x14(%esi),%eax
50a3b6:	89 45 a4             	mov    %eax,-0x5c(%ebp)