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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x118
mov qword [rsp + 0xd8], rsp
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x8c], 0x7530
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x68], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x68], 0
je 0x14004d6e3
mov eax, 1
jmp 0x14004da10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14004d6f7
xor eax, eax
jmp 0x14004da10
mov edi, dword [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
cmp qword [rsp + 0x70], 0
jne 0x14004d730
xor eax, eax
jmp 0x14004da10
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x6c]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x68], 1
je 0x14004d795
mov dword [rsp + 0xc0], 0
lea rdx, [0x14004d9e5]
mov rcx, qword [rsp + 0xd8]
call fcn.140039300
mov dword [rsp + 0x34], 0
jmp 0x14004d7aa
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x14004d9bf
mov ecx, dword [rsp + 0x34]
imul rcx, rcx, 0x30
lea rdi, [rsp + 0xe0]
mov rax, qword [rsp + 0x70]
lea rsi, [rax + rcx]
mov ecx, 0x30
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x38]
lea rsi, [rsp + 0xe0]
mov ecx, 0x30
rep movsb byte [rdi], byte [rsi]
mov r8d, 0x24
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
cmp qword [rsp + 0x80], 0
jne 0x14004d842
mov dword [rsp + 0xc4], 0
lea rdx, [0x14004d9ee]
mov rcx, qword [rsp + 0xd8]
call fcn.140039300
nop
mov r8d, 0x24
xor edx, edx
lea rcx, [rsp + 0x98]
call fcn.140030610
lea r8, [rsp + 0x98]
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x68], 1
je 0x14004d8a6
mov dword [rsp + 0xc8], 0
lea rdx, [0x14004d9f7]
mov rcx, qword [rsp + 0xd8]
call fcn.140039300
cmp dword [rsp + 0x9c], 1
je 0x14004d9a0
mov dword [rsp + 0x88], 0
jmp 0x14004d8d4
mov eax, dword [rsp + 0x88]
add eax, 0x1f4
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0xb0]
cmp dword [rsp + 0x88], eax
jae 0x14004d8fe
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x130]
call fcn.14004cdd0
jmp 0x14004d8c1
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x98]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x68], 1
je 0x14004d95a
mov dword [rsp + 0xcc], 0
lea rdx, [0x14004da00]
mov rcx, qword [rsp + 0xd8]
call fcn.140039300
cmp dword [rsp + 0x9c], 1
jne 0x14004d966
jmp 0x14004d9a0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x90]
cmp eax, dword [rsp + 0x8c]
jbe 0x14004d99b
mov dword [rsp + 0xd0], 0
lea rdx, [0x14004da09]
mov rcx, qword [rsp + 0xd8]
call fcn.140039300
jmp 0x14004d8a6
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x80], 0
jmp 0x14004d79f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0x70], 0
mov eax, 1
jmp 0x14004da10
add rsp, 0x118
pop rdi
pop rsi
ret