Function at 0x14000f800
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x8d8]
sub rsp, 0x9d8
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
mov r14, rcx
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x208
call fcn.1400139c0
lea r8, str.Keyboard_LayoutPreload
lea rdx, [0x14002d698]
lea rcx, [rbp + 0x70]
call fcn.140001d50
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000001
lea rdx, [rbp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000fab4
mov qword [rsp + 0x9f8], rbx
mov qword [rsp + 0x9c8], r12
xor r12d, r12d
mov ebx, r12d
mov qword [rsp + 0x9c0], r15
mov dword [rsp + 0x4c], 1
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x280]
mov r8d, 0x208
inc ebx
call fcn.1400139c0
xor edx, edx
mov dword [rsp + 0x50], 0x104
mov r8d, 0x208
lea rcx, [rbp + 0x6a0]
call fcn.1400139c0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x50]
lea rax, [rbp + 0x6a0]
mov dword [rsp + 0x48], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x280]
lea rax, [rsp + 0x4c]
xor edx, edx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14000f93a
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + 0x280]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp ebx, 0x2710
jl 0x14000f8a0
xor edx, edx
lea rcx, [rbp + 0x490]
mov r8d, 0x208
call fcn.1400139c0
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x104
call fcn.1400139c0
mov rax, qword [r14 + 0x48]
mov r15d, 1
mov rbx, qword [rax]
cmp rbx, qword [rax + 8]
je 0x14000fa58
mov qword [rsp + 0xa00], rsi
mov qword [rsp + 0x9d0], rdi
nop word [rax + rax]
mov rsi, qword [rbx]
lea rdx, [0x14002d6a0]
mov r8d, r15d
lea rcx, [rbp + 0x490]
call fcn.140001d50
or rdi, 0xffffffffffffffff
nop dword [rax]
cmp word [rsi + rdi*2 + 2], r12w
lea rdi, [rdi + 1]
jne 0x14000f9b0
mov qword [rsp + 0x38], r12
xor edx, edx
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
mov dword [rsp + 0x28], r12d
mov r8, rsi
mov qword [rsp + 0x20], r12
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x38], r12
xor edx, edx
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
mov dword [rsp + 0x28], eax
mov r8, rsi
lea rax, [rsp + 0x60]
lea ecx, [rdx + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsp + 0x40]
lea eax, [rdi + rdi]
mov dword [rsp + 0x28], eax
lea rdx, [rbp + 0x490]
mov r9d, 1
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [r14 + 0x48]
inc r15d
add rbx, 8
cmp rbx, qword [rax + 8]
jne 0x14000f990
mov rdi, qword [rsp + 0x9d0]
mov rsi, qword [rsp + 0xa00]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.14000e630
mov rax, qword [r14 + 0x48]
mov r15, qword [rsp + 0x9c0]
mov r12, qword [rsp + 0x9c8]
mov rbx, qword [rax + 8]
cmp rbx, qword [rax]
je 0x14000faac
nop dword [rax + rax]
mov rcx, qword [rbx - 8]
add rbx, 0xfffffffffffffff8
mov edx, 8
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov rax, qword [r14 + 0x48]
cmp rbx, qword [rax]
jne 0x14000fa90
mov rbx, qword [rsp + 0x9f8]
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.1400126d0
add rsp, 0x9d8
pop r14
pop rbp
ret