Function at 0x14000ead0
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 [0x1400441a0]
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.140014200
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.140014200
lea r8, str.Keyboard_LayoutPreload
lea rdx, [0x14002e6a8]
lea rcx, [rbp + 0x180]
call fcn.140001d50
lea r8, str.SystemCurrentControlSetControlKeyboard_Layouts_
lea rdx, [0x14002e6a8]
lea rcx, [rbp + 0x390]
call fcn.140001d50
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 0x14000ee5a
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.140014200
xor edx, edx
mov dword [rsp + 0x40], 1
mov r8d, 0x208
mov dword [rsp + 0x48], 0x104
lea rcx, [rsp + 0x70]
call fcn.140014200
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 0x14000ee37
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x208
inc r15d
call fcn.140014200
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x390]
lea rdx, str._s_s
lea rcx, [rbp + 0x5a0]
call fcn.140001d50
lea r8, [rsp + 0x60]
mov rcx, 0xffffffff80000002
lea rdx, [rbp + 0x5a0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000ee2a
xor edx, edx
lea rcx, [rbp + 0x9c0]
mov r8d, 0x208
call fcn.140014200
xor edx, edx
mov dword [rsp + 0x4c], 0x104
mov r8d, 0x208
lea rcx, [rbp + 0x7b0]
call fcn.140014200
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.140019784
mov rbx, rax
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rsi + rcx*2], r12w
jne 0x14000ed30
test ecx, ecx
je 0x14000ed60
mov r8, rsi
sub r8, rbx
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ed58
add rax, 2
test ecx, ecx
jne 0x14000ed44
test edx, edx
je 0x14000ee2a
mov ecx, 0xf0
call fcn.140012ee4
lea r8, [rsp + 0x70]
mov qword [rsp + 0x58], rax
lea rdx, [0x14002e6a8]
mov rcx, rax
mov rdi, rax
call fcn.140001d50
lea rcx, [rdi + 0x8c]
lea r8, [rbp + 0x9c0]
lea rdx, [0x14002e6a8]
call fcn.140001d50
lea rcx, [rdi + 0x28]
mov r8, rbx
lea rdx, [0x14002e6a8]
call fcn.140001d50
mov rbx, qword [r13 + 0x48]
lea rax, [rsp + 0x58]
mov rcx, qword [rbx + 8]
cmp rax, rcx
jae 0x14000ee06
mov rax, qword [rbx]
lea rdx, [rsp + 0x58]
cmp rax, rdx
ja 0x14000ee06
lea rdi, [rsp + 0x58]
sub rdi, rax
sar rdi, 3
cmp rcx, qword [rbx + 0x10]
jne 0x14000edf1
mov edx, 1
mov rcx, rbx
call fcn.140010c90
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14000ee25
mov rax, qword [rbx]
mov rcx, qword [rax + rdi*8]
mov qword [rdx], rcx
jmp 0x14000ee25
cmp rcx, qword [rbx + 0x10]
jne 0x14000ee19
mov edx, 1
mov rcx, rbx
call fcn.140010c90
mov rax, qword [rbx + 8]
test rax, rax
je 0x14000ee25
mov qword [rax], rdi
add qword [rbx + 8], 8
cmp r14d, 0x2710
jl 0x14000eba0
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.140012ec0
add rsp, 0xef0
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret