Function at 0x14004b690
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa68]
sub rsp, 0xb40
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401ace90]
xor rax, rsp
mov qword [rbp + 0xa30], rax
mov r15, rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x60], rcx
xor r13d, r13d
mov dword [rsp + 0x44], r13d
mov r8d, dword [0x1401b4d80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0xa
jne 0x14004b715
dec r8d
mov dword [0x1401b4d80], r8d
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x60], r13
mov qword [rbp - 0x80], r13
lea rax, [rbp - 0x80]
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 0x14004b758
mov rsi, qword [rbp - 0x80]
jmp 0x14004b78e
mov qword [rbp - 0x70], r13
lea rax, [rbp - 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 0x14004bda5
mov rsi, qword [rbp - 0x70]
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], r13d
mov word [rbp - 0x50], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x4e]
call fcn.1400cd020
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rdx, [0x140143140]
test rdx, 0xffffffffffff0000
jne 0x14004b7f9
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004b80e
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400026c0
jmp 0x14004b809
mov r8d, 3
lea rcx, [rsp + 0x38]
call fcn.1400023d0
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x4c], 0x800
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r14, 0xffffffffffffffff
test eax, eax
jne 0x14004bd43
mov eax, dword [rsp + 0x78]
dec eax
cmp eax, 1
ja 0x14004bd43
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x14004b87c
test al, 1
jne 0x14004bd43
shr rax, 1
cmp word [rbp + rax*2 - 0x52], 0
je 0x14004b881
jmp 0x14004bd43
mov word [rbp - 0x50], r13w
lea rax, [rbp - 0x50]
mov rdi, r14
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004b890
test edi, edi
jne 0x14004b8fc
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004b979
cmp dword [rdx + 0x10], 0
jge 0x14004b8d3
cmp dword [rbx - 0xc], 0
jge 0x14004b8c6
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x14004b979
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004b8e3
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 + 0x50]
jmp 0x14004b979
mov r12d, dword [rbx - 0x10]
lea r15, [rbp - 0x50]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x14004b919
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 0x14004b93b
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400024c0
mov rbx, qword [rsp + 0x38]
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 0x14004b95f
lea r8, [rbx + r15*2]
call fcn.1400c8404
jmp 0x14004b968
lea r8, [rbp - 0x50]
call fcn.1400c8500
cmp edi, dword [rbx - 0xc]
jg 0x14004bd38
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r13w
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x140143640]
test rdx, 0xffffffffffff0000
jne 0x14004b9c4
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004b9d9
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400026c0
jmp 0x14004b9d4
mov r8d, 1
lea rcx, [rsp + 0x30]
call fcn.1400023d0
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x40], 0x800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
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 0x14004bb82
mov eax, dword [rsp + 0x6c]
dec eax
cmp eax, 1
ja 0x14004bb82
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14004ba43
test al, 1
jne 0x14004bb82
shr rax, 1
cmp word [rbp + rax*2 - 0x52], 0
je 0x14004ba48
jmp 0x14004bb82
mov word [rbp - 0x50], r13w
lea rax, [rbp - 0x50]
mov rdi, r14
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004ba50
test edi, edi
jne 0x14004bab7
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004bb30
cmp dword [rdx + 0x10], 0
jge 0x14004ba93
cmp dword [rbx - 0xc], 0
jge 0x14004ba86
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x14004bb30
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004baa3
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 0x14004bb30
mov r15d, dword [rbx - 0x10]
lea rsi, [rbp - 0x50]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x14004bad4
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 0x14004baf6
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400024c0
mov rbx, qword [rsp + 0x30]
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 0x14004bb1a
lea r8, [rbx + rsi*2]
call fcn.1400c8404
jmp 0x14004bb23
lea r8, [rbp - 0x50]
call fcn.1400c8500
cmp edi, dword [rbx - 0xc]
jg 0x14004bb77
mov dword [rbx - 0x10], edi
mov word [r15 + rbx], r13w
lea r8, [rsp + 0x30]
lea rdx, [0x14013e608]
lea rcx, [rbp - 0x68]
call fcn.140019bb0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140010100
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004bb70
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
jmp 0x14004bb82
mov ecx, 0x80070057
call fcn.140001920
int3
mov r11d, dword [0x1401b4d80]
mov ecx, r11d
imul ecx, r11d
imul ecx, r11d
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
cmp ecx, 0xe
jne 0x14004bd0f
mov r10d, r13d
mov dword [rsp + 0x48], r13d
mov eax, r11d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x68], eax
mov eax, 0x55555556
imul r11d
mov r13d, edx
shr r13d, 0x1f
add r13d, edx
mov eax, r11d
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rsp + 0x74], eax
mov eax, 0x66666667
imul r11d
mov r12d, edx
sar r12d, 1
mov ecx, r12d
shr ecx, 0x1f
add r12d, ecx
mov eax, 0x2aaaaaab
imul r11d
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [rsp + 0x70], ecx
mov eax, 0x92492493
imul r11d
lea r15d, [r11 + rdx]
sar r15d, 2
mov eax, r15d
shr eax, 0x1f
add r15d, eax
lea r9, [rbp + 0x7b1]
mov r14d, ecx
mov ebx, dword [rsp + 0x68]
nop dword [rax]
movzx r8d, r11b
sub r8b, r10b
mov edi, 1
lea esi, [rdi + 9]
mov r10d, dword [rsp + 0x74]
mov eax, r11d
cdq
idiv edi
movzx eax, dl
imul r8b
movzx ecx, al
movzx eax, r11b
imul cl
mov byte [r9 - 1], al
movzx eax, r8b
imul bl
movzx ecx, al
movzx eax, dl
imul cl
mov byte [r9], al
movzx eax, dl
imul r8b
movzx ecx, al
movzx eax, r13b
imul cl
mov byte [r9 + 1], al
movzx eax, r8b
imul r10b
movzx ecx, al
movzx eax, dl
imul cl
mov byte [r9 + 2], al
movzx eax, r8b
imul r12b
movzx ecx, al
movzx eax, dl
imul cl
mov byte [r9 + 3], al
movzx eax, dl
imul r8b
movzx ecx, al
movzx eax, r14b
imul cl
mov byte [r9 + 4], al
movzx eax, dl
imul r8b
movzx ecx, al
movzx eax, r15b
imul cl
mov byte [r9 + 5], al
inc edi
add r9, 7
dec rsi
jne 0x14004bc54
mov r10d, dword [rsp + 0x48]
inc r10d
mov dword [rsp + 0x48], r10d
cmp r10d, 9
jl 0x14004bc40
mov rbx, qword [rsp + 0x30]
or r14, 0xffffffffffffffff
xor r13d, r13d
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004bd28
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x38]
mov r15, qword [rbp - 0x78]
jmp 0x14004bd43
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x14004bd56
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
lea rcx, [rbx - 0x18]
call fcn.140002520
add rax, 0x18
mov qword [r15], rax
mov dword [rsp + 0x44], 1
lock xadd dword [rbx - 8], r14d
dec r14d
jg 0x14004bd8e
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 0x14004bdbc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r13
jmp 0x14004bdbc
lea rdx, [0x140143140]
mov rcx, r15
call fcn.140002220
mov dword [rsp + 0x44], 1
mov rax, r15
mov dword [rsp + 0x58], r13d
mov rcx, qword [rbp + 0xa30]
xor rcx, rsp
call fcn.1400c7be0
lea r11, [rsp + 0xb40]
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