4040bf:	52                   	push   %edx
4040c0:	50                   	push   %eax
4040c1:	8b 45 08             	mov    0x8(%ebp),%eax
4040c4:	50                   	push   %eax
4040c5:	51                   	push   %ecx
4040c6:	6a 00                	push   $0x0
4040c8:	a1 bc e5 46 00       	mov    0x46e5bc,%eax
4040cd:	50                   	push   %eax
4040ce:	e8 f1 d1 ff ff       	call   0x4012c4
4040d3:	5d                   	pop    %ebp
4040d4:	c2 04 00             	ret    $0x4
4040d7:	90                   	nop
4040d8:	55                   	push   %ebp
4040d9:	8b ec                	mov    %esp,%ebp
4040db:	52                   	push   %edx
4040dc:	50                   	push   %eax
4040dd:	8b 45 08             	mov    0x8(%ebp),%eax
4040e0:	50                   	push   %eax
4040e1:	51                   	push   %ecx
4040e2:	6a 00                	push   $0x0
4040e4:	a1 bc e5 46 00       	mov    0x46e5bc,%eax
4040e9:	50                   	push   %eax
4040ea:	e8 b5 d1 ff ff       	call   0x4012a4
4040ef:	5d                   	pop    %ebp
4040f0:	c2 04 00             	ret    $0x4
4040f3:	90                   	nop
4040f4:	53                   	push   %ebx
4040f5:	56                   	push   %esi
4040f6:	57                   	push   %edi
4040f7:	55                   	push   %ebp
4040f8:	81 c4 04 f0 ff ff    	add    $0xfffff004,%esp
4040fe:	50                   	push   %eax
4040ff:	83 c4 fc             	add    $0xfffffffc,%esp
404102:	8b f1                	mov    %ecx,%esi
404104:	89 14 24             	mov    %edx,(%esp)
404107:	8b f8                	mov    %eax,%edi
404109:	85 f6                	test   %esi,%esi
40410b:	7f 09                	jg     0x404116
40410d:	8b c7                	mov    %edi,%eax
40410f:	e8 84 fe ff ff       	call   0x403f98
404114:	eb 5f                	jmp    0x404175
404116:	8d 6e 01             	lea    0x1(%esi),%ebp
404119:	81 fd ff 07 00 00    	cmp    $0x7ff,%ebp
40411f:	7d 28                	jge    0x404149
404121:	56                   	push   %esi
404122:	8d 44 24 08          	lea    0x8(%esp),%eax
404126:	8b 4c 24 04          	mov    0x4(%esp),%ecx
40412a:	ba ff 0f 00 00       	mov    $0xfff,%edx
40412f:	e8 84 ff ff ff       	call   0x4040b8
404134:	8b d8                	mov    %eax,%ebx
404136:	85 db                	test   %ebx,%ebx
404138:	7c 0f                	jl     0x404149
40413a:	8d 54 24 04          	lea    0x4(%esp),%edx
40413e:	8b c7                	mov    %edi,%eax
404140:	8b cb                	mov    %ebx,%ecx
404142:	e8 41 ff ff ff       	call   0x404088
404147:	eb 2c                	jmp    0x404175
404149:	8b dd                	mov    %ebp,%ebx
40414b:	03 db                	add    %ebx,%ebx
40414d:	8b c7                	mov    %edi,%eax
40414f:	8b d3                	mov    %ebx,%edx
404151:	e8 8e 04 00 00       	call   0x4045e4
404156:	56                   	push   %esi
404157:	8b 07                	mov    (%edi),%eax
404159:	8b 4c 24 04          	mov    0x4(%esp),%ecx
40415d:	8b d3                	mov    %ebx,%edx
40415f:	e8 54 ff ff ff       	call   0x4040b8
404164:	8b d8                	mov    %eax,%ebx
404166:	85 db                	test   %ebx,%ebx
404168:	7d 02                	jge    0x40416c
40416a:	33 db                	xor    %ebx,%ebx
40416c:	8b c7                	mov    %edi,%eax
40416e:	8b d3                	mov    %ebx,%edx
404170:	e8 6f 04 00 00       	call   0x4045e4
404175:	81 c4 04 10 00 00    	add    $0x1004,%esp
40417b:	5d                   	pop    %ebp
40417c:	5f                   	pop    %edi
40417d:	5e                   	pop    %esi
40417e:	5b                   	pop    %ebx
40417f:	c3                   	ret
404180:	52                   	push   %edx
404181:	89 e2                	mov    %esp,%edx
404183:	b9 01 00 00 00       	mov    $0x1,%ecx
404188:	e8 fb fe ff ff       	call   0x404088
40418d:	5a                   	pop    %edx
40418e:	c3                   	ret
40418f:	90                   	nop
404190:	31 c9                	xor    %ecx,%ecx
404192:	85 d2                	test   %edx,%edx
404194:	74 21                	je     0x4041b7
404196:	52                   	push   %edx
404197:	3a 0a                	cmp    (%edx),%cl
404199:	74 17                	je     0x4041b2
40419b:	3a 4a 01             	cmp    0x1(%edx),%cl
40419e:	74 11                	je     0x4041b1
4041a0:	3a 4a 02             	cmp    0x2(%edx),%cl
4041a3:	74 0b                	je     0x4041b0
4041a5:	3a 4a 03             	cmp    0x3(%edx),%cl
4041a8:	74 05                	je     0x4041af
4041aa:	83 c2 04             	add    $0x4,%edx
4041ad:	eb e8                	jmp    0x404197
4041af:	42                   	inc    %edx
4041b0:	42                   	inc    %edx
4041b1:	42                   	inc    %edx
4041b2:	89 d1                	mov    %edx,%ecx
4041b4:	5a                   	pop    %edx
4041b5:	29 d1                	sub    %edx,%ecx
4041b7:	e9 cc fe ff ff       	jmp    0x404088
4041bc:	c3                   	ret
4041bd:	8d 40 00             	lea    0x0(%eax),%eax
4041c0:	31 c9                	xor    %ecx,%ecx
4041c2:	85 d2                	test   %edx,%edx
4041c4:	74 2d                	je     0x4041f3
4041c6:	52                   	push   %edx
4041c7:	66 3b 0a             	cmp    (%edx),%cx
4041ca:	74 20                	je     0x4041ec
4041cc:	66 3b 4a 02          	cmp    0x2(%edx),%cx
4041d0:	74 17                	je     0x4041e9
4041d2:	66 3b 4a 04          	cmp    0x4(%edx),%cx
4041d6:	74 0e                	je     0x4041e6
4041d8:	66 3b 4a 06          	cmp    0x6(%edx),%cx
4041dc:	74 05                	je     0x4041e3
4041de:	83 c2 08             	add    $0x8,%edx
4041e1:	eb e4                	jmp    0x4041c7
4041e3:	83 c2 02             	add    $0x2,%edx
4041e6:	83 c2 02             	add    $0x2,%edx
4041e9:	83 c2 02             	add    $0x2,%edx
4041ec:	89 d1                	mov    %edx,%ecx
4041ee:	5a                   	pop    %edx
4041ef:	29 d1                	sub    %edx,%ecx
4041f1:	d1 e9                	shr    $1,%ecx
4041f3:	e9 fc fe ff ff       	jmp    0x4040f4
4041f8:	c3                   	ret
4041f9:	8d 40 00             	lea    0x0(%eax),%eax
4041fc:	31 c9                	xor    %ecx,%ecx
4041fe:	8a 0a                	mov    (%edx),%cl
404200:	42                   	inc    %edx
404201:	e9 82 fe ff ff       	jmp    0x404088
404206:	c3                   	ret
404207:	90                   	nop
404208:	57                   	push   %edi
404209:	50                   	push   %eax
40420a:	51                   	push   %ecx
40420b:	89 d7                	mov    %edx,%edi
40420d:	31 c0                	xor    %eax,%eax
40420f:	f2 ae                	repnz scas %es:(%edi),%al
404211:	75 02                	jne    0x404215
404213:	f7 d1                	not    %ecx
404215:	58                   	pop    %eax
404216:	01 c1                	add    %eax,%ecx
404218:	58                   	pop    %eax
404219:	5f                   	pop    %edi
40421a:	e9 69 fe ff ff       	jmp    0x404088
40421f:	c3                   	ret
404220:	31 c9                	xor    %ecx,%ecx
404222:	85 d2                	test   %edx,%edx
404224:	74 05                	je     0x40422b
404226:	8b 4a fc             	mov    -0x4(%edx),%ecx
404229:	d1 e9                	shr    $1,%ecx
40422b:	e9 c4 fe ff ff       	jmp    0x4040f4
404230:	c3                   	ret
404231:	8d 40 00             	lea    0x0(%eax),%eax
404234:	53                   	push   %ebx
404235:	85 d2                	test   %edx,%edx
404237:	74 18                	je     0x404251
404239:	8b 5a fc             	mov    -0x4(%edx),%ebx
40423c:	85 db                	test   %ebx,%ebx
40423e:	74 11                	je     0x404251
404240:	39 d9                	cmp    %ebx,%ecx
404242:	7c 02                	jl     0x404246
404244:	89 d9                	mov    %ebx,%ecx
404246:	88 08                	mov    %cl,(%eax)
404248:	40                   	inc    %eax
404249:	92                   	xchg   %eax,%edx
40424a:	e8 69 e6 ff ff       	call   0x4028b8
40424f:	5b                   	pop    %ebx
404250:	c3                   	ret
404251:	c6 00 00             	movb   $0x0,(%eax)
404254:	5b                   	pop    %ebx
404255:	c3                   	ret
404256:	8b c0                	mov    %eax,%eax
404258:	85 c0                	test   %eax,%eax
40425a:	74 03                	je     0x40425f
40425c:	8b 40 fc             	mov    -0x4(%eax),%eax
40425f:	c3                   	ret
404260:	85 d2                	test   %edx,%edx
404262:	74 3f                	je     0x4042a3
404264:	8b 08                	mov    (%eax),%ecx
404266:	85 c9                	test   %ecx,%ecx
404268:	0f 84 7e fd ff ff    	je     0x403fec
40426e:	53                   	push   %ebx
40426f:	56                   	push   %esi
404270:	57                   	push   %edi
404271:	89 c3                	mov    %eax,%ebx
404273:	89 d6                	mov    %edx,%esi
404275:	8b 79 fc             	mov    -0x4(%ecx),%edi
404278:	8b 56 fc             	mov    -0x4(%esi),%edx
40427b:	01 fa                	add    %edi,%edx
40427d:	39 ce                	cmp    %ecx,%esi
40427f:	74 17                	je     0x404298
404281:	e8 5e 03 00 00       	call   0x4045e4
404286:	89 f0                	mov    %esi,%eax
404288:	8b 4e fc             	mov    -0x4(%esi),%ecx
40428b:	8b 13                	mov    (%ebx),%edx
40428d:	01 fa                	add    %edi,%edx
40428f:	e8 24 e6 ff ff       	call   0x4028b8
404294:	5f                   	pop    %edi
404295:	5e                   	pop    %esi
404296:	5b                   	pop    %ebx
404297:	c3                   	ret
404298:	e8 47 03 00 00       	call   0x4045e4
40429d:	8b 03                	mov    (%ebx),%eax
40429f:	89 f9                	mov    %edi,%ecx
4042a1:	eb e8                	jmp    0x40428b
4042a3:	c3                   	ret
4042a4:	85 d2                	test   %edx,%edx
4042a6:	74 61                	je     0x404309
4042a8:	85 c9                	test   %ecx,%ecx
4042aa:	0f 84 3c fd ff ff    	je     0x403fec
4042b0:	3b 10                	cmp    (%eax),%edx
4042b2:	74 5c                	je     0x404310
4042b4:	3b 08                	cmp    (%eax),%ecx
4042b6:	74 0e                	je     0x4042c6
4042b8:	50                   	push   %eax
4042b9:	51                   	push   %ecx
4042ba:	e8 2d fd ff ff       	call   0x403fec
4042bf:	5a                   	pop    %edx
4042c0:	58                   	pop    %eax
4042c1:	e9 9a ff ff ff       	jmp    0x404260
4042c6:	53                   	push   %ebx
4042c7:	56                   	push   %esi
4042c8:	57                   	push   %edi
4042c9:	89 d3                	mov    %edx,%ebx
4042cb:	89 ce                	mov    %ecx,%esi
4042cd:	50                   	push   %eax
4042ce:	8b 43 fc             	mov    -0x4(%ebx),%eax
4042d1:	03 46 fc             	add    -0x4(%esi),%eax
4042d4:	e8 83 fd ff ff       	call   0x40405c
4042d9:	89 c7                	mov    %eax,%edi
4042db:	89 c2                	mov    %eax,%edx
4042dd:	89 d8                	mov    %ebx,%eax
4042df:	8b 4b fc             	mov    -0x4(%ebx),%ecx
4042e2:	e8 d1 e5 ff ff       	call   0x4028b8
4042e7:	89 fa                	mov    %edi,%edx
4042e9:	89 f0                	mov    %esi,%eax
4042eb:	8b 4e fc             	mov    -0x4(%esi),%ecx
4042ee:	03 53 fc             	add    -0x4(%ebx),%edx
4042f1:	e8 c2 e5 ff ff       	call   0x4028b8
4042f6:	58                   	pop    %eax
4042f7:	89 fa                	mov    %edi,%edx
4042f9:	85 ff                	test   %edi,%edi
4042fb:	74 03                	je     0x404300
4042fd:	ff 4f f8             	decl   -0x8(%edi)
404300:	e8 e7 fc ff ff       	call   0x403fec
404305:	5f                   	pop    %edi
404306:	5e                   	pop    %esi
404307:	5b                   	pop    %ebx
404308:	c3                   	ret
404309:	89 ca                	mov    %ecx,%edx
40430b:	e9 dc fc ff ff       	jmp    0x403fec
404310:	89 ca                	mov    %ecx,%edx
404312:	e9 49 ff ff ff       	jmp    0x404260
404317:	c3                   	ret
404318:	53                   	push   %ebx
404319:	56                   	push   %esi
40431a:	57                   	push   %edi
40431b:	52                   	push   %edx
40431c:	50                   	push   %eax
40431d:	89 d3                	mov    %edx,%ebx
40431f:	31 ff                	xor    %edi,%edi
404321:	8b 4c 94 14          	mov    0x14(%esp,%edx,4),%ecx
404325:	85 c9                	test   %ecx,%ecx
404327:	74 0c                	je     0x404335
404329:	39 08                	cmp    %ecx,(%eax)
40432b:	75 08                	jne    0x404335
40432d:	89 cf                	mov    %ecx,%edi
40432f:	8b 41 fc             	mov    -0x4(%ecx),%eax
404332:	4a                   	dec    %edx
404333:	eb 02                	jmp    0x404337
404335:	31 c0                	xor    %eax,%eax
404337:	8b 4c 94 14          	mov    0x14(%esp,%edx,4),%ecx
40433b:	85 c9                	test   %ecx,%ecx
40433d:	74 09                	je     0x404348
40433f:	03 41 fc             	add    -0x4(%ecx),%eax
404342:	39 cf                	cmp    %ecx,%edi
404344:	75 02                	jne    0x404348
404346:	31 ff                	xor    %edi,%edi
404348:	4a                   	dec    %edx
404349:	75 ec                	jne    0x404337
40434b:	85 ff                	test   %edi,%edi
40434d:	74 17                	je     0x404366
40434f:	89 c2                	mov    %eax,%edx
404351:	8b 04 24             	mov    (%esp),%eax
404354:	8b 77 fc             	mov    -0x4(%edi),%esi
404357:	e8 88 02 00 00       	call   0x4045e4
40435c:	8b 3c 24             	mov    (%esp),%edi
40435f:	ff 37                	push   (%edi)
404361:	03 37                	add    (%edi),%esi
404363:	4b                   	dec    %ebx
404364:	eb 08                	jmp    0x40436e
404366:	e8 f1 fc ff ff       	call   0x40405c
40436b:	50                   	push   %eax
40436c:	89 c6                	mov    %eax,%esi
40436e:	8b 44 9c 18          	mov    0x18(%esp,%ebx,4),%eax
404372:	89 f2                	mov    %esi,%edx
404374:	85 c0                	test   %eax,%eax
404376:	74 0a                	je     0x404382
404378:	8b 48 fc             	mov    -0x4(%eax),%ecx
40437b:	01 ce                	add    %ecx,%esi
40437d:	e8 36 e5 ff ff       	call   0x4028b8
404382:	4b                   	dec    %ebx
404383:	75 e9                	jne    0x40436e
404385:	5a                   	pop    %edx
404386:	58                   	pop    %eax
404387:	85 ff                	test   %edi,%edi
404389:	75 0c                	jne    0x404397
40438b:	85 d2                	test   %edx,%edx
40438d:	74 03                	je     0x404392
40438f:	ff 4a f8             	decl   -0x8(%edx)
404392:	e8 55 fc ff ff       	call   0x403fec
404397:	5a                   	pop    %edx
404398:	5f                   	pop    %edi
404399:	5e                   	pop    %esi
40439a:	5b                   	pop    %ebx
40439b:	58                   	pop    %eax
40439c:	8d 24 94             	lea    (%esp,%edx,4),%esp
40439f:	ff e0                	jmp    *%eax
4043a1:	c3                   	ret
4043a2:	8b c0                	mov    %eax,%eax
4043a4:	53                   	push   %ebx
4043a5:	56                   	push   %esi
4043a6:	57                   	push   %edi
4043a7:	89 c6                	mov    %eax,%esi
4043a9:	89 d7                	mov    %edx,%edi
4043ab:	39 d0                	cmp    %edx,%eax
4043ad:	0f 84 8f 00 00 00    	je     0x404442
4043b3:	85 f6                	test   %esi,%esi
4043b5:	74 68                	je     0x40441f
4043b7:	85 ff                	test   %edi,%edi
4043b9:	74 6b                	je     0x404426
4043bb:	8b 46 fc             	mov    -0x4(%esi),%eax
4043be:	8b 57 fc             	mov    -0x4(%edi),%edx
4043c1:	29 d0                	sub    %edx,%eax
4043c3:	77 02                	ja     0x4043c7
4043c5:	01 c2                	add    %eax,%edx
4043c7:	52                   	push   %edx
4043c8:	c1 ea 02             	shr    $0x2,%edx
4043cb:	74 26                	je     0x4043f3
4043cd:	8b 0e                	mov    (%esi),%ecx
4043cf:	8b 1f                	mov    (%edi),%ebx