Function at 0x51c0d0
Capabilities:
Check mutex on windows
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 esi, ecx
test esi, esi
je 0x51c533
push 0x642d68
call fcn.0051fd80
test eax, eax
je 0x51c127
call fcn.0051a5e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x642e00
mov ecx, esi
call fcn.0051fd80
test eax, eax
je 0x51c14e
call fcn.0051aad0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x643070
mov ecx, esi
call fcn.0051fd80
test eax, eax
je 0x51c175
call fcn.0051ad90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x643058
mov ecx, esi
call fcn.0051fd80
test eax, eax
je 0x51c338
cmp dword [0x648c74], 0
je 0x51c29e
cmp dword [0x648c78], 0
jbe 0x51c29e
mov ecx, 0x648c74
call fcn.00546d80
mov edi, eax
test edi, edi
je 0x51c20b
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0xf01ff
mov ebx, eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x51c1e2
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 2
push edi
call fcn.0056f898
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
push 0x76
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x3a
call fcn.0056f8a6
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push str.Service_Failed_to_launch_as_servicename_wasnt_convertible
inc ecx
mov dword [ebp - 0x18], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x14]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], edx
push eax
push 0x16d
push str.UnifiedStreamingService::onLaunchService
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0x642c80
call fcn.00550890
mov eax, dword [ebp - 0x18]
add esp, 0x2c
test eax, eax
je 0x51c282
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [0x648c28], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x9e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x4e
call fcn.0056f8a6
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push str.Service_Failed_to_launch_as_executable_hasnt_got_required_manifest_properties
inc ecx
mov dword [ebp - 0x18], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x14]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push 0x173
push str.UnifiedStreamingService::onLaunchService
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0x642c80
call fcn.00550890
mov eax, dword [ebp - 0x18]
add esp, 0x2c
test eax, eax
je 0x51c31c
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [0x648c28], 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x642f70
mov ecx, esi
call fcn.0051fd80
mov ecx, esi
test eax, eax
je 0x51c376
push 0x642f70
xor edi, edi
call fcn.0051fd80
test eax, eax
je 0x51c35d
lea edi, [eax + 8]
mov ecx, edi
call fcn.0051b2b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x642d10
call fcn.0051fd80
test eax, eax
je 0x51c39b
call fcn.0051b8c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x643118
mov ecx, esi
call fcn.0051fd80
mov ecx, esi
test eax, eax
je 0x51c3d9
push 0x643118
xor edi, edi
call fcn.0051fd80
test eax, eax
je 0x51c3c0
lea edi, [eax + 8]
mov ecx, edi
call fcn.00513f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x642c90
call fcn.0051fd80
test eax, eax
je 0x51c3fe
call fcn.005141e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x643120
call fcn.00546d80
mov edi, eax
test edi, edi
je 0x51c52e
push edi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
je 0x51c42d
mov bl, 1
jmp 0x51c4c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x84
mov ebx, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x41
call fcn.0056f8a6
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push str.DoesExist_returned___d___note:_some_values_mean_the_mutex_exists_
inc ecx
mov dword [ebp - 0x18], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x14]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
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 - 0x18]
test eax, eax
je 0x51c4bb
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x18], 0
cmp ebx, 5
mov dword [ebp - 0x14], 0
sete bl
push 2
push edi
call fcn.0056f898
add esp, 8
test esi, esi
je 0x51c4e2
push 0
push esi
call fcn.0056f898
add esp, 8
test bl, bl
je 0x51c52e
push str.Unable_to_do_anything__no_commands_specified
lea ecx, [ebp - 0x20]
call fcn.005455a0
push eax
push 0x31a
push str.UnifiedStreamingService::startup
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0
mov dword [ebp - 4], 3
call fcn.00550890
add esp, 0x14
lea ecx, [ebp - 0x20]
call fcn.00500b70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0051a180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret