Function at 0x140061140
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor r14d, r14d
mov dword [rsp + 0x48], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
xor r8d, r8d
lea rdx, [0x14009be68]
call fcn.140006800
mov dword [rsp + 0x48], 1
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400611af
mov rdx, qword [rsi]
lea rax, [rsp + 0x40]
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 0x1400615ce
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x38], r14d
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400611ee
mov rdx, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400615b9
mov eax, dword [rsp + 0x38]
cmp eax, 3
jne 0x1400613b6
mov edx, dword [rsp + 0x30]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r14
lea rcx, [rbp - 0x80]
call fcn.14000d970
nop
cmp qword [rdi + 0x18], 7
jbe 0x140061249
mov rdi, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140061372
mov ecx, dword [rsp + 0x30]
shr rcx, 1
mov r8, qword [rbx + 0x10]
cmp rcx, r8
ja 0x1400612a0
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140061295
mov rax, qword [rbx]
mov qword [rbx + 0x10], rcx
mov word [rax + rcx*2], r14w
jmp 0x1400612f1
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbx + 0x18]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x1400612e3
mov qword [rbx + 0x10], rcx
mov r9, rbx
cmp rdi, 7
jbe 0x1400612c5
mov r9, qword [rbx]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x1400612d8
movzx eax, r14w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r14w
jmp 0x1400612f1
lfence
mov r9, rdx
mov rcx, rbx
call fcn.1400371f0
mov r14, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x78]
sub rdi, r14
mov esi, dword [rsp + 0x30]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14006130d
mov rcx, qword [rbx]
test rdi, rdi
je 0x140061372
test rcx, rcx
jne 0x140061325
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x14006136b
test r14, r14
je 0x14006133d
cmp rsi, rdi
jb 0x14006133d
mov r8, rdi
mov rdx, qword [rbp - 0x80]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140061372
mov r8, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test r14, r14
jne 0x14006135a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x14006136b
cmp rsi, rdi
jae 0x140061372
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400615b9
mov rdx, qword [rbp - 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061567
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140061567
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp eax, 1
jne 0x140061464
mov dword [rsp + 0x34], 0x100
cmp qword [rdi + 0x18], 7
jbe 0x1400613d1
mov rdi, qword [rdi]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400615b9
lea rax, [rbp - 0x60]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140061410
mov rax, qword [rbx + 0x18]
cmp rdx, rax
ja 0x140061450
mov rsi, rbx
cmp rax, 7
jbe 0x14006142f
mov rsi, qword [rbx]
mov qword [rbx + 0x10], rdx
lea rdi, [rdx + rdx]
mov r8, rdi
lea rdx, [rbp - 0x60]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi], r14w
jmp 0x1400615b9
lfence
lea r9, [rbp - 0x60]
mov rcx, rbx
call fcn.140005f50
jmp 0x1400615b9
cmp eax, 4
jne 0x14006156e
cmp qword [rdi + 0x18], 7
jbe 0x140061477
mov rdi, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400615b9
mov edx, dword [rsp + 0x34]
lea rcx, [rbp - 0x80]
call fcn.14001cb80
mov rdi, rax
cmp rbx, rax
je 0x140061525
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1400614f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400614f2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140061560
mov rcx, r8
call fcn.1400688dc
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1400615b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061567
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140061567
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400688dc
jmp 0x1400615b9
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 [rbp - 0x80], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x70], xmm1
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x60]
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 + 0x40]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400615ce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140068890
add rsp, 0x1b0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret