Function at 0x140042870
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400b1030]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r15, rdx
mov rsi, rcx
mov qword [rbp - 0x58], 0xf
xor r12d, r12d
mov qword [rbp - 0x60], r12
mov byte [rbp - 0x70], r12b
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r12
mov byte [rsp + 0x70], r12b
mov qword [rbp - 0x38], 0xf
mov qword [rbp - 0x40], r12
mov byte [rbp - 0x50], r12b
lea r9d, [r12 + 1]
xor r8d, r8d
call fcn.140043270
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140042ff9
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140036580
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400289b0
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x140042979
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x140042974
test cl, 0x1f
je 0x140042944
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140042954
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140042964
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140042971
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140056588
lea rcx, [rbp - 0x50]
call fcn.140041b10
mov r14, rax
nop word [rax + rax]
lea rbx, [rdi + 1]
mov r9d, 1
mov r8, rbx
mov rcx, rsi
call fcn.140043270
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140042b06
cmp rbx, rax
jae 0x140042b06
mov eax, r12d
cmp qword [rbp - 0x60], rax
seta al
mov r9, rdi
mov r8, rbx
lea rdx, [rbp - 0x30]
mov rcx, rsi
sub r9, rbx
test eax, eax
je 0x140042aaf
call fcn.140036580
nop
mov r8, rax
lea rcx, [rsp + 0x50]
call fcn.140043460
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140029810
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x140042a55
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x140042a50
test cl, 0x1f
jne 0x140042ae3
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140042adc
sub rcx, rax
cmp rcx, 8
jb 0x140042ad5
cmp rcx, 0x27
ja 0x140042ace
mov rcx, rax
call fcn.140056588
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r12
mov byte [rsp + 0x50], 0
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x140042990
mov rcx, qword [rbp - 0x30]
inc rax
cmp rax, 0x1000
jb 0x140042aa5
test cl, 0x1f
jne 0x140042aff
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140042af8
sub rcx, rax
cmp rcx, 8
jb 0x140042af1
cmp rcx, 0x27
ja 0x140042aea
mov rcx, rax
call fcn.140056588
jmp 0x140042990
call fcn.140036580
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400289b0
lea rcx, [rbp - 0x30]
call fcn.140022470
jmp 0x140042990
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
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]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r9, qword [rsi + 0x10]
mov r8, rbx
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140036580
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400289b0
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x140042b80
inc rax
mov rcx, qword [rbp - 0x30]
cmp rax, 0x1000
jb 0x140042b7b
test cl, 0x1f
je 0x140042b4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140042b5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140042b6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140042b78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140056588
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400412b0
mov rdx, qword [rax]
test rdx, rdx
je 0x140042ba5
mov rdx, qword [rdx]
jmp 0x140042ba8
mov rdx, r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140042bd8
call fcn.14002e600
test bl, bl
je 0x140042caf
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400412b0
mov rdx, qword [rax]
test rdx, rdx
je 0x140042c05
mov rdx, qword [rdx]
jmp 0x140042c08
mov rdx, r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140042c38
call fcn.14002e600
test bl, bl
je 0x140042caf
lea rdx, str.iusl::WindowsRegistry::GetValueString
lea rcx, [rbp - 0x10]
call fcn.140023f80
nop
mov dword [rax + 0x4c], 1
lea rdx, str.Key__
mov rcx, rax
call fcn.140024590
mov rbx, rax
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140024750
lea rdx, str.__not_found.
mov rcx, rbx
call fcn.140024590
nop
lea rcx, [rbp - 0x10]
call fcn.140024130
nop
lea rcx, [rbp - 0x50]
call fcn.140022470
nop
lea rcx, [rsp + 0x70]
call fcn.140022470
nop
lea rcx, [rbp - 0x70]
call fcn.140022470
jmp 0x14004319b
mov r14, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400412b0
mov rdx, qword [rax]
test rdx, rdx
je 0x140042cdb
mov rdx, qword [rdx]
jmp 0x140042cde
mov rdx, r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140042d0f
call fcn.14002e600
test esi, esi
jne 0x140042f5a
mov ecx, dword [rsp + 0x38]
add rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140042db8
lea rdx, str.iusl::WindowsRegistry::GetValueString
lea rcx, [rbp - 0x10]
call fcn.140023f80
nop
mov dword [rax + 0x4c], 3
lea rdx, str.Malloc_failed_
mov rcx, rax
call fcn.140024590
mov rcx, rax
lea rdx, str.Value__
call fcn.140024590
mov rbx, rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024750
lea rdx, str.__from_key__
mov rcx, rbx
call fcn.140024590
mov rbx, rax
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140024750
lea rdx, str.__not_read.
mov rcx, rbx
call fcn.140024590
nop
lea rcx, [rbp - 0x10]
call fcn.140024130
mov esi, 0xea
jmp 0x140042fc8
mov r8d, dword [rsp + 0x38]
add r8, 2
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400412b0
mov rdx, qword [rax]
test rdx, rdx
je 0x140042df2
mov rdx, qword [rdx]
jmp 0x140042df5
mov rdx, r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140042e26
call fcn.14002e600
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140022420
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140023830
mov rdx, rax
mov rcx, r15
call fcn.1400289b0
lea rcx, [rsp + 0x50]
call fcn.140022470
cmp qword [r15 + 0x10], rbx
je 0x140042ec4
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r12
mov byte [rsp + 0x50], 0
mov r8d, 0x38
lea rdx, str.Unicode_installation_path_detected__terminating_process.
lea rcx, [rsp + 0x50]
call fcn.140022930
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.1400287a0
lea rax, vtable.Exception.0
mov qword [rbp - 0x10], rax
lea rdx, [0x1400acdc0]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.iusl::WindowsRegistry::GetValueString
lea rcx, [rbp - 0x10]
call fcn.140023f80
nop
mov dword [rax + 0x4c], 1
lea rdx, str.Value__
mov rcx, rax
call fcn.140024590
mov rbx, rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024750
lea rdx, str.__from_key__
mov rcx, rbx
call fcn.140024590
mov rbx, rax
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140024750
lea rdx, str.__read_successfully._Value_
mov rcx, rbx
call fcn.140024590
mov rbx, rax
mov rdx, r15
mov rcx, rax
call fcn.140024750
lea rdx, [0x140099938]
mov rcx, rbx
call fcn.140024590
nop
lea rcx, [rbp - 0x10]
call fcn.140024130
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140042fc8
lea rdx, str.iusl::WindowsRegistry::GetValueString
lea rcx, [rbp - 0x10]
call fcn.140023f80
nop
mov dword [rax + 0x4c], 1
lea rdx, str.Value__
mov rcx, rax
call fcn.140024590
mov rbx, rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140024750
lea rdx, str.__from_key__
mov rcx, rbx
call fcn.140024590
mov rbx, rax
lea rdx, [rbp - 0x70]
mov rcx, rax
call fcn.140024750
lea rdx, str.__not_read.
mov rcx, rbx
call fcn.140024590
nop
lea rcx, [rbp - 0x10]
call fcn.140024130
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ebx, si
lea rcx, [rbp - 0x50]
call fcn.140022470
nop
lea rcx, [rsp + 0x70]
call fcn.140022470
nop
lea rcx, [rbp - 0x70]
call fcn.140022470
mov eax, ebx
jmp 0x1400431a0
mov dword [rsp + 0x50], 0xdf
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
lea rdx, str.iusl::WindowsRegistry::GetValueString
lea rcx, [rbp - 0x10]
call fcn.140023f80
nop
mov dword [rax + 0x4c], 3
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140041680
nop
lea rcx, [rbp - 0x10]
call fcn.140024130
nop
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14004306b
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.14002c580
mov r8, qword [rsp + 0x68]
sub r8, rbx
sar r8, 5
mov rdx, rbx
call fcn.14002a050
nop
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x1400430c5
inc rax
mov rcx, qword [rbp - 0x50]
cmp rax, 0x1000
jb 0x1400430c0
test cl, 0x1f
je 0x140043090
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400430a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400430b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400430bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140056588
mov qword [rbp - 0x38], 0xf
mov qword [rbp - 0x40], r12
mov byte [rbp - 0x50], 0
mov rax, qword [rbp - 0x78]
cmp rax, 0x10
jb 0x140043130
inc rax
mov rcx, qword [rsp + 0x70]
cmp rax, 0x1000
jb 0x14004312b
test cl, 0x1f
je 0x1400430fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14004310b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14004311b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140043128
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140056588
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r12
mov byte [rsp + 0x70], 0
mov rax, qword [rbp - 0x58]
cmp rax, 0x10
jb 0x14004319b
inc rax
mov rcx, qword [rbp - 0x70]
cmp rax, 0x1000
jb 0x140043196
test cl, 0x1f
je 0x140043166
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140043176
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140043186
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140043193
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140056588
mov eax, 5
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140056280
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret