Function at 0x44f3f0
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x66ea60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x58], esi
mov eax, dword [esi + 4]
call eax
push 0xf003f
push 0
push 0
mov dword [ebp - 0x68], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edx, eax
mov dword [ebp - 0x60], edx
test edx, edx
je 0x44f64e
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ecx, 0x662470
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x5c], 0
jmp 0x44f454
mov edx, dword [ebp - 0x60]
push 0x2c
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x44f61a
lea eax, [ebp - 0x54]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push ebx
call edi
test eax, eax
je 0x44f60f
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x44f60f
cmp eax, 3
je 0x44f60f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ebp - 0x64]
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x44f5b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x44f5b0
push dword [ebp - 0x54]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x70], edi
test edi, edi
je 0x44f5aa
lea eax, [ebp - 8]
mov dword [ebp - 0x64], edi
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push edi
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x44f59a
mov eax, dword [ebp - 0x5c]
push 0x24
movups xmm1, xmmword [eax + edi]
movups xmm0, xmmword [eax + edi + 0x10]
movd eax, xmm1
movups xmmword [ebp - 0x88], xmm0
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x44f597
lea eax, [ebp - 0x50]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x44f597
cmp dword [ebp - 0x4c], 1
je 0x44f590
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x68]
nop dword [eax + eax]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x54]
push eax
push 0x24
lea eax, [ebp - 0x50]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44f584
cmp dword [ebp - 0x4c], 1
je 0x44f58a
mov eax, dword [ebx + 4]
call eax
sub eax, edi
cmp eax, 0x7530
ja 0x44f58a
cmp dword [ebp - 0x4c], 1
jne 0x44f550
mov edi, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x74]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x58]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x44f60f
cmp dword [ebp - 0x28], 1
je 0x44f60f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x54]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push ebx
call edi
test eax, eax
je 0x44f60f
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x44f60f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44f60a
call ecx
sub eax, dword [ebp - 0x68]
sbb edx, 0
test edx, edx
ja 0x44f60f
jb 0x44f607
cmp eax, 0x7530
ja 0x44f60f
mov eax, dword [ebp - 0x28]
cmp eax, 1
jne 0x44f5c7
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
jmp 0x44f620
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x6c]
add dword [ebp - 0x5c], 0x24
inc ecx
mov eax, ecx
mov dword [ebp - 0x6c], ecx
shl eax, 4
sub eax, ecx
cmp byte [eax*2 + 0x662470], 0
lea ecx, [eax*2 + 0x662470]
jne 0x44f451
push dword [ebp - 0x60]
call ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0059e5bd
mov esp, ebp
pop ebp
ret