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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x448]
sub rsp, 0x520
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002c868]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r13, rcx
call fcn.14000d080
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], r14d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [0x140024290]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000be4d
mov rsi, qword [rsp + 0x48]
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], 0x100
test rsi, rsi
je 0x14000be4d
mov r12d, r14d
mov r15d, 0xe0ff
mov ebx, 0xe020
mov word [rbp + 0x210], r14w
xor edx, edx
mov r8d, 0x1fc
lea rcx, [rbp + 0x212]
call fcn.1400113b0
mov dword [rsp + 0x54], 0xff
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x54]
lea r8, [rbp + 0x210]
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc r12d
test eax, eax
jne 0x14000be42
mov qword [rsp + 0x58], r14
lea r8d, [rax + 0x10]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x210]
call fcn.1400102d4
mov edi, eax
lea rax, [rbp + 0x220]
cmp rax, qword [rsp + 0x58]
jne 0x14000bb47
mov ecx, edi
shr ecx, 0x10
cmp cx, bx
jb 0x14000bb47
cmp cx, r15w
ja 0x14000bb47
mov qword [rbp - 0x68], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [rbp + 0x210]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000be3d
mov rbx, qword [rsp + 0x40]
mov qword [rbp - 0x78], rbx
mov dword [rbp - 0x70], 0x100
mov word [rbp], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 2]
call fcn.1400113b0
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Ime_File
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000be3b
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x14000bc93
cmp eax, 2
jne 0x14000be3b
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000bcb3
test al, 1
jne 0x14000be3b
shr rax, 1
cmp word [rbp + rax*2 - 2], 0
je 0x14000bcb8
jmp 0x14000be3b
mov word [rbp], r14w
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r14
mov word [rbp - 0x58], r14w
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r14
mov word [rbp - 0x30], r14w
mov dword [rbp - 0x60], edi
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp]
lea rcx, [rbp - 0x58]
call fcn.140001d00
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.Layout_Text
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000bdf7
mov eax, dword [rsp + 0x48]
cmp eax, 1
je 0x14000bd4b
cmp eax, 2
jne 0x14000bdf7
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000bd6b
test al, 1
jne 0x14000bdf7
shr rax, 1
cmp word [rbp + rax*2 - 2], 0
je 0x14000bd70
jmp 0x14000bdf7
mov word [rbp], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp]
lea rcx, [rbp - 0x30]
call fcn.140001d00
lea rdx, [rbp - 0x60]
mov rcx, r13
call fcn.14000cfc0
nop
cmp qword [rbp - 0x18], 8
jb 0x14000bdae
mov rcx, qword [rbp - 0x30]
call fcn.14000e0cc
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r14
mov word [rbp - 0x30], r14w
cmp qword [rbp - 0x40], 8
jb 0x14000bdcf
mov rcx, qword [rbp - 0x58]
call fcn.14000e0cc
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r14
mov word [rbp - 0x58], r14w
test rbx, rbx
je 0x14000bb42
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000bb42
cmp qword [rbp - 0x18], 8
jb 0x14000be07
mov rcx, qword [rbp - 0x30]
call fcn.14000e0cc
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r14
mov word [rbp - 0x30], r14w
cmp qword [rbp - 0x40], 8
jb 0x14000be28
mov rcx, qword [rbp - 0x58]
call fcn.14000e0cc
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r14
mov word [rbp - 0x58], r14w
jmp 0x14000bde0
jmp 0x14000bde0
jmp 0x14000bb47
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000be4d
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14000e0f0
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret