Function at 0x140047f70
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 [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r13, rcx
mov qword [rbp - 0x68], 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 qword [rsp + 0x70], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140048003
mov rsi, qword [rsp + 0x70]
jmp 0x14004803c
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 0x14004859c
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], r12d
mov word [rbp - 0x60], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call fcn.1400c7c50
mov ecx, dword [0x1401a9d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r8d, edx
or r15, 0xffffffffffffffff
cmp r8d, 5
jne 0x1400480d5
movabs rax, 0x4138773162756a
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x78]
mov rcx, r15
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400480b0
mov eax, 4
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400c1e58
mov rcx, rax
call fcn.1400c2f38
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x1401387e0]
test rdx, 0xffffffffffff0000
jne 0x140048120
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140048135
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002750
jmp 0x140048130
mov r8d, 3
lea rcx, [rsp + 0x30]
call fcn.140002460
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 + 0x68]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, eax
test eax, eax
jne 0x1400481a9
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
jbe 0x140048182
mov r8d, 0xd
jmp 0x1400481a9
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400481a1
test al, 1
jne 0x140048199
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x1400481a6
mov r8d, 0xd
jmp 0x1400481a9
mov word [rbp - 0x60], r12w
mov r8d, r12d
mov r9d, dword [0x1401a9d80]
mov ecx, r9d
imul ecx, r9d
imul ecx, r9d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 6
jne 0x140048204
mov ecx, r9d
test r9d, r9d
je 0x1400481fa
dec ecx
je 0x1400481f1
inc r9d
mov dword [0x1401a9d80], r9d
jmp 0x140048204
mov dword [0x1401a9d80], r12d
jmp 0x140048204
mov dword [0x1401a9d80], 2
test r8d, r8d
jne 0x14004853d
lea rax, [rbp - 0x60]
mov rdi, r15
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140048214
test edi, edi
jne 0x140048283
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140048305
cmp dword [rdx + 0x10], 0
jge 0x140048257
cmp dword [rbx - 0xc], 0
jge 0x14004824a
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140048305
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140048267
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 0x140048305
mov r12d, dword [rbx - 0x10]
lea r14, [rbp - 0x60]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x1400482a0
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 0x1400482c2
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002550
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x1400482e6
lea r8, [rbx + r14*2]
call fcn.1400c303c
jmp 0x1400482ef
lea r8, [rbp - 0x60]
call fcn.1400c31fc
cmp edi, dword [rbx - 0xc]
jg 0x140048532
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rdx, [0x140138d10]
test rdx, 0xffffffffffff0000
jne 0x140048350
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140048365
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002750
jmp 0x140048360
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.140002460
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 + 0x6c]
xor r8d, r8d
lea rdx, str.CurrentBuild
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140048512
mov eax, dword [rsp + 0x6c]
dec eax
cmp eax, 1
ja 0x140048512
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x1400483cf
test al, 1
jne 0x140048512
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x1400483d4
jmp 0x140048512
mov word [rbp - 0x60], r12w
lea rax, [rbp - 0x60]
mov rdi, r15
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400483e0
test edi, edi
jne 0x140048447
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400484c0
cmp dword [rdx + 0x10], 0
jge 0x140048423
cmp dword [rbx - 0xc], 0
jge 0x140048416
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x1400484c0
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140048433
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 0x1400484c0
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x60]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x140048464
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 0x140048486
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140002550
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x1400484aa
lea r8, [rbx + rsi*2]
call fcn.1400c303c
jmp 0x1400484b3
lea r8, [rbp - 0x60]
call fcn.1400c31fc
cmp edi, dword [rbx - 0xc]
jg 0x140048507
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], r12w
lea r8, [rsp + 0x38]
lea rdx, [0x140133998]
lea rcx, [rbp - 0x80]
call fcn.140019bd0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14000f520
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140048500
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x38]
jmp 0x140048512
mov ecx, 0x80070057
call fcn.140001920
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140048526
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 0x14004853d
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x140048550
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.1400025b0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x40], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140048585
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 0x1400485b3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
jmp 0x1400485b3
lea rdx, [0x1401387e0]
mov rcx, r13
call fcn.1400022a0
mov dword [rsp + 0x40], 1
mov rax, r13
mov dword [rsp + 0x58], r12d
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400c2810
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