Function at 0x431470
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ff60
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ac084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x4314f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_FAILED__err__0x_x
push 3
push 3
push 0x91
push str.CInstActionUninstallPrevAccSvc::StopAccSvc
push str.c:_buildagentwork_b0d71a1a28f6c898installerActionsInstActionUninstall.h
lea ecx, [ebp - 0x3c]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x14
xor eax, eax
jmp 0x431682
push 0xf01ff
push str.AccountService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x431528
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_FAILED__err__0x_x
push 3
push 3
push 0x98
lea ecx, [ebp - 0x3c]
jmp 0x43157e
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
xorps xmm0, xmm0
push 1
push esi
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4315a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x3c]
cmp eax, 0x426
jne 0x43156f
push str.AccSvc_already_stopped
push 1
push 3
push 0xa3
jmp 0x43164c
push eax
push str.ControlService__STOP__FAILED__err__0x_x
push 3
push 3
push 0xa7
push str.CInstActionUninstallPrevAccSvc::StopAccSvc
push str.c:_buildagentwork_b0d71a1a28f6c898installerActionsInstActionUninstall.h
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x14
mov dword [ebp - 0x30], 0
jmp 0x43166b
mov dword [ebp - 0x30], 0
nop dword [eax]
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 0x4315fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatus_FAILED__err__0x_x
push 3
push 3
push 0xb0
push str.CInstActionUninstallPrevAccSvc::StopAccSvc
push str.c:_buildagentwork_b0d71a1a28f6c898installerActionsInstActionUninstall.h
lea ecx, [ebp - 0x3c]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x14
cmp dword [ebp - 0x28], 1
je 0x43163b
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, 0xa
jl 0x4315b0
push str.AccSvc_not_stopped
push 3
push 3
push 0xb9
push str.CInstActionUninstallPrevAccSvc::StopAccSvc
push str.c:_buildagentwork_b0d71a1a28f6c898installerActionsInstActionUninstall.h
lea ecx, [ebp - 0x3c]
call fcn.00457220
push eax
call fcn.004573f0
mov dword [ebp - 0x30], 0
jmp 0x431668
push str.AccSvc_stopped
push 1
push 3
push 0xb4
lea ecx, [ebp - 0x3c]
push str.CInstActionUninstallPrevAccSvc::StopAccSvc
push str.c:_buildagentwork_b0d71a1a28f6c898installerActionsInstActionUninstall.h
call fcn.00457220
push eax
call fcn.004573f0
mov dword [ebp - 0x30], 1
add esp, 0x10
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x43167c
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, dword [ebp - 0x30]
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.00458d41
mov esp, ebp
pop ebp
ret