Function at 0x140025d50
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x218]
sub rsp, 0x310
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rbx, rdx
mov qword [rsp + 0x40], rdx
xor edi, edi
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Keyboard_LayoutPreload
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025e5f
mov word [rbp - 0x10], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0xe]
call fcn.1400c2130
mov dword [rsp + 0x3c], 0x208
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400f53ec]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140025e54
xor edx, edx
lea r8d, [rdi + 0x10]
lea rcx, [rbp - 0x10]
call fcn.1400be988
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x64]
mov ecx, 0x804
test eax, eax
cmove eax, ecx
mov dword [rsp + 0x64], eax
movzx eax, ax
mov dword [rsp + 0x60], eax
lea rcx, [rbp - 0x10]
call fcn.1400685a0
mov eax, dword [rsp + 0x60]
cmp dword [rbp - 0xc], 6
jb 0x140025f9f
cmp dword [rsp + 0x64], eax
jne 0x140025faf
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
lea rax, str.34745C63_B2F0_4784_8B67_5E12C8701A31
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
lea r8, str.SoftwareMicrosoftCTFAssemblies
lea rdx, str._s0x_08x_s
lea rcx, [rbp - 0x50]
call fcn.140061ab0
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140025f7d
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rdi
mov word [rbp - 0x30], di
lea r8d, [rax + 7]
lea rdx, str.Default
lea rcx, [rbp - 0x30]
call fcn.140006900
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140025f51
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x30]
call fcn.1400260b0
nop
cmp qword [rbp - 0x18], 8
jb 0x140025f61
mov rcx, qword [rbp - 0x30]
call fcn.1400bd20c
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rdi
mov word [rbp - 0x30], di
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp - 0x38], 8
jb 0x140025f8d
mov rcx, qword [rbp - 0x50]
call fcn.1400bd20c
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
jmp 0x140025fdc
cmp dword [rsp + 0x64], eax
jne 0x140025faf
imul eax, eax, 0x10001
mov dword [rsp + 0x64], eax
mov r8d, 0x26
lea rdx, str.00000000_0000_0000_0000_000000000000
lea rcx, [rsp + 0x68]
call fcn.140006900
mov r8d, 0x26
lea rdx, str.00000000_0000_0000_0000_000000000000
lea rcx, [rbp - 0x78]
call fcn.140006900
mov eax, dword [rsp + 0x60]
mov dword [rbx], eax
mov eax, dword [rsp + 0x64]
mov dword [rbx + 4], eax
lea rcx, [rbx + 8]
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rdi
mov word [rcx], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x68]
call fcn.140006b90
nop
lea rcx, [rbx + 0x28]
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rdi
mov word [rcx], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x78]
call fcn.140006b90
nop
mov dword [rsp + 0x38], 1
cmp qword [rbp - 0x60], 8
jb 0x14002604a
mov rcx, qword [rbp - 0x78]
call fcn.1400bd20c
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
cmp qword [rbp - 0x80], 8
jb 0x14002606b
mov rcx, qword [rsp + 0x68]
call fcn.1400bd20c
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
mov rax, rbx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret