Function at 0x140009230
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 [0x14003e468]
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.14001be30
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 0x1400094b0
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 0x1400094b0
mov ebx, r13d
cmp dword [rsp + 0x60], ebx
jbe 0x1400094b0
lea edi, [rax + 1]
lea rcx, [rbp - 0x70]
xor edx, edx
mov r8d, 0x208
call fcn.14001be30
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 0x140009475
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 0x1400094ad
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
lea rdx, [0x140032a78]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400094ad
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 0x14000941f
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 0x140009475
mov esi, edi
jmp 0x140009475
test eax, eax
jne 0x1400094ad
mov eax, dword [rsp + 0x70]
cmp eax, edi
jne 0x140009438
cmp dword [r12], 3
je 0x140009443
jmp 0x140009475
cmp eax, 3
jne 0x140009475
cmp dword [r12], eax
je 0x140009475
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 0x14000948a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000949f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r13
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140009321
jmp 0x1400094b0
mov esi, r13d
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400094c3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r13
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400094d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400094e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x2b8
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret