Function at 0x14001f270
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp - 8], rax
mov ecx, dword [0x140069838]
xor ebx, ebx
lea r14d, [rbx + 1]
test ecx, ecx
jne 0x14001f360
mov rax, qword [0x14006aee0]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14001f360
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], 0x50021
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 0x14001f35a
cmp dword [rbp - 0x18], 4
mov ecx, ebx
cmovae ecx, dword [rbp - 0x14]
mov eax, ecx
and eax, 0x50000
cmp eax, 0x50000
jne 0x14001f35a
mov eax, dword [0x140067ac0]
bt ecx, 0x13
mov dword [0x14006983c], r14d
cmovb eax, r14d
bt ecx, 0x14
mov dword [0x140067ac0], eax
mov eax, dword [0x140067ac4]
cmovb eax, r14d
mov dword [0x140067ac4], eax
bt ecx, 0x15
jae 0x14001f33d
mov qword [0x140067ac8], r14
test eax, eax
jne 0x14001f36e
mov eax, ecx
shr ecx, 7
and eax, 3
and ecx, r14d
mov dword [0x140067acc], eax
mov dword [0x140067ad0], ecx
jmp 0x14001f36e
mov ecx, dword [0x140069838]
cmp dword [0x14006983c], ebx
jne 0x14001f36e
mov edx, ebx
test ecx, ecx
je 0x14001f371
mov edx, r14d
lea rcx, str.CheckKeyboardLightStatus
call fcn.1400325e0
cmp dword [0x14006983c], ebx
jne 0x14001f3ad
cmp dword [0x140069838], ebx
jne 0x14001f3b5
mov rcx, qword [0x14006aeb0]
test rcx, rcx
je 0x14001f3a6
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x14006aeb0], rbx
xor eax, eax
jmp 0x14001f4e1
cmp dword [0x140069838], ebx
je 0x14001f423
mov rax, qword [0x14006aee0]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14001f423
lea rax, [rbp - 0x18]
mov dword [rbp - 0x14], 0x50021
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 0x14001f423
cmp dword [rbp - 0x18], 4
mov ecx, ebx
mov eax, dword [0x140067ac0]
cmovae ecx, dword [rbp - 0x10]
bt ecx, 0x13
cmovb eax, r14d
mov dword [0x140067ac0], eax
bt ecx, 0x15
jae 0x14001f423
mov qword [0x140067ac8], r14
xor edx, edx
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x20]
call fcn.140027750
test eax, eax
je 0x14001f4a5
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 + 0x60], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.TurnOffKeybdLight
mov qword [rsp + 0x68], rdi
mov dword [rbp - 0x14], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001f47d
mov edi, dword [rbp - 0x10]
mov esi, r14d
jmp 0x14001f482
mov edi, dword [rbp - 0x14]
mov esi, ebx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
mov rsi, qword [rsp + 0x60]
je 0x14001f4a0
lea eax, [rdi - 0x1e]
cmp eax, 0x4632
cmovbe ebx, edi
mov rdi, qword [rsp + 0x68]
lea eax, [rbx + rbx*4]
add eax, eax
mov dword [0x140067ad4], eax
call fcn.14001e9e0
mov edx, r14d
mov ecx, r14d
call fcn.14001ec80
call fcn.14001ec00
call fcn.1400221e0
test eax, eax
je 0x14001f4d9
call fcn.1400205d0
mov dword [0x140067ae0], eax
call fcn.14001ff10
mov eax, r14d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140032e60
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret