Function at 0x417f40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5687f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x62f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x6355a1
call fcn.00561ea5
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0x418220
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x418125
cmp dword [ebp - 0x44], 0
je 0x418125
lea ecx, [ebp - 0x40]
call fcn.00403f80
mov dword [ebp - 4], 5
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x40]
push str.9CDB4DA2_ACEA_446E_AA3A_D25628140939__d__p
push eax
call fcn.0048dd40
add esp, 0x10
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x418066
push 4
mov ecx, 0x6321a8
call fcn.004d2400
mov esi, eax
test esi, esi
je 0x418104
lea ecx, [ebp - 0x28]
call fcn.00403f80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
push 0x1a
push 0x5c9214
call fcn.00404640
push 0x2d
push str.RC::RCModuleThreadSync::AcquireLock
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_framework_src_framework_srcutils_rcmodulethreadsync.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x6321a8
push eax
push 4
call fcn.004d2490
cmp esi, 1
jbe 0x418047
lea eax, [ebp - 0x28]
mov ecx, 0x6321a8
push eax
call fcn.004d27d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.00404570
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 5
jmp 0x418104
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41807c
mov byte [esi + 4], 1
jmp 0x418104
push 4
mov ecx, 0x6321a8
call fcn.004d2400
mov edi, eax
test edi, edi
je 0x4180f2
lea ecx, [ebp - 0x28]
call fcn.00403f80
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
push 0x1c
push 0x5c924c
call fcn.00404640
push 0x37
push str.RC::RCModuleThreadSync::AcquireLock
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_framework_src_framework_srcutils_rcmodulethreadsync.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x6321a8
push eax
push 4
call fcn.004d2490
cmp edi, 1
jbe 0x4180d8
lea eax, [ebp - 0x28]
mov ecx, 0x6321a8
push eax
call fcn.004d27d0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.00404570
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 5
push dword [esi]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x40]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], eax
jmp 0x4181b9
cmp dword [0x6321a8], 0
je 0x4181c0
push ecx
mov ecx, 0x6321a8
call fcn.004d1b40
mov eax, dword [0x6321a8]
cmp byte [eax + 0x54], 0
je 0x4181c0
cmp dword [eax + 0x58], 4
jb 0x4181c0
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.00403f80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x1a
push 0x5c9058
call fcn.00404640
push 0x22
push str.RC::RCModuleThreadSync::AcquireLock
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_framework_src_framework_srcutils_rcmodulethreadsync.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x6321a8
push eax
push 4
call fcn.004d2490
test bl, bl
je 0x41819d
lea eax, [ebp - 0x28]
mov ecx, 0x6321a8
push eax
call fcn.004d27d0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f553
mov esp, ebp
pop ebp
ret