Function at 0x14006ca90
Capabilities:
Listen for remote procedure calls

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x48]
sub rsp, 0x140
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov ebx, ecx
xor esi, esi
mov dword [rsp + 0x60], esi
mov byte [0x1400f9a9c], sil
mov dword [rbp - 0x64], esi
mov word [rbp - 0x60], 0x100
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
mov dword [rbp - 0x68], esi
mov qword [rbp - 0x70], rsi
mov dword [rbp - 0x5c], esi
xor edx, edx
lea r8d, [rsi + 0x60]
lea rcx, [rbp - 0x30]
call fcn.1400916b0
mov qword [rbp - 0x78], rsi
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x5c]
lea rdx, [rbp - 0x70]
lea rcx, str.RealtekSemiconductorCorp.hdUSBAudio_dt26b99r8h8gj
call qword [sym.imp.api_ms_win_security_base_l1_2_2.dll_DeriveCapabilitySidsFromName]
test eax, eax
je 0x14006cd2d
cmp dword [rbp - 0x68], 1
jne 0x14006cd33
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x64]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14006cd2d
mov dword [rbp - 0x2c], 2
mov dword [rbp - 0x30], 0x10000000
mov dword [rbp - 0x28], esi
mov dword [rbp - 0x14], esi
mov dword [rbp - 0x10], 5
mov rax, qword [rsp + 0x78]
mov qword [rbp - 8], rax
mov dword [rbp + 4], 2
mov dword [rbp], 0x10000000
mov dword [rbp + 8], esi
mov qword [rbp + 0x1c], rsi
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
mov qword [rbp + 0x28], rcx
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_security_provider_l1_1_0.dll_SetEntriesInAclW]
test eax, eax
jne 0x14006cd33
lea edx, [rsi + 1]
lea rcx, [rbp - 0x58]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14006cd2d
xor r9d, r9d
mov r8, qword [rbp - 0x78]
lea edx, [rsi + 1]
lea rcx, [rbp - 0x58]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14006cd2d
lea r9, [rbp - 0x58]
lea r8, str.RealtekAudioRpcEndpoint
lea edx, [rsi + 0xa]
lea rcx, str.ncalrpc
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
jne 0x14006cd33
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x4d2
lea r9d, [rsi + 0x21]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400a5990]
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf3]
mov edi, eax
test eax, eax
jne 0x14006cd36
lea rcx, [0x1400fadd8]
call qword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov edi, eax
test eax, eax
jne 0x14006cd36
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1400fadd8]
lea rcx, [0x1400a5990]
call qword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
mov edi, eax
test eax, eax
jne 0x14006cd36
mov r8d, 0x107
lea rdx, str.RpcServerConnect
lea rcx, [0x1400a9e48]
call fcn.14003f0e0
lea rdx, str.RpcServerConnect
test ebx, ebx
je 0x14006cce9
mov r8d, ebx
lea rcx, str._s_bAdmin_d
call fcn.14003f0e0
xor eax, eax
jmp 0x14006cdd6
xor r8d, r8d
lea rcx, str._s_bAdmin_d__NOT_admin__try_to_RpcServerListen
call fcn.14003f0e0
xor r8d, r8d
mov edx, 0x4d2
lea ecx, [r8 + 1]
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov edi, eax
mov r8d, eax
lea rdx, str.RpcServerConnect
lea rcx, str._s_status_d
call fcn.14003f0e0
cmp edi, 0x6b1
cmove edi, esi
jmp 0x14006cd36
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, dword [rbp - 0x68]
mov r8d, edi
lea rdx, str.RpcServerConnect
lea rcx, str._s_status_d
call fcn.14003f0e0
nop
mov qword [rsp + 0x68], rsi
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x14006cdfb
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 1
lea r9, str.Others
lea r8, str.SoftwareRealtekAudioRtkAudUService
lea rdx, [0x1400a9b08]
lea rcx, [rsp + 0x68]
call fcn.140005270
mov r9d, edi
lea r8, str.End_RpcServerConnect
mov rbx, qword [rsp + 0x68]
mov rdx, rbx
mov rcx, qword [0x1400fa5d8]
call fcn.14005c180
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006cdd4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14008ade0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003700
int3