Function at 0x14000ee60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0xdf0]
sub rsp, 0xef0
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rbp + 0xde0], rax
mov rsi, rdx
mov r13, rcx
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x208
call fcn.140017c40
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.140017c40
lea r8, str.Keyboard_LayoutPreload
lea rdx, [0x140032cdc]
lea rcx, [rbp + 0x180]
call fcn.140008050
lea r8, str.SystemCurrentControlSetControlKeyboard_Layouts_
lea rdx, [0x140032cdc]
lea rcx, [rbp + 0x390]
call fcn.140008050
xor r12d, r12d
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x180]
mov rcx, 0xffffffff80000001
mov r15d, r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000f1ea
mov qword [rsp + 0xf38], r14
mov r14d, r12d
mov qword [rsp + 0xf28], rbx
mov qword [rsp + 0xf30], rdi
nop dword [rax]
xor edx, edx
lea rcx, [rbp + 0xbd0]
mov r8d, 0x208
inc r14d
call fcn.140017c40
xor edx, edx
mov dword [rsp + 0x40], 1
mov r8d, 0x208
mov dword [rsp + 0x48], 0x104
lea rcx, [rsp + 0x70]
call fcn.140017c40
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0xbd0]
lea rax, [rsp + 0x40]
mov edx, r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14000f1c7
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x208
inc r15d
call fcn.140017c40
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x390]
lea rdx, str._s_s
lea rcx, [rbp + 0x5a0]
call fcn.140008050
lea r8, [rsp + 0x60]
mov rcx, 0xffffffff80000002
lea rdx, [rbp + 0x5a0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000f1ba
xor edx, edx
lea rcx, [rbp + 0x9c0]
mov r8d, 0x208
call fcn.140017c40
xor edx, edx
mov dword [rsp + 0x4c], 0x104
mov r8d, 0x208
lea rcx, [rbp + 0x7b0]
call fcn.140017c40
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x9c0]
mov dword [rsp + 0x50], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Layout_text
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x7b0]
xor r8d, r8d
lea rdx, str.Ime_File
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rbp + 0x7b0]
call fcn.14001d408
mov rbx, rax
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rsi + rcx*2], r12w
jne 0x14000f0c0
test ecx, ecx
je 0x14000f0f0
mov r8, rsi
sub r8, rbx
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000f0e8
add rax, 2
test ecx, ecx
jne 0x14000f0d4
test edx, edx
je 0x14000f1ba
mov ecx, 0xf0
call fcn.140013118
lea r8, [rsp + 0x70]
mov qword [rsp + 0x58], rax
lea rdx, [0x140032cdc]
mov rcx, rax
mov rdi, rax
call fcn.140008050
lea rcx, [rdi + 0x8c]
lea r8, [rbp + 0x9c0]
lea rdx, [0x140032cdc]
call fcn.140008050
lea rcx, [rdi + 0x28]
mov r8, rbx
lea rdx, [0x140032cdc]
call fcn.140008050
mov rbx, qword [r13 + 0x48]
lea rax, [rsp + 0x58]
mov rcx, qword [rbx + 8]
cmp rax, rcx
jae 0x14000f196
mov rax, qword [rbx]
lea rdx, [rsp + 0x58]
cmp rax, rdx
ja 0x14000f196
lea rdi, [rsp + 0x58]
sub rdi, rax
sar rdi, 3
cmp rcx, qword [rbx + 0x10]
jne 0x14000f181
mov edx, 1
mov rcx, rbx
call fcn.140011390
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14000f1b5
mov rax, qword [rbx]
mov rcx, qword [rax + rdi*8]
mov qword [rdx], rcx
jmp 0x14000f1b5
cmp rcx, qword [rbx + 0x10]
jne 0x14000f1a9
mov edx, 1
mov rcx, rbx
call fcn.140011390
mov rax, qword [rbx + 8]
test rax, rax
je 0x14000f1b5
mov qword [rax], rdi
add qword [rbx + 8], 8
cmp r14d, 0x2710
jl 0x14000ef30
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0xf38]
mov rdi, qword [rsp + 0xf30]
mov rbx, qword [rsp + 0xf28]
mov rcx, qword [rbp + 0xde0]
xor rcx, rsp
call fcn.140013270
add rsp, 0xef0
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret