Function at 0x10057b50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015e708
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101bd00c]
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 ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edi
test eax, eax
je 0x10057cda
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x4c], eax
cmp eax, 0x102
jne 0x10057bba
mov eax, 3
jmp 0x10058144
mov eax, dword [ebx]
test eax, eax
je 0x10057bc7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov dword [ebx + 4], 0
cmp dword [0x101c2170], 0
je 0x10057cda
push ecx
mov ecx, 0x101c2170
call fcn.100ac670
mov eax, dword [0x101c2170]
cmp byte [eax + 0x54], 0
je 0x10057cda
cmp dword [eax + 0x58], 2
jb 0x10057cda
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10057c3d
mov ecx, dword [esi]
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push edi
push ecx
push str._s___d__maybe_is_died__ret__d__err__d
push eax
call fcn.100ad520
add esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, 0x101c2170
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.100ad080
test bl, bl
je 0x10057c85
lea eax, [ebp - 0x44]
mov ecx, 0x101c2170
push eax
call fcn.100ad3a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x10057cc6
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057cbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058162
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov ebx, dword [ebp - 0x58]
cmp dword [ebx + 0x14], 8
jb 0x10057ce5
mov ebx, dword [ebx]
push ebx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x10058037
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.10079030
mov ebx, dword [ebp - 0x38]
cmp ebx, dword [ebp - 0x34]
jne 0x10057e58
cmp dword [0x101c2170], 0
je 0x10057e46
push ecx
mov ecx, 0x101c2170
call fcn.100ac670
mov eax, dword [0x101c2170]
cmp byte [eax + 0x54], 0
je 0x10057e46
cmp dword [eax + 0x58], 2
jb 0x10057e46
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x45], al
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
jb 0x10057dae
mov esi, dword [esi]
push eax
push esi
lea eax, [ebp - 0x2c]
push str._s__mutex_can_open__but_get_pid_failed___d
push eax
call fcn.100ad520
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x101c2170
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.100ad080
cmp byte [ebp - 0x45], 0
je 0x10057df4
lea eax, [ebp - 0x2c]
mov ecx, 0x101c2170
push eax
call fcn.100ad3a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10057e32
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057e28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058167
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
xor eax, eax
mov esi, 4
cmp dword [ebp - 0x50], eax
cmovne esi, eax
jmp 0x10057fe0
mov edi, dword [ebx]
push edi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x4c], eax
mov ecx, 5
cmp dword [ebp - 0x4c], 0
mov eax, 2
cmovne eax, ecx
cmp dword [0x101c2170], 0
mov dword [ebp - 0x50], eax
je 0x10057f8d
push ecx
mov ecx, 0x101c2170
call fcn.100ac670
mov ecx, dword [0x101c2170]
cmp byte [ecx + 0x54], 0
je 0x10057f8d
mov eax, dword [ebp - 0x50]
cmp eax, dword [ecx + 0x58]
ja 0x10057f8d
mov al, byte [ecx + 0x5c]
mov byte [ebp - 0x45], al
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
jb 0x10057eed
mov esi, dword [esi]
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push edi
push dword [ebp - 0x54]
push esi
push str._s__old_pid_is__d__open_proc__d__handle__d__lasteror__d
push eax
call fcn.100ad520
add esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, 0x101c2170
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.100ad080
cmp byte [ebp - 0x45], 0
je 0x10057f3b
lea eax, [ebp - 0x2c]
mov ecx, 0x101c2170
push eax
call fcn.100ad3a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10057f79
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057f6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005816c
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov esi, dword [ebp - 0x5c]
xor eax, eax
cmp dword [ebp - 0x4c], eax
cmove edi, eax
mov eax, dword [esi]
test eax, eax
je 0x10057fa5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
mov dword [esi], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 4], edi
cmp edi, eax
jne 0x10057fbf
test eax, eax
je 0x10057fdb
mov esi, 3
jmp 0x10057fe0
test eax, eax
je 0x10057fd2
test edi, edi
je 0x10057fce
mov esi, 2
jmp 0x10057fe0
xor esi, esi
jmp 0x10057fe0
mov esi, 1
test edi, edi
jne 0x10057fe0
mov esi, 4
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x10058030
mov ecx, dword [ebp - 0x30]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10058011
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058171
push ecx
push ebx
call fcn.1010cf95
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, esi
jmp 0x10058144
cmp dword [ebp - 0x50], 0
je 0x1005813f
cmp dword [0x101c2170], 0
je 0x1005813b
push ecx
mov ecx, 0x101c2170
call fcn.100ac670
mov eax, dword [0x101c2170]
cmp byte [eax + 0x54], 0
je 0x1005813b
cmp dword [eax + 0x58], 2
jb 0x1005813b
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x100580a6
mov esi, dword [esi]
push edi
push esi
lea eax, [ebp - 0x2c]
push str._s___d__is_stop_running__cannot_open_the_mutex
push eax
call fcn.100ad520
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x101c2170
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.100ad080
test bl, bl
je 0x100580ea
lea eax, [ebp - 0x2c]
mov ecx, 0x101c2170
push eax
call fcn.100ad3a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10058127
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005811d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058176
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
xor eax, eax
jmp 0x10058144
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.1010cbf1
mov esp, ebp
pop ebp
ret 0xc
call fcn.1012cb39
call fcn.1012cb39
call fcn.1012cb39
call fcn.1012cb39
call fcn.1012cb39
int3