Function at 0x140019f5c
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.140035d20
sub rsp, rax
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1560], rbx
mov rax, qword [0x14005b8e0]
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.140018010
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x14001a002
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]
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 0x14001a072
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8, rsi
lea rdx, str.Failed_to_open_registry_key__s
mov ecx, ebx
call fcn.14000bb5c
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001a06b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov eax, ebx
jmp 0x14001a30a
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 0x14001a103
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8, rsi
lea rdx, str.Failed_to_examine_registry_key__s
mov ecx, ebx
call fcn.14000bb5c
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001a06b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x14001a06b
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14001a2f1
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 0x14001a331
cmp dword [rsp + 0x6c], 1
jne 0x14001a1e0
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 0x14001a2aa
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.14001b4b4
jmp 0x14001a2e5
cmp dword [rsp + 0x6c], 4
jne 0x14001a2e5
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 0x14001a2aa
mov edx, dword [rsp + 0x68]
lea rcx, [rbp - 0x20]
call fcn.140013f40
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.14001b6d0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14001a28d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
call fcn.14000f8e8
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14001a2e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
call fcn.14000f8e8
jmp 0x14001a2e5
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.14000bb5c
inc esi
cmp esi, dword [rsp + 0x70]
jb 0x14001a117
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001a308
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
xor eax, eax
mov rcx, qword [rbp + 0x1410]
xor rcx, rsp
call fcn.140034af0
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.14000bb5c
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001a06b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x14001a06b