40be1f:	83 c9 ff             	or     $0xffffffff,%ecx
40be22:	3b c1                	cmp    %ecx,%eax
40be24:	0f 42 c8             	cmovb  %eax,%ecx
40be27:	8d 14 4f             	lea    (%edi,%ecx,2),%edx
40be2a:	66 0f 1f 44 00 00    	nopw   0x0(%eax,%eax,1)
40be30:	8b 44 24 10          	mov    0x10(%esp),%eax
40be34:	8b cb                	mov    %ebx,%ecx
40be36:	85 db                	test   %ebx,%ebx
40be38:	74 13                	je     0x40be4d
40be3a:	0f b7 32             	movzwl (%edx),%esi
40be3d:	0f 1f 00             	nopl   (%eax)
40be40:	66 39 30             	cmp    %si,(%eax)
40be43:	74 11                	je     0x40be56
40be45:	83 c0 02             	add    $0x2,%eax
40be48:	83 e9 01             	sub    $0x1,%ecx
40be4b:	75 f3                	jne    0x40be40
40be4d:	3b d7                	cmp    %edi,%edx
40be4f:	74 20                	je     0x40be71
40be51:	83 ea 02             	sub    $0x2,%edx
40be54:	eb da                	jmp    0x40be30
40be56:	2b d7                	sub    %edi,%edx
40be58:	d1 fa                	sar    $1,%edx
40be5a:	8b c2                	mov    %edx,%eax
40be5c:	5f                   	pop    %edi
40be5d:	5e                   	pop    %esi
40be5e:	5b                   	pop    %ebx
40be5f:	8b 8c 24 10 01 00 00 	mov    0x110(%esp),%ecx
40be66:	33 cc                	xor    %esp,%ecx
40be68:	e8 63 fa 00 00       	call   0x41b8d0
40be6d:	8b e5                	mov    %ebp,%esp
40be6f:	5d                   	pop    %ebp
40be70:	c3                   	ret
40be71:	83 ca ff             	or     $0xffffffff,%edx
40be74:	8b c2                	mov    %edx,%eax
40be76:	5f                   	pop    %edi
40be77:	5e                   	pop    %esi
40be78:	5b                   	pop    %ebx
40be79:	8b 8c 24 10 01 00 00 	mov    0x110(%esp),%ecx
40be80:	33 cc                	xor    %esp,%ecx
40be82:	e8 49 fa 00 00       	call   0x41b8d0
40be87:	8b e5                	mov    %ebp,%esp
40be89:	5d                   	pop    %ebp
40be8a:	c3                   	ret
40be8b:	2b cf                	sub    %edi,%ecx
40be8d:	d1 f9                	sar    $1,%ecx
40be8f:	8b c1                	mov    %ecx,%eax
40be91:	5f                   	pop    %edi
40be92:	5e                   	pop    %esi
40be93:	5b                   	pop    %ebx
40be94:	8b 8c 24 10 01 00 00 	mov    0x110(%esp),%ecx
40be9b:	33 cc                	xor    %esp,%ecx
40be9d:	e8 2e fa 00 00       	call   0x41b8d0
40bea2:	8b e5                	mov    %ebp,%esp
40bea4:	5d                   	pop    %ebp
40bea5:	c3                   	ret
40bea6:	8b 8c 24 1c 01 00 00 	mov    0x11c(%esp),%ecx
40bead:	83 c8 ff             	or     $0xffffffff,%eax
40beb0:	5f                   	pop    %edi
40beb1:	5e                   	pop    %esi
40beb2:	5b                   	pop    %ebx
40beb3:	33 cc                	xor    %esp,%ecx
40beb5:	e8 16 fa 00 00       	call   0x41b8d0
40beba:	8b e5                	mov    %ebp,%esp
40bebc:	5d                   	pop    %ebp
40bebd:	c3                   	ret
40bebe:	cc                   	int3
40bebf:	cc                   	int3
40bec0:	55                   	push   %ebp
40bec1:	8b ec                	mov    %esp,%ebp
40bec3:	83 ec 08             	sub    $0x8,%esp
40bec6:	53                   	push   %ebx
40bec7:	56                   	push   %esi
40bec8:	57                   	push   %edi
40bec9:	8b 7d 10             	mov    0x10(%ebp),%edi
40becc:	8b d9                	mov    %ecx,%ebx
40bece:	89 5d f8             	mov    %ebx,-0x8(%ebp)
40bed1:	3b fa                	cmp    %edx,%edi
40bed3:	77 38                	ja     0x40bf0d
40bed5:	8b 45 08             	mov    0x8(%ebp),%eax
40bed8:	2b d7                	sub    %edi,%edx
40beda:	3b c2                	cmp    %edx,%eax
40bedc:	77 2f                	ja     0x40bf0d
40bede:	85 ff                	test   %edi,%edi
40bee0:	74 2e                	je     0x40bf10
40bee2:	8d 4a 01             	lea    0x1(%edx),%ecx
40bee5:	8d 0c 4b             	lea    (%ebx,%ecx,2),%ecx
40bee8:	8d 04 43             	lea    (%ebx,%eax,2),%eax
40beeb:	89 4d fc             	mov    %ecx,-0x4(%ebp)
40beee:	8b 5d 0c             	mov    0xc(%ebp),%ebx
40bef1:	2b c8                	sub    %eax,%ecx
40bef3:	d1 f9                	sar    $1,%ecx
40bef5:	74 16                	je     0x40bf0d
40bef7:	0f b7 13             	movzwl (%ebx),%edx
40befa:	66 0f 1f 44 00 00    	nopw   0x0(%eax,%eax,1)
40bf00:	66 39 10             	cmp    %dx,(%eax)
40bf03:	74 12                	je     0x40bf17
40bf05:	83 c0 02             	add    $0x2,%eax
40bf08:	83 e9 01             	sub    $0x1,%ecx
40bf0b:	75 f3                	jne    0x40bf00
40bf0d:	83 c8 ff             	or     $0xffffffff,%eax
40bf10:	5f                   	pop    %edi
40bf11:	5e                   	pop    %esi
40bf12:	5b                   	pop    %ebx
40bf13:	8b e5                	mov    %ebp,%esp
40bf15:	5d                   	pop    %ebp
40bf16:	c3                   	ret
40bf17:	85 c0                	test   %eax,%eax
40bf19:	74 f2                	je     0x40bf0d
40bf1b:	8b f7                	mov    %edi,%esi
40bf1d:	8b d3                	mov    %ebx,%edx
40bf1f:	85 ff                	test   %edi,%edi
40bf21:	74 15                	je     0x40bf38
40bf23:	8b f8                	mov    %eax,%edi
40bf25:	2b fb                	sub    %ebx,%edi
40bf27:	66 8b 0c 17          	mov    (%edi,%edx,1),%cx
40bf2b:	66 3b 0a             	cmp    (%edx),%cx
40bf2e:	75 14                	jne    0x40bf44
40bf30:	83 c2 02             	add    $0x2,%edx
40bf33:	83 ee 01             	sub    $0x1,%esi
40bf36:	75 ef                	jne    0x40bf27
40bf38:	2b 45 f8             	sub    -0x8(%ebp),%eax
40bf3b:	5f                   	pop    %edi
40bf3c:	5e                   	pop    %esi
40bf3d:	d1 f8                	sar    $1,%eax
40bf3f:	5b                   	pop    %ebx
40bf40:	8b e5                	mov    %ebp,%esp
40bf42:	5d                   	pop    %ebp
40bf43:	c3                   	ret
40bf44:	8b 7d 10             	mov    0x10(%ebp),%edi
40bf47:	83 c0 02             	add    $0x2,%eax
40bf4a:	8b 4d fc             	mov    -0x4(%ebp),%ecx
40bf4d:	eb a2                	jmp    0x40bef1
40bf4f:	cc                   	int3
40bf50:	55                   	push   %ebp
40bf51:	8b ec                	mov    %esp,%ebp
40bf53:	83 ec 14             	sub    $0x14,%esp
40bf56:	53                   	push   %ebx
40bf57:	8b 5d 0c             	mov    0xc(%ebp),%ebx
40bf5a:	57                   	push   %edi
40bf5b:	8b f9                	mov    %ecx,%edi
40bf5d:	89 7d ec             	mov    %edi,-0x14(%ebp)
40bf60:	81 fb fe ff ff 7f    	cmp    $0x7ffffffe,%ebx
40bf66:	0f 87 28 01 00 00    	ja     0x40c094
40bf6c:	c7 47 14 07 00 00 00 	movl   $0x7,0x14(%edi)
40bf73:	8d 47 14             	lea    0x14(%edi),%eax
40bf76:	89 45 f8             	mov    %eax,-0x8(%ebp)
40bf79:	83 fb 08             	cmp    $0x8,%ebx
40bf7c:	73 30                	jae    0x40bfae
40bf7e:	89 5f 10             	mov    %ebx,0x10(%edi)
40bf81:	85 db                	test   %ebx,%ebx
40bf83:	74 1b                	je     0x40bfa0
40bf85:	8b 45 08             	mov    0x8(%ebp),%eax
40bf88:	8b cb                	mov    %ebx,%ecx
40bf8a:	0f b7 d0             	movzwl %ax,%edx
40bf8d:	8b c2                	mov    %edx,%eax
40bf8f:	c1 e2 10             	shl    $0x10,%edx
40bf92:	0b c2                	or     %edx,%eax
40bf94:	d1 e9                	shr    $1,%ecx
40bf96:	f3 ab                	rep stos %eax,%es:(%edi)
40bf98:	13 c9                	adc    %ecx,%ecx
40bf9a:	66 f3 ab             	rep stos %ax,%es:(%edi)
40bf9d:	8b 7d ec             	mov    -0x14(%ebp),%edi
40bfa0:	33 c0                	xor    %eax,%eax
40bfa2:	66 89 04 5f          	mov    %ax,(%edi,%ebx,2)
40bfa6:	5f                   	pop    %edi
40bfa7:	5b                   	pop    %ebx
40bfa8:	8b e5                	mov    %ebp,%esp
40bfaa:	5d                   	pop    %ebp
40bfab:	c2 08 00             	ret    $0x8
40bfae:	56                   	push   %esi
40bfaf:	8b f3                	mov    %ebx,%esi
40bfb1:	83 ce 07             	or     $0x7,%esi
40bfb4:	81 fe fe ff ff 7f    	cmp    $0x7ffffffe,%esi
40bfba:	76 07                	jbe    0x40bfc3
40bfbc:	be fe ff ff 7f       	mov    $0x7ffffffe,%esi
40bfc1:	eb 0a                	jmp    0x40bfcd
40bfc3:	b8 0a 00 00 00       	mov    $0xa,%eax
40bfc8:	3b f0                	cmp    %eax,%esi
40bfca:	0f 42 f0             	cmovb  %eax,%esi
40bfcd:	33 c9                	xor    %ecx,%ecx
40bfcf:	8b c6                	mov    %esi,%eax
40bfd1:	83 c0 01             	add    $0x1,%eax
40bfd4:	0f 92 c1             	setb   %cl
40bfd7:	f7 d9                	neg    %ecx
40bfd9:	0b c8                	or     %eax,%ecx
40bfdb:	81 f9 ff ff ff 7f    	cmp    $0x7fffffff,%ecx
40bfe1:	0f 87 a8 00 00 00    	ja     0x40c08f
40bfe7:	03 c9                	add    %ecx,%ecx
40bfe9:	81 f9 00 10 00 00    	cmp    $0x1000,%ecx
40bfef:	72 33                	jb     0x40c024
40bff1:	8d 41 23             	lea    0x23(%ecx),%eax
40bff4:	3b c1                	cmp    %ecx,%eax
40bff6:	0f 86 93 00 00 00    	jbe    0x40c08f
40bffc:	50                   	push   %eax
40bffd:	e8 dc f8 00 00       	call   0x41b8de
40c002:	83 c4 04             	add    $0x4,%esp
40c005:	85 c0                	test   %eax,%eax
40c007:	0f 84 8c 00 00 00    	je     0x40c099
40c00d:	8d 50 23             	lea    0x23(%eax),%edx
40c010:	83 e2 e0             	and    $0xffffffe0,%edx
40c013:	89 55 fc             	mov    %edx,-0x4(%ebp)
40c016:	89 55 f4             	mov    %edx,-0xc(%ebp)
40c019:	89 42 fc             	mov    %eax,-0x4(%edx)
40c01c:	8d 47 10             	lea    0x10(%edi),%eax
40c01f:	89 45 f0             	mov    %eax,-0x10(%ebp)
40c022:	eb 2f                	jmp    0x40c053
40c024:	85 c9                	test   %ecx,%ecx
40c026:	74 19                	je     0x40c041
40c028:	51                   	push   %ecx
40c029:	e8 b0 f8 00 00       	call   0x41b8de
40c02e:	8d 57 10             	lea    0x10(%edi),%edx
40c031:	89 45 fc             	mov    %eax,-0x4(%ebp)
40c034:	89 55 f0             	mov    %edx,-0x10(%ebp)
40c037:	83 c4 04             	add    $0x4,%esp
40c03a:	8b d0                	mov    %eax,%edx
40c03c:	89 55 f4             	mov    %edx,-0xc(%ebp)
40c03f:	eb 12                	jmp    0x40c053
40c041:	33 d2                	xor    %edx,%edx
40c043:	c7 45 f4 00 00 00 00 	movl   $0x0,-0xc(%ebp)
40c04a:	89 55 fc             	mov    %edx,-0x4(%ebp)
40c04d:	8d 57 10             	lea    0x10(%edi),%edx
40c050:	89 55 f0             	mov    %edx,-0x10(%ebp)
40c053:	8b 55 f4             	mov    -0xc(%ebp),%edx
40c056:	8b cb                	mov    %ebx,%ecx
40c058:	8b 45 f8             	mov    -0x8(%ebp),%eax
40c05b:	89 17                	mov    %edx,(%edi)
40c05d:	8b 7d f0             	mov    -0x10(%ebp),%edi
40c060:	89 0f                	mov    %ecx,(%edi)
40c062:	8b 7d fc             	mov    -0x4(%ebp),%edi
40c065:	89 30                	mov    %esi,(%eax)
40c067:	8b 45 08             	mov    0x8(%ebp),%eax
40c06a:	0f b7 d0             	movzwl %ax,%edx
40c06d:	8b c2                	mov    %edx,%eax
40c06f:	c1 e2 10             	shl    $0x10,%edx
40c072:	0b c2                	or     %edx,%eax
40c074:	d1 e9                	shr    $1,%ecx
40c076:	f3 ab                	rep stos %eax,%es:(%edi)
40c078:	13 c9                	adc    %ecx,%ecx
40c07a:	66 f3 ab             	rep stos %ax,%es:(%edi)
40c07d:	8b 45 fc             	mov    -0x4(%ebp),%eax
40c080:	33 c9                	xor    %ecx,%ecx
40c082:	5e                   	pop    %esi
40c083:	5f                   	pop    %edi
40c084:	66 89 0c 58          	mov    %cx,(%eax,%ebx,2)
40c088:	5b                   	pop    %ebx
40c089:	8b e5                	mov    %ebp,%esp
40c08b:	5d                   	pop    %ebp
40c08c:	c2 08 00             	ret    $0x8
40c08f:	e8 6c 51 ff ff       	call   0x401200
40c094:	e8 07 52 ff ff       	call   0x4012a0
40c099:	e8 e1 49 01 00       	call   0x420a7f
40c09e:	cc                   	int3
40c09f:	cc                   	int3
40c0a0:	55                   	push   %ebp
40c0a1:	8b ec                	mov    %esp,%ebp
40c0a3:	83 ec 08             	sub    $0x8,%esp
40c0a6:	8b 45 08             	mov    0x8(%ebp),%eax
40c0a9:	53                   	push   %ebx
40c0aa:	56                   	push   %esi
40c0ab:	8b 75 0c             	mov    0xc(%ebp),%esi
40c0ae:	8b d9                	mov    %ecx,%ebx
40c0b0:	89 45 f8             	mov    %eax,-0x8(%ebp)
40c0b3:	81 fe ff ff ff 7f    	cmp    $0x7fffffff,%esi
40c0b9:	0f 87 b1 00 00 00    	ja     0x40c170
40c0bf:	c7 43 14 0f 00 00 00 	movl   $0xf,0x14(%ebx)
40c0c6:	83 fe 10             	cmp    $0x10,%esi
40c0c9:	73 1a                	jae    0x40c0e5
40c0cb:	56                   	push   %esi
40c0cc:	50                   	push   %eax
40c0cd:	53                   	push   %ebx
40c0ce:	89 73 10             	mov    %esi,0x10(%ebx)
40c0d1:	e8 7a 13 01 00       	call   0x41d450
40c0d6:	83 c4 0c             	add    $0xc,%esp
40c0d9:	c6 04 1e 00          	movb   $0x0,(%esi,%ebx,1)
40c0dd:	5e                   	pop    %esi
40c0de:	5b                   	pop    %ebx
40c0df:	8b e5                	mov    %ebp,%esp
40c0e1:	5d                   	pop    %ebp
40c0e2:	c2 08 00             	ret    $0x8
40c0e5:	57                   	push   %edi
40c0e6:	8b fe                	mov    %esi,%edi
40c0e8:	83 cf 0f             	or     $0xf,%edi
40c0eb:	81 ff ff ff ff 7f    	cmp    $0x7fffffff,%edi
40c0f1:	76 27                	jbe    0x40c11a
40c0f3:	b9 00 00 00 80       	mov    $0x80000000,%ecx
40c0f8:	bf ff ff ff 7f       	mov    $0x7fffffff,%edi
40c0fd:	83 c1 23             	add    $0x23,%ecx
40c100:	51                   	push   %ecx
40c101:	e8 d8 f7 00 00       	call   0x41b8de
40c106:	8b c8                	mov    %eax,%ecx
40c108:	83 c4 04             	add    $0x4,%esp
40c10b:	85 c9                	test   %ecx,%ecx
40c10d:	74 6b                	je     0x40c17a
40c10f:	8d 41 23             	lea    0x23(%ecx),%eax
40c112:	83 e0 e0             	and    $0xffffffe0,%eax
40c115:	89 48 fc             	mov    %ecx,-0x4(%eax)
40c118:	eb 2e                	jmp    0x40c148
40c11a:	b8 16 00 00 00       	mov    $0x16,%eax
40c11f:	3b f8                	cmp    %eax,%edi
40c121:	0f 42 f8             	cmovb  %eax,%edi
40c124:	8d 47 01             	lea    0x1(%edi),%eax
40c127:	3d 00 10 00 00       	cmp    $0x1000,%eax
40c12c:	72 09                	jb     0x40c137
40c12e:	8d 48 23             	lea    0x23(%eax),%ecx
40c131:	3b c8                	cmp    %eax,%ecx
40c133:	76 40                	jbe    0x40c175
40c135:	eb c9                	jmp    0x40c100
40c137:	85 c0                	test   %eax,%eax
40c139:	74 0b                	je     0x40c146
40c13b:	50                   	push   %eax
40c13c:	e8 9d f7 00 00       	call   0x41b8de
40c141:	83 c4 04             	add    $0x4,%esp
40c144:	eb 02                	jmp    0x40c148
40c146:	33 c0                	xor    %eax,%eax
40c148:	56                   	push   %esi
40c149:	ff 75 f8             	push   -0x8(%ebp)
40c14c:	89 45 fc             	mov    %eax,-0x4(%ebp)
40c14f:	50                   	push   %eax
40c150:	89 03                	mov    %eax,(%ebx)
40c152:	89 73 10             	mov    %esi,0x10(%ebx)
40c155:	89 7b 14             	mov    %edi,0x14(%ebx)
40c158:	e8 f3 12 01 00       	call   0x41d450
40c15d:	8b 45 fc             	mov    -0x4(%ebp),%eax
40c160:	83 c4 0c             	add    $0xc,%esp
40c163:	5f                   	pop    %edi
40c164:	c6 04 06 00          	movb   $0x0,(%esi,%eax,1)
40c168:	5e                   	pop    %esi
40c169:	5b                   	pop    %ebx
40c16a:	8b e5                	mov    %ebp,%esp
40c16c:	5d                   	pop    %ebp
40c16d:	c2 08 00             	ret    $0x8
40c170:	e8 2b 51 ff ff       	call   0x4012a0
40c175:	e8 86 50 ff ff       	call   0x401200
40c17a:	e8 00 49 01 00       	call   0x420a7f
40c17f:	cc                   	int3
40c180:	55                   	push   %ebp
40c181:	8b ec                	mov    %esp,%ebp
40c183:	6a ff                	push   $0xffffffff
40c185:	68 25 dd 43 00       	push   $0x43dd25
40c18a:	64 a1 00 00 00 00    	mov    %fs:0x0,%eax
40c190:	50                   	push   %eax
40c191:	83 ec 18             	sub    $0x18,%esp
40c194:	a1 14 40 45 00       	mov    0x454014,%eax
40c199:	33 c5                	xor    %ebp,%eax
40c19b:	89 45 f0             	mov    %eax,-0x10(%ebp)
40c19e:	53                   	push   %ebx
40c19f:	56                   	push   %esi
40c1a0:	57                   	push   %edi
40c1a1:	50                   	push   %eax
40c1a2:	8d 45 f4             	lea    -0xc(%ebp),%eax