Function at 0x41e4d0
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d0b9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x43c010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov edi, dword [ebp + 8]
push 0x20000000
push 0
push 0
mov byte [ebp - 0x2d], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x41e6db
cmp byte [ebp + 0xc], 0
je 0x41e52a
push 0x14
jmp 0x41e52c
push 0x24
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x41e6d2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41e6cb
cmp byte [ebp + 0xc], 0
je 0x41e579
cmp dword [ebp - 0x28], 4
jne 0x41e588
mov byte [ebp - 0x2d], 1
jmp 0x41e6cb
cmp dword [ebp - 0x28], 1
jne 0x41e588
mov byte [ebp - 0x2d], 1
jmp 0x41e6cb
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push dword [ebp - 0x28]
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push str.sStatus.dwCurrentState:_08X
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0xc
cmp byte [ebp + 0xc], 0
je 0x41e64d
cmp dword [ebp - 0x28], 1
jne 0x41e6c2
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
push edi
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41e632
cmp esi, 0xa
jge 0x41e632
cmp dword [ebp - 0x28], 4
je 0x41e62e
mov esi, dword [ebp - 0x34]
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x34]
push esi
mov al, byte [ecx]
mov byte [ebp - 0x2e], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x2e], 0
jne 0x41e632
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push eax
inc esi
push edi
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41e5e0
jmp 0x41e632
mov byte [ebp - 0x2d], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push str.GetLastError__:_08X
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0xc
jmp 0x41e6c2
cmp dword [ebp - 0x28], 4
jne 0x41e6c2
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41e6c2
nop
cmp dword [ebp - 0x28], 1
je 0x41e6be
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x34]
push esi
mov al, byte [ecx]
mov byte [ebp - 0x2e], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x2e], 0
jne 0x41e6c2
mov eax, dword [ebp - 0x14]
mov ecx, 0x1f4
cmp eax, 0x1f4
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, dword [ebp - 0x34]
test eax, eax
jne 0x41e670
jmp 0x41e6c2
mov byte [ebp - 0x2d], 1
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x2d]
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.00411594
mov esp, ebp
pop ebp
ret 8