Function at 0x14003f750
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14009e038]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov qword [rsp + 0x48], r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x70], rdx
mov rsi, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x14003f79c
mov rsi, qword [rdx]
mov ecx, 0x18
call fcn.140052d60
mov rbx, rax
mov qword [rsp + 0x38], rax
xor r14d, r14d
test rax, rax
je 0x14003f7ce
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140052a30
mov qword [rbx], rax
jmp 0x14003f7d1
mov rbx, r14
test rbx, rbx
je 0x14003fb3e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, eax
mov rsi, 0xffffffffffffffff
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14003f843
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003f824
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003f836
call fcn.140052fec
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.140052fec
test r13d, r13d
jne 0x14003fa5c
mov r12d, dword [rsp + 0x30]
add r12, 2
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
jne 0x14003f8a2
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x60]
call fcn.1400201c0
nop
mov dword [rax + 0x6c], 3
lea rdx, str.Malloc_failed__GetValueString_cant_retrieve_value.
mov rcx, rax
call fcn.140020870
nop
lea rcx, [rbp - 0x60]
call fcn.140020370
mov r13d, 0xea
jmp 0x14003fa8d
mov r8, r12
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
mov r13, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14003f8bc
mov r13, qword [rdi]
mov ecx, 0x18
call fcn.140052d60
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003f8eb
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
mov rcx, r13
call fcn.140052a30
mov qword [rbx], rax
jmp 0x14003f8ee
mov rbx, r14
test rbx, rbx
je 0x14003fb3e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, eax
mov eax, esi
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14003f95e
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003f93f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003f951
call fcn.140052fec
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.140052fec
mov rdx, r12
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rbx, rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
inc rsi
cmp word [r15 + rsi*2], 0
jne 0x14003f980
mov r8, rsi
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.14001ef00
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.14001fa60
mov rdx, rax
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140025270
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14003f9f9
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f9f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003f9f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052fec
cmp qword [rsi + 0x10], rbx
jne 0x14003fb06
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x60]
call fcn.1400201c0
nop
mov dword [rax + 0x6c], 1
lea rdx, str.GetValueString_success._Value_
mov rcx, rax
call fcn.140020870
mov rbx, rax
mov rdx, rsi
mov rcx, rax
call fcn.140020a80
lea rdx, [0x14008e440]
mov rcx, rbx
call fcn.140020870
nop
lea rcx, [rbp - 0x60]
call fcn.140020370
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14003fa8d
lea rdx, str.iusl::HKeyContainer::GetValueString
lea rcx, [rbp - 0x60]
call fcn.1400201c0
nop
mov dword [rax + 0x6c], 1
lea rdx, str.GetValueString_failed.
mov rcx, rax
call fcn.140020870
nop
lea rcx, [rbp - 0x60]
call fcn.140020370
movzx ebx, r13w
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14003fac7
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14003fac2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003faff
mov rcx, r8
call fcn.140052fec
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140052d40
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r15
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 + 0x10]
call fcn.14001eec0
nop
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x60]
call fcn.14001f880
lea rdx, [0x14009a430]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov ecx, 0x8007000e
call fcn.1400528a0
int3