Function at 0x14003fd40
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 [0x1400ae030]
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 0x14003fd99
mov rsi, qword [rdx]
jmp 0x14003fd9c
mov rsi, r14
mov ecx, 0x18
call fcn.140052754
mov rdi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
test rax, rax
je 0x14003fdcd
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140052390
mov qword [rdi], rax
jmp 0x14003fdd0
mov rdi, rbx
test rdi, rdi
jne 0x14003fde0
mov ecx, 0x8007000e
call fcn.1400521b0
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 0x14003fe44
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003fe25
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003fe37
call fcn.140052a50
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.140052a50
test r12d, r12d
jne 0x1400400c0
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 0x14003fea3
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x40]
call fcn.1400238b0
nop
mov dword [rax + 0x4c], 3
lea rdx, str.Malloc_failed__GetValueString_cant_retrieve_value.
mov rcx, rax
call fcn.140023ec0
nop
lea rcx, [rbp - 0x40]
call fcn.140023a60
mov r12d, 0xea
jmp 0x1400400f1
mov r8, r15
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
cmp qword [r14 + 0x18], 0x10
jb 0x14003febc
mov r12, qword [r14]
jmp 0x14003febf
mov r12, r14
mov ecx, 0x18
call fcn.140052754
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003feee
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, r12
call fcn.140052390
mov qword [rdi], rax
jmp 0x14003fef1
mov rdi, rbx
test rdi, rdi
jne 0x14003ff01
mov ecx, 0x8007000e
call fcn.1400521b0
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 0x14003ff65
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003ff46
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003ff58
call fcn.140052a50
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.140052a50
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 0x14003ff9b
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x14003ff91
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140022080
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140023390
mov rdx, rax
mov r15, qword [rsp + 0x48]
mov rcx, r15
call fcn.140027810
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x140040023
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x14004001e
test cl, 0x1f
je 0x14003ffee
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 0x14003fffe
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 0x14004000e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14004001b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140052a38
cmp qword [r15 + 0x10], rdi
je 0x140040067
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.140021f90
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xb0]
call fcn.140023150
lea rdx, [0x1400aa220]
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp + 0x10]
call fcn.1400238b0
nop
mov dword [rax + 0x4c], 1
lea rdx, str.GetValueString_success._Value_
mov rcx, rax
call fcn.140023ec0
mov rbx, rax
mov rdx, r15
mov rcx, rax
call fcn.1400240b0
lea rdx, [0x140097938]
mov rcx, rbx
call fcn.140023ec0
nop
lea rcx, [rbp + 0x10]
call fcn.140023a60
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400400f1
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp + 0x60]
call fcn.1400238b0
nop
mov dword [rax + 0x4c], 1
lea rdx, str.GetValueString_failed.
mov rcx, rax
call fcn.140023ec0
nop
lea rcx, [rbp + 0x60]
call fcn.140023a60
movzx ebx, r12w
mov rcx, r14
call fcn.140021f00
mov eax, ebx
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140052730
mov rbx, qword [rsp + 0x278]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret