401fe8:	89 46 08             	mov    %eax,0x8(%esi)
401feb:	8b 45 20             	mov    0x20(%ebp),%eax
401fee:	85 c0                	test   %eax,%eax
401ff0:	74 07                	je     0x401ff9
401ff2:	33 c9                	xor    %ecx,%ecx
401ff4:	66 39 08             	cmp    %cx,(%eax)
401ff7:	75 02                	jne    0x401ffb
401ff9:	33 c0                	xor    %eax,%eax
401ffb:	89 46 0c             	mov    %eax,0xc(%esi)
401ffe:	ff 15 1c 60 40 00    	call   *0x40601c
402004:	89 46 10             	mov    %eax,0x10(%esi)
402007:	8d 7e 2c             	lea    0x2c(%esi),%edi
40200a:	8b 45 08             	mov    0x8(%ebp),%eax
40200d:	33 d2                	xor    %edx,%edx
40200f:	89 46 1c             	mov    %eax,0x1c(%esi)
402012:	8b 45 f8             	mov    -0x8(%ebp),%eax
402015:	89 46 20             	mov    %eax,0x20(%esi)
402018:	8b 45 fc             	mov    -0x4(%ebp),%eax
40201b:	89 46 24             	mov    %eax,0x24(%esi)
40201e:	8b 45 10             	mov    0x10(%ebp),%eax
402021:	89 46 14             	mov    %eax,0x14(%esi)
402024:	8b 45 0c             	mov    0xc(%ebp),%eax
402027:	89 46 18             	mov    %eax,0x18(%esi)
40202a:	8b 45 14             	mov    0x14(%ebp),%eax
40202d:	89 46 48             	mov    %eax,0x48(%esi)
402030:	8b 45 f4             	mov    -0xc(%ebp),%eax
402033:	89 46 4c             	mov    %eax,0x4c(%esi)
402036:	33 c0                	xor    %eax,%eax
402038:	6a 06                	push   $0x6
40203a:	59                   	pop    %ecx
40203b:	89 56 28             	mov    %edx,0x28(%esi)
40203e:	f3 ab                	rep stos %eax,%es:(%edi)
402040:	8b 3d c8 53 40 00    	mov    0x4053c8,%edi
402046:	85 ff                	test   %edi,%edi
402048:	74 0a                	je     0x402054
40204a:	8b cf                	mov    %edi,%ecx
40204c:	ff 15 90 61 40 00    	call   *0x406190
402052:	ff d7                	call   *%edi
402054:	8b 3d a8 53 40 00    	mov    0x4053a8,%edi
40205a:	89 46 44             	mov    %eax,0x44(%esi)
40205d:	85 ff                	test   %edi,%edi
40205f:	74 13                	je     0x402074
402061:	68 00 04 00 00       	push   $0x400
402066:	ff 75 30             	push   0x30(%ebp)
402069:	8b cf                	mov    %edi,%ecx
40206b:	56                   	push   %esi
40206c:	ff 15 90 61 40 00    	call   *0x406190
402072:	ff d7                	call   *%edi
402074:	8b 3d a0 53 40 00    	mov    0x4053a0,%edi
40207a:	85 ff                	test   %edi,%edi
40207c:	74 0b                	je     0x402089
40207e:	56                   	push   %esi
40207f:	8b cf                	mov    %edi,%ecx
402081:	ff 15 90 61 40 00    	call   *0x406190
402087:	ff d7                	call   *%edi
402089:	8b 3d b8 53 40 00    	mov    0x4053b8,%edi
40208f:	85 ff                	test   %edi,%edi
402091:	74 0b                	je     0x40209e
402093:	56                   	push   %esi
402094:	8b cf                	mov    %edi,%ecx
402096:	ff 15 90 61 40 00    	call   *0x406190
40209c:	ff d7                	call   *%edi
40209e:	33 c0                	xor    %eax,%eax
4020a0:	39 46 04             	cmp    %eax,0x4(%esi)
4020a3:	7c 11                	jl     0x4020b6
4020a5:	83 7d 18 03          	cmpl   $0x3,0x18(%ebp)
4020a9:	0f 85 bc 00 00 00    	jne    0x40216b
4020af:	c7 46 04 ff ff 00 80 	movl   $0x8000ffff,0x4(%esi)
4020b6:	38 05 88 53 40 00    	cmp    %al,0x405388
4020bc:	75 4a                	jne    0x402108
4020be:	8b 3d 80 53 40 00    	mov    0x405380,%edi
4020c4:	85 ff                	test   %edi,%edi
4020c6:	74 0f                	je     0x4020d7
4020c8:	8b cf                	mov    %edi,%ecx
4020ca:	ff 15 90 61 40 00    	call   *0x406190
4020d0:	ff d7                	call   *%edi
4020d2:	0f b6 c0             	movzbl %al,%eax
4020d5:	eb 0c                	jmp    0x4020e3
4020d7:	ff 15 64 60 40 00    	call   *0x406064
4020dd:	f7 d8                	neg    %eax
4020df:	1b c0                	sbb    %eax,%eax
4020e1:	f7 d8                	neg    %eax
4020e3:	85 c0                	test   %eax,%eax
4020e5:	75 21                	jne    0x402108
4020e7:	8b 3d 8c 53 40 00    	mov    0x40538c,%edi
4020ed:	85 ff                	test   %edi,%edi
4020ef:	74 56                	je     0x402147
4020f1:	38 05 98 53 40 00    	cmp    %al,0x405398
4020f7:	75 4e                	jne    0x402147
4020f9:	50                   	push   %eax
4020fa:	50                   	push   %eax
4020fb:	56                   	push   %esi
4020fc:	8b cf                	mov    %edi,%ecx
4020fe:	ff 15 90 61 40 00    	call   *0x406190
402104:	ff d7                	call   *%edi
402106:	eb 3f                	jmp    0x402147
402108:	8b 3d 8c 53 40 00    	mov    0x40538c,%edi
40210e:	85 ff                	test   %edi,%edi
402110:	74 1a                	je     0x40212c
402112:	80 3d 98 53 40 00 00 	cmpb   $0x0,0x405398
402119:	75 11                	jne    0x40212c
40211b:	68 00 08 00 00       	push   $0x800
402120:	53                   	push   %ebx
402121:	56                   	push   %esi
402122:	8b cf                	mov    %edi,%ecx
402124:	ff 15 90 61 40 00    	call   *0x406190
40212a:	ff d7                	call   *%edi
40212c:	33 c0                	xor    %eax,%eax
40212e:	66 39 03             	cmp    %ax,(%ebx)
402131:	75 0d                	jne    0x402140
402133:	56                   	push   %esi
402134:	ba 00 08 00 00       	mov    $0x800,%edx
402139:	8b cb                	mov    %ebx,%ecx
40213b:	e8 61 f9 ff ff       	call   0x401aa1
402140:	53                   	push   %ebx
402141:	ff 15 30 60 40 00    	call   *0x406030
402147:	80 3d 90 53 40 00 00 	cmpb   $0x0,0x405390
40214e:	74 14                	je     0x402164
402150:	8b 35 b0 53 40 00    	mov    0x4053b0,%esi
402156:	85 f6                	test   %esi,%esi
402158:	74 0a                	je     0x402164
40215a:	8b ce                	mov    %esi,%ecx
40215c:	ff 15 90 61 40 00    	call   *0x406190
402162:	ff d6                	call   *%esi
402164:	5f                   	pop    %edi
402165:	5e                   	pop    %esi
402166:	5b                   	pop    %ebx
402167:	c9                   	leave
402168:	c2 34 00             	ret    $0x34
40216b:	e8 7c 02 00 00       	call   0x4023ec
402170:	cc                   	int3
402171:	8b ff                	mov    %edi,%edi
402173:	55                   	push   %ebp
402174:	8b ec                	mov    %esp,%ebp
402176:	83 ec 50             	sub    $0x50,%esp
402179:	56                   	push   %esi
40217a:	57                   	push   %edi
40217b:	8b 3d cc 53 40 00    	mov    0x4053cc,%edi
402181:	8b f1                	mov    %ecx,%esi
402183:	85 ff                	test   %edi,%edi
402185:	74 0b                	je     0x402192
402187:	56                   	push   %esi
402188:	8b cf                	mov    %edi,%ecx
40218a:	ff 15 90 61 40 00    	call   *0x406190
402190:	ff d7                	call   *%edi
402192:	6a 50                	push   $0x50
402194:	8d 45 b0             	lea    -0x50(%ebp),%eax
402197:	6a 00                	push   $0x0
402199:	50                   	push   %eax
40219a:	e8 ac 27 00 00       	call   0x40494b
40219f:	8b 4e 48             	mov    0x48(%esi),%ecx
4021a2:	33 c0                	xor    %eax,%eax
4021a4:	40                   	inc    %eax
4021a5:	c7 45 b0 09 04 00 c0 	movl   $0xc0000409,-0x50(%ebp)
4021ac:	83 c4 0c             	add    $0xc,%esp
4021af:	89 45 c0             	mov    %eax,-0x40(%ebp)
4021b2:	89 45 b4             	mov    %eax,-0x4c(%ebp)
4021b5:	c7 45 c4 07 00 00 00 	movl   $0x7,-0x3c(%ebp)
4021bc:	85 c9                	test   %ecx,%ecx
4021be:	75 09                	jne    0x4021c9
4021c0:	50                   	push   %eax
4021c1:	8d 4d b0             	lea    -0x50(%ebp),%ecx
4021c4:	e8 6b fb ff ff       	call   0x401d34
4021c9:	8b 46 04             	mov    0x4(%esi),%eax
4021cc:	89 45 c8             	mov    %eax,-0x38(%ebp)
4021cf:	8b 46 20             	mov    0x20(%esi),%eax
4021d2:	c7 45 c0 03 00 00 00 	movl   $0x3,-0x40(%ebp)
4021d9:	89 45 cc             	mov    %eax,-0x34(%ebp)
4021dc:	89 4d bc             	mov    %ecx,-0x44(%ebp)
4021df:	6a 00                	push   $0x0
4021e1:	eb de                	jmp    0x4021c1
4021e3:	8b ff                	mov    %edi,%edi
4021e5:	55                   	push   %ebp
4021e6:	8b ec                	mov    %esp,%ebp
4021e8:	83 e4 f8             	and    $0xfffffff8,%esp
4021eb:	b8 64 14 00 00       	mov    $0x1464,%eax
4021f0:	e8 2b 27 00 00       	call   0x404920
4021f5:	a1 14 50 40 00       	mov    0x405014,%eax
4021fa:	33 c4                	xor    %esp,%eax
4021fc:	89 84 24 60 14 00 00 	mov    %eax,0x1460(%esp)
402203:	83 7d 18 00          	cmpl   $0x0,0x18(%ebp)
402207:	8b 45 08             	mov    0x8(%ebp),%eax
40220a:	53                   	push   %ebx
40220b:	8b 5d 10             	mov    0x10(%ebp),%ebx
40220e:	56                   	push   %esi
40220f:	89 5c 24 10          	mov    %ebx,0x10(%esp)
402213:	8b 5d 14             	mov    0x14(%ebp),%ebx
402216:	57                   	push   %edi
402217:	8b 7d 0c             	mov    0xc(%ebp),%edi
40221a:	89 5c 24 10          	mov    %ebx,0x10(%esp)
40221e:	75 0d                	jne    0x40222d
402220:	83 3d b4 53 40 00 00 	cmpl   $0x0,0x4053b4
402227:	74 04                	je     0x40222d
402229:	b3 01                	mov    $0x1,%bl
40222b:	eb 02                	jmp    0x40222f
40222d:	32 db                	xor    %bl,%bl
40222f:	8d 74 24 18          	lea    0x18(%esp),%esi
402233:	56                   	push   %esi
402234:	51                   	push   %ecx
402235:	8d 74 24 70          	lea    0x70(%esp),%esi
402239:	56                   	push   %esi
40223a:	51                   	push   %ecx
40223b:	8d b4 24 78 04 00 00 	lea    0x478(%esp),%esi
402242:	56                   	push   %esi
402243:	8b 75 18             	mov    0x18(%ebp),%esi
402246:	51                   	push   %ecx
402247:	6a 00                	push   $0x0
402249:	ff 75 1c             	push   0x1c(%ebp)
40224c:	56                   	push   %esi
40224d:	ff 74 24 34          	push   0x34(%esp)
402251:	ff 74 24 3c          	push   0x3c(%esp)
402255:	57                   	push   %edi
402256:	50                   	push   %eax
402257:	e8 f6 fc ff ff       	call   0x401f52
40225c:	83 fe 03             	cmp    $0x3,%esi
40225f:	74 4b                	je     0x4022ac
402261:	85 f6                	test   %esi,%esi
402263:	75 30                	jne    0x402295
402265:	84 db                	test   %bl,%bl
402267:	74 1d                	je     0x402286
402269:	8b 35 b4 53 40 00    	mov    0x4053b4,%esi
40226f:	8d 84 24 68 04 00 00 	lea    0x468(%esp),%eax
402276:	50                   	push   %eax
402277:	8d 44 24 1c          	lea    0x1c(%esp),%eax
40227b:	8b ce                	mov    %esi,%ecx
40227d:	50                   	push   %eax
40227e:	ff 15 90 61 40 00    	call   *0x406190
402284:	ff d6                	call   *%esi
402286:	8d 4c 24 18          	lea    0x18(%esp),%ecx
40228a:	e8 a9 fc ff ff       	call   0x401f38
40228f:	8d 4c 24 18          	lea    0x18(%esp),%ecx
402293:	eb 1b                	jmp    0x4022b0
402295:	8b 8c 24 6c 14 00 00 	mov    0x146c(%esp),%ecx
40229c:	5f                   	pop    %edi
40229d:	5e                   	pop    %esi
40229e:	5b                   	pop    %ebx
40229f:	33 cc                	xor    %esp,%ecx
4022a1:	e8 fa 1f 00 00       	call   0x4042a0
4022a6:	8b e5                	mov    %ebp,%esp
4022a8:	5d                   	pop    %ebp
4022a9:	c2 20 00             	ret    $0x20
4022ac:	8d 4c 24 18          	lea    0x18(%esp),%ecx
4022b0:	e8 bc fe ff ff       	call   0x402171
4022b5:	cc                   	int3
4022b6:	8b ff                	mov    %edi,%edi
4022b8:	55                   	push   %ebp
4022b9:	8b ec                	mov    %esp,%ebp
4022bb:	83 e4 f8             	and    $0xfffffff8,%esp
4022be:	51                   	push   %ecx
4022bf:	51                   	push   %ecx
4022c0:	ff 75 1c             	push   0x1c(%ebp)
4022c3:	ff 75 18             	push   0x18(%ebp)
4022c6:	ff 75 14             	push   0x14(%ebp)
4022c9:	ff 75 10             	push   0x10(%ebp)
4022cc:	ff 75 0c             	push   0xc(%ebp)
4022cf:	ff 75 08             	push   0x8(%ebp)
4022d2:	e8 0c ff ff ff       	call   0x4021e3
4022d7:	8b e5                	mov    %ebp,%esp
4022d9:	5d                   	pop    %ebp
4022da:	c2 18 00             	ret    $0x18
4022dd:	8b ff                	mov    %edi,%edi
4022df:	55                   	push   %ebp
4022e0:	8b ec                	mov    %esp,%ebp
4022e2:	53                   	push   %ebx
4022e3:	56                   	push   %esi
4022e4:	57                   	push   %edi
4022e5:	ff 75 14             	push   0x14(%ebp)
4022e8:	8b fa                	mov    %edx,%edi
4022ea:	8b d9                	mov    %ecx,%ebx
4022ec:	51                   	push   %ecx
4022ed:	51                   	push   %ecx
4022ee:	68 c0 13 40 00       	push   $0x4013c0
4022f3:	e8 c3 fb ff ff       	call   0x401ebb
4022f8:	8b f0                	mov    %eax,%esi
4022fa:	85 f6                	test   %esi,%esi
4022fc:	7f 04                	jg     0x402302
4022fe:	8b ce                	mov    %esi,%ecx
402300:	eb 09                	jmp    0x40230b
402302:	0f b7 ce             	movzwl %si,%ecx
402305:	81 c9 00 00 07 80    	or     $0x80070000,%ecx
40230b:	51                   	push   %ecx
40230c:	51                   	push   %ecx
40230d:	51                   	push   %ecx
40230e:	6a 03                	push   $0x3
402310:	ff 75 14             	push   0x14(%ebp)
402313:	8b d7                	mov    %edi,%edx
402315:	8b cb                	mov    %ebx,%ecx
402317:	6a 00                	push   $0x0
402319:	6a 00                	push   $0x0
40231b:	68 c0 13 40 00       	push   $0x4013c0
402320:	e8 be fe ff ff       	call   0x4021e3
402325:	5f                   	pop    %edi
402326:	8b c6                	mov    %esi,%eax
402328:	5e                   	pop    %esi
402329:	5b                   	pop    %ebx
40232a:	5d                   	pop    %ebp
40232b:	c2 14 00             	ret    $0x14
40232e:	8b ff                	mov    %edi,%edi
402330:	55                   	push   %ebp
402331:	8b ec                	mov    %esp,%ebp
402333:	53                   	push   %ebx
402334:	56                   	push   %esi
402335:	57                   	push   %edi
402336:	ff 75 14             	push   0x14(%ebp)
402339:	8b fa                	mov    %edx,%edi
40233b:	8b d9                	mov    %ecx,%ebx
40233d:	51                   	push   %ecx
40233e:	51                   	push   %ecx
40233f:	68 bc 13 40 00       	push   $0x4013bc
402344:	e8 72 fb ff ff       	call   0x401ebb
402349:	8b f0                	mov    %eax,%esi
40234b:	85 f6                	test   %esi,%esi
40234d:	7e 09                	jle    0x402358
40234f:	0f b7 f6             	movzwl %si,%esi
402352:	81 ce 00 00 07 80    	or     $0x80070000,%esi
402358:	51                   	push   %ecx
402359:	51                   	push   %ecx
40235a:	56                   	push   %esi
40235b:	6a 01                	push   $0x1
40235d:	ff 75 14             	push   0x14(%ebp)
402360:	8b d7                	mov    %edi,%edx
402362:	8b cb                	mov    %ebx,%ecx
402364:	6a 00                	push   $0x0
402366:	6a 00                	push   $0x0
402368:	68 bc 13 40 00       	push   $0x4013bc
40236d:	e8 71 fe ff ff       	call   0x4021e3
402372:	5f                   	pop    %edi
402373:	8b c6                	mov    %esi,%eax
402375:	5e                   	pop    %esi
402376:	5b                   	pop    %ebx
402377:	5d                   	pop    %ebp
402378:	c2 14 00             	ret    $0x14
40237b:	8b ff                	mov    %edi,%edi
40237d:	55                   	push   %ebp
40237e:	8b ec                	mov    %esp,%ebp
402380:	ff 75 0c             	push   0xc(%ebp)
402383:	6a 01                	push   $0x1
402385:	ff 75 04             	push   0x4(%ebp)
402388:	6a 00                	push   $0x0
40238a:	6a 00                	push   $0x0
40238c:	68 bc 13 40 00       	push   $0x4013bc
402391:	e8 20 ff ff ff       	call   0x4022b6
402396:	5d                   	pop    %ebp
402397:	c2 08 00             	ret    $0x8
40239a:	8b ff                	mov    %edi,%edi
40239c:	55                   	push   %ebp
40239d:	8b ec                	mov    %esp,%ebp
40239f:	51                   	push   %ecx
4023a0:	51                   	push   %ecx
4023a1:	ff 75 04             	push   0x4(%ebp)