Function at 0x1081d45
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 [0x111024c]
mov edi, 0x111024c
mov ebx, 0x10079c8
cmp eax, edi
je 0x1081d81
test byte [eax + 0x1c], 1
je 0x1081d81
cmp byte [eax + 0x19], 4
jb 0x1081d81
push ebx
push 0x63
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
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 0x1081db4
push 0x1007d48
push 0x7e7
push 0x1007ac0
call fcn.0107b644
mov eax, dword [0x111024c]
cmp eax, edi
je 0x1081dda
test byte [eax + 0x1c], 1
je 0x1081dda
cmp byte [eax + 0x19], 4
jb 0x1081dda
push dword [ebp + 8]
push ebx
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
cmp dword [ebp + 0x14], 0xa
jb 0x1081e12
cmp eax, edi
je 0x1081e06
test byte [eax + 0x1c], 1
je 0x1081e06
cmp byte [eax + 0x19], 2
jb 0x1081e06
push dword [ebp + 8]
push ebx
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
mov dword [ebp - 4], 0x8000ffff
jmp 0x1082289
push 1
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x1081e71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1081e37
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10822b0
test byte [eax + 0x1c], 1
je 0x1082289
cmp byte [eax + 0x19], 2
jb 0x1082289
push dword [ebp - 4]
push ebx
push 0x66
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x1082284
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 0x1081ed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1081e9a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10822b0
test byte [eax + 0x1c], 1
je 0x1082289
cmp byte [eax + 0x19], 2
jb 0x1082289
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0x67
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x1082284
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1081f03
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1082281
and eax, 0xffff
or eax, 0x80070000
jmp 0x1082281
cmp dword [ebp - 0x38], 1
jne 0x1081f3d
mov eax, dword [0x111024c]
cmp eax, edi
je 0x1081f34
test byte [eax + 0x1c], 1
je 0x1081f34
cmp byte [eax + 0x19], 4
jb 0x1081f34
push dword [ebp + 8]
push ebx
push 0x68
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
and dword [ebp - 4], 0
jmp 0x1082289
cmp dword [ebp - 0x38], 3
jne 0x1081fbd
mov eax, dword [0x111024c]
cmp eax, edi
je 0x1081f6e
test byte [eax + 0x1c], 1
je 0x1081f6e
cmp byte [eax + 0x19], 4
jb 0x1081f6e
push dword [ebp + 8]
push ebx
push 0x69
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
cmp dword [ebp + 0xc], 0
je 0x1082289
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
call fcn.01081aeb
mov dword [ebp - 4], eax
test eax, eax
jge 0x1082284
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10822b0
test byte [eax + 0x1c], 1
je 0x1082289
cmp byte [eax + 0x19], 2
jb 0x1082289
push dword [ebp - 4]
push ebx
push 0x6a
jmp 0x1081e61
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1082268
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41b
jne 0x108230d
mov eax, dword [0x111024c]
cmp eax, edi
je 0x1082009
test byte [eax + 0x1c], 1
je 0x1082009
cmp byte [eax + 0x19], 4
jb 0x1082009
push dword [ebp + 8]
push ebx
push 0x6b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
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 0x1082032
mov dword [ebp - 4], 0x8000ffff
jmp 0x1082284
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x108207c
test eax, eax
jle 0x108204d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10822b0
test byte [eax + 0x1c], 1
je 0x1082289
cmp byte [eax + 0x19], 2
jb 0x1082289
push dword [ebp - 4]
push ebx
push 0x6c
jmp 0x1081e61
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 0x10820a1
mov dword [ebp - 4], 0x8007000e
jmp 0x1082284
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 0x1082100
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10820ce
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10822b0
test byte [eax + 0x1c], 1
je 0x1082289
cmp byte [eax + 0x19], 2
jb 0x1082289
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0x6d
jmp 0x1081ec7
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x10], 0
jbe 0x10821d9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [0x111024c]
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, 0x111024c
je 0x1082149
test byte [eax + 0x1c], 1
je 0x1082149
cmp byte [eax + 0x19], 4
jb 0x1082149
push esi
push ebx
push 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [ebp + 0x14]
inc eax
push eax
push 0xea60
push dword [ebp + 0xc]
push esi
call fcn.01081d45
mov dword [ebp - 4], eax
test eax, eax
jl 0x10821a9
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108218f
test byte [eax + 0x1c], 1
je 0x108218f
cmp byte [eax + 0x19], 4
jb 0x108218f
push esi
push ebx
push 0x70
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x18], 0x24
cmp ecx, dword [ebp - 0x10]
jb 0x1082119
mov edi, 0x111024c
jmp 0x10821de
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10822b0
test byte [eax + 0x1c], 1
je 0x1082289
cmp byte [eax + 0x19], 2
jb 0x1082289
push dword [ebp - 4]
push esi
push ebx
push 0x6f
jmp 0x1081ec7
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10821ff
test byte [eax + 0x1c], 1
je 0x10821ff
cmp byte [eax + 0x19], 4
jb 0x10821ff
push dword [ebp + 8]
push ebx
push 0x71
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [ebp + 0x14]
inc eax
push eax
push 0xea60
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01081d45
mov dword [ebp - 4], eax
test eax, eax
jge 0x1082242
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10822b0
test byte [eax + 0x1c], 1
je 0x1082289
cmp byte [eax + 0x19], 2
jb 0x1082289
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0x72
jmp 0x1081ec7
mov eax, dword [0x111024c]
cmp eax, edi
je 0x108226d
test byte [eax + 0x1c], 1
je 0x108226d
cmp byte [eax + 0x19], 4
jb 0x108226d
push dword [ebp + 8]
push ebx
push 0x73
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
cmp dword [ebp + 0xc], 0
je 0x1082289
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
call fcn.01081aeb
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10822b0
test byte [eax + 0x1c], 1
je 0x10822b0
cmp byte [eax + 0x19], 4
jb 0x10822b0
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0x75
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
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 0x10822d3
push dword [ebp - 8]
call edi
cmp dword [ebp - 0x20], esi
pop esi
je 0x10822de
push dword [ebp - 0x20]
call edi
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1082304
test byte [eax + 0x1c], 1
je 0x1082304
cmp byte [eax + 0x19], 4
jb 0x1082304
push ebx
push 0x76
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0x10
test eax, eax
jle 0x108231b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10822b0
test byte [eax + 0x1c], 1
je 0x1082289
cmp byte [eax + 0x19], 2
jb 0x1082289
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0x74
jmp 0x1081ec7