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

Disassembly:
push 0x34
mov eax, 0x424550
call fcn.00418b53
push 0x2c
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004109f3
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00410a24
test al, al
je 0x415bb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x415b87
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push dword [ebp + 0xc]
push 0x408698
push 2
call fcn.00415621
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00410a43
mov eax, esi
call fcn.00418c2b
ret 8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10]
call fcn.00411b55
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x415bea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x415bdd
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push dword [ebp + 0xc]
push 0x408ae8
jmp 0x415b92
cmp dword [ebp - 0x3c], 1
jne 0x415bf4
xor esi, esi
jmp 0x415b9c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 1
lea ecx, [ebp - 0x10]
call fcn.00411b55
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
push eax
call edi
test eax, eax
je 0x415c35
cmp dword [ebp - 0x18], ebx
jbe 0x415c2d
mov esi, 0x8007000d
push esi
push dword [ebp + 0xc]
push 0x408a48
jmp 0x415b92
mov dword [ebp - 0x14], ebx
jmp 0x415d23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x415c49
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x800700ea
jne 0x415c1f
mov esi, dword [ebp - 0x14]
cmp esi, ebx
jbe 0x415d23
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
call fcn.00411ac8
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00411ae9
mov ebx, eax
test ebx, ebx
lea ecx, [ebp - 0x24]
jge 0x415c8f
mov byte [ebp - 4], 0
call fcn.00411ad2
mov esi, ebx
jmp 0x415b9c
call fcn.00411b55
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push 1
lea ecx, [ebp - 0x10]
call fcn.00411b55
push eax
call edi
test eax, eax
jne 0x415ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x415cc5
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push dword [ebp + 0xc]
push 0x408a48
push 2
call fcn.00415621
add esp, 0x10
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00411ad2
jmp 0x415b9c
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
jbe 0x415d15
mov edi, ebx
push dword [edi]
push dword [ebp + 8]
call fcn.00415b39
mov esi, eax
test esi, esi
jl 0x415cda
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add edi, 0x24
cmp eax, dword [ebp - 0x18]
jb 0x415cf7
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00411ad2
xor ebx, ebx
push dword [ebp + 0xc]
push 0x408a10
push ebx
call fcn.00415621
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 1
lea ecx, [ebp - 0x10]
call fcn.00411b55
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x415d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x415d61
and eax, 0xffff
or eax, 0x80070000
cmp eax, 0x80070426
je 0x415bf0
push eax
push dword [ebp + 0xc]
push 0x408980
push 1
call fcn.00415621
add esp, 0x10
lea eax, [ebp - 0x40]
push eax
push 3
lea ecx, [ebp - 0x10]
call fcn.00411b55
push eax
call fcn.00415ac7
cmp eax, ebx
jge 0x415d9e
mov esi, eax
jmp 0x415b9c
cmp dword [ebp - 0x3c], 1
je 0x415bf0
push eax
push dword [ebp - 0x3c]
push dword [ebp + 0xc]
push 0x4088b0
push 2
call fcn.00415621
add esp, 0x14
mov esi, 0x80070425
jmp 0x415b9c