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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r14, r8
mov dword [rsp + 0x60], r9d
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
lea rcx, [rbp - 0x70]
xor edx, edx
mov dword [rsp + 0x68], r15d
mov r8d, 0x208
call fcn.14001c4c0
lea rax, [rsp + 0x78]
mov dword [rbp - 0x74], 4
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x78], 8
mov rdx, rdi
mov qword [rsp + 0x70], r15
mov rcx, rbx
mov qword [rbp - 0x80], r15
mov esi, r15d
mov qword [rsp + 0x78], r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a56b
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], r15
xor r9d, r9d
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], r15
xor edx, edx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000a56b
mov ebx, r15d
cmp dword [rsp + 0x68], ebx
jbe 0x14000a56b
lea edi, [rax + 1]
nop
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
call fcn.14001c4c0
mov rcx, qword [rsp + 0x78]
lea r9, [rbp - 0x78]
mov qword [rsp + 0x38], r15
lea r8, [rbp - 0x70]
mov qword [rsp + 0x30], r15
mov edx, ebx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rbp - 0x78], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000a532
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x80]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a568
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x70]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140040f48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a568
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rdx, str.COD_Type
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x14000a4de
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.COD_Type
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000a532
mov esi, edi
jmp 0x14000a532
test eax, eax
jne 0x14000a568
mov eax, dword [rsp + 0x60]
cmp eax, edi
jne 0x14000a4f6
cmp dword [r14], 3
je 0x14000a500
jmp 0x14000a532
cmp eax, 3
jne 0x14000a532
cmp dword [r14], eax
je 0x14000a532
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.COD_Type
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove esi, edi
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000a545
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000a55a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r15
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x14000a3e0
jmp 0x14000a56b
mov esi, r15d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000a580
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r15
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000a593
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000a5a3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14001a550
add rsp, 0x2b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret