MalwareSourceCode/MSIL/Trojan/Win32/L/Trojan.Win32.Llac.lqpj-3f6ac9dfded1ed0e4c086ec75e7c0ca5a7edfa21307d3cb5a21e884ebe389389/Stub/My/MySettings.cs
2022-08-18 06:28:56 -05:00

71 lines
2.3 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Stub.My.MySettings
// Assembly: Stub, Version=4.9.5.9, Culture=neutral, PublicKeyToken=null
// MVID: 2229516C-329C-43F8-8C26-63983DECBF21
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Trojan.Win32.Llac.lqpj-3f6ac9dfded1ed0e4c086ec75e7c0ca5a7edfa21307d3cb5a21e884ebe389389.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 Stub.My
{
[EditorBrowsable(EditorBrowsableState.Advanced)]
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
[CompilerGenerated]
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;
\u0006.\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;
\u0006.\u0002().Save();
});
MySettings.addedHandler = true;
}
}
finally
{
if (lockTaken)
Monitor.Exit(handlerLockObject);
}
}
return MySettings.defaultInstance;
}
}
}
}