Function at 0x1400099a0
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 [0x140053008]
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.14001d250
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 0x140009c1b
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 0x140009c1b
mov ebx, r15d
cmp dword [rsp + 0x68], ebx
jbe 0x140009c1b
lea edi, [rax + 1]
nop
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
call fcn.14001d250
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 0x140009be2
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 0x140009c18
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x70]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400457c8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009c18
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 0x140009b8e
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 0x140009be2
mov esi, edi
jmp 0x140009be2
test eax, eax
jne 0x140009c18
mov eax, dword [rsp + 0x60]
cmp eax, edi
jne 0x140009ba6
cmp dword [r14], 3
je 0x140009bb0
jmp 0x140009be2
cmp eax, 3
jne 0x140009be2
cmp dword [r14], eax
je 0x140009be2
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 0x140009bf5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140009c0a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r15
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x140009a90
jmp 0x140009c1b
mov esi, r15d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140009c30
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r15
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140009c43
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140009c53
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x2b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret