Function at 0x14000a7a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
mov r14, qword [0x140278e80]
mov r8d, 7
mov qword [rbp + 0x1f], r8
xor r12d, r12d
mov qword [rbp + 0x17], r12
mov word [rbp + 7], r12w
mov r9d, r8d
mov qword [rbp - 1], r8
mov qword [rbp - 9], r12
mov word [rbp - 0x19], r12w
mov rcx, qword [r14 + 0x2f0]
sub rcx, qword [r14 + 0x2e8]
movabs rax, 0xf83e0f83e0f83e1
imul rcx
mov rsi, rdx
sar rsi, 4
mov rax, rsi
shr rax, 0x3f
add rsi, rax
je 0x14000ab6c
mov edi, r12d
or r13, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r14 + 0x2e8]
mov rcx, qword [rdi + rax + 8]
test rcx, rcx
je 0x14000aa7e
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r12
mov word [rbp - 0x39], r12w
lea rdx, [rbp - 0x39]
call fcn.140128850
cmp qword [rbp - 0x29], 0
sete al
test al, al
jne 0x14000aa64
mov qword [rbp - 0x69], 7
mov qword [rbp - 0x71], r12
mov word [rsp + 0x48], r12w
mov r8d, 0x32
lea rdx, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
lea rcx, [rsp + 0x48]
call fcn.140003290
nop
mov r9, r13
xor r8d, r8d
lea rdx, [rbp - 0x39]
lea rcx, [rsp + 0x48]
call fcn.140004ee0
mov qword [rbp - 0x49], 7
mov qword [rbp - 0x51], r12
mov word [rbp - 0x61], r12w
mov r8d, 0xb
lea rdx, str.Layout_Text
lea rcx, [rbp - 0x61]
call fcn.140003290
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x48]
cmp qword [rbp - 0x69], 8
cmovae rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000aa0b
mov dword [rsp + 0x38], r12d
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 8
cmovae rdx, qword [rbp - 0x61]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000aa0b
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14000aa0b
mov dword [rbp - 0x41], 1
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140185afc
mov rbx, rax
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 8
cmovae rdx, qword [rbp - 0x61]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x41]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000aa0b
cmp dword [rbp - 0x41], 1
jne 0x14000aa0b
cmp word [rbx], ax
jne 0x14000a9db
mov r8, r12
jmp 0x14000a9eb
mov r8, r13
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x14000a9e0
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140003290
mov rcx, rbx
call fcn.140185a84
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov r8, qword [rbp - 0x49]
cmp r8, 8
jb 0x14000aa25
inc r8
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x61]
call fcn.140003900
mov word [rbp - 0x61], r12w
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], 7
mov r8, qword [rbp - 0x69]
cmp r8, 8
jb 0x14000aa52
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140003900
mov word [rsp + 0x48], r12w
mov qword [rbp - 0x71], r12
mov qword [rbp - 0x69], 7
mov r8, qword [rbp - 0x21]
cmp r8, 8
jb 0x14000aa7e
inc r8
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.140003900
mov rax, qword [r14 + 0x2e8]
lea rdx, [rbp + 7]
mov rcx, qword [rdi + rax + 8]
call fcn.140126e90
lea r8, [0x1401dd25c]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x61]
call fcn.1400082d0
nop
lea r8, [rbp - 0x19]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000aea0
nop
lea r8, [0x1401ddc34]
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.14000ae30
nop
mov r9, r13
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call fcn.140004ee0
nop
mov r8, qword [rbp - 0x21]
cmp r8, 8
jb 0x14000aafa
inc r8
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.140003900
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r12
mov word [rbp - 0x39], r12w
mov r8, qword [rbp - 0x69]
cmp r8, 8
jb 0x14000ab27
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140003900
mov qword [rbp - 0x69], 7
mov qword [rbp - 0x71], r12
mov word [rsp + 0x48], r12w
mov r8, qword [rbp - 0x49]
cmp r8, 8
jb 0x14000ab53
inc r8
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x61]
call fcn.140003900
add rdi, 0x108
sub rsi, 1
jne 0x14000a850
mov r8, qword [rbp + 0x1f]
mov r9, qword [rbp - 1]
cmp r9, 8
jb 0x14000ab87
lea r8, [r9 + 1]
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140003900
mov r8, qword [rbp + 0x1f]
mov qword [rbp - 1], 7
mov qword [rbp - 9], r12
mov word [rbp - 0x19], r12w
cmp r8, 8
jb 0x14000abae
inc r8
mov rdx, qword [rbp + 7]
lea rcx, [rbp + 7]
call fcn.140003900
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140185a60
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret