Function at 0x140019f30
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov r14, rdx
xor r15b, r15b
mov byte [0x1400311b0], r15b
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor r13d, r13d
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x50], r13
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x140025510]
xor edx, edx
lea r8d, [r13 + 0x17]
lea rcx, [0x140023a90]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r12d, eax
lea ebx, [r13 + 1]
test eax, eax
js 0x14001a5db
test r14, r14
jne 0x140019fe8
lea rcx, str.DtsService::DeviceWatcher::Start::No_Device_ID_provided_by_3rd_party_App
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
lea r9, [rbp - 0x50]
mov r8d, ebx
xor edx, edx
call qword [rax + 0x20]
mov r12d, eax
jmp 0x14001a2af
mov qword [rbp + 8], r13
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r13w
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r13w
mov r8, 0xffffffffffffffff
inc r8
cmp word [r14 + r8*2], 0
jne 0x14001a011
mov rdx, r14
lea rcx, [rbp + 0x18]
call fcn.14000f500
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14001a03c
mov qword [rbp - 0x50], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x58], r13
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
lea r9, [rbp - 0x58]
mov r8d, ebx
xor edx, edx
call qword [rax + 0x18]
mov rcx, qword [rbp - 0x58]
test eax, eax
js 0x14001a204
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
call qword [rax + 0x18]
test eax, eax
js 0x14001a1ed
mov esi, r13d
cmp dword [rbp - 0x10], r13d
jbe 0x14001a1ed
nop
mov qword [rbp - 0x40], r13
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
lea r8, [rbp - 0x40]
mov edx, esi
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x40]
test eax, eax
js 0x14001a194
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
call qword [rax + 0x28]
test eax, eax
js 0x14001a17d
mov qword [rbp + 8], r13
lea rax, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rax, qword [rbp - 8]
mov word [rax], r13w
mov rdx, qword [rbp - 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001a0d3
lea rcx, [rbp - 8]
call fcn.14000f500
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r9, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae r9, qword [rbp - 8]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r9 + rax*2], 0
jne 0x14001a110
lea rcx, [rbp + 0x18]
mov rbx, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x30]
cmp rdi, 8
cmovae rcx, rbx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbp + 0x28]
call fcn.14000fe10
cmp rax, 0xffffffffffffffff
jne 0x14001a1ab
lea r9, [rbp + 0x18]
cmp rdi, 8
cmovae r9, rbx
nop
inc rax
cmp word [r9 + rax*2], 0
jne 0x14001a150
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rcx, qword [rbp - 8]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbp + 8]
call fcn.14000fe10
cmp rax, 0xffffffffffffffff
jne 0x14001a1ab
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14001a194
mov qword [rbp - 0x40], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14001a19f
mov rax, qword [rcx]
call qword [rax + 0x10]
inc esi
cmp esi, dword [rbp - 0x10]
jae 0x14001a1ed
jmp 0x14001a080
lea rcx, str.DtsService::DeviceWatcher::Start::Device_ID_provided_by_3rd_party_App_Found
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1400311b0], 1
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
lea r8, [rbp - 0x50]
call qword [rax + 0x28]
mov r12d, eax
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14001a1ed
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14001a204
mov qword [rbp - 0x58], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14001a210
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdi, qword [rbp + 0x30]
cmp rdi, 8
jb 0x14001a256
lea rdx, [rdi*2 + 2]
mov rbx, qword [rbp + 0x18]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001a24e
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a24e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14001d9e0
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r13w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x14001a2aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a2a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a2a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov ebx, 1
test r12d, r12d
js 0x14001a5c0
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
lea rdx, [rbp - 0x58]
call qword [rax + 0x28]
test eax, eax
js 0x14001a5c0
lea rcx, str.DtsService::DeviceWatcher::Start::AudioEndpoint_MMDevice_is_Found
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp + 0x18]
call fcn.14001aa90
nop
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
mov r8, qword [rbp + 0x28]
lea rcx, [0x1400311b8]
call fcn.14000f500
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x3c], 3
mov dword [rsp + 0x40], 8
mov word [rsp + 0x44], 0
mov byte [rsp + 0x46], 0
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x4c], 1
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x54], r13
mov qword [rsp + 0x5c], 0
mov rcx, qword [rbp - 0x58]
call fcn.14001b110
test al, al
je 0x14001a464
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x70]
call fcn.14000f130
test r14, r14
sete r8b
mov rdx, rax
lea rcx, [0x140031158]
call fcn.14001b340
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x30], r13
mov dword [rbp - 0x28], r13d
mov qword [rbp - 0x20], r13
lea rdx, [rsp + 0x70]
lea rcx, [0x140031158]
call fcn.14001bd70
cmp qword [rax + 0x18], 8
jb 0x14001a3ae
mov rax, qword [rax]
mov r9d, 0x20019
mov r8, rax
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x30]
call fcn.140001e50
mov ebx, eax
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14001a40d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a408
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a408
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
test ebx, ebx
jne 0x14001a671
mov byte [rsp + 0x30], bl
xor r9d, r9d
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.14001c1a0
mov ebx, eax
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14001a453
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r13
test rcx, rcx
je 0x14001a45e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x3c], ebx
jmp 0x14001a472
mov rdx, qword [rbp - 0x58]
lea rcx, [rsp + 0x3c]
call fcn.140018f40
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x30]
call fcn.14001ac30
movups xmm1, xmmword [rax]
movups xmmword [rsp + 0x54], xmm1
mov dword [rsp + 0x38], r13d
test r14, r14
sete byte [rsp + 0x50]
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rbp - 0x80], xmm0
movsd xmm2, qword [rsp + 0x58]
movsd qword [rbp - 0x70], xmm2
psrldq xmm1, 0xc
movd esi, xmm1
mov dword [rbp - 0x68], esi
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [0x1400310e8]
call fcn.14000ec60
mov rdi, qword [rbp - 0x58]
movups xmm0, xmmword [0x140025fb8]
movaps xmmword [rbp - 0x30], xmm0
mov eax, dword [reloc.OLEAUT32.dll_SysStringLen]
mov dword [rbp - 0x20], eax
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140019b60
mov ebx, eax
movups xmm0, xmmword [0x140025fe8]
movaps xmmword [rbp - 0x30], xmm0
mov ecx, dword [0x140025ff8]
mov dword [rbp - 0x20], ecx
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140019b60
cmp ebx, 3
sete cl
je 0x14001a526
cmp eax, 3
sete cl
mov byte [0x140031198], cl
mov byte [rsp + 0x46], cl
mov dword [rsp + 0x38], 4
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rbp - 0x80], xmm0
movsd xmm0, qword [rsp + 0x58]
movsd qword [rbp - 0x70], xmm0
mov dword [rbp - 0x68], esi
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [0x1400310e8]
call fcn.14000ec60
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x14001a5bb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a5b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a5b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov ebx, 1
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
lea rdx, [0x1400310e0]
call qword [rax + 0x30]
movzx r15d, r15b
test eax, eax
cmovns r15d, ebx
mov r8, qword [rbp - 0x50]
test r8, r8
je 0x14001a5f5
mov qword [rbp - 0x50], r13
mov rax, qword [r8]
mov rcx, r8
call qword [rax + 0x10]
mov r8, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14001a610
mov qword [rbp - 0x48], r13
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x50]
movzx eax, byte [0x1400311d8]
test r15b, r15b
cmovne eax, ebx
mov byte [0x1400311d8], al
test r8, r8
je 0x14001a635
mov rdx, qword [r8]
mov rcx, r8
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14001a640
mov rdx, qword [rcx]
call qword [rdx + 0x10]
movzx eax, r15b
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14001d660
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str.Error_reading_registry_key
lea rcx, [rbp - 8]
call fcn.140010c20
lea rdx, [0x14002ea30]
lea rcx, [rbp - 8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3