MalwareSourceCode/MSIL/Trojan/Win32/L/Trojan.Win32.Llac.ahzl-22a734691c5349d7cc7eece13d419f2d6f8c9402057912636348d875b19b9af0/sinestb/My/MySettings.cs

71 lines
2.3 KiB
C#
Raw Normal View History

2022-08-18 11:28:56 +00:00
// Decompiled with JetBrains decompiler
// Type: sinestb.My.MySettings
// Assembly: sine stb, Version=3.8.1.13, Culture=neutral, PublicKeyToken=null
// MVID: 1CD66D6D-40E8-4230-BE18-A5B82B55348F
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Trojan.Win32.Llac.ahzl-22a734691c5349d7cc7eece13d419f2d6f8c9402057912636348d875b19b9af0.exe
using Microsoft.VisualBasic.ApplicationServices;
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Configuration;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading;
namespace sinestb.My
{
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal sealed class MySettings : ApplicationSettingsBase
{
private static MySettings defaultInstance = (MySettings) SettingsBase.Synchronized((SettingsBase) new MySettings());
private static bool addedHandler;
private static object addedHandlerLockObject = RuntimeHelpers.GetObjectValue(new object());
[EditorBrowsable(EditorBrowsableState.Advanced)]
[DebuggerNonUserCode]
private static void AutoSaveSettings(object sender, EventArgs e)
{
if (!\u0005.\u0002().SaveMySettingsOnExit)
return;
\u0003\u2000.\u0002().Save();
}
public static MySettings Default
{
get
{
if (!MySettings.addedHandler)
{
object handlerLockObject = MySettings.addedHandlerLockObject;
ObjectFlowControl.CheckForSyncLockOnValueType(handlerLockObject);
bool lockTaken = false;
try
{
Monitor.Enter(handlerLockObject, ref lockTaken);
if (!MySettings.addedHandler)
{
\u0005.\u0002().Shutdown += (ShutdownEventHandler) ((sender, e) =>
{
if (!\u0005.\u0002().SaveMySettingsOnExit)
return;
\u0003\u2000.\u0002().Save();
});
MySettings.addedHandler = true;
}
}
finally
{
if (lockTaken)
Monitor.Exit(handlerLockObject);
}
}
return MySettings.defaultInstance;
}
}
}
}