Function at 0x14001a7ac
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14005a8e0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rdx
mov r15, rcx
mov dword [rsp + 0x6c], 0x104
xor r12d, r12d
mov esi, r12d
mov qword [rsp + 0x60], r12
mov r14, qword [rdx + 8]
mov rbx, qword [rdx]
cmp rbx, r14
je 0x14001a822
mov rcx, rbx
call fcn.14000d240
add rbx, 0x20
cmp rbx, r14
jne 0x14001a80c
mov rsi, qword [rsp + 0x60]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
test rsi, rsi
je 0x14001a859
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14001a894
lea rdx, str.Failed_to_open_registry_key__s
jmp 0x14001a8e7
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x6c]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
je 0x14001a904
lea rdx, str.Failed_to_examine_registry_key__s
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8, r15
mov ecx, ebx
call fcn.14000c770
jmp 0x14001a9c1
mov ebx, r12d
cmp dword [rsp + 0x68], r12d
jbe 0x14001a9be
mov dword [rsp + 0x70], 0xff
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x60]
mov edx, ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001aa05
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14000d2b0
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14001a99c
mov qword [rdx], r12
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], r12
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rdx + 0x10], xmm1
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r12w
add qword [rdi + 8], 0x20
jmp 0x14001a9a9
lea r8, [rbp - 0x80]
mov rcx, rdi
call fcn.14001bb80
nop
lea rcx, [rbp - 0x80]
call fcn.14000d240
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x14001a912
mov ebx, r12d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001a9d7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400339f0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea rdx, str.Failed_to_enumerate_registry_key
mov ecx, ebx
call fcn.14000c770
jmp 0x14001a9c1