Function at 0x14003ffe0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x278], rbx
mov rax, qword [0x1400af030]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov qword [rsp + 0x48], r8
mov r14, rdx
mov r13, rcx
mov qword [rsp + 0x78], rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140040039
mov rsi, qword [rdx]
jmp 0x14004003c
mov rsi, r14
mov ecx, 0x18
call fcn.140052d64
mov rdi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
test rax, rax
je 0x14004006d
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.1400529a0
mov qword [rdi], rax
jmp 0x140040070
mov rdi, rbx
test rdi, rdi
jne 0x140040080
mov ecx, 0x8007000e
call fcn.1400527c0
int3
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [r13]
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r12d, eax
or ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x1400400e4
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400400c5
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400400d7
call fcn.140053050
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.140053050
test r12d, r12d
jne 0x140040360
mov r15d, dword [rsp + 0x30]
add r15, 2
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x140040143
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x40]
call fcn.1400238c0
nop
mov dword [rax + 0x4c], 3
lea rdx, str.Malloc_failed__GetValueString_cant_retrieve_value.
mov rcx, rax
call fcn.140023ed0
nop
lea rcx, [rbp - 0x40]
call fcn.140023a70
mov r12d, 0xea
jmp 0x140040391
mov r8, r15
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
cmp qword [r14 + 0x18], 0x10
jb 0x14004015c
mov r12, qword [r14]
jmp 0x14004015f
mov r12, r14
mov ecx, 0x18
call fcn.140052d64
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14004018e
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, r12
call fcn.1400529a0
mov qword [rdi], rax
jmp 0x140040191
mov rdi, rbx
test rdi, rdi
jne 0x1400401a1
mov ecx, 0x8007000e
call fcn.1400527c0
int3
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [r13]
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r12d, eax
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x140040205
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400401e6
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400401f8
call fcn.140053050
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.140053050
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rdi, rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp word [rsi], 0
je 0x14004023b
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140040231
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140022090
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400233a0
mov rdx, rax
mov r15, qword [rsp + 0x48]
mov rcx, r15
call fcn.140027820
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x1400402c3
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x1400402be
test cl, 0x1f
je 0x14004028e
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 0x14004029e
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 0x1400402ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400402bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140053048
cmp qword [r15 + 0x10], rdi
je 0x140040307
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, str.Unicode_installation_path_detected__terminating_process.
lea rcx, [rbp - 0x60]
call fcn.140021fa0
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xb0]
call fcn.140023160
lea rdx, [0x1400ab338]
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp + 0x10]
call fcn.1400238c0
nop
mov dword [rax + 0x4c], 1
lea rdx, str.GetValueString_success._Value_
mov rcx, rax
call fcn.140023ed0
mov rbx, rax
mov rdx, r15
mov rcx, rax
call fcn.1400240c0
lea rdx, [0x140098978]
mov rcx, rbx
call fcn.140023ed0
nop
lea rcx, [rbp + 0x10]
call fcn.140023a70
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140040391
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp + 0x60]
call fcn.1400238c0
nop
mov dword [rax + 0x4c], 1
lea rdx, str.GetValueString_failed.
mov rcx, rax
call fcn.140023ed0
nop
lea rcx, [rbp + 0x60]
call fcn.140023a70
movzx ebx, r12w
mov rcx, r14
call fcn.140021f10
mov eax, ebx
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140052d40
mov rbx, qword [rsp + 0x278]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret