Function at 0x4a0b40
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e81f0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x534008]
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 [0x539ac4], 0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x54], edi
je 0x4a0bfb
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x4a0bfb
cmp dword [eax + 0x58], 4
jb 0x4a0bfb
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x45], al
call fcn.0040a090
push 0x17
push str.Entry_UnInstanllService
mov dword [ebp - 4], 0
call fcn.0040a960
push 0x2f3
push str.RC::DM::RCServiceDManager::UnInstanllService
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 4
call fcn.004b31c0
cmp byte [ebp - 0x45], 0
je 0x4a0bec
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
push 1
push 0
push 0
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
test ecx, ecx
jne 0x4a0cb9
cmp dword [0x539ac4], eax
je 0x4a0ca5
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x4a0ca5
cmp dword [eax + 0x58], 2
jb 0x4a0ca5
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x45], al
call fcn.0040a090
push 0x1c
push str.Open_service_manager_failed
mov dword [ebp - 4], 1
call fcn.0040a960
push 0x2fd
push str.RC::DM::RCServiceDManager::UnInstanllService
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 2
call fcn.004b31c0
cmp byte [ebp - 0x45], 0
je 0x4a0c96
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov dword [esi], 0xa803b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x4a0f62
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4a0cc3
mov eax, dword [edi]
push 0x10024
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x4a0d44
cmp dword [0x539ac4], eax
je 0x4a0ca5
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x4a0ca5
cmp dword [eax + 0x58], 2
jb 0x4a0ca5
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x45], al
call fcn.0040a090
push 0x14
push str.Open_service_failed
mov dword [ebp - 4], 2
call fcn.0040a960
push 0x309
push str.RC::DM::RCServiceDManager::UnInstanllService
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 2
call fcn.004b31c0
cmp byte [ebp - 0x45], 0
jmp 0x4a0c86
lea eax, [ebp - 0x50]
mov edx, edi
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x60]
call fcn.0049f090
mov ecx, eax
add esp, 8
mov eax, dword [ecx]
mov dword [esi], eax
cmp dword [esi], 0
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
je 0x4a0e07
cmp dword [0x539ac4], 0
je 0x4a0fea
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x4a0f62
cmp dword [eax + 0x58], 2
jb 0x4a0f62
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x45], al
call fcn.0040a090
push 0x1e
push str.QueryServiceStatusInfo_failed
mov dword [ebp - 4], 3
call fcn.0040a960
push 0x314
push str.RC::DM::RCServiceDManager::UnInstanllService
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 2
call fcn.004b31c0
cmp byte [ebp - 0x45], 0
je 0x4a0df3
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
jmp 0x4a0f62
cmp dword [ebp - 0x4c], 1
je 0x4a0eb0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], 0
push eax
push 1
push dword [ebp - 0x58]
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4a0eb0
cmp dword [0x539ac4], eax
je 0x4a0ca5
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x4a0ca5
cmp dword [eax + 0x58], 2
jb 0x4a0ca5
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x45], al
call fcn.0040a090
push 0x14
push str.Stop_service_failed
mov dword [ebp - 4], 4
call fcn.0040a960
push 0x320
push str.RC::DM::RCServiceDManager::UnInstanllService
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 2
call fcn.004b31c0
cmp byte [ebp - 0x45], 0
jmp 0x4a0c86
push dword [ebp - 0x50]
mov edi, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
lea ecx, [ebp - 0x60]
call fcn.0049f090
add esp, 8
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, ecx
test eax, eax
jne 0x4a0f62
nop dword [eax + eax]
cmp dword [ebp - 0x4c], 1
je 0x4a0f43
cmp edi, 2
jg 0x4a0f32
push dword [ebp - 0x50]
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
lea ecx, [ebp - 0x60]
call fcn.0049f090
add esp, 8
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi]
test eax, eax
je 0x4a0ef0
test eax, eax
jne 0x4a0f62
cmp edi, 2
jle 0x4a0f4b
mov dword [esi], 0xa803bc
jmp 0x4a0f62
mov dword [esi], 0
jmp 0x4a0f36
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4a0ca5
mov dword [esi], 0
cmp dword [0x539ac4], 0
je 0x4a0fea
push ecx
mov ecx, 0x539ac4
call fcn.004b28f0
mov eax, dword [0x539ac4]
cmp byte [eax + 0x54], 0
je 0x4a0fea
cmp dword [eax + 0x58], 4
jb 0x4a0fea
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x45], al
call fcn.0040a090
push 0x16
push str.Exit_UnInstanllService
mov dword [ebp - 4], 5
call fcn.0040a960
push 0x353
push str.RC::DM::RCServiceDManager::UnInstanllService
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_system_service_rcservicedmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
push 4
call fcn.004b31c0
cmp byte [ebp - 0x45], 0
je 0x4a0fdb
lea eax, [ebp - 0x28]
mov ecx, 0x539ac4
push eax
call fcn.004b34e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f90
mov eax, esi
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.004b5f6c
mov esp, ebp
pop ebp
ret 8