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

Disassembly:
mov rax, rsp
push r14
sub rsp, 0xe0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140078790]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rsi, rcx
xor r8d, r8d
lea rdx, str.CServiceModule::UnregisterService
lea rcx, [rsp + 0x60]
call fcn.14002de00
nop
xor edi, edi
xor edx, edx
mov rcx, rsi
call fcn.140010450
mov ebx, 0x2000000
mov r8d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14001077e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x1fff0000
je 0x14001076b
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
cmp qword [rsi + 0x98], 8
jb 0x140010791
mov rdx, qword [rsi + 0x80]
jmp 0x140010798
lea rdx, [rsi + 0x80]
mov r8d, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14001092d
lea r14, [rsi + 0xd0]
mov rdx, r14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400107f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x1fff0000
je 0x1400107e0
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
cmp dword [rsi + 0xd4], 1
je 0x140010889
mov r8, r14
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14001083c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x1fff0000
je 0x140010829
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
cmp dword [rsi + 0xd4], 1
je 0x140010889
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001087c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x1fff0000
je 0x140010869
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001083c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400108bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x1fff0000
je 0x1400108aa
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x38], rdi
mov r9d, 0x2001f
lea r8, str.SYSTEMCurrentControlSetControlSafeBootNetwork
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x28]
call fcn.14000bad4
test eax, eax
jne 0x140010912
cmp qword [rsi + 0x98], 8
jb 0x140010900
mov rdx, qword [rsi + 0x80]
jmp 0x140010907
lea rdx, [rsi + 0x80]
lea rcx, [rsp + 0x28]
call fcn.1400090b0
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140010927
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], edi
jmp 0x140010934
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea rcx, [rsp + 0x20]
call fcn.140007cfc
nop
lea rcx, [rsp + 0x40]
call fcn.140007cfc
nop
jmp 0x140010950
mov r8d, edi
lea rdx, [0x14004ee5e]
lea rcx, [rsp + 0x60]
call fcn.140030b9c
nop
lea rcx, [rsp + 0x60]
call fcn.14002e7a8
mov eax, edi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140033cb0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret