Function at 0x14000a130
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 [0x14004d010]
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.14001b960
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 0x14000a3ab
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 0x14000a3ab
mov ebx, r15d
cmp dword [rsp + 0x68], ebx
jbe 0x14000a3ab
lea edi, [rax + 1]
nop
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
call fcn.14001b960
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 0x14000a372
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 0x14000a3a8
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x70]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140040008]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a3a8
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 0x14000a31e
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 0x14000a372
mov esi, edi
jmp 0x14000a372
test eax, eax
jne 0x14000a3a8
mov eax, dword [rsp + 0x60]
cmp eax, edi
jne 0x14000a336
cmp dword [r14], 3
je 0x14000a340
jmp 0x14000a372
cmp eax, 3
jne 0x14000a372
cmp dword [r14], eax
je 0x14000a372
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 0x14000a385
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000a39a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r15
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x14000a220
jmp 0x14000a3ab
mov esi, r15d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000a3c0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r15
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000a3d3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000a3e3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140019b40
add rsp, 0x2b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret