Function at 0x180142660
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x180212e80]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
xor r13d, r13d
mov qword [rdx + 0x10], r13
mov rax, rdx
cmp qword [rdx + 0x18], 7
jbe 0x1801426a3
mov rax, qword [rdx]
mov word [rax], r13w
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
movdqa xmm1, xmmword [0x1801bff50]
movdqu xmmword [rbp - 9], xmm1
mov word [rbp - 0x19], r13w
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x21]
call fcn.180141d60
call fcn.18013e1a0
test al, al
je 0x18014274a
mov r9, qword [rbp - 0x29]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 7]
call fcn.180143800
nop
cmp qword [rax + 0x18], 7
jbe 0x1801426fa
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.Looking_for_architecture_specific_registry_value_in__s.
call fcn.18013e310
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x18014274a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180142745
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801429d3
call fcn.180145bcc
mov qword [rbp - 0x31], r13
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rdx, qword [rbp - 0x19]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1801427b3
cmp eax, 2
jne 0x1801427a0
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rdx, qword [rbp - 0x19]
lea rcx, str.The_registry_key___s__does_not_exist.
call fcn.18013e310
jmp 0x180142962
mov edx, eax
lea rcx, str.Failed_to_open_the_registry_key._Error_code:_0x_X
call fcn.18013e310
jmp 0x180142962
mov dword [rbp - 0x39], r13d
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, 2
mov r8, qword [rbp - 0x29]
xor edx, edx
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x18014294a
mov ecx, dword [rbp - 0x39]
test ecx, ecx
je 0x18014294a
mov edi, ecx
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r13
mov rbx, r13
mov rsi, r13
cmp rcx, 2
jb 0x180142872
and rdi, 0xfffffffffffffffe
je 0x180142850
cmp rdi, 0x1000
jb 0x180142845
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1801429d9
call fcn.180145b90
test rax, rax
je 0x1801429df
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x180142850
mov rcx, rdi
call fcn.180145b90
mov rbx, rax
mov r15, rbx
mov qword [rbp + 7], rbx
lea rsi, [rdi + rbx]
mov qword [rbp + 0x17], rsi
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xf], rsi
jmp 0x180142876
mov r15, qword [rbp + 7]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
mov r9d, 2
mov r8, qword [rbp - 0x29]
xor edx, edx
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1801428c0
mov edx, eax
lea rcx, str.Failed_to_get_the_value_of_the_install_location_registry_value._Error_code:_0x_X
call fcn.18013e310
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor dil, dil
jmp 0x18014290c
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x1801428d0
mov rdx, rbx
mov rcx, r14
call fcn.18013f360
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [r14 + 0x18], 7
jbe 0x1801428fa
mov r14, qword [r14]
mov rdx, r14
lea rcx, str.Found_registered_install_location__s.
call fcn.18013e310
mov dil, 1
test rbx, rbx
je 0x180142965
sub rsi, rbx
sar rsi, 1
lea rdx, [rsi + rsi]
cmp rdx, 0x1000
jb 0x180142940
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1801429df
mov rbx, rcx
mov rcx, rbx
call fcn.180145bcc
jmp 0x180142965
mov edx, eax
lea rcx, str.Failed_to_get_the_size_of_the_install_location_registry_value_or_its_empty._Error_code:_0x_X
call fcn.18013e310
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor dil, dil
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x1801429a1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18014299c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801429cd
call fcn.180145bcc
movzx eax, dil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1801458d0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call fcn.18013d550
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3