Function at 0x1400182ac
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 [0x140051ad0]
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 0x140018325
mov rcx, rbx
call fcn.14000ab60
add rbx, 0x20
cmp rbx, r14
jne 0x14001830c
mov rbx, qword [rdi]
mov rsi, qword [rsp + 0x60]
mov qword [rdi + 8], rbx
test rsi, rsi
je 0x140018347
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
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]
test eax, eax
je 0x14001837c
lea rdx, str.Failed_to_open_registry_key__s
jmp 0x1400183c9
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]
test eax, eax
je 0x1400183e6
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.14000a164
jmp 0x14001849a
mov ebx, r12d
cmp dword [rsp + 0x68], r12d
jbe 0x140018497
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]
test eax, eax
jne 0x1400184d7
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14000abc8
nop
mov rdx, qword [rdi + 8]
cmp qword [rdi + 0x10], rdx
je 0x140018475
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 0x140018482
lea r8, [rbp - 0x80]
mov rcx, rdi
call fcn.140019488
nop
lea rcx, [rbp - 0x80]
call fcn.14000ab60
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x1400183f4
mov ebx, r12d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400184aa
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14002d710
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.14000a164
jmp 0x14001849a