Function at 0x41fae0
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 0x52663e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a0
mov eax, dword [0x55e068]
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 0x41fb45
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.004ff533
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.00402450
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1ac]
push eax
call fcn.0041d520
mov ecx, eax
call fcn.0041d5e0
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ac]
call fcn.00402400
lea eax, [esi + 4]
push eax
push 1
push edi
lea ecx, [ebp - 0x50]
call fcn.0042cac0
mov esi, dword [ebp - 0x50]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x41fbec
lea eax, [esi + 8]
mov dword [ebp - 0x184], eax
jmp 0x41fbf6
mov dword [ebp - 0x184], 0
mov edi, dword [ebp - 0x17c]
mov ecx, edi
call fcn.004023f0
test al, al
jne 0x41fc18
mov ecx, edi
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x41fc1a
mov eax, dword [eax]
jmp 0x41fc1a
xor eax, eax
push eax
push 0
push dword [ebp - 0x184]
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 0x41fc87
call ecx
cmp eax, 5
jne 0x41fc81
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x17c]
call fcn.004023f0
test al, al
jne 0x41fc6e
mov ecx, dword [ebp - 0x17c]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x41fc70
mov eax, dword [eax]
jmp 0x41fc70
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 0x41fe1a
call ecx
cmp eax, 0xb7
jne 0x41fc9d
mov byte [edi + 5], 1
mov eax, dword [edi]
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x18c], eax
call fcn.0041ac90
cmp dword [ebp - 0x174], 6
jb 0x41fe17
cmp dword [ebp - 0x18c], 0
je 0x41fe17
push str.Advapi32.dll
lea ecx, [ebp - 0x1ac]
call fcn.00402450
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1ac]
push eax
call fcn.0041d520
mov ecx, eax
call fcn.0041d5e0
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1ac]
call fcn.00402400
mov ecx, dword [ebp - 0x184]
test ecx, ecx
je 0x41fe17
movups xmm0, xmmword [str.ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov eax, dword [0x545fe0]
mov dword [ebp - 0x1c], eax
mov al, byte [0x545fe4]
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x4c]
movups xmm0, xmmword [0x545fc0]
push eax
push ecx
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x17c], 0
movups xmm0, xmmword [0x545fd0]
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 0x41fe17
push str.GetSecurityDescriptorSacl
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x194], eax
test eax, eax
je 0x41fe17
push str.SetSecurityInfo
push dword [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x184], eax
test eax, eax
je 0x41fe17
push 0
lea eax, [ebp - 0x17c]
push eax
push 1
push str.S:_ML__NW___LW_
call dword [ebp - 0x190]
test eax, eax
je 0x41fe17
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 0x41fe0b
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 0x41fe44
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 0x41fe59
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004ff563
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.004ff522
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4