Function at 0x140018eb8
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400548d0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x6c], 0x104
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov rdx, qword [rdx + 8]
mov rcx, qword [rdi]
call fcn.14001a2f0
mov rax, qword [rdi]
mov qword [rdi + 8], rax
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x140018f4d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
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], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
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 0x140018f88
lea rdx, str.Failed_to_open_registry_key__s
jmp 0x140018fdb
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
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 0x140018ff8
lea rdx, str.Failed_to_examine_registry_key__s
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8, rsi
mov ecx, ebx
call fcn.14000ad50
jmp 0x1400190c4
mov ebx, r15d
cmp dword [rsp + 0x68], r15d
jbe 0x1400190c1
mov dword [rsp + 0x70], 0xff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
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 0x140019104
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14000b814
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14001908e
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], r15
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rdx + 0x10], xmm1
mov qword [rbp - 0x70], r15
mov edx, 7
mov qword [rbp - 0x68], rdx
mov word [rbp - 0x80], r15w
add qword [rdi + 8], 0x20
jmp 0x14001909e
lea r8, [rbp - 0x80]
mov rcx, rdi
call fcn.14001a180
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400190b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
call fcn.14000ec50
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x140019006
mov ebx, r15d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400190db
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140031070
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop rdi
pop rsi
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.14000ad50
jmp 0x1400190c4