4021fb:	e8 2c 3b 00 00       	call   0x405d2c
402200:	cc                   	int3
402201:	cc                   	int3
402202:	cc                   	int3
402203:	cc                   	int3
402204:	cc                   	int3
402205:	cc                   	int3
402206:	cc                   	int3
402207:	cc                   	int3
402208:	cc                   	int3
402209:	cc                   	int3
40220a:	cc                   	int3
40220b:	cc                   	int3
40220c:	cc                   	int3
40220d:	cc                   	int3
40220e:	cc                   	int3
40220f:	cc                   	int3
402210:	56                   	push   %esi
402211:	57                   	push   %edi
402212:	8b fa                	mov    %edx,%edi
402214:	8b f1                	mov    %ecx,%esi
402216:	3b f7                	cmp    %edi,%esi
402218:	74 55                	je     0x40226f
40221a:	66 0f 1f 44 00 00    	nopw   0x0(%eax,%eax,1)
402220:	8b 4e 14             	mov    0x14(%esi),%ecx
402223:	83 f9 08             	cmp    $0x8,%ecx
402226:	72 2d                	jb     0x402255
402228:	8b 06                	mov    (%esi),%eax
40222a:	8d 0c 4d 02 00 00 00 	lea    0x2(,%ecx,2),%ecx
402231:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
402237:	72 12                	jb     0x40224b
402239:	8b 50 fc             	mov    -0x4(%eax),%edx
40223c:	83 c1 23             	add    $0x23,%ecx
40223f:	2b c2                	sub    %edx,%eax
402241:	83 c0 fc             	add    $0xfffffffc,%eax
402244:	83 f8 1f             	cmp    $0x1f,%eax
402247:	77 29                	ja     0x402272
402249:	8b c2                	mov    %edx,%eax
40224b:	51                   	push   %ecx
40224c:	50                   	push   %eax
40224d:	e8 2c 09 00 00       	call   0x402b7e
402252:	83 c4 08             	add    $0x8,%esp
402255:	33 c0                	xor    %eax,%eax
402257:	c7 46 10 00 00 00 00 	movl   $0x0,0x10(%esi)
40225e:	c7 46 14 07 00 00 00 	movl   $0x7,0x14(%esi)
402265:	66 89 06             	mov    %ax,(%esi)
402268:	83 c6 18             	add    $0x18,%esi
40226b:	3b f7                	cmp    %edi,%esi
40226d:	75 b1                	jne    0x402220
40226f:	5f                   	pop    %edi
402270:	5e                   	pop    %esi
402271:	c3                   	ret
402272:	e8 b5 3a 00 00       	call   0x405d2c
402277:	cc                   	int3
402278:	cc                   	int3
402279:	cc                   	int3
40227a:	cc                   	int3
40227b:	cc                   	int3
40227c:	cc                   	int3
40227d:	cc                   	int3
40227e:	cc                   	int3
40227f:	cc                   	int3
402280:	55                   	push   %ebp
402281:	8b ec                	mov    %esp,%ebp
402283:	83 ec 0c             	sub    $0xc,%esp
402286:	8b 55 08             	mov    0x8(%ebp),%edx
402289:	53                   	push   %ebx
40228a:	56                   	push   %esi
40228b:	57                   	push   %edi
40228c:	8b f9                	mov    %ecx,%edi
40228e:	b9 fe ff ff 7f       	mov    $0x7ffffffe,%ecx
402293:	8b c1                	mov    %ecx,%eax
402295:	89 7d f8             	mov    %edi,-0x8(%ebp)
402298:	8b 5f 10             	mov    0x10(%edi),%ebx
40229b:	2b c3                	sub    %ebx,%eax
40229d:	89 5d fc             	mov    %ebx,-0x4(%ebp)
4022a0:	3b c2                	cmp    %edx,%eax
4022a2:	0f 82 64 01 00 00    	jb     0x40240c
4022a8:	8b 77 14             	mov    0x14(%edi),%esi
4022ab:	8d 04 13             	lea    (%ebx,%edx,1),%eax
4022ae:	8b d8                	mov    %eax,%ebx
4022b0:	89 45 f4             	mov    %eax,-0xc(%ebp)
4022b3:	83 cb 07             	or     $0x7,%ebx
4022b6:	89 75 08             	mov    %esi,0x8(%ebp)
4022b9:	3b d9                	cmp    %ecx,%ebx
4022bb:	76 0b                	jbe    0x4022c8
4022bd:	b8 ff ff ff 7f       	mov    $0x7fffffff,%eax
4022c2:	8b d9                	mov    %ecx,%ebx
4022c4:	03 c0                	add    %eax,%eax
4022c6:	eb 36                	jmp    0x4022fe
4022c8:	8b c6                	mov    %esi,%eax
4022ca:	d1 e8                	shr    $1,%eax
4022cc:	2b c8                	sub    %eax,%ecx
4022ce:	3b f1                	cmp    %ecx,%esi
4022d0:	76 0e                	jbe    0x4022e0
4022d2:	b8 ff ff ff 7f       	mov    $0x7fffffff,%eax
4022d7:	bb fe ff ff 7f       	mov    $0x7ffffffe,%ebx
4022dc:	03 c0                	add    %eax,%eax
4022de:	eb 1e                	jmp    0x4022fe
4022e0:	03 c6                	add    %esi,%eax
4022e2:	3b d8                	cmp    %eax,%ebx
4022e4:	0f 42 d8             	cmovb  %eax,%ebx
4022e7:	8d 43 01             	lea    0x1(%ebx),%eax
4022ea:	3d ff ff ff 7f       	cmp    $0x7fffffff,%eax
4022ef:	0f 87 12 01 00 00    	ja     0x402407
4022f5:	03 c0                	add    %eax,%eax
4022f7:	3d 00 10 00 00       	cmp    $0x1000,%eax
4022fc:	72 27                	jb     0x402325
4022fe:	8d 48 23             	lea    0x23(%eax),%ecx
402301:	3b c8                	cmp    %eax,%ecx
402303:	0f 86 fe 00 00 00    	jbe    0x402407
402309:	51                   	push   %ecx
40230a:	e8 a0 08 00 00       	call   0x402baf
40230f:	83 c4 04             	add    $0x4,%esp
402312:	85 c0                	test   %eax,%eax
402314:	0f 84 f7 00 00 00    	je     0x402411
40231a:	8d 70 23             	lea    0x23(%eax),%esi
40231d:	83 e6 e0             	and    $0xffffffe0,%esi
402320:	89 46 fc             	mov    %eax,-0x4(%esi)
402323:	eb 13                	jmp    0x402338
402325:	85 c0                	test   %eax,%eax
402327:	74 0d                	je     0x402336
402329:	50                   	push   %eax
40232a:	e8 80 08 00 00       	call   0x402baf
40232f:	83 c4 04             	add    $0x4,%esp
402332:	8b f0                	mov    %eax,%esi
402334:	eb 02                	jmp    0x402338
402336:	33 f6                	xor    %esi,%esi
402338:	83 7d 08 08          	cmpl   $0x8,0x8(%ebp)
40233c:	8b 45 f4             	mov    -0xc(%ebp),%eax
40233f:	89 5f 14             	mov    %ebx,0x14(%edi)
402342:	8b 5d fc             	mov    -0x4(%ebp),%ebx
402345:	89 47 10             	mov    %eax,0x10(%edi)
402348:	8d 04 1b             	lea    (%ebx,%ebx,1),%eax
40234b:	50                   	push   %eax
40234c:	72 77                	jb     0x4023c5
40234e:	8b 1f                	mov    (%edi),%ebx
402350:	53                   	push   %ebx
402351:	56                   	push   %esi
402352:	e8 f9 30 00 00       	call   0x405450
402357:	8b 55 fc             	mov    -0x4(%ebp),%edx
40235a:	83 c4 0c             	add    $0xc,%esp
40235d:	8d 04 12             	lea    (%edx,%edx,1),%eax
402360:	03 c6                	add    %esi,%eax
402362:	89 45 f4             	mov    %eax,-0xc(%ebp)
402365:	8b 45 10             	mov    0x10(%ebp),%eax
402368:	85 c0                	test   %eax,%eax
40236a:	74 16                	je     0x402382
40236c:	8b 7d f4             	mov    -0xc(%ebp),%edi
40236f:	8b c8                	mov    %eax,%ecx
402371:	33 c0                	xor    %eax,%eax
402373:	d1 e9                	shr    $1,%ecx
402375:	f3 ab                	rep stos %eax,%es:(%edi)
402377:	13 c9                	adc    %ecx,%ecx
402379:	66 f3 ab             	rep stos %ax,%es:(%edi)
40237c:	8b 7d f8             	mov    -0x8(%ebp),%edi
40237f:	8b 45 10             	mov    0x10(%ebp),%eax
402382:	03 c2                	add    %edx,%eax
402384:	33 c9                	xor    %ecx,%ecx
402386:	66 89 0c 46          	mov    %cx,(%esi,%eax,2)
40238a:	8b 45 08             	mov    0x8(%ebp),%eax
40238d:	8d 0c 45 02 00 00 00 	lea    0x2(,%eax,2),%ecx
402394:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
40239a:	72 12                	jb     0x4023ae
40239c:	8b 53 fc             	mov    -0x4(%ebx),%edx
40239f:	83 c1 23             	add    $0x23,%ecx
4023a2:	2b da                	sub    %edx,%ebx
4023a4:	8d 43 fc             	lea    -0x4(%ebx),%eax
4023a7:	83 f8 1f             	cmp    $0x1f,%eax
4023aa:	77 65                	ja     0x402411
4023ac:	8b da                	mov    %edx,%ebx
4023ae:	51                   	push   %ecx
4023af:	53                   	push   %ebx
4023b0:	e8 c9 07 00 00       	call   0x402b7e
4023b5:	83 c4 08             	add    $0x8,%esp
4023b8:	89 37                	mov    %esi,(%edi)
4023ba:	8b c7                	mov    %edi,%eax
4023bc:	5f                   	pop    %edi
4023bd:	5e                   	pop    %esi
4023be:	5b                   	pop    %ebx
4023bf:	8b e5                	mov    %ebp,%esp
4023c1:	5d                   	pop    %ebp
4023c2:	c2 10 00             	ret    $0x10
4023c5:	57                   	push   %edi
4023c6:	56                   	push   %esi
4023c7:	e8 84 30 00 00       	call   0x405450
4023cc:	8b 55 10             	mov    0x10(%ebp),%edx
4023cf:	8d 04 1b             	lea    (%ebx,%ebx,1),%eax
4023d2:	03 c6                	add    %esi,%eax
4023d4:	83 c4 0c             	add    $0xc,%esp
4023d7:	89 45 08             	mov    %eax,0x8(%ebp)
4023da:	85 d2                	test   %edx,%edx
4023dc:	74 13                	je     0x4023f1
4023de:	8b 7d 08             	mov    0x8(%ebp),%edi
4023e1:	33 c0                	xor    %eax,%eax
4023e3:	8b ca                	mov    %edx,%ecx
4023e5:	d1 e9                	shr    $1,%ecx
4023e7:	f3 ab                	rep stos %eax,%es:(%edi)
4023e9:	13 c9                	adc    %ecx,%ecx
4023eb:	66 f3 ab             	rep stos %ax,%es:(%edi)
4023ee:	8b 7d f8             	mov    -0x8(%ebp),%edi
4023f1:	8d 04 13             	lea    (%ebx,%edx,1),%eax
4023f4:	33 c9                	xor    %ecx,%ecx
4023f6:	66 89 0c 46          	mov    %cx,(%esi,%eax,2)
4023fa:	8b c7                	mov    %edi,%eax
4023fc:	89 37                	mov    %esi,(%edi)
4023fe:	5f                   	pop    %edi
4023ff:	5e                   	pop    %esi
402400:	5b                   	pop    %ebx
402401:	8b e5                	mov    %ebp,%esp
402403:	5d                   	pop    %ebp
402404:	c2 10 00             	ret    $0x10
402407:	e8 a4 ec ff ff       	call   0x4010b0
40240c:	e8 3f ed ff ff       	call   0x401150
402411:	e8 16 39 00 00       	call   0x405d2c
402416:	cc                   	int3
402417:	cc                   	int3
402418:	cc                   	int3
402419:	cc                   	int3
40241a:	cc                   	int3
40241b:	cc                   	int3
40241c:	cc                   	int3
40241d:	cc                   	int3
40241e:	cc                   	int3
40241f:	cc                   	int3
402420:	55                   	push   %ebp
402421:	8b ec                	mov    %esp,%ebp
402423:	83 ec 08             	sub    $0x8,%esp
402426:	8b 55 08             	mov    0x8(%ebp),%edx
402429:	53                   	push   %ebx
40242a:	8b d9                	mov    %ecx,%ebx
40242c:	b9 fe ff ff 7f       	mov    $0x7ffffffe,%ecx
402431:	56                   	push   %esi
402432:	8b c1                	mov    %ecx,%eax
402434:	57                   	push   %edi
402435:	8b 73 10             	mov    0x10(%ebx),%esi
402438:	2b c6                	sub    %esi,%eax
40243a:	89 75 fc             	mov    %esi,-0x4(%ebp)
40243d:	3b c2                	cmp    %edx,%eax
40243f:	0f 82 4b 01 00 00    	jb     0x402590
402445:	8b 7b 14             	mov    0x14(%ebx),%edi
402448:	8d 04 16             	lea    (%esi,%edx,1),%eax
40244b:	8b f0                	mov    %eax,%esi
40244d:	89 45 f8             	mov    %eax,-0x8(%ebp)
402450:	83 ce 07             	or     $0x7,%esi
402453:	89 7d 08             	mov    %edi,0x8(%ebp)
402456:	3b f1                	cmp    %ecx,%esi
402458:	76 0b                	jbe    0x402465
40245a:	b8 ff ff ff 7f       	mov    $0x7fffffff,%eax
40245f:	8b f1                	mov    %ecx,%esi
402461:	03 c0                	add    %eax,%eax
402463:	eb 36                	jmp    0x40249b
402465:	8b c7                	mov    %edi,%eax
402467:	d1 e8                	shr    $1,%eax
402469:	2b c8                	sub    %eax,%ecx
40246b:	3b f9                	cmp    %ecx,%edi
40246d:	76 0e                	jbe    0x40247d
40246f:	b8 ff ff ff 7f       	mov    $0x7fffffff,%eax
402474:	be fe ff ff 7f       	mov    $0x7ffffffe,%esi
402479:	03 c0                	add    %eax,%eax
40247b:	eb 1e                	jmp    0x40249b
40247d:	03 c7                	add    %edi,%eax
40247f:	3b f0                	cmp    %eax,%esi
402481:	0f 42 f0             	cmovb  %eax,%esi
402484:	8d 46 01             	lea    0x1(%esi),%eax
402487:	3d ff ff ff 7f       	cmp    $0x7fffffff,%eax
40248c:	0f 87 f9 00 00 00    	ja     0x40258b
402492:	03 c0                	add    %eax,%eax
402494:	3d 00 10 00 00       	cmp    $0x1000,%eax
402499:	72 27                	jb     0x4024c2
40249b:	8d 48 23             	lea    0x23(%eax),%ecx
40249e:	3b c8                	cmp    %eax,%ecx
4024a0:	0f 86 e5 00 00 00    	jbe    0x40258b
4024a6:	51                   	push   %ecx
4024a7:	e8 03 07 00 00       	call   0x402baf
4024ac:	83 c4 04             	add    $0x4,%esp
4024af:	85 c0                	test   %eax,%eax
4024b1:	0f 84 de 00 00 00    	je     0x402595
4024b7:	8d 78 23             	lea    0x23(%eax),%edi
4024ba:	83 e7 e0             	and    $0xffffffe0,%edi
4024bd:	89 47 fc             	mov    %eax,-0x4(%edi)
4024c0:	eb 13                	jmp    0x4024d5
4024c2:	85 c0                	test   %eax,%eax
4024c4:	74 0d                	je     0x4024d3
4024c6:	50                   	push   %eax
4024c7:	e8 e3 06 00 00       	call   0x402baf
4024cc:	83 c4 04             	add    $0x4,%esp
4024cf:	8b f8                	mov    %eax,%edi
4024d1:	eb 02                	jmp    0x4024d5
4024d3:	33 ff                	xor    %edi,%edi
4024d5:	8b 55 fc             	mov    -0x4(%ebp),%edx
4024d8:	8b 45 f8             	mov    -0x8(%ebp),%eax
4024db:	89 43 10             	mov    %eax,0x10(%ebx)
4024de:	89 73 14             	mov    %esi,0x14(%ebx)
4024e1:	8d 0c 12             	lea    (%edx,%edx,1),%ecx
4024e4:	8d 04 0f             	lea    (%edi,%ecx,1),%eax
4024e7:	89 45 fc             	mov    %eax,-0x4(%ebp)
4024ea:	8b 45 14             	mov    0x14(%ebp),%eax
4024ed:	51                   	push   %ecx
4024ee:	8d 34 00             	lea    (%eax,%eax,1),%esi
4024f1:	03 c2                	add    %edx,%eax
4024f3:	83 7d 08 08          	cmpl   $0x8,0x8(%ebp)
4024f7:	8d 04 47             	lea    (%edi,%eax,2),%eax
4024fa:	89 45 f8             	mov    %eax,-0x8(%ebp)
4024fd:	72 61                	jb     0x402560
4024ff:	8b 33                	mov    (%ebx),%esi
402501:	56                   	push   %esi
402502:	57                   	push   %edi
402503:	e8 48 2f 00 00       	call   0x405450
402508:	8b 4d 14             	mov    0x14(%ebp),%ecx
40250b:	8d 04 09             	lea    (%ecx,%ecx,1),%eax
40250e:	50                   	push   %eax
40250f:	ff 75 10             	push   0x10(%ebp)
402512:	ff 75 fc             	push   -0x4(%ebp)
402515:	e8 36 2f 00 00       	call   0x405450
40251a:	8b 45 f8             	mov    -0x8(%ebp),%eax
40251d:	33 c9                	xor    %ecx,%ecx
40251f:	83 c4 18             	add    $0x18,%esp
402522:	66 89 08             	mov    %cx,(%eax)
402525:	8b 45 08             	mov    0x8(%ebp),%eax
402528:	8d 0c 45 02 00 00 00 	lea    0x2(,%eax,2),%ecx
40252f:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
402535:	72 12                	jb     0x402549
402537:	8b 56 fc             	mov    -0x4(%esi),%edx
40253a:	83 c1 23             	add    $0x23,%ecx
40253d:	2b f2                	sub    %edx,%esi
40253f:	8d 46 fc             	lea    -0x4(%esi),%eax
402542:	83 f8 1f             	cmp    $0x1f,%eax
402545:	77 4e                	ja     0x402595
402547:	8b f2                	mov    %edx,%esi
402549:	51                   	push   %ecx
40254a:	56                   	push   %esi
40254b:	e8 2e 06 00 00       	call   0x402b7e
402550:	83 c4 08             	add    $0x8,%esp
402553:	89 3b                	mov    %edi,(%ebx)
402555:	8b c3                	mov    %ebx,%eax
402557:	5f                   	pop    %edi
402558:	5e                   	pop    %esi
402559:	5b                   	pop    %ebx
40255a:	8b e5                	mov    %ebp,%esp
40255c:	5d                   	pop    %ebp
40255d:	c2 10 00             	ret    $0x10
402560:	53                   	push   %ebx
402561:	57                   	push   %edi
402562:	e8 e9 2e 00 00       	call   0x405450
402567:	56                   	push   %esi
402568:	ff 75 10             	push   0x10(%ebp)
40256b:	ff 75 fc             	push   -0x4(%ebp)
40256e:	e8 dd 2e 00 00       	call   0x405450
402573:	8b 45 f8             	mov    -0x8(%ebp),%eax