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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xb0
mov rax, rdx
xor edx, edx
lea rcx, [rbp + 0x7f]
mov qword [r11 - 0x60], rdx
mov qword [r11 - 0x68], rdx
mov qword [r11 - 0x70], rcx
lea rcx, [rbp + 0x23]
xor r9d, r9d
xor r8d, r8d
mov qword [r11 - 0x78], rcx
lea rcx, [rbp + 0x1f]
mov qword [r11 - 0x80], rcx
mov qword [rsp + 0x30], rdx
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x13]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000180c
mov ecx, dword [rbp + 0x77]
mov eax, dword [rbp + 0x23]
mov qword [rsp + 0xa8], rbx
inc eax
inc ecx
mov qword [rsp + 0xa0], rsi
cmp eax, ecx
mov dword [rbp + 0x23], eax
mov qword [rsp + 0x98], rdi
cmova ecx, eax
mov eax, 2
mov dword [rbp + 0x77], ecx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140002794
mov rbx, rax
mov qword [rbp + 7], rax
test rax, rax
jne 0x14000170a
mov ebx, 8
mov eax, ebx
jmp 0x1400017f4
mov ecx, dword [rbp + 0x7f]
test ecx, ecx
je 0x140001747
call fcn.140002794
mov rsi, rax
test rax, rax
jne 0x140001740
lea ebx, [rax + 8]
mov rcx, qword [rbp + 7]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_]
test rsi, rsi
je 0x140001739
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_]
mov eax, ebx
jmp 0x1400017f4
mov ecx, dword [rbp + 0x7f]
xor edx, edx
jmp 0x14000174b
xor edx, edx
mov esi, edx
cmp dword [rbp + 0x1f], 0
mov edi, edx
jbe 0x1400017ce
mov eax, dword [rbp + 0x77]
mov dword [rbp + 0x17], ecx
mov rcx, qword [rbp + 0x6f]
mov dword [rbp + 0xf], eax
lea rax, [rbp + 0x17]
lea r9, [rbp + 0xf]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x27]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, edi
mov r8, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
jne 0x140001721
mov eax, dword [rbp + 0x17]
mov r9d, dword [rbp + 0x27]
mov rdx, qword [rbp + 7]
mov rcx, qword [rbp + 0x67]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x140001721
mov rbx, qword [rbp + 7]
inc edi
xor edx, edx
cmp edi, dword [rbp + 0x1f]
jae 0x1400017ce
mov ecx, dword [rbp + 0x7f]
jmp 0x140001753
test rsi, rsi
je 0x1400017e0
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_]
xor edx, edx
mov esi, edx
cmp dword [rbp + 0x13], 0
mov edi, edx
ja 0x140001824
mov rcx, qword [rbp + 7]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_]
xor eax, eax
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x98]
add rsp, 0xb0
pop rbp
ret
mov rbx, qword [rbp + 7]
mov eax, dword [rbp + 0x77]
mov rcx, qword [rbp + 0x6f]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0xf]
mov edx, edi
mov r8, rbx
mov dword [rbp + 0xf], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rbp + 0x6f]
lea r11, [rbp + 0x17]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140001721
mov rcx, qword [rbp + 0x67]
xor edx, edx
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edx
mov rdx, qword [rbp + 7]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140001721
mov rdx, qword [rbp + 0x17]
mov rcx, qword [rbp + 0x2f]
call fcn.140001640
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov edx, ebx
cmp edi, dword [rbp + 0x13]
jb 0x140001820
jmp 0x1400017e8