Function at 0x14003c910
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 [0x1400c0030]
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 0x14003c969
mov rsi, qword [rdx]
jmp 0x14003c96c
mov rsi, r14
mov ecx, 0x18
call fcn.14005bee4
mov rdi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
test rax, rax
je 0x14003c99d
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.14005b960
mov qword [rdi], rax
jmp 0x14003c9a0
mov rdi, rbx
test rdi, rdi
jne 0x14003c9b0
mov ecx, 0x8007000e
call fcn.14005b930
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 0x14003ca14
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003c9f5
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003ca07
call fcn.14005c1d0
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.14005c1d0
test r12d, r12d
jne 0x14003cc90
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 0x14003ca73
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x40]
call fcn.140024a50
nop
mov dword [rax + 0x4c], 3
lea rdx, str.Malloc_failed__GetValueString_cant_retrieve_value.
mov rcx, rax
call fcn.140025060
nop
lea rcx, [rbp - 0x40]
call fcn.140024c00
mov r12d, 0xea
jmp 0x14003ccc1
mov r8, r15
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
cmp qword [r14 + 0x18], 0x10
jb 0x14003ca8c
mov r12, qword [r14]
jmp 0x14003ca8f
mov r12, r14
mov ecx, 0x18
call fcn.14005bee4
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003cabe
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov rcx, r12
call fcn.14005b960
mov qword [rdi], rax
jmp 0x14003cac1
mov rdi, rbx
test rdi, rdi
jne 0x14003cad1
mov ecx, 0x8007000e
call fcn.14005b930
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 0x14003cb35
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003cb16
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003cb28
call fcn.14005c1d0
mov qword [rdi + 8], rbx
mov edx, 0x18
mov rcx, rdi
call fcn.14005c1d0
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 0x14003cb6b
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x14003cb61
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14002a150
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140024530
mov rdx, rax
mov r15, qword [rsp + 0x48]
mov rcx, r15
call fcn.140029590
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x14003cbf3
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x14003cbee
test cl, 0x1f
je 0x14003cbbe
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 0x14003cbce
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 0x14003cbde
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003cbeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005c1c8
cmp qword [r15 + 0x10], rdi
je 0x14003cc37
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.140029650
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xb0]
call fcn.1400242f0
lea rdx, [0x1400bc478]
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp + 0x10]
call fcn.140024a50
nop
mov dword [rax + 0x4c], 1
lea rdx, str.GetValueString_success._Value_
mov rcx, rax
call fcn.140025060
mov rbx, rax
mov rdx, r15
mov rcx, rax
call fcn.140025250
lea rdx, [0x1400a5304]
mov rcx, rbx
call fcn.140025060
nop
lea rcx, [rbp + 0x10]
call fcn.140024c00
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14003ccc1
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp + 0x60]
call fcn.140024a50
nop
mov dword [rax + 0x4c], 1
lea rdx, str.GetValueString_failed.
mov rcx, rax
call fcn.140025060
nop
lea rcx, [rbp + 0x60]
call fcn.140024c00
movzx ebx, r12w
mov rcx, r14
call fcn.140029500
mov eax, ebx
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14005beb0
mov rbx, qword [rsp + 0x278]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret