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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550700
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a9f00]
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 0x41e20d
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.00403c50
call fcn.004066a0
add esp, 0x20
test eax, eax
je 0x41e20d
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0x41e1e8
lea eax, [ebp + 0x28]
push 0
push 0x581489
push 0x582f28
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 0x41e22d
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 0x41e2ac
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.00403c50
call fcn.0041dff0
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x41e289
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 0x41e311
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x41e2b8
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 0x41e2fe
jmp 0x41e2e0
cmp dword [ebp - 0x28], 1
je 0x41e305
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 0x41e2e0
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 0x41e334
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425301
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 0x41e35e
mov edx, dword [ebp + 0x28]
push edx
call fcn.00425301
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.00523d1e
mov esp, ebp
pop ebp
ret 0x40