Function at 0x1400cba90
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x20
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 0x1400cbb1b
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 0x1400cbb05
mov rdx, rax
call fcn.1400cbd00
test eax, eax
jne 0x1400cbafc
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, 0x20
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.140004e00
mov rcx, rax
test rax, rax
je 0x1400cbcdf
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140050923.0]
add rax, 0x18
mov qword [rbp + 0x30], rax
lea rdi, str.stop_RtkAudioService
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.140004560
mov rbx, 0xffffffffffffffff
test al, al
jne 0x1400cbb8c
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400cbb72
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.1400047f0
nop
call fcn.140004e00
mov rcx, rax
test rax, rax
je 0x1400cbcea
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140050923.0]
add rax, 0x18
mov qword [rbp + 0x38], rax
lea rdi, str.sc.exe
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.140004560
test al, al
jne 0x1400cbbea
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400cbbd0
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.1400047f0
nop
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x38]
call fcn.1400daf60
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.140004e00
mov rcx, rax
test rax, rax
je 0x1400cbcf5
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140050923.0]
add rax, 0x18
mov qword [rbp + 0x30], rax
lea r14, str.delete_RtkAudioService
mov rdx, r14
lea rcx, [rbp + 0x30]
call fcn.140004560
test al, al
jne 0x1400cbc6d
mov rax, rbx
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400cbc52
mov r8d, eax
mov rdx, r14
lea rcx, [rbp + 0x30]
call fcn.1400047f0
nop
call fcn.140004e00
mov rcx, rax
test rax, rax
je 0x1400cbcd4
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140050923.0]
add rax, 0x18
mov qword [rbp + 0x38], rax
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.140004560
test al, al
jne 0x1400cbcba
nop
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400cbca0
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.1400047f0
nop
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x38]
call fcn.1400daf60
mov eax, esi
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004f30
nop
mov ecx, 0x80004005
call fcn.140004f30
nop
mov ecx, 0x80004005
call fcn.140004f30
nop
mov ecx, 0x80004005
call fcn.140004f30
int3