Function at 0x14001c7a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x428]
sub rsp, 0x510
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rsi, rcx
cmp qword [rcx + 0x10], 0
jne 0x14001c7e8
xor eax, eax
jmp 0x14001cac2
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001c7e1
xor ebx, ebx
mov r14d, ebx
mov word [rbp - 0x20], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x1e]
call fcn.1400c2130
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001cab5
nop word [rax + rax]
mov dword [rsp + 0x50], 0x208
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
mov r8d, 8
lea rdx, str.Ime_File
lea rcx, [rbp - 0x48]
call fcn.140006900
nop
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rbx
mov word [rbp - 0x68], bx
cmp word [rbp - 0x20], 0
jne 0x14001c8cb
mov r8, rbx
jmp 0x14001c8de
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14001c8d3
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x68]
call fcn.140006900
nop
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001c95d
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp - 0x50], 8
jb 0x14001c96d
mov rcx, qword [rbp - 0x68]
call fcn.1400bd20c
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rbx
mov word [rbp - 0x68], bx
cmp qword [rbp - 0x30], 8
jb 0x14001c98d
mov rcx, qword [rbp - 0x48]
call fcn.1400bd20c
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
cmp word [rbp + 0x1f0], 0
jne 0x14001c9c5
mov r8, rbx
jmp 0x14001c9db
lea rax, [rbp + 0x1f0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14001c9d0
lea rdx, [rbp + 0x1f0]
lea rcx, [rsp + 0x78]
call fcn.140006900
nop
mov rcx, qword [rbp - 0x78]
mov qword [rsp + 0x68], rcx
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
cmp rax, rcx
cmovae r8, rdx
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
cmp qword [rsi + 0x18], 8
jb 0x14001ca2c
mov rcx, qword [rsi]
jmp 0x14001ca2f
mov rcx, rsi
mov r8, qword [r8]
call fcn.140061440
test eax, eax
sete dil
cmp qword [rbp - 0x70], 8
jb 0x14001ca4e
mov rcx, qword [rsp + 0x78]
call fcn.1400bd20c
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
test dil, dil
jne 0x14001caa4
inc r14d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x20]
mov edx, r14d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14001c870
jmp 0x14001cab5
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rbp - 0x20]
call fcn.1400be988
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret