Function at 0x140017c00
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x4a0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400625e0]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r14, rcx
mov qword [rsp + 0x68], rcx
xor r12d, r12d
mov dword [rsp + 0x70], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x58], r12
mov r13d, 1
mov r9d, r13d
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400028e0
test eax, eax
je 0x140017cb6
mov r9d, r13d
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400028e0
test eax, eax
je 0x140017cb6
lea rdx, [0x140046800]
mov rcx, r14
call fcn.140001100
jmp 0x1400180d9
mov byte [rbp - 0x70], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp - 0x6f]
call fcn.14002b2f0
lea rcx, [0x1400622e0]
mov rax, qword [0x1400622e0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rdx, [0x140046800]
test rdx, 0xffffffffffff0000
jne 0x140017d18
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.1400017a0
test rax, rax
je 0x140017d2d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002140
jmp 0x140017d28
mov r8d, 3
lea rcx, [rsp + 0x38]
call fcn.140002fd0
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x44], 0x400
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or r15, 0xffffffffffffffff
test eax, eax
jne 0x14001809b
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
ja 0x14001809b
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140017d94
cmp byte [rbp + rax - 0x71], 0
je 0x140017d98
jmp 0x14001809b
mov byte [rbp - 0x70], 0
lea rax, [rbp - 0x70]
mov rdi, r15
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x140017da0
test edi, edi
jne 0x140017e0a
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140017e7e
cmp dword [rdx + 0x10], 0
jge 0x140017de1
cmp dword [rbx - 0xc], 0
jge 0x140017dd5
mov ecx, 0x80070057
call fcn.140001850
int3
mov dword [rbx - 0x10], r12d
mov byte [rbx], 0
jmp 0x140017e7e
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140017df1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rsi, qword [rsp + 0x48]
jmp 0x140017e7e
mov r12d, dword [rbx - 0x10]
lea r14, [rbp - 0x70]
sub r14, rbx
test edi, edi
jns 0x140017e24
mov ecx, 0x80070057
call fcn.140001850
int3
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140017e44
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400029e0
mov rbx, qword [rsp + 0x38]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp r14, r12
movsxd r12, edi
mov r9, r12
ja 0x140017e61
lea r8, [r14 + rbx]
call fcn.1400296b4
jmp 0x140017e6a
lea r8, [rbp - 0x70]
call fcn.140029610
cmp edi, dword [rbx - 0xc]
jg 0x140018090
mov dword [rbx - 0x10], edi
mov byte [r12 + rbx], 0
xor r12d, r12d
lea rcx, [0x1400622e0]
mov rax, qword [0x1400622e0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x140046a30]
test rdx, 0xffffffffffff0000
jne 0x140017ecb
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.1400017a0
test rax, rax
je 0x140017edd
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002140
jmp 0x140017ed8
mov r8d, r13d
lea rcx, [rsp + 0x30]
call fcn.140002fd0
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x40], 0x400
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.CurrentBuild
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001806b
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
ja 0x14001806b
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140017f3b
cmp byte [rbp + rax - 0x71], 0
je 0x140017f3f
jmp 0x14001806b
mov byte [rbp - 0x70], 0
lea rax, [rbp - 0x70]
mov rdi, r15
inc rdi
cmp byte [rax + rdi], 0
jne 0x140017f46
test edi, edi
jne 0x140017fab
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140018017
cmp dword [rdx + 0x10], 0
jge 0x140017f87
cmp dword [rbx - 0xc], 0
jge 0x140017f7b
mov ecx, 0x80070057
call fcn.140001850
int3
mov dword [rbx - 0x10], r12d
mov byte [rbx], 0
jmp 0x140018017
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140017f97
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
jmp 0x140018017
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x70]
sub rsi, rbx
test edi, edi
jns 0x140017fc5
mov ecx, 0x80070057
call fcn.140001850
int3
sub r13d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r13d
jge 0x140017fe4
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400029e0
mov rbx, qword [rsp + 0x30]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp rsi, r14
movsxd r14, edi
mov r9, r14
ja 0x140018001
lea r8, [rsi + rbx]
call fcn.1400296b4
jmp 0x14001800a
lea r8, [rbp - 0x70]
call fcn.140029610
cmp edi, dword [rbx - 0xc]
jg 0x140018060
mov dword [rbx - 0x10], edi
mov byte [r14 + rbx], 0
lea r8, [rsp + 0x30]
lea rdx, [0x140044a28]
lea rcx, [rsp + 0x78]
call fcn.1400074b0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.1400016a0
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140018059
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
jmp 0x14001806b
mov ecx, 0x80070057
call fcn.140001850
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001807f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
mov r14, qword [rsp + 0x68]
jmp 0x14001809b
mov ecx, 0x80070057
call fcn.140001850
int3
test rsi, rsi
je 0x1400180ae
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.140001870
add rax, 0x18
mov qword [r14], rax
lock add dword [rbx - 8], 0xffffffff
jg 0x1400180d9
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400180e9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r14
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14002b2c0
lea r11, [rsp + 0x4a0]
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