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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rcx
mov r12, r8
mov rdi, rdx
xor r13d, r13d
lea rcx, [rbp - 0x6e]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x70], r9d
mov dword [rsp + 0x60], r13d
mov word [rbp - 0x70], r13w
call fcn.14001dd20
lea rax, [rbp - 0x80]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov esi, r13d
mov dword [rbp - 0x74], 4
mov dword [rbp - 0x78], 8
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a850
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000a850
mov ebx, r13d
cmp dword [rsp + 0x60], ebx
jbe 0x14000a850
lea edi, [rax + 1]
lea rcx, [rbp - 0x70]
xor edx, edx
mov r8d, 0x208
call fcn.14001dd20
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x70]
mov edx, ebx
mov qword [rsp + 0x28], r13
mov dword [rbp - 0x78], 0x104
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000a815
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x78]
lea rdx, [rbp - 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a84d
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
lea rdx, [0x140036908]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a84d
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x74]
lea rdx, str.COD_Type
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x14000a7bf
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
lea rdx, str.COD_Type
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000a815
mov esi, edi
jmp 0x14000a815
test eax, eax
jne 0x14000a84d
mov eax, dword [rsp + 0x70]
cmp eax, edi
jne 0x14000a7d8
cmp dword [r12], 3
je 0x14000a7e3
jmp 0x14000a815
cmp eax, 3
jne 0x14000a815
cmp dword [r12], eax
je 0x14000a815
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
lea rdx, str.COD_Type
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove esi, edi
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000a82a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000a83f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r13
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x14000a6c1
jmp 0x14000a850
mov esi, r13d
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000a863
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r13
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000a878
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000a888
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x2b8
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret