Function at 0x140052db0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7d8]
sub rsp, 0x8b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401c3e90]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r13, rcx
mov qword [rbp - 0x78], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
mov ecx, dword [0x1401cbd80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2aaaaaab
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub r8d, eax
cmp r8d, 0xa
jne 0x140052e65
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 6
lea eax, [rdx + rdx*4]
shl eax, 4
sub ecx, eax
lea eax, [rcx + 1]
mov dword [0x1401cbd80], eax
mov qword [rsp + 0x70], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140052ea6
mov dword [rsp + 0x58], r12d
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x50], rsi
jmp 0x140052f1a
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005343e
mov dword [rsp + 0x58], r12d
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0x50], rsi
mov ecx, dword [0x1401cbd80]
imul ecx, ecx
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0xb
jne 0x140052f1a
call fcn.1400d2038
mov dword [0x1401cbd80], eax
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call fcn.1400d6ac0
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x140158fc0]
test rdx, 0xffffffffffff0000
jne 0x140052f7b
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140052f90
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400025b0
jmp 0x140052f8b
mov r8d, 3
lea rcx, [rsp + 0x30]
call fcn.1400022c0
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x48], 0x800
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r14, 0xffffffffffffffff
test eax, eax
jne 0x1400533df
mov eax, dword [rsp + 0x6c]
dec eax
cmp eax, 1
ja 0x1400533df
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140052ffe
test al, 1
jne 0x1400533df
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x140053003
jmp 0x1400533df
mov word [rbp - 0x60], r12w
mov r8d, dword [0x1401cbd80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
mov eax, dword [0x1401cd4c8]
mov edx, 0x49df3095
cmp ecx, 0xf
cmove eax, edx
mov dword [0x1401cd4c8], eax
lea rax, [rbp - 0x60]
mov rdi, r14
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140053050
test edi, edi
jne 0x1400530bf
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140053148
cmp dword [rdx + 0x10], 0
jge 0x140053093
cmp dword [rbx - 0xc], 0
jge 0x140053086
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140053141
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400530a3
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
mov rsi, qword [rsp + 0x50]
jmp 0x140053141
mov r12d, dword [rbx - 0x10]
lea r15, [rbp - 0x60]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x1400530dc
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400530fe
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400023b0
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140053122
lea r8, [rbx + r15*2]
call fcn.1400d1ea4
jmp 0x14005312b
lea r8, [rbp - 0x60]
call fcn.1400d2064
cmp edi, dword [rbx - 0xc]
jg 0x1400533d4
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
mov r8d, dword [0x1401cbd80]
mov eax, r8d
imul eax, r8d
and eax, 0x8000000f
jge 0x14005315d
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 5
jne 0x14005319d
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x63
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400d0cc8
mov rcx, rax
call fcn.1400d272c
call fcn.14004e9a0
test al, al
jne 0x1400531ac
dec dword [0x1401cbd80]
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rdx, [0x140159510]
test rdx, 0xffffffffffff0000
jne 0x1400531f7
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14005320c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400025b0
jmp 0x140053207
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.1400022c0
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x44], 0x800
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.CurrentBuild
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400533b4
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x1400533b4
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140053276
test al, 1
jne 0x1400533b4
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x14005327b
jmp 0x1400533b4
mov word [rbp - 0x60], r12w
lea rax, [rbp - 0x60]
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140053282
test edi, edi
jne 0x1400532e9
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140053362
cmp dword [rdx + 0x10], 0
jge 0x1400532c5
cmp dword [rbx - 0xc], 0
jge 0x1400532b8
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140053362
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400532d5
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
jmp 0x140053362
mov r15d, dword [rbx - 0x10]
lea rsi, [rbp - 0x60]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x140053306
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140053328
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400023b0
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x14005334c
lea r8, [rbx + rsi*2]
call fcn.1400d1ea4
jmp 0x140053355
lea r8, [rbp - 0x60]
call fcn.1400d2064
cmp edi, dword [rbx - 0xc]
jg 0x1400533a9
mov dword [rbx - 0x10], edi
mov word [r15 + rbx], r12w
lea r8, [rsp + 0x38]
lea rdx, [0x140154188]
lea rcx, [rbp - 0x80]
call fcn.14001ca10
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140010fc0
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400533a2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x38]
jmp 0x1400533b4
mov ecx, 0x80070057
call fcn.140001920
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400533c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x30]
jmp 0x1400533df
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x1400533f2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
lea rcx, [rbx - 0x18]
call fcn.140002410
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x40], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140053427
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140053455
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
jmp 0x140053455
lea rdx, [0x140158fc0]
mov rcx, r13
call fcn.140002110
mov dword [rsp + 0x40], 1
mov rax, r13
mov dword [rsp + 0x58], r12d
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400d1680
lea r11, [rsp + 0x8b0]
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