Function at 0x41d610
Capabilities:
Create process on windows
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fa60
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x44], 0
mov dword [ebp - 4], 1
je 0x41d6ad
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x28]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00403c30
call fcn.004066a0
add esp, 0x20
test eax, eax
je 0x41d6ad
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0x41d688
lea eax, [ebp + 0x28]
push 0
push 0x580469
push 0x581e28
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp dword [ebp + 0x1c], 0x10
mov ebx, eax
mov eax, dword [ebp + 8]
jae 0x41d6cd
lea eax, [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0xf01ff
push eax
push ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x34], eax
call edi
xor eax, eax
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x24], eax
je 0x41d74c
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0xffffffffffffffff
push eax
lea edx, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
push edx
mov byte [ecx], al
call fcn.00403c30
call fcn.0041d490
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x41d729
lea eax, [ebp + 8]
push 0x20000010
push eax
push ebx
call esi
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
jmp 0x41d7b1
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x41d758
lea eax, [ebp + 8]
push 0x20000020
push eax
push ebx
call esi
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [ebp - 0x2c]
push ecx
push esi
call edi
test eax, eax
je 0x41d79e
jmp 0x41d780
cmp dword [ebp - 0x28], 1
je 0x41d7a5
call fcn.00406da0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x2c]
push edx
push esi
call edi
test eax, eax
jne 0x41d780
mov dword [ebp - 0x30], 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
push eax
call esi
push ebx
call esi
mov esi, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], esi
jb 0x41d7d4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042465c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp dword [ebp + 0x3c], esi
jb 0x41d7fe
mov edx, dword [ebp + 0x28]
push edx
call fcn.0042465c
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret 0x40