Function at 0x46cde0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x581878
push 0x4c48c0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffbc8
mov eax, dword [0x59cd24]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov ecx, 0xf
mov esi, str.MTA_TRACE_FILE_EX_ONE_PROCESS
lea edi, [ebp - 0x21c]
rep movsd dword es:[edi], dword [esi]
push 0x1c4
push 0
lea eax, [ebp - 0x1e0]
push eax
call fcn.004c4160
add esp, 0xc
mov ecx, 9
mov esi, str.MTA_TRACE_MUTEX_EX
lea edi, [ebp - 0x41c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1da
push 0
lea ecx, [ebp - 0x3f6]
push ecx
call fcn.004c4160
add esp, 0xc
push 0x114
push 0
push 0x5a48f8
call fcn.004c4160
add esp, 0xc
mov dword [0x5a48f8], 0x114
push 0x5a48f8
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x428], 0
cmp dword [0x5a4908], 2
jne 0x46cf06
mov dword [ebp - 0x42c], 0
lea edx, [ebp - 0x448]
mov dword [ebp - 0x430], edx
push 1
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x46ceee
push 0
push 0
push 1
lea ecx, [ebp - 0x448]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x46cefa
mov dword [ebp - 4], 0xfffffffe
jmp 0x46d058
lea edx, [ebp - 0x434]
mov dword [ebp - 0x428], edx
lea eax, [ebp - 0x41c]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x420], eax
cmp dword [0x5a4a10], 0
jne 0x46cf3e
cmp dword [ebp - 0x420], 0
je 0x46cf3e
mov ecx, dword [ebp - 0x420]
mov dword [0x5a4a10], ecx
cmp dword [ebp - 0x420], 0
jne 0x46cf6e
cmp dword [ebp - 0x420], 0
je 0x46cf5d
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0046d160
mov dword [ebp - 4], 0xfffffffe
jmp 0x46d058
lea eax, [ebp - 0x21c]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [0x5a4a0c], eax
cmp dword [0x5a4a0c], 0
jne 0x46cfae
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [0x5a4a0c], eax
cmp dword [0x5a4a0c], 0
je 0x46d02c
push 0
push 0
push 0
push 2
mov edx, dword [0x5a4a0c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x5a4a14], eax
cmp dword [0x5a4a14], 0
je 0x46d02c
push 0x3e8
mov eax, dword [0x5a4a10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x46d006
cmp dword [ebp - 0x424], 0x80
jne 0x46d015
mov ecx, dword [0x5a4a10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x46d02c
mov edx, dword [0x5a4a14]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x5a4a14], 0
cmp dword [0x5a4a14], 0
jne 0x46d03a
call fcn.0046d160
mov dword [ebp - 4], 0xfffffffe
jmp 0x46d058
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049fb26
mov esp, ebp
pop ebp
ret