Function at 0x14000c320
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r13
lea rbp, [rsp - 0x7c8]
sub rsp, 0x8c8
mov rax, qword [0x140047008]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
lea rax, [rsp + 0x58]
xor esi, esi
mov r9d, 0x20019
mov qword [rsp + 0x58], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicescameraEnum
mov rcx, 0xffffffff80000002
xor r13d, r13d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c794
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Count
lea rax, [rsp + 0x68]
mov dword [rsp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
lea edi, [rsi + 1]
test eax, eax
jne 0x14000c77c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x900], r14
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
lea rax, [rsp + 0x48]
xor edx, edx
mov qword [rsp + 0x48], rax
call fcn.14000c0f0
mov r14, qword [rsp + 0x48]
lea rax, [rsp + 0x48]
cmp r14, rax
je 0x14000c774
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x8f0], rbx
mov qword [rsp + 0x8f8], r12
mov qword [rsp + 0x8c0], r15
mov r15d, dword [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [r14 + 0x10]
lea rcx, str.camera_path
call fcn.14001a180
xor r8d, r8d
lea rdx, [r14 + 0x10]
lea rcx, [rsp + 0x68]
mov ebx, edi
xor edi, edi
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x14000c54f
mov ecx, dword [rsp + 0x68]
lea r9d, [rdi + 1]
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x20019
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Open_DevNode_Key]
test eax, eax
jne 0x14000c54f
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.SkipCameraEnumeration
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000c4c4
cmp dword [rsp + 0x6c], 1
jne 0x14000c4c4
xor ebx, ebx
jmp 0x14000c52b
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x38], rdi
lea rdx, str.RtkSaveProperty
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14000c51b
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SONIXPCCAMSNP2UVCPropertySettings
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c52b
mov rcx, qword [rsp + 0x38]
mov edi, 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x14000c713
test edi, edi
je 0x14000c54f
mov edi, 1
mov r13d, edi
jmp 0x14000c718
xor ebx, ebx
test edi, edi
jne 0x14000c542
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x208
call fcn.14001c070
test ebx, ebx
jne 0x14000c576
lea r8, str.S_1_5_18
jmp 0x14000c590
cmp ebx, 1
jne 0x14000c584
lea r8, str.S_1_5_19
jmp 0x14000c590
cmp ebx, 2
jne 0x14000c5a1
lea r8, str.S_1_5_20
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.14001f62c
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.14001c070
lea rax, [r14 + 0x18]
mov edx, 0x104
lea r9, [rbp + 0x180]
mov qword [rsp + 0x20], rax
lea r8, str._sSoftwareRealtekDMFT_sDevice_ParametersRtkSaveProperty
lea rcx, [rsp + 0x70]
call fcn.14000afd0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c619
mov rcx, qword [rsp + 0x60]
lea edi, [rax + 1]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
inc ebx
cmp ebx, 2
jl 0x14000c551
test edi, edi
jne 0x14000c542
xor ebx, ebx
lea edi, [rbx + 1]
test r15d, r15d
je 0x14000c718
nop word [rax + rax]
test esi, esi
jne 0x14000c718
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.14001c070
mov r9d, ebx
lea r8, [0x14003d5cc]
mov edx, 0x104
lea rcx, [rbp + 0x390]
call fcn.14000afd0
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.14001c070
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x208
call fcn.14001c070
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x5a0]
mov dword [rsp + 0x38], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x390]
mov dword [rsp + 0x40], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000c706
lea r8, [rbp + 0x5a0]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.14001f62c
lea rdx, [rsp + 0x70]
lea rcx, [r14 + 0x10]
call fcn.14001f8e0
test eax, eax
cmove esi, edi
inc ebx
cmp ebx, r15d
jb 0x14000c640
jmp 0x14000c718
mov edi, 1
cmp r14, qword [rsp + 0x30]
je 0x14000c72b
mov r14, qword [r14]
test r13d, r13d
je 0x14000c420
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x48]
mov r15, qword [rsp + 0x8c0]
mov r12, qword [rsp + 0x8f8]
mov rbx, qword [rsp + 0x8f0]
cmp rcx, rax
je 0x14000c774
mov rax, qword [rcx + 8]
mov rdx, qword [rcx]
mov qword [rax], rdx
mov qword [rdx + 8], rax
call fcn.14001ff18
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x48]
cmp rcx, rdx
jne 0x14000c752
mov r14, qword [rsp + 0x900]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x14000c794
test r13d, r13d
jne 0x14000c794
mov eax, edi
jmp 0x14000c796
xor eax, eax
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.14001a990
add rsp, 0x8c8
pop r13
pop rdi
pop rsi
pop rbp
ret