Function at 0x4d7000
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541b88
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x58a088]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [esi]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x4c], eax
test edi, edi
je 0x4d715d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x50], eax
cmp eax, 0x102
jne 0x4d706d
mov eax, 3
jmp 0x4d74b2
mov eax, dword [esi]
test eax, eax
je 0x4d7076
push eax
call ebx
mov dword [esi], 0
mov dword [esi + 4], 0
cmp dword [0x58e9e0], 0
je 0x4d715d
push ecx
mov ecx, 0x58e9e0
call fcn.004c3010
mov eax, dword [0x58e9e0]
cmp byte [eax + 0x54], 0
je 0x4d715d
cmp dword [eax + 0x58], 2
jb 0x4d715d
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.00402a90
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
call fcn.00403390
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], eax
call fcn.00402ab0
lea ecx, [ebp - 0x50]
mov eax, dword [eax]
push eax
call fcn.00402ab0
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
push eax
call fcn.00402ab0
lea ecx, [ebp - 0x44]
mov eax, dword [eax]
push eax
call fcn.00402ab0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push str._s___d__maybe_is_died__ret__d__err__d
push eax
call fcn.004c40d0
add esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, 0x58e9e0
push 0xd1
push str.RC::RCProtectProcKeeper::UpdateProcessState
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcprotectprockeeper.cpp
push eax
push 2
call fcn.004c3bd0
test bl, bl
je 0x4d7148
lea eax, [ebp - 0x2c]
mov ecx, 0x58e9e0
push eax
call fcn.004c3f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402a30
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x3c]
call fcn.00403390
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4d73ec
push eax
call ebx
push ecx
lea ecx, [ebp - 0x38]
call fcn.004095d0
call fcn.0040a110
mov dword [ebp - 4], 2
mov edx, ecx
mov ecx, dword [ebp - 0x40]
call fcn.00494bc0
lea ecx, [ebp - 0x38]
call fcn.00402ab0
mov edx, eax
call fcn.0040a370
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4d727f
cmp dword [0x58e9e0], 0
je 0x4d726e
push ecx
mov ecx, 0x58e9e0
call fcn.004c3010
mov eax, dword [0x58e9e0]
cmp byte [eax + 0x54], 0
je 0x4d726e
cmp dword [eax + 0x58], 2
jb 0x4d726e
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.00402a90
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
call fcn.00403390
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], eax
call fcn.00402ab0
lea ecx, [ebp - 0x44]
mov eax, dword [eax]
push eax
call fcn.00402ab0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push str._s__mutex_can_open__but_get_pid_failed___d
push eax
call fcn.004c40d0
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x58e9e0
push 0xf4
push str.RC::RCProtectProcKeeper::UpdateProcessState
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcprotectprockeeper.cpp
push eax
push 2
call fcn.004c3bd0
test bl, bl
je 0x4d7262
lea eax, [ebp - 0x2c]
mov ecx, 0x58e9e0
push eax
call fcn.004c3f20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402a30
xor eax, eax
mov esi, 4
test edi, edi
cmovne esi, eax
jmp 0x4d73d6
lea ecx, [ebp - 0x38]
call fcn.00402ab0
mov eax, dword [eax]
mov eax, dword [eax]
push eax
push 0
push 0x100000
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov ebx, 2
test edi, edi
mov eax, 5
cmovne ebx, eax
cmp dword [0x58e9e0], 0
mov dword [ebp - 0x50], ebx
je 0x4d737f
push ecx
mov ecx, 0x58e9e0
call fcn.004c3010
mov eax, dword [0x58e9e0]
cmp byte [eax + 0x54], 0
je 0x4d737f
cmp ebx, dword [eax + 0x58]
ja 0x4d737f
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.00402a90
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
call fcn.00403390
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], eax
call fcn.00402ab0
lea ecx, [ebp - 0x48]
mov eax, dword [eax]
push eax
push edi
call fcn.00402ab0
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
push eax
call fcn.00402ab0
lea ecx, [ebp - 0x44]
mov eax, dword [eax]
push eax
call fcn.00402ab0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push str._s__old_pid_is__d__open_proc__d__handle__d__lasteror__d
push eax
call fcn.004c40d0
add esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, 0x58e9e0
push 0x102
push str.RC::RCProtectProcKeeper::UpdateProcessState
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcprotectprockeeper.cpp
push eax
push dword [ebp - 0x50]
call fcn.004c3bd0
test bl, bl
je 0x4d7373
lea eax, [ebp - 0x2c]
mov ecx, 0x58e9e0
push eax
call fcn.004c3f20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402a30
mov eax, dword [ebp - 0x48]
xor ecx, ecx
test edi, edi
cmove eax, ecx
mov ecx, dword [esi]
mov dword [ebp - 0x48], eax
mov ebx, eax
test ecx, ecx
je 0x4d739e
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp eax, ecx
jne 0x4d73b5
test ecx, ecx
je 0x4d73d1
mov esi, 3
jmp 0x4d73d6
test ecx, ecx
je 0x4d73c8
test eax, eax
je 0x4d73c4
mov esi, 2
jmp 0x4d73d6
xor esi, esi
jmp 0x4d73d6
mov esi, 1
test eax, eax
jne 0x4d73d6
mov esi, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040afd0
mov eax, esi
jmp 0x4d74b2
test edi, edi
je 0x4d74ad
cmp dword [0x58e9e0], 0
je 0x4d74a9
push ecx
mov ecx, 0x58e9e0
call fcn.004c3010
mov eax, dword [0x58e9e0]
cmp byte [eax + 0x54], 0
je 0x4d74a9
cmp dword [eax + 0x58], 2
jb 0x4d74a9
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.00402a90
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
call fcn.00403390
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
call fcn.00402ab0
lea ecx, [ebp - 0x3c]
mov eax, dword [eax]
push eax
call fcn.00402ab0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push str._s___d__is_stop_running__cannot_open_the_mutex
push eax
call fcn.004c40d0
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x58e9e0
push 0xe2
push str.RC::RCProtectProcKeeper::UpdateProcessState
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcprotectprockeeper.cpp
push eax
push 2
call fcn.004c3bd0
test bl, bl
je 0x4d749a
lea eax, [ebp - 0x2c]
mov ecx, 0x58e9e0
push eax
call fcn.004c3f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402a30
xor eax, eax
jmp 0x4d74b2
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e1ff4
mov esp, ebp
pop ebp
ret 0xc