Function at 0x140009960
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 [0x14004b008]
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.14001c790
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 0x140009bdb
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 0x140009bdb
mov ebx, r15d
cmp dword [rsp + 0x68], ebx
jbe 0x140009bdb
lea edi, [rax + 1]
nop
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
call fcn.14001c790
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 0x140009ba2
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 0x140009bd8
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x70]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14003e4d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009bd8
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 0x140009b4e
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 0x140009ba2
mov esi, edi
jmp 0x140009ba2
test eax, eax
jne 0x140009bd8
mov eax, dword [rsp + 0x60]
cmp eax, edi
jne 0x140009b66
cmp dword [r14], 3
je 0x140009b70
jmp 0x140009ba2
cmp eax, 3
jne 0x140009ba2
cmp dword [r14], eax
je 0x140009ba2
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 0x140009bb5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140009bca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r15
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x140009a50
jmp 0x140009bdb
mov esi, r15d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140009bf0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r15
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140009c03
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r15
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140009c13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140019260
add rsp, 0x2b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret