Function at 0x140082960
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], 0xfffffffffffffffe
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400829f3
mov r8d, 0xf01ff
lea rdx, str.RtkAudioService
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x1400829dd
mov rdx, rax
call fcn.140082bc0
test eax, eax
jne 0x1400829d4
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
mov esi, eax
mov ecx, 0x64
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
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 eax, esi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [rbp + 0x30]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x38]
mov qword [rbp + 0x48], rax
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x140082b9f
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x30], rax
lea rdi, str.stop_RtkAudioService
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.140005580
mov rbx, 0xffffffffffffffff
test al, al
jne 0x140082a5d
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x140082a43
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.140003840
nop
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x140082baa
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x38], rax
lea rdi, str.sc.exe
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.140005580
test al, al
jne 0x140082ab0
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x140082a96
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.140003840
nop
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x38]
call fcn.14008e840
mov ecx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rbp + 0x30]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x38]
mov qword [rbp + 0x48], rax
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x140082bb5
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x30], rax
lea r14, str.delete_RtkAudioService
mov rdx, r14
lea rcx, [rbp + 0x30]
call fcn.140005580
test al, al
jne 0x140082b2c
mov rax, rbx
inc rax
cmp word [r14 + rax*2], 0
jne 0x140082b11
mov r8d, eax
mov rdx, r14
lea rcx, [rbp + 0x30]
call fcn.140003840
nop
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x140082b94
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x38], rax
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.140005580
test al, al
jne 0x140082b7a
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140082b60
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.140003840
nop
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x38]
call fcn.14008e840
mov eax, esi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003b40
nop
mov ecx, 0x80004005
call fcn.140003b40
nop
mov ecx, 0x80004005
call fcn.140003b40
nop
mov ecx, 0x80004005
call fcn.140003b40
int3