Function at 0x10056ba0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015b6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101b900c]
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 0x10056d2a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x4c], eax
cmp eax, 0x102
jne 0x10056c0a
mov eax, 3
jmp 0x10057194
mov eax, dword [ebx]
test eax, eax
je 0x10056c17
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov dword [ebx + 4], 0
cmp dword [0x101be120], 0
je 0x10056d2a
push ecx
mov ecx, 0x101be120
call fcn.100ab390
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x10056d2a
cmp dword [eax + 0x58], 2
jb 0x10056d2a
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 0x10056c8d
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.100ac240
add esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, 0x101be120
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.100abda0
test bl, bl
je 0x10056cd5
lea eax, [ebp - 0x44]
mov ecx, 0x101be120
push eax
call fcn.100ac0c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x10056d16
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10056d0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100571b2
push edx
push ecx
call fcn.1010a1d5
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 0x10056d35
mov ebx, dword [ebx]
push ebx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x10057087
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.10077d40
mov ebx, dword [ebp - 0x38]
cmp ebx, dword [ebp - 0x34]
jne 0x10056ea8
cmp dword [0x101be120], 0
je 0x10056e96
push ecx
mov ecx, 0x101be120
call fcn.100ab390
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x10056e96
cmp dword [eax + 0x58], 2
jb 0x10056e96
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 0x10056dfe
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.100ac240
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x101be120
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.100abda0
cmp byte [ebp - 0x45], 0
je 0x10056e44
lea eax, [ebp - 0x2c]
mov ecx, 0x101be120
push eax
call fcn.100ac0c0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10056e82
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10056e78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100571b7
push edx
push ecx
call fcn.1010a1d5
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 0x10057030
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 [0x101be120], 0
mov dword [ebp - 0x50], eax
je 0x10056fdd
push ecx
mov ecx, 0x101be120
call fcn.100ab390
mov ecx, dword [0x101be120]
cmp byte [ecx + 0x54], 0
je 0x10056fdd
mov eax, dword [ebp - 0x50]
cmp eax, dword [ecx + 0x58]
ja 0x10056fdd
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 0x10056f3d
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.100ac240
add esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, 0x101be120
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.100abda0
cmp byte [ebp - 0x45], 0
je 0x10056f8b
lea eax, [ebp - 0x2c]
mov ecx, 0x101be120
push eax
call fcn.100ac0c0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10056fc9
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10056fbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100571bc
push edx
push ecx
call fcn.1010a1d5
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 0x10056ff5
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 0x1005700f
test eax, eax
je 0x1005702b
mov esi, 3
jmp 0x10057030
test eax, eax
je 0x10057022
test edi, edi
je 0x1005701e
mov esi, 2
jmp 0x10057030
xor esi, esi
jmp 0x10057030
mov esi, 1
test edi, edi
jne 0x10057030
mov esi, 4
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x10057080
mov ecx, dword [ebp - 0x30]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10057061
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100571c1
push ecx
push ebx
call fcn.1010a1d5
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, esi
jmp 0x10057194
cmp dword [ebp - 0x50], 0
je 0x1005718f
cmp dword [0x101be120], 0
je 0x1005718b
push ecx
mov ecx, 0x101be120
call fcn.100ab390
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], 0
je 0x1005718b
cmp dword [eax + 0x58], 2
jb 0x1005718b
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 0x100570f6
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.100ac240
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x101be120
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.100abda0
test bl, bl
je 0x1005713a
lea eax, [ebp - 0x2c]
mov ecx, 0x101be120
push eax
call fcn.100ac0c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10057177
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005716d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100571c6
push edx
push ecx
call fcn.1010a1d5
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 0x10057194
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.10109e31
mov esp, ebp
pop ebp
ret 0xc
call fcn.10129d79
call fcn.10129d79
call fcn.10129d79
call fcn.10129d79
call fcn.10129d79
int3