Function at 0x51aad0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3a00
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x63b404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x648c74], 0
je 0x51aced
cmp dword [0x648c78], 0
jbe 0x51aced
mov ecx, 0x648c74
call fcn.00546d80
mov edi, eax
test edi, edi
je 0x51ac67
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 0
push 0
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x51ab72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.00513f30
add esp, 8
push 2
push edi
call fcn.0056f898
add esp, 8
jmp 0x51ad75
push 0x10024
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x51ab96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x51ac3b
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x51ac1c
push edi
push str.Stopping__s.
call fcn.00513f30
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x51abff
nop
mov eax, dword [ebp - 0x28]
cmp eax, 3
jne 0x51ac02
push 0x622018
call fcn.00513f30
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x51abd0
mov eax, dword [ebp - 0x28]
push edi
cmp eax, 1
jne 0x51ac0f
push 0x62201c
jmp 0x51ac14
push str._n_s_failed_to_stop._n
call fcn.00513f30
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x51ac35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x51ac3b
push edi
push str._s_is_removed._n
call fcn.00513f30
add esp, 8
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x51ac57
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 2
push edi
call fcn.0056f898
add esp, 8
jmp 0x51ad75
push 0x7c
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x3d
call fcn.0056f8a6
mov ecx, dword [ebp - 0x34]
push 0xffffffffffffffff
push str.Service_Failed_to_uninstall_as_servicename_wasnt_convertible
inc ecx
mov dword [ebp - 0x38], eax
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x34]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 4], edx
push eax
push 0x184
push str.UnifiedStreamingService::onUninstallService
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0x642c80
call fcn.00550890
mov eax, dword [ebp - 0x38]
add esp, 0x2c
test eax, eax
je 0x51acde
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [0x648c28], 6
jmp 0x51ad75
push 0xa4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x51
call fcn.0056f8a6
mov ecx, dword [ebp - 0x3c]
push 0xffffffffffffffff
push str.Service_Failed_to_uninstall_as_executable_hasnt_got_required_manifest_properties
inc ecx
mov dword [ebp - 0x40], eax
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x3c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
push 0x18a
push str.UnifiedStreamingService::onUninstallService
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0x642c80
call fcn.00550890
mov eax, dword [ebp - 0x40]
add esp, 0x2c
test eax, eax
je 0x51ad6b
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [0x648c28], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret