Function at 0x180001570
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1800a6040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, r9
mov rax, r8
mov rbx, rcx
mov qword [rbp - 0x38], rcx
xor esi, esi
cmp qword [r8 + 0x18], 0xf
jbe 0x1800015a6
mov rax, qword [r8]
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180001614
lea rdx, str.Error_opening_registry_key.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180001cc0
lea rdx, [0x180001ea0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x180085bb0]
mov rcx, rbx
call fcn.1800017e0
jmp 0x1800017be
mov dword [rbp - 0x3c], esi
mov dword [rbp - 0x30], esi
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x180001627
mov rdx, qword [rdi]
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x30]
xor r8d, r8d
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x18000167c
lea rdx, str.Error_querying_registry_value_size.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180001cc0
lea rdx, [0x180001ea0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1800015ef
cmp dword [rbp - 0x30], 1
je 0x18000168b
lea rdx, str.Unexpected_registry_value_type.
jmp 0x180001651
mov edx, dword [rbp - 0x3c]
lea rcx, [rbp - 0x28]
call fcn.180001bb0
nop
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
cmp qword [rdi + 0x18], 0xf
jbe 0x1800016b0
mov rdi, qword [rdi]
lea rcx, [rbp - 0x3c]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x18000176b
lea rdx, str.Error_querying_registry_value.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180001cc0
lea rdx, [0x180001ea0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x180085bb0]
mov rcx, rbx
call fcn.1800017e0
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x1800017be
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001764
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180001764
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180064e44
jmp 0x1800017be
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1800017a5
lea rax, [rbp - 0x28]
mov rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x10]
cmp r8, 0xf
cmova rax, rdx
dec rcx
cmp byte [rcx + rax], 0
jne 0x1800017a5
mov qword [rbp - 0x18], rcx
lea rax, [rbp - 0x28]
cmp r8, 0xf
cmova rax, rdx
mov byte [rax + rcx], 0
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180064a70
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret