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

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1400ae088]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, str.uninstall_Service_entry
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0xbe
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
lea rcx, str.Uninstall_Service_entry_0
mov rdi, rax
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0xc1
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
test rdi, rdi
je 0x140007c5d
lea rcx, str.UninstallService_entry_1
mov qword [rsp + 0x60], rbx
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0xc4
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov rdx, qword [str.RtkBtManServ]
mov r8d, 0x10024
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140007c3c
lea rcx, str.UninstallService_entry_2
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0xc9
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x140007bce
lea rcx, str.UninstallService_entry_3
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0xd1
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x140007bce
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x140007b89
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov eax, dword [rsp + 0x24]
cmp eax, 1
je 0x140007ba2
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
jne 0x140007b71
jmp 0x140007bce
lea rcx, str.SERVICE_STOPPED
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0xdb
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
lea rcx, str.UninstallService_entry_4
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0xe0
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
je 0x140007c33
lea rcx, str.DeleteService_success
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0xe3
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140023950
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed:_GetLastError__0x_x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0xeb
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140023950
add rsp, 0x50
pop rdi
ret