Function at 0x140005c60
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 [0x14007d150]
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.1400064e0
mov rbx, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140005cb6
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 0x140005eae
cmp dword [rsp + 0x34], 4
jne 0x140005f42
mov ecx, dword [rsp + 0x30]
call fcn.140056cdc
mov r14, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140005d08
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 0x140005e1e
mov ebx, dword [r14]
call fcn.140056818
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x140005d8b
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140005d86
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005e10
mov rcx, r8
call fcn.140056818
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140005dd6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140005dd1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005e17
mov rcx, r8
call fcn.140056818
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.140056790
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.140056818
mov edx, r15d
lea rcx, [rbp - 0x38]
call fcn.14000d2d0
mov rbx, rax
mov r8, rsi
lea rdx, str.Error_while_reading_registry_value
lea rcx, [rbp - 0x58]
call fcn.140004070
nop
lea r8, [0x140065720]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140006b70
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140006c00
nop
lea r8, [0x140065718]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140006b70
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140006be0
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400014f0
lea rdx, [0x140079988]
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.14000d2d0
mov rbx, rax
mov r8, rsi
lea rdx, str.Error_while_reading_registry_value
lea rcx, [rbp + 8]
call fcn.140004070
nop
lea r8, [0x140065720]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140006b70
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140006c00
nop
lea r8, [0x140065718]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140006b70
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140006be0
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400014f0
lea rdx, [0x140079988]
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.140004070
nop
lea r8, [0x140065720]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140006b70
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140006c00
nop
lea r8, str._has_wrong_type
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140006b70
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400014f0
lea rdx, [0x140079988]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3