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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x58], 0x7530
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x3c], 0
mov r8d, 0xf003f
lea rdx, [0x140064f30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
cmp qword [rsp + 0x50], 0
jne 0x14004daab
xor eax, eax
jmp 0x14004de31
mov r8d, 0x2c
lea rdx, [0x140064f50]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
cmp qword [rsp + 0x30], 0
jne 0x14004daec
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004de31
mov r8d, 0x24
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140030610
lea r11, [rsp + 0x40]
mov qword [rsp + 0x20], r11
mov r9d, 0x24
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x3c], 1
je 0x14004db52
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004de31
cmp dword [rsp + 0x64], 1
jne 0x14004db79
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14004de31
cmp dword [rsp + 0x64], 3
jne 0x14004dca3
xor edx, edx
mov eax, dword [rsp + 0x78]
mov ecx, 0xa
div ecx
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x3e8
jae 0x14004dba9
mov dword [rsp + 0x38], 0x3e8
jmp 0x14004dbbb
cmp dword [rsp + 0x38], 0x2710
jbe 0x14004dbbb
mov dword [rsp + 0x38], 0x2710
mov dword [rsp + 0x48], 0
jmp 0x14004dbd2
mov eax, dword [rsp + 0x48]
add eax, 0x1f4
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x48], eax
jae 0x14004dbf6
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0xa0]
call fcn.14004cdd0
jmp 0x14004dbc5
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x3c], 1
je 0x14004dc4a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004de31
cmp dword [rsp + 0x64], 1
jne 0x14004dc71
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14004de31
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x5c]
cmp eax, dword [rsp + 0x58]
jbe 0x14004dc9e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004de31
jmp 0x14004db79
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
call fcn.14004d610
lea r8, [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x3c], 1
je 0x14004dd01
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004de31
cmp dword [rsp + 0x64], 1
je 0x14004ddd3
mov dword [rsp + 0x48], 0
jmp 0x14004dd23
mov eax, dword [rsp + 0x48]
add eax, 0x1f4
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x48], eax
jae 0x14004dd47
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0xa0]
call fcn.14004cdd0
jmp 0x14004dd16
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x3c], 1
je 0x14004dd9b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004de31
cmp dword [rsp + 0x64], 1
jne 0x14004dda4
jmp 0x14004ddd3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x5c]
cmp eax, dword [rsp + 0x58]
jbe 0x14004ddce
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004de31
jmp 0x14004dd01
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x58], 0x3a98
mov dword [rsp + 0x48], 0
jmp 0x14004de08
mov eax, dword [rsp + 0x48]
add eax, 0x1f4
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x48], eax
jae 0x14004de2c
mov rcx, qword [rsp + 0xa0]
call fcn.14004cdd0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14004ddfb
mov eax, 1
add rsp, 0x98
ret