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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x7c0
mov rax, qword [0x140064270]
xor rax, rsp
mov qword [rsp + 0x7b0], rax
mov bpl, r9b
mov r12, r8
mov r14, rdx
mov r13, rcx
call fcn.140002008
lea rax, [rsp + 0x58]
xor ebx, ebx
mov edi, 0xf003f
lea rdx, str.Keyboard_Layout
xor r8d, r8d
mov rcx, r14
mov r9d, edi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x14000246f
cmp bpl, bl
je 0x1400026df
lea rdx, str.USERKeyboard_Layout
lea rcx, [0x140058718]
mov r8, r12
call fcn.140003328
jmp 0x1400026df
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, str.preload
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x1400024b9
cmp bpl, bl
je 0x1400026d4
lea rdx, str.USERpreload
lea rcx, [0x140058718]
mov r8, r12
call fcn.140003328
jmp 0x1400026d4
lea rax, [rsp + 0xa0]
mov ecx, 0x64
mov word [rax], bx
add rax, 0x12
sub rcx, 1
jne 0x1400024c6
mov edi, ebx
mov esi, ebx
lea r15d, [rcx + 9]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov edx, esi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x68], 0xa
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x64], 0x12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x140002574
xor edx, edx
lea rcx, [rsp + 0x88]
lea r8d, [rdx + 0xa]
call fcn.140010280
dec eax
cmp eax, 0x62
ja 0x140002567
cdqe
lea r8, [rsp + 0x70]
mov rdx, r15
lea rcx, [rax + rax*8]
lea rcx, [rsp + rcx*2 + 0xa0]
call fcn.140010c78
inc edi
inc esi
cmp esi, 0x64
jl 0x1400024db
jmp 0x14000257a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, str._08X
lea rcx, [rsp + 0x70]
mov r9d, r13d
mov rdx, r15
call fcn.14000fd9c
cmp edi, ebx
mov esi, ebx
jle 0x1400025c5
movsxd rax, esi
lea rdx, [rsp + 0x70]
lea rcx, [rax + rax*8]
lea rcx, [rsp + rcx*2 + 0xa0]
call fcn.14000ffa4
cmp eax, ebx
je 0x1400025c5
inc esi
cmp esi, edi
jl 0x1400025a2
cmp esi, edi
jne 0x1400026d4
movsxd rax, edi
lea r8, [rsp + 0x70]
mov rdx, r15
lea rcx, [rax + rax*8]
lea rcx, [rsp + rcx*2 + 0xa0]
call fcn.140010c78
mov rcx, qword [rsp + 0x58]
lea rdx, str.preload
inc edi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
lea rdx, str.Preload
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x14000265a
cmp bpl, bl
je 0x1400026c9
lea rdx, str._sKeyboard_LayoutPreload
lea rcx, [0x140058910]
mov r8, r12
call fcn.140003328
jmp 0x1400026c9
cmp edi, ebx
jle 0x1400026b5
lea rsi, [rsp + 0xa0]
inc ebx
lea r8, [0x14004a664]
lea rcx, [rsp + 0x88]
mov r9d, ebx
mov edx, 0xa
call fcn.14000fd9c
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x88]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsi, 0x12
cmp ebx, edi
jl 0x140002666
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x7b0]
xor rcx, rsp
call fcn.14000fd20
mov rbx, qword [rsp + 0x818]
add rsp, 0x7c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret