40d9a4:	74 0c                	je     0x40d9b2
40d9a6:	8b 5c 24 38          	mov    0x38(%esp),%ebx
40d9aa:	8b 74 24 10          	mov    0x10(%esp),%esi
40d9ae:	33 c0                	xor    %eax,%eax
40d9b0:	eb 32                	jmp    0x40d9e4
40d9b2:	8b 5c 24 38          	mov    0x38(%esp),%ebx
40d9b6:	8b 74 24 10          	mov    0x10(%esp),%esi
40d9ba:	f6 07 02             	testb  $0x2,(%edi)
40d9bd:	74 05                	je     0x40d9c4
40d9bf:	f6 06 08             	testb  $0x8,(%esi)
40d9c2:	74 17                	je     0x40d9db
40d9c4:	8b 43 1c             	mov    0x1c(%ebx),%eax
40d9c7:	8b 00                	mov    (%eax),%eax
40d9c9:	a8 01                	test   $0x1,%al
40d9cb:	74 05                	je     0x40d9d2
40d9cd:	f6 06 01             	testb  $0x1,(%esi)
40d9d0:	74 09                	je     0x40d9db
40d9d2:	a8 02                	test   $0x2,%al
40d9d4:	74 09                	je     0x40d9df
40d9d6:	f6 06 02             	testb  $0x2,(%esi)
40d9d9:	75 04                	jne    0x40d9df
40d9db:	33 c0                	xor    %eax,%eax
40d9dd:	eb 05                	jmp    0x40d9e4
40d9df:	b8 01 00 00 00       	mov    $0x1,%eax
40d9e4:	85 c0                	test   %eax,%eax
40d9e6:	75 2e                	jne    0x40da16
40d9e8:	8b 44 24 1c          	mov    0x1c(%esp),%eax
40d9ec:	83 c5 04             	add    $0x4,%ebp
40d9ef:	48                   	dec    %eax
40d9f0:	85 c0                	test   %eax,%eax
40d9f2:	89 44 24 1c          	mov    %eax,0x1c(%esp)
40d9f6:	0f 8f 62 ff ff ff    	jg     0x40d95e
40d9fc:	8b 4c 24 20          	mov    0x20(%esp),%ecx
40da00:	49                   	dec    %ecx
40da01:	83 c6 10             	add    $0x10,%esi
40da04:	85 c9                	test   %ecx,%ecx
40da06:	89 4c 24 20          	mov    %ecx,0x20(%esp)
40da0a:	89 74 24 10          	mov    %esi,0x10(%esp)
40da0e:	0f 8f 33 ff ff ff    	jg     0x40d947
40da14:	eb 31                	jmp    0x40da47
40da16:	8b 4c 24 54          	mov    0x54(%esp),%ecx
40da1a:	8b 54 24 50          	mov    0x50(%esp),%edx
40da1e:	8b 44 24 18          	mov    0x18(%esp),%eax
40da22:	51                   	push   %ecx
40da23:	8b 4d 00             	mov    0x0(%ebp),%ecx
40da26:	52                   	push   %edx
40da27:	8b 54 24 50          	mov    0x50(%esp),%edx
40da2b:	50                   	push   %eax
40da2c:	8b 44 24 50          	mov    0x50(%esp),%eax
40da30:	51                   	push   %ecx
40da31:	8b 4c 24 50          	mov    0x50(%esp),%ecx
40da35:	56                   	push   %esi
40da36:	52                   	push   %edx
40da37:	8b 54 24 54          	mov    0x54(%esp),%edx
40da3b:	50                   	push   %eax
40da3c:	51                   	push   %ecx
40da3d:	52                   	push   %edx
40da3e:	53                   	push   %ebx
40da3f:	e8 4c 02 00 00       	call   0x40dc90
40da44:	83 c4 28             	add    $0x28,%esp
40da47:	8b 6c 24 24          	mov    0x24(%esp),%ebp
40da4b:	8b 44 24 18          	mov    0x18(%esp),%eax
40da4f:	8b 4c 24 14          	mov    0x14(%esp),%ecx
40da53:	8b 54 24 28          	mov    0x28(%esp),%edx
40da57:	41                   	inc    %ecx
40da58:	83 c0 14             	add    $0x14,%eax
40da5b:	3b ca                	cmp    %edx,%ecx
40da5d:	89 4c 24 14          	mov    %ecx,0x14(%esp)
40da61:	89 44 24 18          	mov    %eax,0x18(%esp)
40da65:	0f 82 a2 fe ff ff    	jb     0x40d90d
40da6b:	8a 44 24 4c          	mov    0x4c(%esp),%al
40da6f:	84 c0                	test   %al,%al
40da71:	74 50                	je     0x40dac3
40da73:	6a 01                	push   $0x1
40da75:	53                   	push   %ebx
40da76:	e8 45 06 00 00       	call   0x40e0c0
40da7b:	83 c4 08             	add    $0x8,%esp
40da7e:	5f                   	pop    %edi
40da7f:	5e                   	pop    %esi
40da80:	5d                   	pop    %ebp
40da81:	5b                   	pop    %ebx
40da82:	83 c4 24             	add    $0x24,%esp
40da85:	c3                   	ret
40da86:	8a 44 24 4c          	mov    0x4c(%esp),%al
40da8a:	84 c0                	test   %al,%al
40da8c:	75 30                	jne    0x40dabe
40da8e:	8b 44 24 54          	mov    0x54(%esp),%eax
40da92:	8b 4c 24 50          	mov    0x50(%esp),%ecx
40da96:	8b 54 24 48          	mov    0x48(%esp),%edx
40da9a:	50                   	push   %eax
40da9b:	8b 44 24 48          	mov    0x48(%esp),%eax
40da9f:	51                   	push   %ecx
40daa0:	8b 4c 24 48          	mov    0x48(%esp),%ecx
40daa4:	55                   	push   %ebp
40daa5:	52                   	push   %edx
40daa6:	8b 54 24 4c          	mov    0x4c(%esp),%edx
40daaa:	50                   	push   %eax
40daab:	51                   	push   %ecx
40daac:	52                   	push   %edx
40daad:	53                   	push   %ebx
40daae:	e8 1d 00 00 00       	call   0x40dad0
40dab3:	83 c4 20             	add    $0x20,%esp
40dab6:	5f                   	pop    %edi
40dab7:	5e                   	pop    %esi
40dab8:	5d                   	pop    %ebp
40dab9:	5b                   	pop    %ebx
40daba:	83 c4 24             	add    $0x24,%esp
40dabd:	c3                   	ret
40dabe:	e8 9d 08 00 00       	call   0x40e360
40dac3:	5f                   	pop    %edi
40dac4:	5e                   	pop    %esi
40dac5:	5d                   	pop    %ebp
40dac6:	5b                   	pop    %ebx
40dac7:	83 c4 24             	add    $0x24,%esp
40daca:	c3                   	ret
40dacb:	90                   	nop
40dacc:	90                   	nop
40dacd:	90                   	nop
40dace:	90                   	nop
40dacf:	90                   	nop
40dad0:	83 ec 08             	sub    $0x8,%esp
40dad3:	53                   	push   %ebx
40dad4:	55                   	push   %ebp
40dad5:	56                   	push   %esi
40dad6:	57                   	push   %edi
40dad7:	e8 64 07 00 00       	call   0x40e240
40dadc:	8b 48 68             	mov    0x68(%eax),%ecx
40dadf:	8b 6c 24 38          	mov    0x38(%esp),%ebp
40dae3:	8b 7c 24 34          	mov    0x34(%esp),%edi
40dae7:	8b 5c 24 2c          	mov    0x2c(%esp),%ebx
40daeb:	85 c9                	test   %ecx,%ecx
40daed:	74 27                	je     0x40db16
40daef:	8b 44 24 28          	mov    0x28(%esp),%eax
40daf3:	8b 4c 24 24          	mov    0x24(%esp),%ecx
40daf7:	8b 54 24 20          	mov    0x20(%esp),%edx
40dafb:	55                   	push   %ebp
40dafc:	57                   	push   %edi
40dafd:	53                   	push   %ebx
40dafe:	50                   	push   %eax
40daff:	8b 44 24 2c          	mov    0x2c(%esp),%eax
40db03:	51                   	push   %ecx
40db04:	52                   	push   %edx
40db05:	50                   	push   %eax
40db06:	e8 55 de ff ff       	call   0x40b960
40db0b:	83 c4 1c             	add    $0x1c,%esp
40db0e:	85 c0                	test   %eax,%eax
40db10:	0f 85 89 00 00 00    	jne    0x40db9f
40db16:	8b 44 24 30          	mov    0x30(%esp),%eax
40db1a:	8d 4c 24 14          	lea    0x14(%esp),%ecx
40db1e:	8d 54 24 10          	lea    0x10(%esp),%edx
40db22:	51                   	push   %ecx
40db23:	52                   	push   %edx
40db24:	50                   	push   %eax
40db25:	57                   	push   %edi
40db26:	53                   	push   %ebx
40db27:	e8 94 df ff ff       	call   0x40bac0
40db2c:	8b 4c 24 24          	mov    0x24(%esp),%ecx
40db30:	8b f0                	mov    %eax,%esi
40db32:	8b 44 24 28          	mov    0x28(%esp),%eax
40db36:	83 c4 14             	add    $0x14,%esp
40db39:	3b c8                	cmp    %eax,%ecx
40db3b:	73 62                	jae    0x40db9f
40db3d:	8b 44 24 30          	mov    0x30(%esp),%eax
40db41:	8b 0e                	mov    (%esi),%ecx
40db43:	3b c1                	cmp    %ecx,%eax
40db45:	7c 44                	jl     0x40db8b
40db47:	3b 46 04             	cmp    0x4(%esi),%eax
40db4a:	7f 3f                	jg     0x40db8b
40db4c:	8b 56 0c             	mov    0xc(%esi),%edx
40db4f:	8b 46 10             	mov    0x10(%esi),%eax
40db52:	c1 e2 04             	shl    $0x4,%edx
40db55:	03 c2                	add    %edx,%eax
40db57:	8b 48 f4             	mov    -0xc(%eax),%ecx
40db5a:	85 c9                	test   %ecx,%ecx
40db5c:	74 07                	je     0x40db65
40db5e:	8a 51 08             	mov    0x8(%ecx),%dl
40db61:	84 d2                	test   %dl,%dl
40db63:	75 26                	jne    0x40db8b
40db65:	8b 4c 24 28          	mov    0x28(%esp),%ecx
40db69:	8b 54 24 24          	mov    0x24(%esp),%edx
40db6d:	55                   	push   %ebp
40db6e:	57                   	push   %edi
40db6f:	56                   	push   %esi
40db70:	83 c0 f0             	add    $0xfffffff0,%eax
40db73:	6a 00                	push   $0x0
40db75:	50                   	push   %eax
40db76:	8b 44 24 34          	mov    0x34(%esp),%eax
40db7a:	53                   	push   %ebx
40db7b:	51                   	push   %ecx
40db7c:	8b 4c 24 38          	mov    0x38(%esp),%ecx
40db80:	52                   	push   %edx
40db81:	50                   	push   %eax
40db82:	51                   	push   %ecx
40db83:	e8 08 01 00 00       	call   0x40dc90
40db88:	83 c4 28             	add    $0x28,%esp
40db8b:	8b 44 24 10          	mov    0x10(%esp),%eax
40db8f:	8b 4c 24 14          	mov    0x14(%esp),%ecx
40db93:	40                   	inc    %eax
40db94:	83 c6 14             	add    $0x14,%esi
40db97:	3b c1                	cmp    %ecx,%eax
40db99:	89 44 24 10          	mov    %eax,0x10(%esp)
40db9d:	72 9e                	jb     0x40db3d
40db9f:	5f                   	pop    %edi
40dba0:	5e                   	pop    %esi
40dba1:	5d                   	pop    %ebp
40dba2:	5b                   	pop    %ebx
40dba3:	83 c4 08             	add    $0x8,%esp
40dba6:	c3                   	ret
40dba7:	90                   	nop
40dba8:	90                   	nop
40dba9:	90                   	nop
40dbaa:	90                   	nop
40dbab:	90                   	nop
40dbac:	90                   	nop
40dbad:	90                   	nop
40dbae:	90                   	nop
40dbaf:	90                   	nop
40dbb0:	55                   	push   %ebp
40dbb1:	8b ec                	mov    %esp,%ebp
40dbb3:	6a ff                	push   $0xffffffff
40dbb5:	68 20 c0 42 00       	push   $0x42c020
40dbba:	68 18 f1 40 00       	push   $0x40f118
40dbbf:	64 a1 00 00 00 00    	mov    %fs:0x0,%eax
40dbc5:	50                   	push   %eax
40dbc6:	64 89 25 00 00 00 00 	mov    %esp,%fs:0x0
40dbcd:	83 c4 f4             	add    $0xfffffff4,%esp
40dbd0:	53                   	push   %ebx
40dbd1:	56                   	push   %esi
40dbd2:	57                   	push   %edi
40dbd3:	89 65 e8             	mov    %esp,-0x18(%ebp)
40dbd6:	8b 5d 08             	mov    0x8(%ebp),%ebx
40dbd9:	8b 73 08             	mov    0x8(%ebx),%esi
40dbdc:	89 75 e4             	mov    %esi,-0x1c(%ebp)
40dbdf:	8b 7d 10             	mov    0x10(%ebp),%edi
40dbe2:	3b 75 14             	cmp    0x14(%ebp),%esi
40dbe5:	74 6a                	je     0x40dc51
40dbe7:	83 fe ff             	cmp    $0xffffffff,%esi
40dbea:	7e 05                	jle    0x40dbf1
40dbec:	3b 77 04             	cmp    0x4(%edi),%esi
40dbef:	7c 05                	jl     0x40dbf6
40dbf1:	e8 fa 07 00 00       	call   0x40e3f0
40dbf6:	c7 45 fc 00 00 00 00 	movl   $0x0,-0x4(%ebp)
40dbfd:	8b 47 08             	mov    0x8(%edi),%eax
40dc00:	8b 44 f0 04          	mov    0x4(%eax,%esi,8),%eax
40dc04:	85 c0                	test   %eax,%eax
40dc06:	74 0c                	je     0x40dc14
40dc08:	68 03 01 00 00       	push   $0x103
40dc0d:	53                   	push   %ebx
40dc0e:	50                   	push   %eax
40dc0f:	e8 5c 05 00 00       	call   0x40e170
40dc14:	c7 45 fc ff ff ff ff 	movl   $0xffffffff,-0x4(%ebp)
40dc1b:	8b 57 08             	mov    0x8(%edi),%edx
40dc1e:	8b 34 f2             	mov    (%edx,%esi,8),%esi
40dc21:	89 75 e4             	mov    %esi,-0x1c(%ebp)
40dc24:	eb bc                	jmp    0x40dbe2
40dc26:	8b 4d ec             	mov    -0x14(%ebp),%ecx
40dc29:	51                   	push   %ecx
40dc2a:	e8 41 00 00 00       	call   0x40dc70
40dc2f:	83 c4 04             	add    $0x4,%esp
40dc32:	c3                   	ret
40dc33:	8b 65 e8             	mov    -0x18(%ebp),%esp
40dc36:	c7 45 fc ff ff ff ff 	movl   $0xffffffff,-0x4(%ebp)
40dc3d:	8b 7d 10             	mov    0x10(%ebp),%edi
40dc40:	8b 5d 08             	mov    0x8(%ebp),%ebx
40dc43:	8b 75 e4             	mov    -0x1c(%ebp),%esi
40dc46:	8b 57 08             	mov    0x8(%edi),%edx
40dc49:	8b 34 f2             	mov    (%edx,%esi,8),%esi
40dc4c:	89 75 e4             	mov    %esi,-0x1c(%ebp)
40dc4f:	eb 91                	jmp    0x40dbe2
40dc51:	89 73 08             	mov    %esi,0x8(%ebx)
40dc54:	8b 4d f0             	mov    -0x10(%ebp),%ecx
40dc57:	64 89 0d 00 00 00 00 	mov    %ecx,%fs:0x0
40dc5e:	5f                   	pop    %edi
40dc5f:	5e                   	pop    %esi
40dc60:	5b                   	pop    %ebx
40dc61:	8b e5                	mov    %ebp,%esp
40dc63:	5d                   	pop    %ebp
40dc64:	c3                   	ret
40dc65:	90                   	nop
40dc66:	90                   	nop
40dc67:	90                   	nop
40dc68:	90                   	nop
40dc69:	90                   	nop
40dc6a:	90                   	nop
40dc6b:	90                   	nop
40dc6c:	90                   	nop
40dc6d:	90                   	nop
40dc6e:	90                   	nop
40dc6f:	90                   	nop
40dc70:	8b 44 24 04          	mov    0x4(%esp),%eax
40dc74:	8b 08                	mov    (%eax),%ecx
40dc76:	81 39 63 73 6d e0    	cmpl   $0xe06d7363,(%ecx)
40dc7c:	75 05                	jne    0x40dc83
40dc7e:	e8 dd 06 00 00       	call   0x40e360
40dc83:	33 c0                	xor    %eax,%eax
40dc85:	c3                   	ret
40dc86:	90                   	nop
40dc87:	90                   	nop
40dc88:	90                   	nop
40dc89:	90                   	nop
40dc8a:	90                   	nop
40dc8b:	90                   	nop
40dc8c:	90                   	nop
40dc8d:	90                   	nop
40dc8e:	90                   	nop
40dc8f:	90                   	nop
40dc90:	8b 44 24 1c          	mov    0x1c(%esp),%eax
40dc94:	53                   	push   %ebx
40dc95:	55                   	push   %ebp
40dc96:	8b 6c 24 0c          	mov    0xc(%esp),%ebp
40dc9a:	56                   	push   %esi
40dc9b:	8b 74 24 14          	mov    0x14(%esp),%esi
40dc9f:	85 c0                	test   %eax,%eax
40dca1:	57                   	push   %edi
40dca2:	74 10                	je     0x40dcb4
40dca4:	50                   	push   %eax
40dca5:	8b 44 24 2c          	mov    0x2c(%esp),%eax
40dca9:	50                   	push   %eax
40dcaa:	56                   	push   %esi
40dcab:	55                   	push   %ebp
40dcac:	e8 ff 01 00 00       	call   0x40deb0
40dcb1:	83 c4 10             	add    $0x10,%esp
40dcb4:	8b 44 24 38          	mov    0x38(%esp),%eax
40dcb8:	55                   	push   %ebp
40dcb9:	85 c0                	test   %eax,%eax
40dcbb:	75 03                	jne    0x40dcc0
40dcbd:	56                   	push   %esi
40dcbe:	eb 01                	jmp    0x40dcc1
40dcc0:	50                   	push   %eax
40dcc1:	e8 6a db ff ff       	call   0x40b830
40dcc6:	8b 7c 24 30          	mov    0x30(%esp),%edi
40dcca:	8b 5c 24 24          	mov    0x24(%esp),%ebx
40dcce:	8b 54 24 20          	mov    0x20(%esp),%edx
40dcd2:	8b 0f                	mov    (%edi),%ecx
40dcd4:	51                   	push   %ecx
40dcd5:	53                   	push   %ebx
40dcd6:	52                   	push   %edx
40dcd7:	56                   	push   %esi
40dcd8:	e8 d3 fe ff ff       	call   0x40dbb0
40dcdd:	8b 47 04             	mov    0x4(%edi),%eax
40dce0:	8b 54 24 38          	mov    0x38(%esp),%edx
40dce4:	8b 4c 24 44          	mov    0x44(%esp),%ecx
40dce8:	83 c4 10             	add    $0x10,%esp
40dceb:	40                   	inc    %eax
40dcec:	89 46 08             	mov    %eax,0x8(%esi)
40dcef:	8b 42 0c             	mov    0xc(%edx),%eax
40dcf2:	68 00 01 00 00       	push   $0x100
40dcf7:	51                   	push   %ecx
40dcf8:	8b 4c 24 24          	mov    0x24(%esp),%ecx
40dcfc:	50                   	push   %eax