Function at 0x5d64a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a0960
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x729140]
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
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0x5d6770
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x5d66a2
cmp dword [ebp - 0x44], 0
je 0x5d66a2
lea ecx, [ebp - 0x40]
call fcn.004058d0
mov dword [ebp - 4], 1
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.004d6990
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00405860
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x5d65db
mov eax, dword [0x729c9c]
mov bl, 1
test eax, eax
je 0x5d654c
mov bl, byte [eax + 0x64]
push 4
mov ecx, 0x729c98
call fcn.0043aa90
mov esi, eax
test bl, bl
je 0x5d6693
test esi, esi
je 0x5d6693
lea ecx, [ebp - 0x28]
call fcn.004058d0
mov byte [ebp - 4], 2
push 0x6e667c
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push 0x6e667c
call fcn.00405b20
push 0x2d
push str.RC::RCModuleThreadSync::AcquireLock
push str.d:jenkinsworkspacepc_qncleaner_buildqncleaner_framework_src_framework_srcutils_rcmodulethreadsync.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x729c98
push eax
push 4
call fcn.0043aad0
cmp esi, 1
jbe 0x5d65c0
lea eax, [ebp - 0x28]
mov ecx, 0x729c98
push eax
call fcn.0043ad50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
jmp 0x5d6746
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x5d65fb
mov byte [esi + 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
jmp 0x5d6746
mov eax, dword [0x729c9c]
mov bl, 1
test eax, eax
je 0x5d6609
mov bl, byte [eax + 0x64]
push 4
mov ecx, 0x729c98
call fcn.0043aa90
mov edi, eax
test bl, bl
je 0x5d6681
test edi, edi
je 0x5d6681
lea ecx, [ebp - 0x28]
call fcn.004058d0
mov byte [ebp - 4], 3
push 0x6e66ec
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push 0x6e66ec
call fcn.00405b20
push 0x37
push str.RC::RCModuleThreadSync::AcquireLock
push str.d:jenkinsworkspacepc_qncleaner_buildqncleaner_framework_src_framework_srcutils_rcmodulethreadsync.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x729c98
push eax
push 4
call fcn.0043aad0
cmp edi, 1
jbe 0x5d6675
lea eax, [ebp - 0x28]
mov ecx, 0x729c98
push eax
call fcn.0043ad50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405870
push dword [esi]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
jmp 0x5d6746
mov eax, dword [0x729c9c]
test eax, eax
je 0x5d674b
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x729c98
mov byte [ebp - 0x45], al
call fcn.0043a0f0
mov eax, dword [0x729c9c]
xor ebx, ebx
cmp byte [eax + 0x54], bl
je 0x5d66d9
cmp dword [eax + 0x58], 4
jb 0x5d66d9
cmp byte [eax + 0x5c], bl
setne bl
inc ebx
cmp byte [ebp - 0x45], 0
je 0x5d674b
test ebx, ebx
je 0x5d674b
lea ecx, [ebp - 0x28]
call fcn.004058d0
mov dword [ebp - 4], 0
push 0x6e66b4
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push 0x6e66b4
call fcn.00405b20
push 0x22
push str.RC::RCModuleThreadSync::AcquireLock
push str.d:jenkinsworkspacepc_qncleaner_buildqncleaner_framework_src_framework_srcutils_rcmodulethreadsync.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x729c98
push eax
push 4
call fcn.0043aad0
cmp ebx, 1
jbe 0x5d673c
lea eax, [ebp - 0x28]
mov ecx, 0x729c98
push eax
call fcn.0043ad50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405870
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.00634bf3
mov esp, ebp
pop ebp
ret