Function at 0x4017d0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4063e5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 7
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x30], ax
push ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x18], al
push dword [ebp - 0x18]
push 0xd
call fcn.00401b80
push 0x20000000
push str.ServicesActive
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4019f6
push 0xa0000000
push str.TrustedInstaller
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4019fb
lea eax, [ebp - 0x18]
push eax
push 0x24
lea eax, [ebp - 0x54]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x401a07
mov eax, dword [ebp - 0x50]
cmp eax, 1
jne 0x4018a1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x401a07
mov eax, dword [ebp - 0x50]
cmp eax, 2
je 0x4019e8
cmp eax, 3
je 0x4019e8
cmp eax, 4
jne 0x401868
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 0x20]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x401a18
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push ecx
cmova eax, dword [ebp - 0x30]
push eax
push 1
push 0x407470
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x6c]
call fcn.00401ec0
sub esp, 0x18
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x18], esi
push 0x407470
call fcn.00401e40
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov word [eax], cx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004015d0
mov ecx, dword [ebp - 0x58]
add esp, 0x18
cmp ecx, 7
jbe 0x40198e
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401984
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401984
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405714
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x4019ca
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4019c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4019c0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405714
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004054cb
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401868
call fcn.00401fd0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.00401fd0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call fcn.00401fd0
call fcn.004011f0
int3