Function at 0x407490
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c0bc
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 0xc]
call dword [eax + 0x14]
lea eax, [esi + 0x10]
push 0x1f
test edi, edi
je 0x4074e2
push edi
push eax
call fcn.004187f4
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x50]
add esp, 0xc
jmp 0x4074fc
push 0x448160
push eax
lea edi, [esi + 0x50]
call fcn.004187f4
add esp, 0xc
test edi, edi
je 0x4074fe
mov eax, dword [0x4481a0]
mov dword [edi], eax
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x407512
cmp eax, 2
je 0x407512
xor eax, eax
jmp 0x4077e2
push 0x80
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00417cd0
add esp, 0xc
lea ecx, [ebp - 0xd8]
call fcn.004080c0
mov dword [ebp - 4], 0
lea eax, [esi + 0x10]
push dword [edi]
lea ecx, [ebp - 0xd8]
push eax
push 0
call fcn.004081f0
test eax, eax
jne 0x407558
xor esi, esi
jmp 0x4077ae
xorps xmm0, xmm0
mov dword [ebp - 0x58], 1
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xf0], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0xf4]
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x42e314]
mov dword [ebp - 0x14], eax
push 0
mov byte [ebp - 4], 1
lea edx, [esi + 0x10]
push 0x30000
push dword [edi]
lea ecx, [ebp - 0xe4]
call fcn.00406e30
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401590
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.00401490
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x18], 0
call fcn.00401100
push str._MUTEX
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00401880
push dword [ebp - 0x18]
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 1
call fcn.00401490
cmp dword [ebp - 0xe0], 0
je 0x4077a4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.00401100
push str._EVENT
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00401880
push dword [ebp - 0x1c]
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 1
call fcn.00401490
cmp dword [ebp - 0xdc], 0
je 0x40775a
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
call fcn.00402b90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
push dword [ebp - 0x14]
call fcn.00402c40
test eax, eax
je 0x407736
push 0x4e20
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x34]
test eax, eax
jne 0x407739
call fcn.00402f50
push dword [ebp - 0xdc]
mov dword [ebp - 0xe8], eax
mov dword [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x4e20
push 0
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00408830
test eax, eax
je 0x407736
push 0x4e20
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407736
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
test eax, eax
jle 0x407736
mov dword [esi + 0x54], eax
mov dword [ebp - 0xe4], 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00402c00
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xe4], 0
je 0x4077a4
push dword [edi]
lea eax, [esi + 0x10]
push eax
push dword [esi + 0x54]
lea ecx, [esi + 0x70]
call fcn.004081f0
test eax, eax
je 0x4077a4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0x5c], 1
mov esi, 1
jmp 0x4077a6
xor esi, esi
lea ecx, [ebp - 0x14]
call fcn.00401490
mov dword [ebp - 4], 6
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], vtable.CMemTransport.0
call fcn.004084d0
lea ecx, [ebp - 0xac]
call fcn.00401490
lea ecx, [ebp - 0xc8]
call fcn.00402c00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc