Function at 0x4c7e07
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push 0x3ac
mov eax, 0x6660f6
call fcn.005b47af
mov esi, ecx
push 1
xor ebx, ebx
lea ecx, [ebp - 0xf8]
push 3
mov dword [ebp - 4], ebx
call fcn.004078ff
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.004c7bd2
push eax
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 2
push str.Removing_service:
push eax
call fcn.0040710b
pop ecx
pop ecx
push eax
call fcn.00410ade
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00409de7
lea eax, [ebp - 0xf8]
push eax
push str.ServiceList::remove
push 0x8d
push str.D:_build6c589d3ff8507062_src_systemServiceList.cpp
push 1
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], bl
call fcn.0040843a
call fcn.0040ff0c
call fcn.004cf8b3
test eax, eax
je 0x4c7ed1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.004c7bd2
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004c812b
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00409de7
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4c7f46
push 1
push 3
lea ecx, [ebp - 0x1a8]
call fcn.004078ff
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x198]
push str.OpenSCManager__error
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x1a8]
push eax
push str.ServiceList::remove
push 0x97
push str.D:_build6c589d3ff8507062_src_systemServiceList.cpp
push ebx
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x1a8]
jmp 0x4c7fd5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.004c7bd2
cmp dword [eax + 0x14], 8
jb 0x4c7f5a
mov eax, dword [eax]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push ebx
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00409de7
test esi, esi
jne 0x4c7fdf
push 1
push 3
lea ecx, [ebp - 0x258]
call fcn.004078ff
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x248]
push str.OpenService__error
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x258]
push eax
push str.ServiceList::remove
push 0x9f
push str.D:_build6c589d3ff8507062_src_systemServiceList.cpp
push ebx
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x258]
call fcn.0040843a
jmp 0x4c8115
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4c8035
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x48], eax
jmp 0x4c802d
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4c809a
cmp dword [ebp - 0x40], 1
je 0x4c809a
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x48]
cmp eax, 0x2710
ja 0x4c809a
cmp dword [ebp - 0x40], 1
jne 0x4c7ffb
jmp 0x4c809a
push 1
push 3
lea ecx, [ebp - 0x308]
call fcn.004078ff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x2f8]
push str.ControlService__error
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x308]
push eax
push str.ServiceList::remove
push 0xb9
push str.D:_build6c589d3ff8507062_src_systemServiceList.cpp
push ebx
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], bl
call fcn.0040843a
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4c8107
push 1
push 3
lea ecx, [ebp - 0x3b8]
call fcn.004078ff
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x3a8]
push str.DeleteService__error
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x3b8]
push eax
push str.ServiceList::remove
push 0xbf
push str.D:_build6c589d3ff8507062_src_systemServiceList.cpp
push ebx
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x3b8]
call fcn.0040843a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov bl, 1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4c8121
call fcn.00418cb4
mov al, bl
call fcn.005b4759
ret 8