Function at 0x14000bab0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [0x14006aee0]
xor ebx, ebx
dec rax
mov qword [rsp + 0x88], r15
mov r13d, 1
mov r15d, ebx
mov edi, r13d
mov r14d, ebx
cmp rax, 0xfffffffffffffffd
ja 0x14000bbc9
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.1400064c0
test eax, eax
je 0x14000bbc9
cmp dword [rbp - 0x18], 4
mov ecx, ebx
cmovae ecx, dword [rbp - 0x14]
bt ecx, 0x10
jae 0x14000bbc9
mov eax, dword [0x14006792c]
bt ecx, 0x11
movzx edi, cx
cmovb eax, ebx
mov dword [0x14006792c], eax
bt ecx, 0x12
jae 0x14000bb76
mov r14d, ecx
mov dword [0x140069228], r13d
shr r14d, 0x13
and r14d, r13d
jmp 0x14000bb8a
mov eax, dword [0x14006921c]
bt ecx, 0x14
cmovb eax, r13d
mov dword [0x14006921c], eax
mov rcx, qword [0x14006ae70]
mov dword [0x140069240], r13d
test rcx, rcx
je 0x14000bbaa
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x14006ae70], rbx
mov rcx, qword [0x14006ae78]
test rcx, rcx
je 0x14000bc48
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x14006ae78], rbx
jmp 0x14000bc48
mov rcx, qword [0x14006ae68]
test rcx, rcx
je 0x14000bbe2
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x14006ae68], rbx
cmp dword [0x14006922c], ebx
je 0x14000bbf2
mov r15d, 2
jmp 0x14000bc48
mov rax, qword [0x14006aee0]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000bc48
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.1400064c0
test eax, eax
je 0x14000bc48
cmp dword [rbp - 0x18], 4
mov eax, ebx
cmovae eax, dword [rbp - 0x10]
bt eax, 0x10
jae 0x14000bc48
mov r15d, r13d
xor edx, edx
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x20]
mov esi, ebx
call fcn.140027750
test eax, eax
je 0x14000bcc6
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 dword [rbp - 0x14], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000bca0
mov r12d, dword [rbp - 0x10]
jmp 0x14000bca7
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 r13d, 1
cmovne esi, r12d
mov r12, qword [rsp + 0x80]
cmp esi, r15d
je 0x14000bcda
mov edx, r15d
lea rcx, str.CameraMaskLED
call fcn.140027c20
cmp dword [0x140069240], ebx
mov r15, qword [rsp + 0x88]
je 0x14000bdae
cmp dword [0x140069228], ebx
je 0x14000bd8c
call fcn.14000c310
mov esi, eax
test r14d, r14d
je 0x14000bd4f
cmp eax, 1
sete bl
lea ecx, [rbx + 2]
call fcn.14000bdd0
test eax, eax
je 0x14000bd4f
mov rcx, qword [0x140067b00]
lea rax, [0x140067b00]
cmp rcx, rax
je 0x14000bd4b
test byte [rcx + 0x1c], 4
je 0x14000bd4b
mov rcx, qword [rcx + 0x10]
lea rax, str.Restore_camera_status_from_application
mov edx, 0xa
mov qword [rsp + 0x20], rax
call fcn.140031fc0
mov edi, esi
jmp 0x14000bd61
cmp esi, edi
je 0x14000bd61
mov edx, edi
lea rcx, str.CameraShutter
call fcn.140027c20
mov rcx, qword [0x14006ae68]
test rcx, rcx
je 0x14000bda9
cmp edi, 1
jne 0x14000bd7d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov eax, r13d
jmp 0x14000bdb0
test edi, edi
jne 0x14000bda9
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
mov eax, r13d
jmp 0x14000bdb0
cmp dword [0x14006921c], ebx
jne 0x14000bda9
call fcn.14000c310
mov ecx, eax
mov ebx, eax
call fcn.14000be70
mov ecx, ebx
call fcn.14000bdd0
mov eax, r13d
jmp 0x14000bdb0
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140032e60
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret