Function at 0x407520
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c5cc
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x44d034]
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 0x407572
push edi
push eax
call fcn.00418d14
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x50]
add esp, 0xc
jmp 0x40758c
push 0x451160
push eax
lea edi, [esi + 0x50]
call fcn.00418d14
add esp, 0xc
test edi, edi
je 0x40758e
mov eax, dword [0x4511a0]
mov dword [edi], eax
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x4075a2
cmp eax, 2
je 0x4075a2
xor eax, eax
jmp 0x407872
push 0x80
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.004181f0
add esp, 0xc
lea ecx, [ebp - 0xd8]
call fcn.00408150
mov dword [ebp - 4], 0
lea eax, [esi + 0x10]
push dword [edi]
lea ecx, [ebp - 0xd8]
push eax
push 0
call fcn.00408280
test eax, eax
jne 0x4075e8
xor esi, esi
jmp 0x40783e
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 [0x42e364]
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.00406ec0
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 0x407834
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 0x4077ea
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
call fcn.00402b70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
push dword [ebp - 0x14]
call fcn.00402c20
test eax, eax
je 0x4077c6
push 0x4e20
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x34]
test eax, eax
jne 0x4077c9
call fcn.00402f30
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.004088c0
test eax, eax
je 0x4077c6
push 0x4e20
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4077c6
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
test eax, eax
jle 0x4077c6
mov dword [esi + 0x54], eax
mov dword [ebp - 0xe4], 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00402be0
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 0x407834
push dword [edi]
lea eax, [esi + 0x10]
push eax
push dword [esi + 0x54]
lea ecx, [esi + 0x70]
call fcn.00408280
test eax, eax
je 0x407834
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0x5c], 1
mov esi, 1
jmp 0x407836
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.00408560
lea ecx, [ebp - 0xac]
call fcn.00401490
lea ecx, [ebp - 0xc8]
call fcn.00402be0
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.0041498e
mov esp, ebp
pop ebp
ret 0xc