Function at 0x14001aa2c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1420]
mov eax, 0x1520
call fcn.140034d70
sub rsp, rax
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1560], rbx
mov rax, qword [0x14005a8e0]
xor rax, rsp
mov qword [rbp + 0x1410], rax
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x74], 0x104
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov rcx, r14
call fcn.140018fcc
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x14001aad1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rdi
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], 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 0x14001ab40
lea rdx, str.Failed_to_open_registry_key__s
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
mov r8, rsi
cmovle ebx, eax
mov ecx, ebx
call fcn.14000c770
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001ab39
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14001ad7f
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rsp + 0x74]
lea rdx, [rbp + 0x200]
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 0x14001ab9d
lea rdx, str.Failed_to_examine_registry_key__s
jmp 0x14001ab0a
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14001ad67
mov esi, r15d
mov edi, 0x80070000
mov dword [rsp + 0x78], 0xff
mov word [rbp], r15w
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
lea r8, [rbp]
mov edx, esi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14001ada6
cmp dword [rsp + 0x6c], 1
jne 0x14001ac7a
mov word [rbp + 0x410], r15w
mov dword [rsp + 0x68], 0x1000
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x410]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 2
lea r8, [rbp]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14001ad20
lea rax, [rbp]
mov qword [rbp - 0x80], rax
lea rax, [rbp + 0x410]
mov qword [rbp - 0x78], rax
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x68]
mov rcx, r14
call fcn.14001bf00
jmp 0x14001ad5b
cmp dword [rsp + 0x6c], 4
jne 0x14001ad5b
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x7c], 4
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001ad20
mov edx, dword [rsp + 0x68]
lea rcx, [rbp - 0x20]
call fcn.140015008
nop
lea rcx, [rbp]
mov qword [rbp - 0x48], rcx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x58]
mov rcx, r14
call fcn.14001c11c
nop
lea rcx, [rbp - 0x40]
call fcn.14000d240
nop
lea rcx, [rbp - 0x20]
call fcn.14000d240
jmp 0x14001ad5b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, edi
test eax, eax
mov r8d, ebx
lea rdx, str.Failed_to_read_registry_value_hr0x_08x
cmovle ecx, eax
call fcn.14000c770
inc esi
cmp esi, dword [rsp + 0x70]
jb 0x14001abb1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001ad7d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x1410]
xor rcx, rsp
call fcn.1400339f0
mov rbx, qword [rsp + 0x1560]
add rsp, 0x1520
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
lea rdx, str.Failed_to_enumerate_registry_key
mov ecx, ebx
call fcn.14000c770
jmp 0x14001ab23