Function at 0x405000
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ea6b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x24]
call fcn.004067a0
lea ecx, [ebp - 0x28]
call fcn.00406900
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x94]
push eax
call fcn.00406770
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
push str._H:_M:_S
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406800
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x28]
call fcn.00406a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.004069e0
cmp dword [ebp + 8], 1
je 0x4050c5
mov eax, dword [ebp - 0x28]
push eax
push str.____Test_for_Mutex..._____s_
push 9
push 0x45858c
call fcn.00416150
add esp, 0x10
push str.Global_MSIExecute
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40511e
cmp dword [ebp + 8], 1
je 0x4050fa
push str._tNo_MSI_active__no_Mutex_existing_
push 9
push 0x45858c
call fcn.00416150
add esp, 0xc
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004069e0
mov eax, dword [ebp - 0x88]
jmp 0x40534e
cmp dword [ebp + 8], 0
jne 0x405134
mov dword [ebp - 0x18], 0x7d0
mov dword [ebp - 0x1c], 2
jmp 0x405140
mov eax, dword [ebp + 8]
imul eax, eax, 0x3e8
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], 1
je 0x40515e
mov eax, dword [ebp - 0x1c]
push eax
push str.____Waiting_for_Mutex_to_release...___maxwait_d_sec_
push 9
push 0x45858c
call fcn.00416150
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x84]
push eax
call fcn.00406770
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
push str._H:_M:_S
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406800
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x28]
call fcn.00406a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.004069e0
cmp dword [ebp + 8], 1
je 0x4051e6
mov eax, dword [ebp - 0x28]
push eax
push str.____Wait_end_for_Mutex____s_
push 9
push 0x45858c
call fcn.00416150
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x405219
cmp dword [ebp - 0x98], 0x80
je 0x4052cb
cmp dword [ebp - 0x98], 0x102
je 0x405287
jmp 0x405306
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x40523b
push str.Mutex:_Error_while_releasing
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Mutex:_MSI_not_no_longer_active.
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004069e0
mov eax, dword [ebp - 0x78]
jmp 0x40534e
cmp dword [ebp + 8], 1
je 0x4052a1
push str.Mutex:_WAIT_TIMEOUT
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004069e0
mov eax, dword [ebp - 0x74]
jmp 0x40534e
push str.Mutex:_WAIT_ABANDONED
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004069e0
mov eax, dword [ebp - 0x70]
jmp 0x40534e
push str.Error_Mutex:_Default_case_not_specified.
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x6c], 0xfffffffd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004069e0
mov eax, dword [ebp - 0x6c]
jmp 0x40534e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret