Function at 0x407e00
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b7e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a0
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18c], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x17c], eax
mov eax, dword [esi]
test eax, eax
je 0x407e65
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 0x2c
mov word [esi + 4], 0
mov dword [ebp - 0x50], 0
call fcn.004226e9
mov esi, eax
lea ecx, [ebp - 0x1ac]
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [esi], 0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], edi
push str.Advapi32.dll
mov dword [esi + 0x10], 0
call fcn.00402c19
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1ac]
push eax
call fcn.00415240
mov ecx, eax
call fcn.00415300
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ac]
call fcn.00402b04
lea eax, [esi + 4]
push eax
push 1
push edi
lea ecx, [ebp - 0x50]
call fcn.00414ea0
mov esi, dword [ebp - 0x50]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x407f06
lea edx, [esi + 8]
jmp 0x407f08
xor edx, edx
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x184], edx
call fcn.00402ba5
test al, al
jne 0x407f24
call fcn.00402bad
jmp 0x407f26
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [ebp - 0x18c]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x407f80
call ecx
cmp eax, 5
jne 0x407f7a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x17c]
call fcn.00402ba5
test al, al
jne 0x407f67
call fcn.00402bad
jmp 0x407f69
xor eax, eax
push eax
push 0
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0
je 0x408113
call ecx
cmp eax, 0xb7
jne 0x407f96
mov byte [edi + 5], 1
mov eax, dword [edi]
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x18c], eax
call fcn.00410ce0
cmp dword [ebp - 0x174], 6
jb 0x408110
cmp dword [ebp - 0x18c], 0
je 0x408110
push str.Advapi32.dll
lea ecx, [ebp - 0x1ac]
call fcn.00402c19
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1ac]
push eax
call fcn.00415240
mov ecx, eax
call fcn.00415300
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1ac]
call fcn.00402b04
mov ecx, dword [ebp - 0x184]
test ecx, ecx
je 0x408110
movups xmm0, xmmword [str.ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov eax, dword [0x43777c]
mov dword [ebp - 0x1c], eax
mov al, byte [0x437780]
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x4c]
movups xmm0, xmmword [0x43775c]
push eax
push ecx
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x17c], 0
movups xmm0, xmmword [0x43776c]
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x190], eax
test eax, eax
je 0x408110
push str.GetSecurityDescriptorSacl
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x194], eax
test eax, eax
je 0x408110
push str.SetSecurityInfo
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x184], eax
test eax, eax
je 0x408110
push 0
lea eax, [ebp - 0x17c]
push eax
push 1
push str.S:_ML__NW___LW_
call dword [ebp - 0x190]
test eax, eax
je 0x408110
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x17c]
call dword [ebp - 0x194]
test eax, eax
je 0x408104
push dword [ebp - 0x180]
push 0
push 0
push 0
push 0x10
push 6
push dword [ebp - 0x18c]
call dword [ebp - 0x184]
push dword [ebp - 0x17c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [edi], 0
setne byte [ebp - 0x185]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40813d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x408152
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00422996
mov al, byte [ebp - 0x185]
add esp, 8
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4