Function at 0x41b350
Capabilities:
Continue service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040440c
mov eax, dword [ebp + 8]
call fcn.0040440c
xor eax, eax
push ebp
push 0x41b681
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0041b110
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 3
je 0x41b656
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 1
push 0
mov eax, dword [ebp + 8]
call fcn.0040441c
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41b606
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
jne 0x41b43a
push 0x41b69c
push dword [ebp + 8]
push 0x41b6cc
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x58]
call fcn.00407d54
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.004042dc
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x406d84]
call fcn.0040b244
call fcn.00403998
mov dword [ebp - 0x1c], 0x10
cmp byte [ebp - 0x1d], 4
jne 0x41b44e
mov dword [ebp - 0x1c], 0x40
mov eax, dword [ebp - 0x1c]
or eax, 4
push eax
mov eax, dword [ebp - 8]
call fcn.0040441c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41b4ba
push 0x41b6d8
push dword [ebp - 8]
push 0x41b700
push dword [ebp + 8]
push 0x41b6cc
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x60]
call fcn.00407d54
push dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, 6
call fcn.004042dc
mov ecx, dword [ebp - 0x5c]
mov dl, 1
mov eax, dword [0x406d84]
call fcn.0040b244
call fcn.00403998
cmp byte [ebp - 0x1d], 4
jne 0x41b4da
lea eax, [ebp - 0x44]
push eax
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x25], al
jmp 0x41b4f0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x25], al
cmp byte [ebp - 0x25], 0
jne 0x41b563
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041af08
cmp al, 6
je 0x41b563
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_SetLastError
push 0x41b70c
push dword [ebp - 8]
push 0x41b700
push dword [ebp + 8]
push 0x41b6cc
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x68]
call fcn.00407d54
push dword [ebp - 0x68]
lea eax, [ebp - 0x64]
mov edx, 6
call fcn.004042dc
mov ecx, dword [ebp - 0x64]
mov dl, 1
mov eax, dword [0x406d84]
call fcn.0040b244
call fcn.00403998
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041af08
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 3
je 0x41b5de
cmp byte [ebp - 0x1d], 6
je 0x41b5ae
push 0x41b738
push dword [ebp - 8]
push 0x41b750
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.004042dc
mov ecx, dword [ebp - 0x6c]
mov dl, 1
mov eax, dword [0x406d84]
call fcn.0040b244
call fcn.00403998
push 0x41b770
push dword [ebp - 8]
push 0x41b790
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.004042dc
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x41aea4]
call fcn.0041b080
jmp 0x41b563
cmp dword [ebp - 0x10], 0
je 0x41b5ed
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x14], 0
je 0x41b5fc
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b656
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b688
lea eax, [ebp - 0x70]
mov edx, 8
call fcn.00403f80
lea eax, [ebp - 8]
call fcn.00403f5c
lea eax, [ebp + 8]
call fcn.00403f5c
ret