Function at 0x41fc80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a0
mov eax, dword [0x64b9b0]
xor eax, esp
mov dword [esp + 0x29c], eax
push esi
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 8]
push edi
push esi
call fcn.004032f0
call fcn.0041f600
or edi, 0xffffffff
test al, al
je 0x41fdac
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x41fce3
push str._downgrade_system
push eax
call fcn.005943d7
add esp, 8
test eax, eax
je 0x41fce3
sub eax, dword [esp + 0xc]
sar eax, 1
cmp eax, edi
jne 0x41fdac
push 0x208
lea eax, [esp + 0x9c]
push 0
push eax
call fcn.005949a0
add esp, 0xc
lea eax, [esp + 0x98]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00402810
mov ecx, eax
test ecx, ecx
je 0x420026
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push str._downgrade_system
mov dword [esp + 0xc], eax
lea eax, [esp + 0x9c]
push esi
push eax
lea eax, [esp + 0x14]
push str._s__s__s
push eax
call fcn.004043e0
mov esi, dword [esp + 0x1c]
add esp, 0x14
mov ecx, esi
call fcn.0041f7c0
test eax, eax
je 0x41fd95
push str.data0
push str.cancel
push 0x620cc4
push 0
call fcn.0047e300
or edi, 0xffffffff
add esp, 0x10
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41fff3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41fff3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41fdac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push str.DRSpeedupInstanceMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x41ffda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41ffda
call fcn.0041fb20
call fcn.0041fc20
test eax, eax
jne 0x41fe1e
push str._checkActive
lea ecx, [esp + 0xc]
call fcn.004032f0
lea ecx, [esp + 8]
call fcn.0041fa80
mov edx, dword [esp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fe14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.data2
jmp 0x41ffdf
sub esp, 0xc
call fcn.0041f310
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 + 0x58]
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 [0x665df8]
lea eax, [esp + 0x60]
xorps xmm0, xmm0
mov dword [esp + 0x60], vtable.WTL::CMessageLoop.0
add esi, 0x10
mov dword [esp + 0x74], 0
push esi
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x7c], 0
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x665c94]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00420090
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x665f04], 0
jne 0x41ff1b
push 4
call fcn.0057bbbe
add esp, 4
mov dword [0x665f04], eax
mov dword [eax], vtable.CSkinMgr.0
mov esi, dword [0x665f38]
test esi, esi
jne 0x41ff3e
push 0x6c
call fcn.0057bbbe
add esp, 4
mov ecx, eax
call fcn.0043c500
mov esi, eax
mov dword [0x665f38], esi
push ecx
push esp
call fcn.00422790
mov ecx, esi
call fcn.0043c5a0
lea ecx, [esp + 0x2c]
call fcn.00422c30
push ecx
mov ecx, dword [esp + 0x10]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00403970
add eax, 0x10
mov dword [esi], eax
call fcn.004231e0
lea ecx, [esp + 0x60]
call fcn.0041f190
mov esi, eax
call fcn.0041f440
call fcn.0041f3e0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x654bbc]
test eax, eax
je 0x41ff99
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x30]
mov dword [esp + 0x30], vtable.CMainWnd.0
mov dword [esp + 0x54], vtable.CMainWnd.1.0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41ffc1
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41ffcf
push eax
call fcn.00579822
lea ecx, [esp + 0x60]
call fcn.00420040
jmp 0x41fff5
push str.data1
push str.cancel
push 0x620cc4
push 0
call fcn.0047e300
add esp, 0x10
xor esi, esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x42000e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x2a4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0057b967
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004022b0
int3