40406c:	e8 a3 e6 ff ff       	call   0x402714
404071:	58                   	pop    %eax
404072:	c3                   	ret
404073:	90                   	nop
404074:	53                   	push   %ebx
404075:	56                   	push   %esi
404076:	89 c3                	mov    %eax,%ebx
404078:	89 d6                	mov    %edx,%esi
40407a:	8b 13                	mov    (%ebx),%edx
40407c:	85 d2                	test   %edx,%edx
40407e:	74 1a                	je     0x40409a
404080:	c7 03 00 00 00 00    	movl   $0x0,(%ebx)
404086:	8b 4a f8             	mov    -0x8(%edx),%ecx
404089:	49                   	dec    %ecx
40408a:	7c 0e                	jl     0x40409a
40408c:	f0 ff 4a f8          	lock decl -0x8(%edx)
404090:	75 08                	jne    0x40409a
404092:	8d 42 f8             	lea    -0x8(%edx),%eax
404095:	e8 7a e6 ff ff       	call   0x402714
40409a:	83 c3 04             	add    $0x4,%ebx
40409d:	4e                   	dec    %esi
40409e:	75 da                	jne    0x40407a
4040a0:	5e                   	pop    %esi
4040a1:	5b                   	pop    %ebx
4040a2:	c3                   	ret
4040a3:	90                   	nop
4040a4:	85 d2                	test   %edx,%edx
4040a6:	74 24                	je     0x4040cc
4040a8:	8b 4a f8             	mov    -0x8(%edx),%ecx
4040ab:	41                   	inc    %ecx
4040ac:	7f 1a                	jg     0x4040c8
4040ae:	50                   	push   %eax
4040af:	52                   	push   %edx
4040b0:	8b 42 fc             	mov    -0x4(%edx),%eax
4040b3:	e8 5c 00 00 00       	call   0x404114
4040b8:	89 c2                	mov    %eax,%edx
4040ba:	58                   	pop    %eax
4040bb:	52                   	push   %edx
4040bc:	8b 48 fc             	mov    -0x4(%eax),%ecx
4040bf:	e8 2c e8 ff ff       	call   0x4028f0
4040c4:	5a                   	pop    %edx
4040c5:	58                   	pop    %eax
4040c6:	eb 04                	jmp    0x4040cc
4040c8:	f0 ff 42 f8          	lock incl -0x8(%edx)
4040cc:	87 10                	xchg   %edx,(%eax)
4040ce:	85 d2                	test   %edx,%edx
4040d0:	74 14                	je     0x4040e6
4040d2:	8b 4a f8             	mov    -0x8(%edx),%ecx
4040d5:	49                   	dec    %ecx
4040d6:	7c 0e                	jl     0x4040e6
4040d8:	f0 ff 4a f8          	lock decl -0x8(%edx)
4040dc:	75 08                	jne    0x4040e6
4040de:	8d 42 f8             	lea    -0x8(%edx),%eax
4040e1:	e8 2e e6 ff ff       	call   0x402714
4040e6:	c3                   	ret
4040e7:	90                   	nop
4040e8:	85 d2                	test   %edx,%edx
4040ea:	74 0a                	je     0x4040f6
4040ec:	8b 4a f8             	mov    -0x8(%edx),%ecx
4040ef:	41                   	inc    %ecx
4040f0:	7e 04                	jle    0x4040f6
4040f2:	f0 ff 42 f8          	lock incl -0x8(%edx)
4040f6:	87 10                	xchg   %edx,(%eax)
4040f8:	85 d2                	test   %edx,%edx
4040fa:	74 14                	je     0x404110
4040fc:	8b 4a f8             	mov    -0x8(%edx),%ecx
4040ff:	49                   	dec    %ecx
404100:	7c 0e                	jl     0x404110
404102:	f0 ff 4a f8          	lock decl -0x8(%edx)
404106:	75 08                	jne    0x404110
404108:	8d 42 f8             	lea    -0x8(%edx),%eax
40410b:	e8 04 e6 ff ff       	call   0x402714
404110:	c3                   	ret
404111:	8d 40 00             	lea    0x0(%eax),%eax
404114:	85 c0                	test   %eax,%eax
404116:	7e 24                	jle    0x40413c
404118:	50                   	push   %eax
404119:	83 c0 0a             	add    $0xa,%eax
40411c:	83 e0 fe             	and    $0xfffffffe,%eax
40411f:	50                   	push   %eax
404120:	e8 cf e5 ff ff       	call   0x4026f4
404125:	5a                   	pop    %edx
404126:	66 c7 44 02 fe 00 00 	movw   $0x0,-0x2(%edx,%eax,1)
40412d:	83 c0 08             	add    $0x8,%eax
404130:	5a                   	pop    %edx
404131:	89 50 fc             	mov    %edx,-0x4(%eax)
404134:	c7 40 f8 01 00 00 00 	movl   $0x1,-0x8(%eax)
40413b:	c3                   	ret
40413c:	31 c0                	xor    %eax,%eax
40413e:	c3                   	ret
40413f:	90                   	nop
404140:	53                   	push   %ebx
404141:	56                   	push   %esi
404142:	57                   	push   %edi
404143:	89 c3                	mov    %eax,%ebx
404145:	89 d6                	mov    %edx,%esi
404147:	89 cf                	mov    %ecx,%edi
404149:	89 f8                	mov    %edi,%eax
40414b:	e8 c4 ff ff ff       	call   0x404114
404150:	89 f9                	mov    %edi,%ecx
404152:	89 c7                	mov    %eax,%edi
404154:	85 f6                	test   %esi,%esi
404156:	74 09                	je     0x404161
404158:	89 c2                	mov    %eax,%edx
40415a:	89 f0                	mov    %esi,%eax
40415c:	e8 8f e7 ff ff       	call   0x4028f0
404161:	89 d8                	mov    %ebx,%eax
404163:	e8 e8 fe ff ff       	call   0x404050
404168:	89 3b                	mov    %edi,(%ebx)
40416a:	5f                   	pop    %edi
40416b:	5e                   	pop    %esi
40416c:	5b                   	pop    %ebx
40416d:	c3                   	ret
40416e:	8b c0                	mov    %eax,%eax
404170:	55                   	push   %ebp
404171:	8b ec                	mov    %esp,%ebp
404173:	6a 00                	push   $0x0
404175:	6a 00                	push   $0x0
404177:	52                   	push   %edx
404178:	50                   	push   %eax
404179:	8b 45 08             	mov    0x8(%ebp),%eax
40417c:	50                   	push   %eax
40417d:	51                   	push   %ecx
40417e:	6a 00                	push   $0x0
404180:	a1 bc 55 47 00       	mov    0x4755bc,%eax
404185:	50                   	push   %eax
404186:	e8 71 d1 ff ff       	call   0x4012fc
40418b:	5d                   	pop    %ebp
40418c:	c2 04 00             	ret    $0x4
40418f:	90                   	nop
404190:	55                   	push   %ebp
404191:	8b ec                	mov    %esp,%ebp
404193:	52                   	push   %edx
404194:	50                   	push   %eax
404195:	8b 45 08             	mov    0x8(%ebp),%eax
404198:	50                   	push   %eax
404199:	51                   	push   %ecx
40419a:	6a 00                	push   $0x0
40419c:	a1 bc 55 47 00       	mov    0x4755bc,%eax
4041a1:	50                   	push   %eax
4041a2:	e8 35 d1 ff ff       	call   0x4012dc
4041a7:	5d                   	pop    %ebp
4041a8:	c2 04 00             	ret    $0x4
4041ab:	90                   	nop
4041ac:	53                   	push   %ebx
4041ad:	56                   	push   %esi
4041ae:	57                   	push   %edi
4041af:	55                   	push   %ebp
4041b0:	81 c4 04 f0 ff ff    	add    $0xfffff004,%esp
4041b6:	50                   	push   %eax
4041b7:	83 c4 fc             	add    $0xfffffffc,%esp
4041ba:	8b f1                	mov    %ecx,%esi
4041bc:	89 14 24             	mov    %edx,(%esp)
4041bf:	8b f8                	mov    %eax,%edi
4041c1:	85 f6                	test   %esi,%esi
4041c3:	7f 09                	jg     0x4041ce
4041c5:	8b c7                	mov    %edi,%eax
4041c7:	e8 84 fe ff ff       	call   0x404050
4041cc:	eb 5f                	jmp    0x40422d
4041ce:	8d 6e 01             	lea    0x1(%esi),%ebp
4041d1:	81 fd ff 07 00 00    	cmp    $0x7ff,%ebp
4041d7:	7d 28                	jge    0x404201
4041d9:	56                   	push   %esi
4041da:	8d 44 24 08          	lea    0x8(%esp),%eax
4041de:	8b 4c 24 04          	mov    0x4(%esp),%ecx
4041e2:	ba ff 0f 00 00       	mov    $0xfff,%edx
4041e7:	e8 84 ff ff ff       	call   0x404170
4041ec:	8b d8                	mov    %eax,%ebx
4041ee:	85 db                	test   %ebx,%ebx
4041f0:	7c 0f                	jl     0x404201
4041f2:	8d 54 24 04          	lea    0x4(%esp),%edx
4041f6:	8b c7                	mov    %edi,%eax
4041f8:	8b cb                	mov    %ebx,%ecx
4041fa:	e8 41 ff ff ff       	call   0x404140
4041ff:	eb 2c                	jmp    0x40422d
404201:	8b dd                	mov    %ebp,%ebx
404203:	03 db                	add    %ebx,%ebx
404205:	8b c7                	mov    %edi,%eax
404207:	8b d3                	mov    %ebx,%edx
404209:	e8 8e 04 00 00       	call   0x40469c
40420e:	56                   	push   %esi
40420f:	8b 07                	mov    (%edi),%eax
404211:	8b 4c 24 04          	mov    0x4(%esp),%ecx
404215:	8b d3                	mov    %ebx,%edx
404217:	e8 54 ff ff ff       	call   0x404170
40421c:	8b d8                	mov    %eax,%ebx
40421e:	85 db                	test   %ebx,%ebx
404220:	7d 02                	jge    0x404224
404222:	33 db                	xor    %ebx,%ebx
404224:	8b c7                	mov    %edi,%eax
404226:	8b d3                	mov    %ebx,%edx
404228:	e8 6f 04 00 00       	call   0x40469c
40422d:	81 c4 04 10 00 00    	add    $0x1004,%esp
404233:	5d                   	pop    %ebp
404234:	5f                   	pop    %edi
404235:	5e                   	pop    %esi
404236:	5b                   	pop    %ebx
404237:	c3                   	ret
404238:	52                   	push   %edx
404239:	89 e2                	mov    %esp,%edx
40423b:	b9 01 00 00 00       	mov    $0x1,%ecx
404240:	e8 fb fe ff ff       	call   0x404140
404245:	5a                   	pop    %edx
404246:	c3                   	ret
404247:	90                   	nop
404248:	31 c9                	xor    %ecx,%ecx
40424a:	85 d2                	test   %edx,%edx
40424c:	74 21                	je     0x40426f
40424e:	52                   	push   %edx
40424f:	3a 0a                	cmp    (%edx),%cl
404251:	74 17                	je     0x40426a
404253:	3a 4a 01             	cmp    0x1(%edx),%cl
404256:	74 11                	je     0x404269
404258:	3a 4a 02             	cmp    0x2(%edx),%cl
40425b:	74 0b                	je     0x404268
40425d:	3a 4a 03             	cmp    0x3(%edx),%cl
404260:	74 05                	je     0x404267
404262:	83 c2 04             	add    $0x4,%edx
404265:	eb e8                	jmp    0x40424f
404267:	42                   	inc    %edx
404268:	42                   	inc    %edx
404269:	42                   	inc    %edx
40426a:	89 d1                	mov    %edx,%ecx
40426c:	5a                   	pop    %edx
40426d:	29 d1                	sub    %edx,%ecx
40426f:	e9 cc fe ff ff       	jmp    0x404140
404274:	c3                   	ret
404275:	8d 40 00             	lea    0x0(%eax),%eax
404278:	31 c9                	xor    %ecx,%ecx
40427a:	85 d2                	test   %edx,%edx
40427c:	74 2d                	je     0x4042ab
40427e:	52                   	push   %edx
40427f:	66 3b 0a             	cmp    (%edx),%cx
404282:	74 20                	je     0x4042a4
404284:	66 3b 4a 02          	cmp    0x2(%edx),%cx
404288:	74 17                	je     0x4042a1
40428a:	66 3b 4a 04          	cmp    0x4(%edx),%cx
40428e:	74 0e                	je     0x40429e
404290:	66 3b 4a 06          	cmp    0x6(%edx),%cx
404294:	74 05                	je     0x40429b
404296:	83 c2 08             	add    $0x8,%edx
404299:	eb e4                	jmp    0x40427f
40429b:	83 c2 02             	add    $0x2,%edx
40429e:	83 c2 02             	add    $0x2,%edx
4042a1:	83 c2 02             	add    $0x2,%edx
4042a4:	89 d1                	mov    %edx,%ecx
4042a6:	5a                   	pop    %edx
4042a7:	29 d1                	sub    %edx,%ecx
4042a9:	d1 e9                	shr    $1,%ecx
4042ab:	e9 fc fe ff ff       	jmp    0x4041ac
4042b0:	c3                   	ret
4042b1:	8d 40 00             	lea    0x0(%eax),%eax
4042b4:	31 c9                	xor    %ecx,%ecx
4042b6:	8a 0a                	mov    (%edx),%cl
4042b8:	42                   	inc    %edx
4042b9:	e9 82 fe ff ff       	jmp    0x404140
4042be:	c3                   	ret
4042bf:	90                   	nop
4042c0:	57                   	push   %edi
4042c1:	50                   	push   %eax
4042c2:	51                   	push   %ecx
4042c3:	89 d7                	mov    %edx,%edi
4042c5:	31 c0                	xor    %eax,%eax
4042c7:	f2 ae                	repnz scas %es:(%edi),%al
4042c9:	75 02                	jne    0x4042cd
4042cb:	f7 d1                	not    %ecx
4042cd:	58                   	pop    %eax
4042ce:	01 c1                	add    %eax,%ecx
4042d0:	58                   	pop    %eax
4042d1:	5f                   	pop    %edi
4042d2:	e9 69 fe ff ff       	jmp    0x404140
4042d7:	c3                   	ret
4042d8:	31 c9                	xor    %ecx,%ecx
4042da:	85 d2                	test   %edx,%edx
4042dc:	74 05                	je     0x4042e3
4042de:	8b 4a fc             	mov    -0x4(%edx),%ecx
4042e1:	d1 e9                	shr    $1,%ecx
4042e3:	e9 c4 fe ff ff       	jmp    0x4041ac
4042e8:	c3                   	ret
4042e9:	8d 40 00             	lea    0x0(%eax),%eax
4042ec:	53                   	push   %ebx
4042ed:	85 d2                	test   %edx,%edx
4042ef:	74 18                	je     0x404309
4042f1:	8b 5a fc             	mov    -0x4(%edx),%ebx
4042f4:	85 db                	test   %ebx,%ebx
4042f6:	74 11                	je     0x404309
4042f8:	39 d9                	cmp    %ebx,%ecx
4042fa:	7c 02                	jl     0x4042fe
4042fc:	89 d9                	mov    %ebx,%ecx
4042fe:	88 08                	mov    %cl,(%eax)
404300:	40                   	inc    %eax
404301:	92                   	xchg   %eax,%edx
404302:	e8 e9 e5 ff ff       	call   0x4028f0
404307:	5b                   	pop    %ebx
404308:	c3                   	ret
404309:	c6 00 00             	movb   $0x0,(%eax)
40430c:	5b                   	pop    %ebx
40430d:	c3                   	ret
40430e:	8b c0                	mov    %eax,%eax
404310:	85 c0                	test   %eax,%eax
404312:	74 03                	je     0x404317
404314:	8b 40 fc             	mov    -0x4(%eax),%eax
404317:	c3                   	ret
404318:	85 d2                	test   %edx,%edx
40431a:	74 3f                	je     0x40435b
40431c:	8b 08                	mov    (%eax),%ecx
40431e:	85 c9                	test   %ecx,%ecx
404320:	0f 84 7e fd ff ff    	je     0x4040a4
404326:	53                   	push   %ebx
404327:	56                   	push   %esi
404328:	57                   	push   %edi
404329:	89 c3                	mov    %eax,%ebx
40432b:	89 d6                	mov    %edx,%esi
40432d:	8b 79 fc             	mov    -0x4(%ecx),%edi
404330:	8b 56 fc             	mov    -0x4(%esi),%edx
404333:	01 fa                	add    %edi,%edx
404335:	39 ce                	cmp    %ecx,%esi
404337:	74 17                	je     0x404350
404339:	e8 5e 03 00 00       	call   0x40469c
40433e:	89 f0                	mov    %esi,%eax
404340:	8b 4e fc             	mov    -0x4(%esi),%ecx
404343:	8b 13                	mov    (%ebx),%edx
404345:	01 fa                	add    %edi,%edx
404347:	e8 a4 e5 ff ff       	call   0x4028f0
40434c:	5f                   	pop    %edi
40434d:	5e                   	pop    %esi
40434e:	5b                   	pop    %ebx
40434f:	c3                   	ret
404350:	e8 47 03 00 00       	call   0x40469c
404355:	8b 03                	mov    (%ebx),%eax
404357:	89 f9                	mov    %edi,%ecx
404359:	eb e8                	jmp    0x404343
40435b:	c3                   	ret
40435c:	85 d2                	test   %edx,%edx
40435e:	74 61                	je     0x4043c1
404360:	85 c9                	test   %ecx,%ecx
404362:	0f 84 3c fd ff ff    	je     0x4040a4
404368:	3b 10                	cmp    (%eax),%edx
40436a:	74 5c                	je     0x4043c8
40436c:	3b 08                	cmp    (%eax),%ecx
40436e:	74 0e                	je     0x40437e
404370:	50                   	push   %eax
404371:	51                   	push   %ecx
404372:	e8 2d fd ff ff       	call   0x4040a4
404377:	5a                   	pop    %edx
404378:	58                   	pop    %eax
404379:	e9 9a ff ff ff       	jmp    0x404318
40437e:	53                   	push   %ebx
40437f:	56                   	push   %esi
404380:	57                   	push   %edi