Function at 0x140017fc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140090180]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
mov edx, 0x101
call fcn.140018320
mov rbx, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140018016
mov rdx, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r12d, r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, eax
test eax, eax
jne 0x14001820e
cmp dword [rsp + 0x34], 4
jne 0x1400182a2
mov ecx, dword [rsp + 0x30]
call fcn.140065314
mov r14, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140018068
mov rdx, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 1
mov rcx, r14
test r15d, r15d
jne 0x14001817e
mov ebx, dword [r14]
call fcn.140064fe8
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 7
jbe 0x1400180eb
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400180e6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140018170
mov rcx, r8
call fcn.140064fe8
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140018136
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140018131
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140018177
mov rcx, r8
call fcn.140064fe8
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140064f60
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140064fe8
mov edx, r15d
lea rcx, [rbp - 0x38]
call fcn.1400167f0
mov rbx, rax
mov r8, rsi
lea rdx, str.Error_while_reading_registry_value
lea rcx, [rbp - 0x58]
call fcn.140018930
nop
lea r8, [0x140076740]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14000d7a0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000d810
nop
lea r8, [0x140076738]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14000d7a0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1400189a0
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140017b10
lea rdx, [0x14008c7a0]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, r14d
lea rcx, [rbp - 0x18]
call fcn.1400167f0
mov rbx, rax
mov r8, rsi
lea rdx, str.Error_while_reading_registry_value
lea rcx, [rbp + 8]
call fcn.140018930
nop
lea r8, [0x140076740]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000d7a0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14000d810
nop
lea r8, [0x140076738]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000d7a0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1400189a0
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140017b10
lea rdx, [0x14008c7a0]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rsi
lea rdx, str.Registry_value
lea rcx, [rbp - 0x38]
call fcn.140018930
nop
lea r8, [0x140076740]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000d7a0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14000d810
nop
lea r8, str._has_wrong_type
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000d7a0
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140017b10
lea rdx, [0x14008c7a0]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3