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

Disassembly:
push rbp
push rbx
push rsi
push r12
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x18005c188]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r12d, r12d
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x64], r12d
mov r15, rdx
mov dword [rsp + 0x68], r12d
mov rsi, rcx
mov dword [rsp + 0x60], r12d
lea rbx, [rbp - 0x80]
test rdx, rdx
je 0x180010a54
lea rax, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180010c41
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], r12
xor r9d, r9d
mov qword [rsp + 0x48], r12
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x2e0], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test eax, eax
jne 0x180010c27
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x2e8], r14
mov r14d, dword [rsp + 0x64]
inc r14d
inc eax
mov dword [rsp + 0x64], r14d
cmp r14d, eax
mov dword [rsp + 0x68], eax
cmovb r14d, eax
cmp r14d, 0x104
jbe 0x180010aff
mov ebx, r14d
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x180010aff
lea edi, [rax + 8]
jmp 0x180010c02
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r12
mov r8, rbx
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], r14d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180010b7a
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call fcn.1800109e0
mov edi, eax
test eax, eax
jne 0x180010c02
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r12
mov r8, rbx
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], r14d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180010b31
mov rcx, rsi
test r15, r15
je 0x180010b92
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x180010c02
mov qword [rsp + 0x38], r12
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], r12
mov r8, rbx
mov qword [rsp + 0x28], r12
xor edx, edx
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], r14d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180010c02
nop
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test eax, eax
jne 0x180010c02
mov qword [rsp + 0x38], r12
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], r12
mov r8, rbx
mov qword [rsp + 0x28], r12
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], r14d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x180010bc0
mov r14, qword [rsp + 0x2e8]
lea rax, [rbp - 0x80]
cmp rbx, rax
je 0x180010c27
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r15, r15
je 0x180010c37
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rdi, qword [rsp + 0x2e0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180018fa0
add rsp, 0x2a0
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret