Function at 0x4180e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a8
mov eax, dword [0x65b9c4]
xor eax, esp
mov dword [esp + 0x2a4], eax
push esi
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 8]
push edi
push esi
call fcn.004063d0
call fcn.00417900
or edi, 0xffffffff
test al, al
je 0x41820a
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x418143
push str._downgrade_system
push eax
call fcn.0059e16e
add esp, 8
test eax, eax
je 0x418143
sub eax, dword [esp + 0xc]
sar eax, 1
cmp eax, edi
jne 0x41820a
push 0x208
lea eax, [esp + 0xa4]
push 0
push eax
call fcn.0059f570
add esp, 0xc
lea eax, [esp + 0xa0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00402a80
mov ecx, eax
test ecx, ecx
je 0x41843e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push str._downgrade_system
mov dword [esp + 0xc], eax
lea eax, [esp + 0xa4]
push esi
push eax
lea eax, [esp + 0x14]
push str._s__s__s
push eax
call fcn.00408250
mov esi, dword [esp + 0x1c]
add esp, 0x14
mov ecx, esi
call fcn.00417ac0
test eax, eax
je 0x4181f3
push str.data0
push str.cancel
push 0x62d0e8
call fcn.0046c5f0
or edi, 0xffffffff
add esp, 0xc
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41840b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41840b
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41820a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push str.04462CC7_8D6D_4A5E_8249_94EAF0272490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x4183f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4183f4
call fcn.00417ef0
call fcn.00417ff0
test eax, eax
jne 0x41827c
push str._checkActive
lea ecx, [esp + 0xc]
call fcn.004063d0
lea ecx, [esp + 8]
call fcn.00417e50
mov edx, dword [esp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418272
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.data2
jmp 0x4183f9
sub esp, 0xc
call fcn.00417620
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 8
push eax
mov dword [esp + 0x18], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push str.riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [0x676154]
lea eax, [esp + 0x34]
xorps xmm0, xmm0
mov dword [esp + 0x34], vtable.WTL::CMessageLoop.0
add esi, 0x10
mov dword [esp + 0x48], 0
push esi
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x675fd0]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004184a0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x676558]
test esi, esi
jne 0x41837e
push 0x6c
call fcn.00586771
add esp, 4
mov ecx, eax
call fcn.00436f50
mov esi, eax
mov dword [0x676558], esi
sub esp, 0xc
mov ecx, esp
call fcn.00418050
mov ecx, esi
call fcn.00436ff0
lea ecx, [esp + 0x6c]
call fcn.0041af00
push ecx
mov ecx, dword [esp + 0x10]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00407230
add eax, 0x10
lea ecx, [esp + 0x70]
mov dword [esi], eax
call fcn.0041b760
lea ecx, [esp + 0x34]
call fcn.004174a0
mov esi, eax
call fcn.00417750
call fcn.004176f0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x665178]
test eax, eax
je 0x4183e0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x6c]
call fcn.0041b030
lea ecx, [esp + 0x34]
call fcn.00418450
jmp 0x41840d
push str.data1
push str.cancel
push 0x62d0e8
call fcn.0046c5f0
add esp, 0xc
xor esi, esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x418426
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x2ac]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0058651a
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00402350
int3