Function at 0x4d2110
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540648
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x588088]
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 0x4d226d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x50], eax
cmp eax, 0x102
jne 0x4d217d
mov eax, 3
jmp 0x4d25c2
mov eax, dword [esi]
test eax, eax
je 0x4d2186
push eax
call ebx
mov dword [esi], 0
mov dword [esi + 4], 0
cmp dword [0x58c9f8], 0
je 0x4d226d
push ecx
mov ecx, 0x58c9f8
call fcn.004be120
mov eax, dword [0x58c9f8]
cmp byte [eax + 0x54], 0
je 0x4d226d
cmp dword [eax + 0x58], 2
jb 0x4d226d
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.00402ac0
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.00402ae0
lea ecx, [ebp - 0x50]
mov eax, dword [eax]
push eax
call fcn.00402ae0
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
push eax
call fcn.00402ae0
lea ecx, [ebp - 0x44]
mov eax, dword [eax]
push eax
call fcn.00402ae0
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.004bf1e0
add esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, 0x58c9f8
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.004bece0
test bl, bl
je 0x4d2258
lea eax, [ebp - 0x2c]
mov ecx, 0x58c9f8
push eax
call fcn.004bf030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402a60
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 0x4d24fc
push eax
call ebx
push ecx
lea ecx, [ebp - 0x38]
call fcn.004094b0
call fcn.00409ff0
mov dword [ebp - 4], 2
mov edx, ecx
mov ecx, dword [ebp - 0x40]
call fcn.0048fce0
lea ecx, [ebp - 0x38]
call fcn.00402ae0
mov edx, eax
call fcn.0040a250
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4d238f
cmp dword [0x58c9f8], 0
je 0x4d237e
push ecx
mov ecx, 0x58c9f8
call fcn.004be120
mov eax, dword [0x58c9f8]
cmp byte [eax + 0x54], 0
je 0x4d237e
cmp dword [eax + 0x58], 2
jb 0x4d237e
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.00402ac0
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.00402ae0
lea ecx, [ebp - 0x44]
mov eax, dword [eax]
push eax
call fcn.00402ae0
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.004bf1e0
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x58c9f8
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.004bece0
test bl, bl
je 0x4d2372
lea eax, [ebp - 0x2c]
mov ecx, 0x58c9f8
push eax
call fcn.004bf030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402a60
xor eax, eax
mov esi, 4
test edi, edi
cmovne esi, eax
jmp 0x4d24e6
lea ecx, [ebp - 0x38]
call fcn.00402ae0
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 [0x58c9f8], 0
mov dword [ebp - 0x50], ebx
je 0x4d248f
push ecx
mov ecx, 0x58c9f8
call fcn.004be120
mov eax, dword [0x58c9f8]
cmp byte [eax + 0x54], 0
je 0x4d248f
cmp ebx, dword [eax + 0x58]
ja 0x4d248f
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.00402ac0
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.00402ae0
lea ecx, [ebp - 0x48]
mov eax, dword [eax]
push eax
push edi
call fcn.00402ae0
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
push eax
call fcn.00402ae0
lea ecx, [ebp - 0x44]
mov eax, dword [eax]
push eax
call fcn.00402ae0
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.004bf1e0
add esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, 0x58c9f8
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.004bece0
test bl, bl
je 0x4d2483
lea eax, [ebp - 0x2c]
mov ecx, 0x58c9f8
push eax
call fcn.004bf030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402a60
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 0x4d24ae
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 0x4d24c5
test ecx, ecx
je 0x4d24e1
mov esi, 3
jmp 0x4d24e6
test ecx, ecx
je 0x4d24d8
test eax, eax
je 0x4d24d4
mov esi, 2
jmp 0x4d24e6
xor esi, esi
jmp 0x4d24e6
mov esi, 1
test eax, eax
jne 0x4d24e6
mov esi, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040aec0
mov eax, esi
jmp 0x4d25c2
test edi, edi
je 0x4d25bd
cmp dword [0x58c9f8], 0
je 0x4d25b9
push ecx
mov ecx, 0x58c9f8
call fcn.004be120
mov eax, dword [0x58c9f8]
cmp byte [eax + 0x54], 0
je 0x4d25b9
cmp dword [eax + 0x58], 2
jb 0x4d25b9
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.00402ac0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
call fcn.00403390
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
call fcn.00402ae0
lea ecx, [ebp - 0x3c]
mov eax, dword [eax]
push eax
call fcn.00402ae0
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.004bf1e0
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x58c9f8
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.004bece0
test bl, bl
je 0x4d25aa
lea eax, [ebp - 0x2c]
mov ecx, 0x58c9f8
push eax
call fcn.004bf030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402a60
xor eax, eax
jmp 0x4d25c2
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.004e1a24
mov esp, ebp
pop ebp
ret 0xc