Function at 0x407a70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422fe3
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x42f1f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4a4], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x407b2c
sub esp, 0xc
mov dword [ebp - 0x4a8], esp
mov edi, esp
mov dword [ebp - 0x4b0], edi
mov dword [edi + 4], esi
push 0x24
call fcn.0040f92b
add esp, 4
cmp eax, esi
je 0x407aef
mov dword [edi], eax
mov dword [eax], eax
mov edi, dword [edi]
mov dword [edi + 4], edi
mov dword [ebp - 4], 2
mov dword [ebp - 4], 0xffffffff
call fcn.00405e40
mov dword [ebp - 0x4a4], esi
lea ecx, [ebp - 0x4a4]
push ecx
lea ecx, [ebp - 0x4cc]
call fcn.0041010e
mov dword [ebp - 4], esi
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
mov dword [ebp - 4], 0xffffffff
push 0x42ac28
lea edx, [ebp - 0x4cc]
push edx
call fcn.0040f8df
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x4c], 0
mov dword [ebp - 4], 3
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexW]
lea ecx, [ecx]
mov dword [ebp - 0x4a0], esi
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x4bc], esi
mov dword [ebp - 0x4b8], esi
mov byte [ebp - 4], 6
push 2
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4c0]
push ecx
call fcn.00406690
add esp, 0xc
inc dword [ebp + 0xc]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x15
call dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.USER32.dll_GetCursor]
push 0xffffffffffffffff
push 0
push 1
push 0x1f0001
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
push 0
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0x10
call fcn.0040f92b
add esp, 4
mov dword [ebp - 0x4a8], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x407c1c
lea edx, [ebp - 0x4c0]
push edx
mov ecx, eax
call fcn.00404a10
mov esi, eax
jmp 0x407c1e
xor esi, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x4a0], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c0]
call fcn.00403a70
mov dword [ebp - 4], 4
mov dword [ebp - 0x4ac], 0
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov dword [ebp - 0x4a8], eax
je 0x407caf
mov eax, dword [esi]
mov ecx, dword [ebp - 0x4ac]
mov dl, byte [ecx + eax]
mov byte [ebp - 0x4b0], dl
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
mov eax, dword [ebp - 0x4c]
jae 0x407c74
lea eax, [ebp - 0x4c]
add eax, dword [ebp - 0x3c]
cmp ecx, 0x10
mov ecx, dword [ebp - 0x4c]
jae 0x407c82
lea ecx, [ebp - 0x4c]
test eax, eax
je 0x407c88
sub eax, ecx
mov ecx, dword [ebp - 0x4b0]
push ecx
push 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403970
mov eax, dword [ebp - 0x4ac]
inc eax
mov dword [ebp - 0x4ac], eax
cmp eax, dword [ebp - 0x4a8]
jb 0x407c55
mov byte [ebp - 4], 3
mov eax, dword [esi]
test eax, eax
je 0x407cc2
push eax
call fcn.0040f79a
add esp, 4
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push esi
call fcn.0040f79a
add esp, 4
mov dword [ebp - 0x4a0], 0
xor esi, esi
jmp 0x407b50