Function at 0x4155a0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4686fb
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4a3a10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x415923
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x4156c7
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.Unexpected_error_at_enumerating_depended_services]
mov ecx, eax
mov dword [ebp - 0x18], 0x31
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0x3f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x46f4f8]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x46f508]
movups xmmword [ecx + 0x20], xmm0
mov al, byte [0x46f518]
mov byte [ecx + 0x30], al
mov byte [ecx + 0x31], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00411f60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 0x71], al
cmp ecx, 0x10
jb 0x415925
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4156b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415b67
push ecx
push edx
call fcn.0044781c
mov al, byte [ebp - 0x71]
add esp, 8
jmp 0x415925
mov esi, dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x88], esi
test esi, esi
jne 0x415758
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
push 0x30
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.couldnt_allocate_memory_for_depended_services]
mov ecx, eax
mov dword [ebp - 0x18], 0x2e
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0x2f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x46f52c]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x46f53c]
movq qword [ecx + 0x20], xmm0
mov eax, dword [0x46f544]
mov dword [ecx + 0x28], eax
mov ax, word [0x46f548]
mov word [ecx + 0x2c], ax
mov byte [ecx + 0x2e], 0
mov dword [ebp - 4], 1
jmp 0x415678
mov dword [ebp - 0x94], esi
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x415822
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
push 0x30
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.Cannot_enumerate_depended_services]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x22
mov dword [ebp - 0x14], 0x2f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x46f55c]
movups xmmword [eax + 0x10], xmm0
mov cx, word [0x46f56c]
mov word [eax + 0x20], cx
mov byte [eax + 0x22], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.00411f60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 0x71], al
cmp ecx, 0x10
jb 0x415b49
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415813
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415b67
push ecx
push edx
call fcn.0044781c
add esp, 8
jmp 0x415b49
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
jbe 0x415912
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, esi
mov dword [ebp - 0x84], eax
movups xmm1, xmmword [eax]
push 0x24
movups xmm0, xmmword [eax + 0x10]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], eax
movd eax, xmm1
movups xmmword [ebp - 0x24], xmm0
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x415b45
mov dword [ebp - 0xa0], 0x413c40
mov dword [ebp - 0x9c], esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x415ad2
cmp dword [ebp - 0x6c], 1
je 0x4158e2
nop
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x98]
push eax
push 0x24
lea eax, [ebp - 0x70]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, 1
jne 0x415a10
cmp dword [ebp - 0x6c], eax
je 0x4158e2
call edi
sub eax, dword [ebp - 0x90]
cmp eax, 0x7530
ja 0x415940
cmp dword [ebp - 0x6c], 1
jne 0x4158a0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
inc ecx
add eax, 0x24
mov byte [ebp - 4], 2
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], eax
cmp ecx, dword [ebp - 0x7c]
jb 0x415841
mov esi, dword [ebp - 0x88]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
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.00447a97
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
push 0x30
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
movups xmmword [ebp - 0x4c], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.timeout_expired_while_depended_service_stopping]
mov ecx, eax
mov dword [ebp - 0x3c], 0x2f
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], 0x2f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x46f5e0]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x46f5f0]
movq qword [ecx + 0x20], xmm0
mov eax, dword [0x46f5f8]
mov dword [ecx + 0x28], eax
mov ax, word [0x46f5fc]
mov word [ecx + 0x2c], ax
mov al, byte [0x46f5fe]
mov byte [ecx + 0x2e], al
mov byte [ecx + 0x2f], 0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 9
push eax
call fcn.00411f60
mov ecx, dword [ebp - 0x38]
add esp, 4
mov byte [ebp - 0x71], al
cmp ecx, 0x10
jb 0x4159f9
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4159ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415b67
push ecx
push edx
call fcn.0044781c
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
jmp 0x415ac9
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x30
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.cannot_get_extended_status_for_depended_service]
mov ecx, eax
mov dword [ebp - 0x18], 0x2f
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0x2f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x46f5b0]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x46f5c0]
movq qword [ecx + 0x20], xmm0
mov eax, dword [0x46f5c8]
mov dword [ecx + 0x28], eax
mov ax, word [0x46f5cc]
mov word [ecx + 0x2c], ax
mov al, byte [0x46f5ce]
mov byte [ecx + 0x2e], al
mov byte [ecx + 0x2f], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
push eax
call fcn.00411f60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 0x71], al
cmp ecx, 0x10
jb 0x415ac9
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415abf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415b67
push ecx
push edx
call fcn.0044781c
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x415b49
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x30
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.cannot_send_a_stop_signal_for_depended_service]
mov ecx, eax
mov dword [ebp - 0x18], 0x2e
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0x2f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x46f580]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x46f590]
movq qword [ecx + 0x20], xmm0
mov eax, dword [0x46f598]
mov dword [ecx + 0x28], eax
mov ax, word [0x46f59c]
mov word [ecx + 0x2c], ax
mov byte [ecx + 0x2e], 0
mov byte [ebp - 4], 5
jmp 0x415a86
mov byte [ebp - 0x71], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
push dword [ebp - 0x88]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 0x71]
jmp 0x415925
call fcn.0044c8cf
int3