Function at 0x14007e1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x90
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x140158010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, r9
mov r15, r8
mov qword [rbp + 0xf], r8
test rdx, rdx
jne 0x14007e265
mov r8d, 0x15f
lea rdx, str.CRegClient::GetRegValueAsVariant
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005dbf0
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007e25e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14007e535
test r13, r13
jne 0x14007e272
mov r8d, 0x160
jmp 0x14007e22b
xor eax, eax
mov qword [rbp - 9], rax
xor esi, esi
mov qword [rbp - 0x11], rsi
mov dword [rbp - 9], esi
mov qword [rbp - 1], rsi
mov dword [rbp - 0x2d], esi
mov qword [r9], rax
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], rax
lea r9d, [rax + 1]
mov r8, rdx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x11]
call fcn.1400278b0
test eax, eax
je 0x14007e2e0
mov r8d, 0x16c
lea rdx, str.CRegClient::GetRegValueAsVariant
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005dbf0
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14007e23f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14007e23f
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x2d]
xor r8d, r8d
mov rdx, qword [r15]
mov r14, qword [rbp - 0x11]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14007e31c
test r14, r14
je 0x14007e23f
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14007e23f
mov eax, dword [rbp - 0x2d]
sub eax, 1
je 0x14007e41d
sub eax, 2
je 0x14007e387
cmp eax, 1
jne 0x14007e305
mov eax, SafeArrayUnaccessData
mov word [r13], ax
mov dword [rbp - 0x29], 4
lea rax, [r13 + 8]
lea rcx, [rbp - 0x29]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x25]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14007e4fe
mov edi, esi
mov r12d, SafeArrayDestroy
cmp dword [rbp - 0x25], 4
cmovne edi, r12d
jmp 0x14007e4fe
mov dword [rbp - 0x31], esi
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x21]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14007e3c1
mov edi, esi
mov r12d, SafeArrayDestroy
cmp dword [rbp - 0x21], 3
cmovne edi, r12d
mov dword [rbp + 0x13], esi
mov eax, dword [rbp - 0x31]
mov dword [rbp + 0xf], eax
mov eax, 0x2011
mov word [r13], ax
mov ecx, 0x11
lea r8, [rbp + 0xf]
lea edx, [rcx - 0x10]
call qword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov qword [r13 + 8], rax
test rax, rax
je 0x14007e4fe
mov rax, qword [rax + 0x10]
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 7]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
jmp 0x14007e4fe
mov eax, 0x1f
mov word [r13], ax
mov dword [rbp - 0x39], esi
mov ebx, esi
mov dword [rbp - 0x31], ebx
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x1d]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
mov r12d, SafeArrayDestroy
test eax, eax
jne 0x14007e475
mov eax, dword [rbp - 0x1d]
dec eax
cmp eax, 1
jbe 0x14007e46b
mov edi, r12d
jmp 0x14007e475
mov ebx, dword [rbp - 0x39]
shr ebx, 1
mov dword [rbp - 0x31], ebx
mov edi, esi
add rbx, rbx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
mov qword [r13 + 8], rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400c53e0
mov rbx, qword [r13 + 8]
test rbx, rbx
je 0x14007e4fe
mov eax, dword [rbp - 0x31]
add eax, eax
mov dword [rbp - 0x35], eax
lea rax, [rbp - 0x35]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x19]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14007e4fe
mov eax, dword [rbp - 0x19]
dec eax
cmp eax, 1
jbe 0x14007e4d9
mov edi, r12d
jmp 0x14007e4fe
test rbx, rbx
je 0x14007e4fc
mov eax, dword [rbp - 0x35]
test eax, eax
je 0x14007e4f9
test al, 1
jne 0x14007e4f4
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x14007e4fc
mov edi, r12d
jmp 0x14007e4fe
mov word [rbx], si
mov edi, esi
test edi, edi
sete sil
test r14, r14
je 0x14007e513
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007e533
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400beb20
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret