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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x26870
call fcn.00528110
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x24024], eax
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4d5b56
xor eax, eax
jmp 0x4d5e18
mov dword [ebp - 8], 0x24000
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x24020]
push ecx
push 1
push 0x30
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x4d5bb7
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4d5e18
mov dword [ebp - 4], 0
jmp 0x4d5bc9
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x18]
jae 0x4d5e0c
push 0x35
mov eax, dword [ebp - 4]
imul eax, eax, 0x24
mov ecx, dword [ebp + eax - 0x24020]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2482c], eax
cmp dword [ebp - 0x2482c], 0
jne 0x4d5c00
jmp 0x4d5bc0
mov ax, word [0x5759e4]
mov word [ebp - 0x25030], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x2502e]
push ecx
call fcn.005281f0
add esp, 0xc
mov dx, word [0x5759e4]
mov word [ebp - 0x26830], dx
push 0x7fe
push 0
lea eax, [ebp - 0x2682e]
push eax
call fcn.005281f0
add esp, 0xc
mov cx, word [0x5759e4]
mov word [ebp - 0x24828], cx
push 0x7fe
push 0
lea edx, [ebp - 0x24826]
push edx
call fcn.005281f0
add esp, 0xc
mov ax, word [0x5759e4]
mov word [ebp - 0x25830], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x2582e]
push ecx
call fcn.005281f0
add esp, 0xc
mov dx, word [0x5759e4]
mov word [ebp - 0x26030], dx
push 0x7fe
push 0
lea eax, [ebp - 0x2602e]
push eax
call fcn.005281f0
add esp, 0xc
lea ecx, [ebp - 0x25030]
mov dword [ebp - 0x26864], ecx
lea edx, [ebp - 0x24828]
mov dword [ebp - 0x26858], edx
lea eax, [ebp - 0x26830]
mov dword [ebp - 0x26860], eax
lea ecx, [ebp - 0x25830]
mov dword [ebp - 0x26854], ecx
lea edx, [ebp - 0x26030]
mov dword [ebp - 0x26850], edx
lea eax, [ebp - 0x10]
push eax
push 0x1424
lea ecx, [ebp - 0x26870]
push ecx
mov edx, dword [ebp - 0x2482c]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x4d5d21
mov eax, dword [ebp - 0x2482c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4d5bc0
lea ecx, [ebp - 0x2684c]
push ecx
mov edx, dword [ebp - 0x2482c]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x26848], 4
je 0x4d5d50
mov eax, dword [ebp - 0x2482c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4d5bc0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00528324
add esp, 4
push eax
mov edx, dword [ebp - 0x26864]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0052f26c
add esp, 0xc
test eax, eax
je 0x4d5d86
mov ecx, dword [ebp - 0x2482c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4d5bc0
lea edx, [ebp - 0x2684c]
push edx
push 1
mov eax, dword [ebp - 0x2482c]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [ebp - 0x2684c]
push ecx
mov edx, dword [ebp - 0x2482c]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4d5dce
cmp dword [ebp - 0x26848], 3
jne 0x4d5dca
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d5dcc
jmp 0x4d5dce
jmp 0x4d5d9c
cmp dword [ebp - 0x26848], 1
je 0x4d5de9
mov eax, dword [ebp - 0x2482c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4d5bc0
mov ecx, dword [ebp - 0x2482c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x4d5e18
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov ecx, dword [ebp - 0x24024]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret