Function at 0x140012d40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x500
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rbp, r8
mov qword [rsp + 0x40], r8
mov rdi, rdx
mov r15, rcx
mov dword [rsp + 0x30], 0x104
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x38], ebx
mov r14d, ebx
mov r9d, 0x104
lea r8, [r11 - 0x258]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
jne 0x140021d3d
mov r12d, 0x208
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, 0x800401f3
je 0x140021c84
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x3001f
xor r8d, r8d
lea rdx, [rsp + 0x2e0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x140021c7d
mov rsi, qword [rsp + 0x48]
mov r13, rsi
mov qword [rsp + 0x50], rsi
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x80]
lea rdx, str.SerialNumber
lea rcx, [rsp + 0x50]
call fcn.140005980
cmp eax, ebx
jne 0x140012e6c
mov rcx, qword [rdi + 0xd0]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jne 0x140021999
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], 0x104
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x80]
lea rdx, str.DevPath
lea rcx, [rsp + 0x50]
call fcn.140005980
cmp eax, ebx
jne 0x1400219cc
mov rax, qword [rdi + 0x78]
lea r8, [rsp + 0x80]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140012ecf
add rax, 2
test edx, edx
jne 0x140012ebb
cmp ecx, ebx
jne 0x1400219e3
cmp qword [rdi + 0x30], rbx
jne 0x140021ccb
mov qword [rsp + 0x50], rbx
mov qword [rdi + 0x30], rsi
lea rcx, [0x140055618]
mov rdx, qword [rdi + 0x9c]
cmp rdx, qword [rcx]
jne 0x140021ce7
mov rdx, qword [rdi + 0xa4]
cmp rdx, qword [rcx + 8]
jne 0x140021ce7
mov eax, ebx
jmp 0x140012f16
cmp eax, ebx
jne 0x140021cf1
movdqu xmm0, xmmword [rsp + 0x70]
movdqu xmmword [rdi + 0x9c], xmm0
jmp 0x140012f2e
test byte [rdi + 0x19c], 1
jne 0x140012f86
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Disabled
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x34], ebx
setne bl
xor ebx, dword [rdi + 0x19c]
and ebx, 1
xor dword [rdi + 0x19c], ebx
xor eax, eax
jmp 0x140012f8a
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140001170
mov rbx, qword [rsp + 0x558]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rdi + 0xd0]
lea r8, [rsp + 0x80]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x1400219bf
add rax, 2
test edx, edx
jne 0x1400219ab
cmp ecx, ebx
jne 0x140012e6c
jmp 0x140021cb4
cmp rsi, rbx
je 0x140021c84
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140021c84
mov rcx, r15
call fcn.140011aac
cmp eax, ebx
je 0x140021c6d
mov rdx, rsi
mov rcx, r15
call fcn.140008e94
cmp eax, ebx
je 0x140021c6d
lea rdx, str.CRecorderMgr::FindDeviceRegEntry:_checking_for_upgrade..._n
mov ecx, 4
call fcn.140001110
lea r8, [rsp + 0x80]
lea rdx, str.CRecorderMgr::FindDeviceRegEntry:_Old_path___s__n
mov ecx, 4
call fcn.140001110
mov r8, qword [rdi + 0x78]
lea rdx, str.CRecorderMgr::FindDeviceRegEntry:_New_path___s__n
mov ecx, 4
call fcn.140001110
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], 0x104
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x80]
lea rdx, str.DevName
lea rcx, [rsp + 0x50]
call fcn.140005980
cmp eax, ebx
je 0x140021a98
cmp rsi, rbx
je 0x140021c84
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140021c84
mov rax, qword [rdi + 0x80]
lea r8, [rsp + 0x80]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140021abe
add rax, 2
test edx, edx
jne 0x140021aaa
cmp ecx, ebx
jne 0x140021c6d
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], 0x104
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x80]
lea rdx, str.RootDevice
lea rcx, [rsp + 0x50]
call fcn.140005980
cmp eax, ebx
je 0x140021b19
cmp rsi, rbx
je 0x140021c84
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140021c84
mov ebp, ebx
mov r12d, ebx
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
movsxd r11, eax
mov r9d, ebx
mov r8d, dword [rsp + 0x30]
cmp r8d, ebx
jbe 0x140021b68
mov r10, rbx
cmp r9d, r11d
jae 0x140021b68
mov rdx, qword [rdi + 0x88]
movzx ecx, word [rsp + r10 + 0x80]
cmp word [r10 + rdx], cx
jne 0x140021b5c
inc ebp
inc r9d
add r10, 2
cmp r9d, r8d
jb 0x140021b3e
cmp r11d, r8d
je 0x140021bae
mov edx, ebx
lea r10d, [r8 - 1]
cmp r10d, ebx
jbe 0x140021bae
lea r9, [r11 + r11 - 2]
cmp edx, r11d
jae 0x140021bae
mov eax, r8d
sub eax, edx
sub eax, 2
movzx eax, word [rsp + rax*2 + 0x80]
mov rcx, qword [rdi + 0x88]
cmp word [r9 + rcx], ax
jne 0x140021ba3
inc r12d
inc edx
sub r9, 2
cmp edx, r10d
jb 0x140021b7d
add ebp, r12d
cmp ebp, dword [rsp + 0x38]
jbe 0x140021c68
shr r8d, 1
cmp ebp, r8d
jbe 0x140021c61
mov dword [rsp + 0x20], r12d
mov r9d, ebp
lea r8, [rsp + 0x70]
mov rdx, rdi
mov rcx, r15
call fcn.14004487c
cmp eax, ebx
jne 0x140021c4c
mov dword [rsp + 0x34], 1
cmp qword [rdi + 0x30], rbx
je 0x140021c04
mov rcx, qword [rdi + 0x30]
cmp rcx, rbx
je 0x140021c04
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x30], rbx
mov r13, rbx
mov qword [rsp + 0x50], rbx
mov qword [rdi + 0x30], rsi
movdqu xmm0, xmmword [rsp + 0x70]
movdqu xmmword [rdi + 0x9c], xmm0
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebp
mov r9, qword [rdi + 0x88]
lea r8, [rsp + 0x80]
lea rdx, str.CRecorderMgr::FindDeviceRegEntry:_upgrading_tuner_from__s__to__s__matched_count__d_reverse_matched_count__d.
mov ecx, 4
call fcn.140001110
nop
cmp r13, rbx
je 0x140021c7f
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x40]
jmp 0x140021c84
mov rbp, qword [rsp + 0x40]
jmp 0x140021c6d
mov rbp, qword [rsp + 0x40]
cmp rsi, rbx
je 0x140021c84
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140021c84
jmp 0x140021c84
mov rbp, qword [rsp + 0x40]
inc r14d
mov r9d, 0x104
lea r8, [rsp + 0x2e0]
mov edx, r14d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
jne 0x140021d33
mov r12d, 0x208
jmp 0x140012dbd
mov qword [rdi + 0x30], rsi
movdqu xmm0, xmmword [rsp + 0x70]
movdqu xmmword [rdi + 0x9c], xmm0
jmp 0x140012f2e
mov rcx, qword [rdi + 0x30]
cmp rcx, rbx
je 0x140012ee1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x30], rbx
jmp 0x140012ee1
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x140012f16
mov r8d, reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx
lea rdx, [rsp + 0x290]
lea rcx, [rdi + 0x9c]
call qword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jle 0x140012f1e
lea r8, [rsp + 0x290]
lea rdx, str.CRecorderMgr::FindDeviceRegEntry:_got_a_complete_match___overriding_the_previous_recorder__s.
mov ecx, 4
call fcn.140001110
nop
jmp 0x140012f1e
cmp dword [rsp + 0x34], ebx
jne 0x140012f2e
mov eax, 1
jmp 0x140012f8a