Function at 0x18001af94
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], rdi
mov rax, qword [0x1800ba600]
xor rax, rbp
mov qword [rbp + 0x58], rax
mov rbx, rcx
and dword [rbp + 4], 0
mov dword [rbp], 4
lea rdx, str.__dtx__clsid
lea rcx, [rbp + 0x28]
call fcn.180002188
mov r8, rax
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.180017858
mov rdi, qword [rax]
test rdi, rdi
je 0x18001b004
mov rdi, qword [rdi]
jmp 0x18001b006
xor edi, edi
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x18001b04a
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
add eax, 0xffffffff
jne 0x18001b045
test rbx, rbx
je 0x18001b045
mov rcx, qword [rbx]
test rcx, rcx
je 0x18001b02f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18001b03d
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
and qword [rbp + 0x10], 0
test rdi, rdi
jne 0x18001b056
xor ebx, ebx
jmp 0x18001b0dc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9d, [rax + 1]
cmp r9d, 0x3fffffff
jle 0x18001b070
xor ebx, ebx
jmp 0x18001b0dc
movsxd rax, r9d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18001b089
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180080590
sub rsp, rcx
lea rsi, [rsp + 0x40]
test rsi, rsi
je 0x18001b0da
mov byte [rsi], 0
lea eax, [r9 + r9]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb rbx, rbx
and rbx, rsi
jmp 0x18001b0dc
xor ebx, ebx
mov qword [rbp + 0x50], SafeArrayGetLBound
and qword [rbp + 0x48], 0
mov byte [rbp + 0x38], 0
lea rcx, str.SoftwareMicrosoftWindowsCurrentVersionExtSettings_
call fcn.180064df0
mov r8, rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExtSettings_
lea rcx, [rbp + 0x30]
call fcn.180005ecc
nop
mov rcx, rbx
call fcn.180064df0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.180011cd4
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rdx, qword [rbp + 0x38]
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x18001b16c
cmp qword [rbp + 0x50], 0x10
jb 0x18001b165
mov rcx, qword [rbp + 0x38]
call fcn.18006419c
xor al, al
jmp 0x18001b235
mov dword [rbp], 1
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp]
xor r8d, r8d
lea rdx, str.Version
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001b1c2
cmp dword [rbp + 4], eax
jbe 0x18001b1c2
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp + 0x50], 0x10
jb 0x18001b1be
mov rcx, qword [rbp + 0x38]
call fcn.18006419c
mov al, 1
jmp 0x18001b235
mov dword [rbp], 4
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp]
xor r8d, r8d
lea rdx, str.Flags
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001b218
cmp dword [rbp + 4], eax
jbe 0x18001b218
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp + 0x50], 0x10
jb 0x18001b214
mov rcx, qword [rbp + 0x38]
call fcn.18006419c
mov al, 1
jmp 0x18001b235
cmp qword [rbp + 0x50], 0x10
jb 0x18001b229
mov rcx, qword [rbp + 0x38]
call fcn.18006419c
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x58]
xor rcx, rbp
call fcn.180064d20
mov rbx, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x88]
lea rsp, [rbp + 0x60]
pop rbp
ret