Function at 0x1400166d0
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 [0x140050900]
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 0x140016749
mov rcx, rbx
call fcn.14000a110
add rbx, 0x20
cmp rbx, r14
jne 0x140016730
mov rbx, qword [rdi]
mov rsi, qword [rsp + 0x60]
mov qword [rdi + 8], rbx
test rsi, rsi
je 0x14001676b
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 0x1400167a0
lea rdx, str.Failed_to_open_registry_key__s
jmp 0x1400167ed
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 0x14001680a
lea rdx, str.Failed_to_examine_registry_key__s
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
mov r8, r15
cmovle ebx, eax
mov ecx, ebx
call fcn.140009844
jmp 0x1400168be
mov ebx, r12d
cmp dword [rsp + 0x68], r12d
jbe 0x1400168bb
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 0x1400168fb
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14000a178
nop
mov rdx, qword [rdi + 8]
cmp qword [rdi + 0x10], rdx
je 0x140016899
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 0x1400168a6
lea r8, [rbp - 0x80]
mov rcx, rdi
call fcn.140017880
nop
lea rcx, [rbp - 0x80]
call fcn.14000a110
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x140016818
mov ebx, r12d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400168ce
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.14002c310
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.140009844
jmp 0x1400168be