Function at 0x14005a440
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rdi, r8
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
xor r8d, r8d
lea rdx, [0x140077fa0]
call fcn.140005ae0
mov dword [rsp + 0x40], 1
lea rdx, [0x1400c90d0]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x1400c90d0]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005a7db
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], esi
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14005a4f6
mov rdx, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a7c6
mov eax, dword [rsp + 0x34]
cmp eax, 3
jne 0x14005a664
mov edx, dword [rsp + 0x30]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x50]
call fcn.14000ca70
nop
cmp qword [rdi + 0x18], 8
jb 0x14005a554
mov rdi, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a61e
mov ecx, dword [rsp + 0x30]
shr rcx, 1
mov r8, qword [rbx + 0x10]
mov rdi, qword [rbx + 0x18]
cmp rcx, r8
ja 0x14005a5ae
mov rax, rbx
cmp rdi, 8
jb 0x14005a5a4
mov rax, qword [rbx]
mov qword [rbx + 0x10], rcx
mov word [rax + rcx*2], si
jmp 0x14005a5fa
mov rdx, rcx
sub rdx, r8
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14005a5ec
mov qword [rbx + 0x10], rcx
mov r9, rbx
cmp rdi, 8
jb 0x14005a5cf
mov r9, qword [rbx]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14005a5e1
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x14005a5fa
lfence
mov r9, rdx
mov rcx, rbx
call fcn.140031800
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
sub r9, r8
mov edx, dword [rsp + 0x30]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005a618
mov rcx, qword [rbx]
call fcn.14001a070
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005a7c6
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a76e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a76e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp eax, 1
jne 0x14005a6d1
mov dword [rsp + 0x44], 0x100
cmp qword [rdi + 0x18], 8
jb 0x14005a67b
mov rdi, qword [rdi]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a7c6
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14005a6b5
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140005ae0
jmp 0x14005a7c6
cmp eax, 4
jne 0x14005a775
cmp qword [rdi + 0x18], 8
jb 0x14005a6e4
mov rdi, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a7c6
mov edx, dword [rsp + 0x48]
lea rcx, [rbp - 0x50]
call fcn.14001a130
mov rdx, rax
mov rcx, rbx
call fcn.140009150
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14005a7c6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a76e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a76e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061c30
jmp 0x14005a7c6
call qword [sym.imp.Logging.dll_public:_static_class_Hp::Bridge::Logging::TraceLogger____ptr64___cdecl_Hp::Bridge::Logging::LogManager::GetLogger_void_]
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [0x1400c90d0]
movaps xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x1400c90e0]
movaps xmmword [rbp - 0x60], xmm1
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x70]
lea r8, str.Hp::Bridge::Server::ConsentStore::ReadRegistry
lea rdx, str._S___Checking_consent_failed_due_to_unsupported_registry_type__S____S
mov rcx, rax
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogError_wchar_t_const____ptr64____ptr64]
mov rcx, qword [rsp + 0x38]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14005a7db
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140061c10
mov rbx, qword [rsp + 0x208]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret