Function at 0x4c58c0
Capabilities:
Enumerate services
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5ba11c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x14]
push 0xf003f
push 0
push dword [edi + 8]
mov dword [ebp - 0x38], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x4c], esi
xor eax, eax
mov dword [ebp - 4], 0
test esi, esi
setne al
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4c592a
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x30], 0
je 0x4c5beb
xor eax, eax
cmp dword [ebp + 0x18], 1
sete al
lea eax, [eax*8 + 4]
or eax, dword [ebp - 0x38]
push eax
push dword [edi + 4]
mov dword [ebp - 0x44], eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x50], edi
xor eax, eax
mov byte [ebp - 4], 1
test edi, edi
setne al
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4c597a
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x30], 0
je 0x4c5beb
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x48], 0
movq qword [ebp - 0x1c], xmm0
cmp dword [ebp + 0x18], 1
mov byte [ebp - 4], 2
jne 0x4c5b0b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x4c5b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xea
sete cl
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4c59ee
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x30], 0
je 0x4c5beb
push dword [ebp - 0x3c]
call fcn.004eb6f9
add esp, 4
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x3c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4c5a36
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x30], 0
je 0x4c5beb
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
jbe 0x4c5b0b
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
and edx, 0xfffffff7
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x30], ecx
movups xmm0, xmmword [ecx + 0x10]
mov eax, dword [ecx]
push edx
push eax
push esi
movups xmmword [ebp - 0x68], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x54], esi
xor eax, eax
mov byte [ebp - 4], 3
test esi, esi
setne al
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4c5a98
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x34], 0
je 0x4c5b3d
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4c5acb
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x34], 0
je 0x4c5b3d
push dword [ebp + 8]
push 1
push esi
call fcn.004c5770
mov byte [ebp - 4], 2
test esi, esi
je 0x4c5aeb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
inc eax
mov esi, dword [ebp - 0x4c]
add ecx, 0x24
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
cmp eax, dword [ebp - 0x40]
jae 0x4c5b0b
mov edx, dword [ebp - 0x44]
jmp 0x4c5a60
cmp dword [ebp + 0xc], 0
je 0x4c5b52
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4c5b37
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x34], 0
jne 0x4c5b93
push eax
lea ecx, [ebp - 0x34]
call fcn.0044a6e0
push 0x5b6dcc
mov eax, ecx
jmp 0x4c5bfb
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4c5b7b
movzx eax, ax
or eax, 0x80070000
cmp dword [ebp - 0x34], 0
jne 0x4c5b93
push eax
lea ecx, [ebp - 0x34]
call fcn.0044a6e0
push 0x5b6dcc
mov eax, ecx
jmp 0x4c5bfb
push dword [ebp + 8]
push dword [ebp + 0x18]
push edi
call fcn.004c5770
push 0x24
push dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
call fcn.004eb418
add esp, 8
test edi, edi
je 0x4c5bbe
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x4c5bc4
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4c5bcb
push esi
call edi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eabba
mov esp, ebp
pop ebp
ret 0x1c
push eax
lea ecx, [ebp - 0x30]
call fcn.0044a6e0
push 0x5b6dcc
mov eax, ecx
push eax
call fcn.004edba4
int3