Function at 0x1800206d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180066180]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r14, rcx
mov qword [rsp + 0x78], rcx
xor r12d, r12d
mov dword [rbp - 0x78], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x68], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r13d, 1
mov r9d, r13d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180020767
mov rsi, qword [rsp + 0x68]
jmp 0x18002079d
mov qword [rsp + 0x70], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180020bd8
mov rsi, qword [rsp + 0x70]
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], rsi
mov byte [rbp - 0x60], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp - 0x5f]
call fcn.18002c930
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x180056ee0]
test rdx, 0xffffffffffff0000
jne 0x180020807
movzx edi, dx
mov ecx, edi
call fcn.180002840
test rax, rax
je 0x18002081c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1800023e0
jmp 0x180020817
mov r8d, 3
lea rcx, [rsp + 0x30]
call fcn.180002020
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x44], 0x400
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or r15, 0xffffffffffffffff
test eax, eax
jne 0x180020b87
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
ja 0x180020b87
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x18002087e
cmp byte [rbp + rax - 0x61], 0
je 0x180020882
jmp 0x180020b87
mov byte [rbp - 0x60], 0
lea rax, [rbp - 0x60]
mov rdi, r15
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180020890
test edi, edi
jne 0x1800208fa
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x18002096e
cmp dword [rdx + 0x10], 0
jge 0x1800208d1
cmp dword [rbx - 0xc], 0
jge 0x1800208c5
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov dword [rbx - 0x10], r12d
mov byte [rbx], 0
jmp 0x18002096e
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1800208e1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0x48]
jmp 0x18002096e
mov r12d, dword [rbx - 0x10]
lea r14, [rbp - 0x60]
sub r14, rbx
test edi, edi
jns 0x180020914
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x180020934
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.180002c50
mov rbx, qword [rsp + 0x30]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp r14, r12
movsxd r12, edi
mov r9, r12
ja 0x180020951
lea r8, [r14 + rbx]
call fcn.180029ae8
jmp 0x18002095a
lea r8, [rbp - 0x60]
call fcn.180028f24
cmp edi, dword [rbx - 0xc]
jg 0x180020b7c
mov dword [rbx - 0x10], edi
mov byte [r12 + rbx], 0
xor r12d, r12d
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rdx, [0x18005714c]
test rdx, 0xffffffffffff0000
jne 0x1800209b9
movzx edi, dx
mov ecx, edi
call fcn.180002840
test rax, rax
je 0x1800209cb
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1800023e0
jmp 0x1800209c6
mov r8d, r13d
lea rcx, [rsp + 0x38]
call fcn.180002020
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x40], 0x400
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.CurrentBuild
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180020b57
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
ja 0x180020b57
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x180020a29
cmp byte [rbp + rax - 0x61], 0
je 0x180020a2d
jmp 0x180020b57
mov byte [rbp - 0x60], 0
lea rax, [rbp - 0x60]
mov rdi, r15
inc rdi
cmp byte [rax + rdi], 0
jne 0x180020a34
test edi, edi
jne 0x180020a99
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x180020b05
cmp dword [rdx + 0x10], 0
jge 0x180020a75
cmp dword [rbx - 0xc], 0
jge 0x180020a69
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov dword [rbx - 0x10], r12d
mov byte [rbx], 0
jmp 0x180020b05
lock add dword [rdx + 0x10], 0xffffffff
jg 0x180020a85
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
jmp 0x180020b05
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x60]
sub rsi, rbx
test edi, edi
jns 0x180020ab3
mov ecx, 0x80070057
call fcn.180002bd0
int3
sub r13d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r13d
jge 0x180020ad2
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.180002c50
mov rbx, qword [rsp + 0x38]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp rsi, r14
movsxd r14, edi
mov r9, r14
ja 0x180020aef
lea r8, [rsi + rbx]
call fcn.180029ae8
jmp 0x180020af8
lea r8, [rbp - 0x60]
call fcn.180028f24
cmp edi, dword [rbx - 0xc]
jg 0x180020b4c
mov dword [rbx - 0x10], edi
mov byte [r14 + rbx], 0
lea r8, [rsp + 0x38]
lea rdx, [0x1800562a4]
lea rcx, [rbp - 0x80]
call fcn.180006530
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1800022e0
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x180020b45
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rsp + 0x38]
jmp 0x180020b57
mov ecx, 0x80070057
call fcn.180002bd0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x180020b6b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x78]
jmp 0x180020b87
mov ecx, 0x80070057
call fcn.180002bd0
int3
test rsi, rsi
je 0x180020b9a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
lea rcx, [rbx - 0x18]
call fcn.180002110
add rax, 0x18
mov qword [r14], rax
lock add dword [rbx - 8], 0xffffffff
jg 0x180020bc6
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rVariantCopy + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180020be8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180020be8
lea rdx, [0x180056ee0]
mov rcx, r14
call fcn.180001aa0
nop
mov rax, r14
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1800289d0
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret