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

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14008f088]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, str.uninstall_Service_entry
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0xbe
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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.140010f80
lea r9, [0x140090270]
mov r8d, 0xc1
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
test rdi, rdi
je 0x140007e1d
lea rcx, str.UninstallService_entry_1
mov qword [rsp + 0x60], rbx
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0xc4
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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 0x140007dfc
lea rcx, str.UninstallService_entry_2
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0xc9
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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 0x140007d8e
lea rcx, str.UninstallService_entry_3
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0xd1
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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 0x140007d8e
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x140007d49
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 0x140007d62
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 0x140007d31
jmp 0x140007d8e
lea rcx, str.SERVICE_STOPPED
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0xdb
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
lea rcx, str.UninstallService_entry_4
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0xe0
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
je 0x140007df3
lea rcx, str.DeleteService_success
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0xe3
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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.14001c180
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.140010f80
lea r9, [0x140090270]
mov r8d, 0xeb
lea rdx, str.UninstallService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001c180
add rsp, 0x50
pop rdi
ret