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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x34]
push edi
mov edi, 0x1000
push edi
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x10c47d1
or ax, 0xffff
jmp 0x10c49b2
push 0x2c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x10c47fa
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1012c90
jmp 0x10c49a6
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push ebx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x10c4997
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi + 0x2218], ebx
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x221c], eax
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x10c48cb
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
push 0x24
push dword [eax]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x10c491b
lea ecx, [ebp - 0x34]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10c4870
cmp dword [ebp - 0x30], 1
je 0x10c4881
cmp dword [ebp - 0x30], 3
je 0x10c4881
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x10c492f
and dword [ebp - 8], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10c489c
cmp dword [ebp - 0x30], 3
jne 0x10c48b8
call fcn.0107875a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf0
jl 0x10c4885
push dword [ebp - 0x14]
call edi
add dword [ebp - 0xc], 0x24
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x10c4838
lea eax, [ebp - 0x34]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov ebx, 0x41d
je 0x10c48ef
cmp dword [ebp - 0x30], 1
je 0x10c494a
cmp dword [ebp - 0x30], 3
je 0x10c494a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10c494a
cmp eax, ebx
je 0x10c494a
push dword [ebp + 0x10]
push eax
push 0x1012c64
push dword [ebp + 8]
call fcn.01085d41
push dword [ebp - 4]
call edi
jmp 0x10c49ae
lea eax, [esi + esi*8]
push dword [ebx + eax*4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1012c90
jmp 0x10c4909
lea ecx, [esi + esi*8]
push dword [ebx + ecx*4]
push eax
push 0x1012c64
push dword [ebp + 8]
call fcn.01085d41
push dword [ebp - 0x14]
call edi
jmp 0x10c4911
xor esi, esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10c4963
cmp dword [ebp - 0x30], 3
jne 0x10c497c
call fcn.0107875a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xf0
jl 0x10c494c
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x30], 3
jne 0x10c4992
push dword [ebp + 0x10]
push ebx
push 0x1012c64
jmp 0x10c49a6
xor ax, ax
jmp 0x10c49b2
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1012c34
push dword [ebp + 8]
call fcn.01085d41
mov ax, 0xfe40
pop edi
pop esi
pop ebx
leave
ret 0xc