Function at 0x14004e5c0
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 [0x1400bb008]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov ebx, ecx
xor esi, esi
mov dword [rsp + 0x60], esi
mov byte [0x1400beb11], 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.14006d020
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 0x14004e85d
cmp dword [rbp - 0x68], 1
jne 0x14004e863
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 0x14004e85d
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 0x14004e863
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 0x14004e85d
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 0x14004e85d
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 0x14004e863
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, [0x14007e810]
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf3]
mov edi, eax
test eax, eax
jne 0x14004e866
lea rcx, [0x1400beb08]
call qword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov edi, eax
test eax, eax
jne 0x14004e866
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1400beb08]
lea rcx, [0x14007e810]
call qword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
mov edi, eax
test eax, eax
jne 0x14004e866
mov r8d, 0x10c
lea rdx, str.RpcServerConnect
lea rcx, [0x140081b98]
call fcn.140026f80
lea rdx, str.RpcServerConnect
test ebx, ebx
je 0x14004e819
mov r8d, ebx
lea rcx, str._s_bAdmin_d
call fcn.140026f80
xor eax, eax
jmp 0x14004e906
xor r8d, r8d
lea rcx, str._s_bAdmin_d__NOT_admin__try_to_RpcServerListen
call fcn.140026f80
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.140026f80
cmp edi, 0x6b1
cmove edi, esi
jmp 0x14004e866
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.140026f80
nop
xor eax, eax
mov qword [rsp + 0x68], rax
call fcn.140003520
mov rcx, rax
test rax, rax
je 0x14004e92b
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, [0x140081910]
lea rcx, [rsp + 0x68]
call fcn.140004c30
mov r9d, edi
lea r8, str.End_RpcServerConnect
mov rbx, qword [rsp + 0x68]
mov rdx, rbx
mov rcx, qword [0x1400bf598]
call fcn.1400419e0
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004e904
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.140065bd0
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.140003270
int3