Function at 0x4f9240
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602d00
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0x38]
mov dword [ebp - 4], 1
cmp byte [esi + 0x50], 0
jne 0x4f93e5
lea edi, [esi + 0x38]
lea eax, [ebp + 0x20]
cmp edi, eax
je 0x4f92c6
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4f92a7
mov edx, dword [ecx]
cmp ecx, edi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
jne 0x4f92b3
mov dword [edi + 0x10], ecx
jmp 0x4f92c6
lea eax, [ebp + 0x20]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x4f92bf
push edi
jmp 0x4f92c1
push 0
call dword [eax]
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], 0xc
push 1
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp + 8]
mov ecx, 0x66dce8
push eax
test bl, bl
mov eax, str.Global_
cmove eax, ecx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004f9ac0
mov ebx, eax
lea edi, [esi + 0x18]
add esp, 0xc
cmp edi, ebx
je 0x4f9345
cmp dword [edi + 0x14], 0x10
jb 0x4f932c
push dword [edi]
call fcn.005c4337
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push ebx
mov byte [edi], 0
call fcn.004f0a90
cmp dword [ebp - 0x34], 0x10
jb 0x4f9356
push dword [ebp - 0x48]
call fcn.005c4337
add esp, 4
push str._MUTEX
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.004f77b0
add esp, 0xc
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004e3120
cmp dword [eax + 0x14], 8
jb 0x4f937e
mov eax, dword [eax]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp dword [ebp - 0x34], 8
mov dword [esi + 8], eax
jb 0x4f939f
push dword [ebp - 0x48]
call fcn.005c4337
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 0x10
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
jb 0x4f93c8
push dword [ebp - 0x68]
call fcn.005c4337
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4f9445
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x4f93f6
push dword [ebp + 8]
call fcn.005c4337
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x30]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
test ecx, ecx
je 0x4f9427
mov edx, dword [ecx]
lea eax, [ebp + 0x20]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0x34
push str._EVENT
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.004f77b0
add esp, 0xc
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.004e3120
cmp dword [eax + 0x14], 8
jb 0x4f946d
mov eax, dword [eax]
push eax
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [ebp - 0x34], 8
mov dword [esi + 0xc], eax
jb 0x4f9490
push dword [ebp - 0x48]
call fcn.005c4337
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 0x10
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
jb 0x4f94b9
push dword [ebp - 0x68]
call fcn.005c4337
add esp, 4
mov edx, edi
lea ecx, [ebp - 0x68]
call fcn.004e3120
cmp dword [eax + 0x14], 8
jb 0x4f94cb
mov eax, dword [eax]
push eax
push 0x400
push 0
push 4
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [ebp - 0x54], 8
mov dword [esi + 0x10], eax
jb 0x4f94f5
push dword [ebp - 0x68]
call fcn.005c4337
add esp, 4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], esi
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x4f9680
push eax
lea ecx, [ebp - 0x70]
call fcn.004f9bb0
cmp dword [esi + 4], 0
mov ecx, eax
je 0x4f951c
call fcn.005c7995
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov dword [ecx + 4], 0
cmp dword [ebp - 0x6c], 0
je 0x4f93e5
call fcn.005c7995
int3