Function at 0x51ad90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3a60
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x643120
call fcn.00546d80
mov edi, eax
test edi, edi
je 0x51afd8
push edi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
je 0x51ade7
mov bl, 1
jmp 0x51ae7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x84
mov ebx, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x41
call fcn.0056f8a6
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push str.DoesExist_returned___d___note:_some_values_mean_the_mutex_exists_
inc ecx
mov dword [ebp - 0x1c], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
push ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edx
push eax
push 0x79
push str.OMutex::doesExist
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcomutex.cpp
push edx
call fcn.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x51ae71
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x1c], 0
cmp ebx, 5
mov dword [ebp - 0x18], 0
sete bl
push 2
push edi
call fcn.0056f898
add esp, 8
test esi, esi
je 0x51ae98
push 0
push esi
call fcn.0056f898
add esp, 8
test bl, bl
je 0x51afd8
push 0x68
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x33
call fcn.0056f8a6
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push str.Cannot_launch_as_administrator__USS_already_running
inc ecx
mov dword [ebp - 0x1c], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
push 0x193
push str.UnifiedStreamingService::onLaunchAsAdmin
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0x642c80
call fcn.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x2c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x51af22
push 2
push eax
call fcn.0056f898
add esp, 8
push 0x68
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x33
call fcn.0056f8a6
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push str.Cannot_launch_as_administrator__USS_already_running
inc ecx
mov dword [ebp - 0x1c], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 2
push eax
push 1
push 0x648c64
push 0x6428e0
call fcn.00545b40
mov esi, eax
add esp, 0x28
test esi, esi
je 0x51afc0
mov ecx, dword [0x648c1c]
push 0
push esi
call fcn.005001c0
mov eax, dword [esi]
test eax, eax
je 0x51afae
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x51b293
push 2
push eax
call fcn.0056f898
jmp 0x51b290
call fcn.005506d0
mov dword [0x648c24], eax
call fcn.00512cc0
test al, al
je 0x51b126
push 1
push 0x648c64
push 0x642a70
call fcn.00545b40
mov esi, eax
add esp, 0xc
test esi, esi
je 0x51b040
mov ecx, dword [0x648c1c]
push 0
push esi
call fcn.005001c0
mov eax, dword [esi]
test eax, eax
je 0x51b02e
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov esi, dword [0x648c10]
test esi, esi
je 0x51b097
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test ecx, ecx
je 0x51b082
cmp byte [esi + 9], 0
je 0x51b071
lea eax, [ebp - 0x10]
push eax
push ecx
call edi
test eax, eax
je 0x51b071
cmp dword [ebp - 0x10], 0x103
jne 0x51b07c
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [0x648c10]
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x51b097
lea ecx, [ebp - 0x18]
push ecx
push eax
call edi
push 0x36
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x1a
call fcn.0056f8a6
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push str.Service_Thread_returned__d
inc ecx
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x10]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x10], ecx
push edx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 3
push eax
push 0x1a1
push str.UnifiedStreamingService::onLaunchAsAdmin
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0x642c80
call fcn.00550890
mov eax, dword [ebp - 0x14]
add esp, 0x30
test eax, eax
je 0x51b11a
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x51b266
push 0x48
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x23
call fcn.0056f8a6
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push str.Service_Thread_failed_to_initialise
inc ecx
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x10]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 4
push eax
push 1
push 0x648c64
push 0x6428e0
call fcn.00545b40
mov esi, eax
add esp, 0x28
test esi, esi
je 0x51b1c4
mov ecx, dword [0x648c1c]
push 0
push esi
call fcn.005001c0
mov eax, dword [esi]
test eax, eax
je 0x51b1b2
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x51b1dd
push 2
push eax
call fcn.0056f898
add esp, 8
push 0x48
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x23
call fcn.0056f8a6
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push str.Service_Thread_failed_to_initialise
inc ecx
mov dword [ebp - 0x28], eax
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x24]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 5
push eax
push 0x1a6
push str.UnifiedStreamingService::onLaunchAsAdmin
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0x642c80
call fcn.00550890
mov eax, dword [ebp - 0x28]
add esp, 0x2c
test eax, eax
je 0x51b25f
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov esi, dword [0x648c24]
test esi, esi
je 0x51b293
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 4
push esi
mov dword [esi], 0
call fcn.0056f898
mov dword [0x648c24], 0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret