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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push edi
mov eax, dword [0x111124c]
mov edi, 0x111124c
mov ebx, 0x10079b8
cmp eax, edi
je 0x1081cce
test byte [eax + 0x1c], 1
je 0x1081cce
cmp byte [eax + 0x19], 4
jb 0x1081cce
push ebx
push 0x63
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
cmp dword [ebp + 8], esi
jne 0x1081d01
push 0x1007d38
push 0x7e7
push 0x1007ab0
call fcn.0107b4be
mov eax, dword [0x111124c]
cmp eax, edi
je 0x1081d27
test byte [eax + 0x1c], 1
je 0x1081d27
cmp byte [eax + 0x19], 4
jb 0x1081d27
push dword [ebp + 8]
push ebx
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
cmp dword [ebp + 0x14], 0xa
jb 0x1081d5f
cmp eax, edi
je 0x1081d53
test byte [eax + 0x1c], 1
je 0x1081d53
cmp byte [eax + 0x19], 2
jb 0x1081d53
push dword [ebp + 8]
push ebx
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
mov dword [ebp - 4], 0x8000ffff
jmp 0x10821d6
push 1
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x1081dbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1081d84
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10821fd
test byte [eax + 0x1c], 1
je 0x10821d6
cmp byte [eax + 0x19], 2
jb 0x10821d6
push dword [ebp - 4]
push ebx
push 0x66
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x10821d1
push 0x2c
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x1081e24
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1081de7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10821fd
test byte [eax + 0x1c], 1
je 0x10821d6
cmp byte [eax + 0x19], 2
jb 0x10821d6
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0x67
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10821d1
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1081e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10821ce
and eax, 0xffff
or eax, 0x80070000
jmp 0x10821ce
cmp dword [ebp - 0x38], 1
jne 0x1081e8a
mov eax, dword [0x111124c]
cmp eax, edi
je 0x1081e81
test byte [eax + 0x1c], 1
je 0x1081e81
cmp byte [eax + 0x19], 4
jb 0x1081e81
push dword [ebp + 8]
push ebx
push 0x68
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
and dword [ebp - 4], 0
jmp 0x10821d6
cmp dword [ebp - 0x38], 3
jne 0x1081f0a
mov eax, dword [0x111124c]
cmp eax, edi
je 0x1081ebb
test byte [eax + 0x1c], 1
je 0x1081ebb
cmp byte [eax + 0x19], 4
jb 0x1081ebb
push dword [ebp + 8]
push ebx
push 0x69
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
cmp dword [ebp + 0xc], 0
je 0x10821d6
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
call fcn.01081a38
mov dword [ebp - 4], eax
test eax, eax
jge 0x10821d1
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10821fd
test byte [eax + 0x1c], 1
je 0x10821d6
cmp byte [eax + 0x19], 2
jb 0x10821d6
push dword [ebp - 4]
push ebx
push 0x6a
jmp 0x1081dae
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10821b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41b
jne 0x108225a
mov eax, dword [0x111124c]
cmp eax, edi
je 0x1081f56
test byte [eax + 0x1c], 1
je 0x1081f56
cmp byte [eax + 0x19], 4
jb 0x1081f56
push dword [ebp + 8]
push ebx
push 0x6b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 1
push dword [ebp - 8]
call esi
test eax, eax
je 0x1081f7f
mov dword [ebp - 4], 0x8000ffff
jmp 0x10821d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1081fc9
test eax, eax
jle 0x1081f9a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10821fd
test byte [eax + 0x1c], 1
je 0x10821d6
cmp byte [eax + 0x19], 2
jb 0x10821d6
push dword [ebp - 4]
push ebx
push 0x6c
jmp 0x1081dae
push dword [ebp - 0xc]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1081fee
mov dword [ebp - 4], 0x8007000e
jmp 0x10821d1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push 1
push dword [ebp - 8]
call esi
test eax, eax
jne 0x108204d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108201b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10821fd
test byte [eax + 0x1c], 1
je 0x10821d6
cmp byte [eax + 0x19], 2
jb 0x10821d6
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0x6d
jmp 0x1081e14
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x10], 0
jbe 0x1082126
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [0x111124c]
mov esi, dword [ebp - 0x18]
push 9
pop ecx
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x60]
cmp eax, 0x111124c
je 0x1082096
test byte [eax + 0x1c], 1
je 0x1082096
cmp byte [eax + 0x19], 4
jb 0x1082096
push esi
push ebx
push 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [ebp + 0x14]
inc eax
push eax
push 0xea60
push dword [ebp + 0xc]
push esi
call fcn.01081c92
mov dword [ebp - 4], eax
test eax, eax
jl 0x10820f6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10820dc
test byte [eax + 0x1c], 1
je 0x10820dc
cmp byte [eax + 0x19], 4
jb 0x10820dc
push esi
push ebx
push 0x70
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x18], 0x24
cmp ecx, dword [ebp - 0x10]
jb 0x1082066
mov edi, 0x111124c
jmp 0x108212b
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10821fd
test byte [eax + 0x1c], 1
je 0x10821d6
cmp byte [eax + 0x19], 2
jb 0x10821d6
push dword [ebp - 4]
push esi
push ebx
push 0x6f
jmp 0x1081e14
mov eax, dword [0x111124c]
cmp eax, edi
je 0x108214c
test byte [eax + 0x1c], 1
je 0x108214c
cmp byte [eax + 0x19], 4
jb 0x108214c
push dword [ebp + 8]
push ebx
push 0x71
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [ebp + 0x14]
inc eax
push eax
push 0xea60
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01081c92
mov dword [ebp - 4], eax
test eax, eax
jge 0x108218f
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10821fd
test byte [eax + 0x1c], 1
je 0x10821d6
cmp byte [eax + 0x19], 2
jb 0x10821d6
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0x72
jmp 0x1081e14
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10821ba
test byte [eax + 0x1c], 1
je 0x10821ba
cmp byte [eax + 0x19], 4
jb 0x10821ba
push dword [ebp + 8]
push ebx
push 0x73
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
cmp dword [ebp + 0xc], 0
je 0x10821d6
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
call fcn.01081a38
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10821fd
test byte [eax + 0x1c], 1
je 0x10821fd
cmp byte [eax + 0x19], 4
jb 0x10821fd
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0x75
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
push dword [ebp - 0x14]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], esi
je 0x1082220
push dword [ebp - 8]
call edi
cmp dword [ebp - 0x20], esi
pop esi
je 0x108222b
push dword [ebp - 0x20]
call edi
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1082251
test byte [eax + 0x1c], 1
je 0x1082251
cmp byte [eax + 0x19], 4
jb 0x1082251
push ebx
push 0x76
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0x10
test eax, eax
jle 0x1082268
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10821fd
test byte [eax + 0x1c], 1
je 0x10821d6
cmp byte [eax + 0x19], 2
jb 0x10821d6
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0x74
jmp 0x1081e14