Function at 0x10007d700
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov dword [rsp + 0x28], 1
mov rax, qword [rsp + 0xc0]
mov dword [rax], 0
mov qword [rsp + 0x20], 0
mov r8d, 0xe0000000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x10007d9dc
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0xb0]
call fcn.100013bb0
mov r8d, 0x80010020
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x10007d9a2
cmp dword [rsp + 0xb8], 2
je 0x10007d7c4
cmp dword [rsp + 0xb8], 3
je 0x10007d7c4
cmp dword [rsp + 0xb8], 4
je 0x10007d7c4
cmp dword [rsp + 0xb8], 1
jne 0x10007d83f
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10007d802
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov rax, qword [rsp + 0xb0]
mov r8, qword [rax]
lea rdx, [0x1000109d0]
mov ecx, 3
call fcn.100053cc0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.10007da60
test eax, eax
jne 0x10007d83f
mov rax, qword [rsp + 0xb0]
mov r8, qword [rax]
lea rdx, [0x100010990]
mov ecx, 2
call fcn.100053cc0
mov rax, qword [rsp + 0xc0]
mov dword [rax], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x10007d968
mov rax, qword [rsp + 0xb0]
mov r8, qword [rax]
lea rdx, [0x100010958]
mov ecx, 1
call fcn.100053cc0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x5c], 0
cmp dword [rsp + 0xb8], 2
je 0x10007d895
cmp dword [rsp + 0xb8], 3
jne 0x10007d89f
mov dword [rsp + 0x60], 3
jmp 0x10007d8a7
mov dword [rsp + 0x60], 6
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0xb0]
call fcn.100013bb0
mov r8d, 0x80000000
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
cmp qword [rsp + 0x30], 0
je 0x10007d951
mov dword [rsp + 0x58], 0
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x5c], eax
jne 0x10007d946
lea rdx, [0x100010880]
mov ecx, 2
call fcn.100053cc0
mov rax, qword [rsp + 0xc0]
mov dword [rax], 1
jmp 0x10007d951
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0x58], 0
jne 0x10007d966
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x5c], eax
jb 0x10007d8af
jmp 0x10007d9a0
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov rax, qword [rsp + 0xb0]
mov r8, qword [rax]
lea rdx, [0x100010800]
mov ecx, 3
call fcn.100053cc0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10007d9cf
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov rax, qword [rsp + 0xb0]
mov r8, qword [rax]
lea rdx, [0x100010770]
mov ecx, 3
call fcn.100053cc0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10007d9fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1000106d0]
mov ecx, 3
call fcn.100053cc0
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x88], eax
mov rcx, qword [rsp + 0xb0]
call fcn.1000144b0
mov eax, dword [rsp + 0x88]
add rsp, 0xa8
ret