Function at 0x14000d128
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
lea rax, [rbp - 0x18]
xor r9d, r9d
mov qword [r11 - 0x40], rbx
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rax
lea rax, [rbp - 0x1c]
xor r8d, r8d
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], rbx
lea rax, [rbp - 0x20]
mov qword [r11 - 0x70], rax
lea rax, [rbp + 0x38]
xor edx, edx
mov rsi, rcx
mov dword [rbp + 0x38], ebx
mov dword [rbp - 0x1c], ebx
mov qword [r11 - 0x78], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000d30f
or r8, 0xffffffffffffffff
cmp dword [rbp + 0x38], ebx
jbe 0x14000d264
mov eax, dword [rbp - 0x20]
test eax, eax
je 0x14000d264
inc eax
mov ecx, eax
mov dword [rbp - 0x20], eax
lea eax, [rbx + 2]
mul rcx
cmovo rax, r8
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov rdi, rax
test rax, rax
je 0x14000d260
cmp dword [rbp + 0x38], ebx
jbe 0x14000d255
mov ecx, dword [rbp - 0x20]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rbp - 0x14], ecx
lea r9, [rbp - 0x14]
mov rcx, rsi
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000d24e
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000d24e
mov r8, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp - 0x10]
call fcn.14000d128
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, dword [rbp + 0x38]
jb 0x14000d1d8
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
xor ebx, ebx
or r8, 0xffffffffffffffff
cmp dword [rbp - 0x1c], ebx
jbe 0x14000d30f
mov ecx, dword [rbp - 0x18]
test ecx, ecx
je 0x14000d30f
inc ecx
mov eax, 2
mov dword [rbp - 0x18], ecx
mul rcx
cmovo rax, r8
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov rdi, rax
test rax, rax
je 0x14000d30f
mov ebx, dword [rbp - 0x1c]
test ebx, ebx
je 0x14000d306
mov ecx, dword [rbp - 0x18]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rbp - 0x14], ecx
lea edx, [rbx - 1]
lea r9, [rbp - 0x14]
mov rcx, rsi
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14000d302
mov eax, dword [rbp - 0x14]
mov rcx, qword [rbp + 0x30]
cmp rax, rcx
jb 0x14000d302
mov r8, rcx
mov rcx, qword [rbp + 0x28]
mov rdx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x14000d302
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec ebx
jne 0x14000d2a1
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret