Function at 0x140017fc8
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 [0x140055910]
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 0x140018041
mov rcx, rbx
call fcn.14000b9a0
add rbx, 0x20
cmp rbx, r14
jne 0x140018028
mov rbx, qword [rdi]
mov rsi, qword [rsp + 0x60]
mov qword [rdi + 8], rbx
test rsi, rsi
je 0x140018075
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 0x1400180b0
lea rdx, str.Failed_to_open_registry_key__s
jmp 0x140018103
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 0x140018120
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.14000b12c
jmp 0x1400181da
mov ebx, r12d
cmp dword [rsp + 0x68], r12d
jbe 0x1400181d7
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 0x14001821e
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14000ba10
nop
mov rdx, qword [rdi + 8]
cmp qword [rdi + 0x10], rdx
je 0x1400181b5
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 0x1400181c2
lea r8, [rbp - 0x80]
mov rcx, rdi
call fcn.1400194a0
nop
lea rcx, [rbp - 0x80]
call fcn.14000b9a0
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x14001812e
mov ebx, r12d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400181f0
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.14002fd10
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.14000b12c
jmp 0x1400181da