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

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400342d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdi, rcx
xor edx, edx
lea r8d, [rax + 1]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14000b328
test byte [0x1400342a8], 2
je 0x14000b30f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.OpenSCManager_failed_w_err_0x_08lx_n
lea edx, [rsi + 2]
lea rcx, str.UninstallService
mov r9d, eax
call fcn.14000da50
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14002dee0]
mov edx, eax
call fcn.140010190
jmp 0x14000b50b
mov r8d, 0x10024
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000b38f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x424
je 0x14000b4ef
test byte [0x1400342a8], 2
je 0x14000b37c
lea r8, str.OpenSCManager_failed_w_err_0x_08lx_n
lea edx, [rbx + 2]
lea rcx, str.UninstallService
mov r9d, eax
call fcn.14000da50
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, edi
call fcn.140010190
jmp 0x14000b4ef
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000b46f
lea rcx, str.Stopping__s.
mov rdx, rdi
call fcn.140010190
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000b408
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x14000b40c
lea rcx, [0x14002c7bc]
call fcn.140010190
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000b3d6
mov eax, dword [rsp + 0x24]
cmp eax, 1
jne 0x14000b43c
test byte [0x1400342a8], 2
je 0x14000b433
lea r8, str._n_s_is_stopped._n
lea edx, [rax + 1]
lea rcx, str.UninstallService
mov r9, rdi
call fcn.14000db50
lea rcx, str._n_s_is_stopped._n
jmp 0x14000b467
test byte [0x1400342a8], 2
je 0x14000b460
lea r8, str._n_s_failed_to_stop._n
lea rcx, str.UninstallService
mov r9, rdi
mov edx, 2
call fcn.14000db50
lea rcx, str._n_s_failed_to_stop._n
mov rdx, rdi
call fcn.140010190
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14000b4bc
test byte [0x1400342a8], 2
je 0x14000b4a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x14002e0a0]
lea rcx, str.UninstallService
mov r9d, eax
mov edx, 2
call fcn.14000da50
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.140010190
jmp 0x14000b4ef
test byte [0x1400342a8], 2
je 0x14000b4e0
lea r8, str._n_s_is_removed._n
lea rcx, str.UninstallService
mov r9, rdi
mov edx, 2
call fcn.14000db50
lea rcx, str._s_is_removed._n
mov rdx, rdi
call fcn.140010190
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14000b506
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000eb60
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret