Function at 0x4f0790
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599710
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x615720]
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 0x4f0935
lea edi, [esi + 0x38]
lea eax, [ebp + 0x20]
cmp edi, eax
je 0x4f0816
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4f07f7
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 0x4f0803
mov dword [edi + 0x10], ecx
jmp 0x4f0816
lea eax, [ebp + 0x20]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x4f080f
push edi
jmp 0x4f0811
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, 0x5f7158
push eax
test bl, bl
mov eax, str.Global_
cmove eax, ecx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004f1080
mov ebx, eax
lea edi, [esi + 0x18]
add esp, 0xc
cmp edi, ebx
je 0x4f0895
cmp dword [edi + 0x14], 0x10
jb 0x4f087c
push dword [edi]
call fcn.0055bcd8
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push ebx
mov byte [edi], 0
call fcn.004eacf0
cmp dword [ebp - 0x34], 0x10
jb 0x4f08a6
push dword [ebp - 0x48]
call fcn.0055bcd8
add esp, 4
push str._MUTEX
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.004f1170
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
call fcn.004e1eb0
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x4f08ce
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 0x4f08ef
push dword [ebp - 0x48]
call fcn.0055bcd8
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 0x4f0918
push dword [ebp - 0x68]
call fcn.0055bcd8
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4f0995
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x4f0946
push dword [ebp + 8]
call fcn.0055bcd8
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 0x4f0977
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.0055e34d
mov esp, ebp
pop ebp
ret 0x34
push str._EVENT
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.004f1170
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
call fcn.004e1eb0
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x4f09bd
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 0x4f09e0
push dword [ebp - 0x48]
call fcn.0055bcd8
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 0x4f0a09
push dword [ebp - 0x68]
call fcn.0055bcd8
add esp, 4
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.004e1eb0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4f0a1e
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 0x4f0a48
push dword [ebp - 0x68]
call fcn.0055bcd8
add esp, 4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], esi
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x4f0bd0
push eax
lea ecx, [ebp - 0x70]
call fcn.004f1260
cmp dword [esi + 4], 0
mov ecx, eax
je 0x4f0a6f
call fcn.0055f195
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 0x4f0935
call fcn.0055f195
int3