Exemplo n.º 1
0
        public void method_31(bool bool1)
        {
            var @class = new Class202(_byte0);

            if (@class.method_6(1))
            {
                if ((_ushort1 & 255) < 45)
                {
                    throw new ZipException("Zip64 Extended information found but version is not valid");
                }
                _bool0 = true;
                if (@class.method_3() < 4)
                {
                    throw new ZipException("Extra data extended Zip64 information length is invalid");
                }
                if (bool1 || _ulong0 == 4294967295uL)
                {
                    _ulong0 = (ulong)@class.method_14();
                }
                if (bool1 || _ulong1 == 4294967295uL)
                {
                    _ulong1 = (ulong)@class.method_14();
                }
                if (!bool1 && _long1 == 4294967295L)
                {
                    _long1 = @class.method_14();
                }
            }
            else if ((_ushort1 & 255) >= 45 && (_ulong0 == 4294967295uL || _ulong1 == 4294967295uL))
            {
                throw new ZipException("Zip64 Extended information required but is missing.");
            }
            if (@class.method_6(10))
            {
                if (@class.method_3() < 8)
                {
                    throw new ZipException("NTFS Extra data invalid");
                }
                @class.method_15();
                while (@class.method_5() >= 4)
                {
                    var num  = @class.method_16();
                    var num2 = @class.method_16();
                    if (num == 1)
                    {
                        if (num2 >= 24)
                        {
                            var fileTime = @class.method_14();
                            @class.method_14();
                            @class.method_14();
                            method_19(DateTime.FromFileTime(fileTime));
                            return;
                        }
                        return;
                    }
                    @class.method_18(num2);
                }
            }
            else if (@class.method_6(21589))
            {
                var num3 = @class.method_3();
                var num4 = @class.method_17();
                if ((num4 & 1) != 0 && num3 >= 5)
                {
                    var seconds = @class.method_15();
                    method_19((new DateTime(1970, 1, 1, 0, 0, 0).ToUniversalTime() + new TimeSpan(0, 0, 0, seconds, 0))
                              .ToLocalTime());
                }
            }
        }