Function at 0x10bec1c
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, reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
push edi
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x10bec4c
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10bee2d
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 0x10bec75
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10122d0
jmp 0x10bee21
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 0x10bee12
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 0x10bed46
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
push reloc.ADVAPI32.dll_CloseServiceHandle
push dword [eax]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x10bed96
lea ecx, [ebp - 0x34]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10beceb
cmp dword [ebp - 0x30], 1
je 0x10becfc
cmp dword [ebp - 0x30], 3
je 0x10becfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x10bedaa
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 0x10bed17
cmp dword [ebp - 0x30], 3
jne 0x10bed33
call fcn.01075a13
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf0
jl 0x10bed00
push dword [ebp - 0x14]
call edi
add dword [ebp - 0xc], 0x24
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x10becb3
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 0x10bed6a
cmp dword [ebp - 0x30], 1
je 0x10bedc5
cmp dword [ebp - 0x30], 3
je 0x10bedc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10bedc5
cmp eax, ebx
je 0x10bedc5
push dword [ebp + 0x10]
push eax
push 0x10122a4
push dword [ebp + 8]
call fcn.01082df0
push dword [ebp - 4]
call edi
jmp 0x10bee29
lea eax, [esi + esi*8]
push dword [ebx + eax*4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10122d0
jmp 0x10bed84
lea ecx, [esi + esi*8]
push dword [ebx + ecx*4]
push eax
push 0x10122a4
push dword [ebp + 8]
call fcn.01082df0
push dword [ebp - 0x14]
call edi
jmp 0x10bed8c
xor esi, esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10bedde
cmp dword [ebp - 0x30], 3
jne 0x10bedf7
call fcn.01075a13
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xf0
jl 0x10bedc7
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x30], 3
jne 0x10bee0d
push dword [ebp + 0x10]
push ebx
push 0x10122a4
jmp 0x10bee21
xor ax, ax
jmp 0x10bee2d
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1012274
push dword [ebp + 8]
call fcn.01082df0
mov ax, 0xfe40
pop edi
pop esi
pop ebx
leave
ret 0xc