Function at 0x14000c080
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [0x14007d110]
xor ebx, ebx
dec rax
mov qword [rsp + 0x90], r15
mov r15d, ebx
mov r14d, ebx
lea edi, [rbx + 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c198
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], 0x60078
lea r9, [rbp - 0x14]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 4]
mov dword [rbp - 0x18], 4
lea rdx, [rbp - 0x10]
mov ecx, 0x53545344
call fcn.140006780
test eax, eax
je 0x14000c198
cmp dword [rbp - 0x18], 4
mov ecx, ebx
cmovae ecx, dword [rbp - 0x14]
bt ecx, 0x10
jae 0x14000c198
mov eax, dword [0x140079938]
bt ecx, 0x11
movzx edi, cx
cmovb eax, ebx
mov dword [0x140079938], eax
bt ecx, 0x12
jae 0x14000c134
mov dword [0x14007b304], 1
jmp 0x14000c14b
bt ecx, 0x14
jae 0x14000c14b
bt ecx, 0x15
mov eax, ebx
setb al
inc eax
mov dword [0x14007b300], eax
mov r14d, ecx
mov dword [0x14007b31c], 1
mov rcx, qword [0x14007d090]
shr r14d, 0x13
and r14d, 1
test rcx, rcx
je 0x14000c179
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x14007d090], rbx
mov rcx, qword [0x14007d098]
test rcx, rcx
je 0x14000c217
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x14007d098], rbx
jmp 0x14000c217
mov rcx, qword [0x14007d088]
test rcx, rcx
je 0x14000c1b1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x14007d088], rbx
cmp dword [0x14007b318], ebx
je 0x14000c1c1
mov r15d, 2
jmp 0x14000c217
mov rax, qword [0x14007d110]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000c217
lea rax, [rbp - 0x18]
mov dword [rbp - 0x14], 0x60079
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r8d, 4
mov dword [rbp - 0x18], 4
lea rdx, [rbp - 0x14]
mov ecx, 0x53545344
call fcn.140006780
test eax, eax
je 0x14000c217
cmp dword [rbp - 0x18], 4
mov eax, ebx
cmovae eax, dword [rbp - 0x10]
bt eax, 0x10
jae 0x14000c217
mov r15d, edi
xor edx, edx
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x20]
mov esi, ebx
call fcn.140031c50
test eax, eax
je 0x14000c2a3
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x14]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x18]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x80], r12
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CameraMaskLED
mov qword [rsp + 0x88], r13
mov dword [rbp - 0x14], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000c27b
mov r12d, dword [rbp - 0x10]
lea r13d, [rax + 1]
jmp 0x14000c282
mov r12d, dword [rbp - 0x14]
mov r13d, ebx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test r13d, r13d
mov r13, qword [rsp + 0x88]
cmovne esi, r12d
mov r12, qword [rsp + 0x80]
cmp esi, r15d
je 0x14000c2b7
mov edx, r15d
lea rcx, str.CameraMaskLED
call fcn.1400320f0
cmp dword [0x14007b31c], ebx
mov r15, qword [rsp + 0x90]
je 0x14000c38c
cmp dword [0x14007b304], ebx
je 0x14000c368
call fcn.14000c8f0
mov esi, eax
test r14d, r14d
je 0x14000c32c
cmp eax, 1
sete bl
lea ecx, [rbx + 2]
call fcn.14000c3b0
test eax, eax
je 0x14000c32c
mov rcx, qword [0x140079b70]
lea rax, [0x140079b70]
cmp rcx, rax
je 0x14000c328
test byte [rcx + 0x1c], 4
je 0x14000c328
mov rcx, qword [rcx + 0x10]
lea rax, str.Restore_camera_status_from_application
mov edx, 0xa
mov qword [rsp + 0x20], rax
call fcn.14003f070
mov edi, esi
jmp 0x14000c33e
cmp esi, edi
je 0x14000c33e
mov edx, edi
lea rcx, str.CameraShutter
call fcn.1400320f0
mov rcx, qword [0x14007d088]
test rcx, rcx
je 0x14000c385
cmp edi, 1
jne 0x14000c359
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov eax, edi
jmp 0x14000c38e
test edi, edi
jne 0x14000c385
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
lea eax, [rdi + 1]
jmp 0x14000c38e
cmp dword [0x14007b300], ebx
jne 0x14000c385
call fcn.14000c8f0
mov ecx, eax
mov ebx, eax
call fcn.14000c450
mov ecx, ebx
call fcn.14000c3b0
mov eax, 1
jmp 0x14000c38e
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret