Function at 0x46bd50
Capabilities:
Check mutex on windows
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x581818
push 0x4c48c0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffbb8
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
push 0x200
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.004c4160
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x41c]
push ecx
call fcn.004c4160
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.MTA_TRACE_FILE_EX
push str._s__d
push 0x100
lea edx, [ebp - 0x21c]
push edx
call fcn.0046b8d0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.MTA_TRACE_MUTEX_EX
push str._s__d
push 0x100
lea eax, [ebp - 0x41c]
push eax
call fcn.0046b8d0
add esp, 0x14
push 0x114
push 0
push 0x5a47a8
call fcn.004c4160
add esp, 0xc
mov dword [0x5a47a8], 0x114
push 0x5a47a8
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x428], 0
cmp dword [0x5a47b8], 2
jne 0x46be9a
mov dword [ebp - 0x43c], 0
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x440], ecx
push 1
lea edx, [ebp - 0x458]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x46be82
push 0
push 0
push 1
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x46be8e
mov dword [ebp - 4], 0xfffffffe
jmp 0x46c15b
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x428], ecx
lea edx, [ebp - 0x41c]
push edx
push 0
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x424], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46becf
mov dword [ebp - 0x42c], 1
jmp 0x46bed9
mov dword [ebp - 0x42c], 0
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x434], ecx
cmp dword [ebp - 0x424], 0
jne 0x46bf15
cmp dword [ebp - 0x424], 0
je 0x46bf04
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0046c250
mov dword [ebp - 4], 0xfffffffe
jmp 0x46c15b
cmp dword [ebp - 0x434], 0
jne 0x46bf2a
mov dword [ebp - 0x430], 1
jmp 0x46bf34
mov dword [ebp - 0x430], 0
mov al, byte [ebp - 0x430]
mov byte [ebp - 0x41d], al
movzx ecx, byte [ebp - 0x41d]
test ecx, ecx
je 0x46bf6f
call fcn.0046b660
mov dword [0x59ccdc], eax
mov edx, dword [0x5a48c0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x424]
mov dword [0x5a48c0], eax
jmp 0x46bf91
cmp dword [ebp - 0x434], 0
je 0x46bf91
mov ecx, dword [0x5a48c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x424]
mov dword [0x5a48c0], edx
movzx eax, byte [ebp - 0x41d]
test eax, eax
je 0x46bffd
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [0x59ccdc]
push edx
push 0
push 4
mov eax, dword [ebp - 0x428]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x5a48bc], eax
cmp dword [0x5a48bc], 0
je 0x46bffb
cmp dword [0x5a47b8], 2
jne 0x46bffb
cmp dword [0x5a47ac], 6
jb 0x46bffb
lea ecx, [ebp - 0x41c]
push ecx
call fcn.0046b920
add esp, 4
lea edx, [ebp - 0x21c]
push edx
call fcn.0046b920
add esp, 4
jmp 0x46c03a
lea eax, [ebp - 0x21c]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [0x5a48bc], eax
cmp dword [0x5a48bc], 0
jne 0x46c03a
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 [0x5a48bc], eax
cmp dword [0x5a48bc], 0
je 0x46c12f
push 0
push 0
push 0
push 2
mov edx, dword [0x5a48bc]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x5a48c4], eax
cmp dword [0x5a48c4], 0
je 0x46c12f
push 0x3e8
mov eax, dword [0x5a48c0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x46c09a
cmp dword [ebp - 0x438], 0x80
jne 0x46c119
movzx ecx, byte [ebp - 0x41d]
test ecx, ecx
je 0x46c0bc
mov edx, dword [0x59ccdc]
push edx
mov eax, dword [0x5a48c4]
push eax
call fcn.0046c180
add esp, 8
jmp 0x46c10a
push str.MTAT
call fcn.0046c5e0
add esp, 4
push eax
push str.MTAT
push 4
mov ecx, dword [0x5a48c4]
push ecx
call fcn.0046c510
add esp, 0x10
test eax, eax
jne 0x46c0f3
mov edx, dword [0x5a48c4]
movzx eax, byte [edx + 6]
cmp eax, 1
je 0x46c10a
mov ecx, dword [0x5a48c4]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x5a48c4], 0
mov edx, dword [0x5a48c0]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x46c12f
mov eax, dword [0x5a48c4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x5a48c4], 0
cmp dword [0x5a48c4], 0
jne 0x46c13d
call fcn.0046c250
mov dword [ebp - 4], 0xfffffffe
jmp 0x46c15b
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