Function at 0x14004e370
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1160]
mov eax, 0x1260
call fcn.1400d0b90
sub rsp, rax
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1298], rbx
mov qword [rsp + 0x12a0], rsi
mov qword [rsp + 0x12a8], rdi
mov rax, qword [0x1401b5e90]
xor rax, rsp
mov qword [rbp + 0x1150], rax
mov rsi, rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x70], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov r8d, dword [0x1401bdd80]
lea r9d, [r8 + 1]
mov ecx, r8d
imul ecx, r9d
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
sub ecx, eax
cmp ecx, 4
jne 0x14004e426
test r8d, r8d
je 0x14004e41c
dec r8d
je 0x14004e413
mov dword [0x1401bdd80], r9d
jmp 0x14004e426
mov dword [0x1401bdd80], r15d
jmp 0x14004e426
mov dword [0x1401bdd80], 2
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
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 0x14004e46c
mov r12, qword [rsp + 0x70]
jmp 0x14004e4a2
mov qword [rbp - 0x80], r15
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 0x14004ea30
mov r12, qword [rbp - 0x80]
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r15d
mov word [rbp - 0x60], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call fcn.1400d0f20
mov eax, dword [0x1401bdd80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
cmp ecx, 3
jne 0x14004e4f7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401bdd80], eax
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [0x14014bc30]
test rdx, 0xffffffffffff0000
jne 0x14004e542
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004e557
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002690
jmp 0x14004e552
mov r8d, 3
lea rcx, [rsp + 0x30]
call fcn.1400023a0
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, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r13, 0xffffffffffffffff
test eax, eax
jne 0x14004e9cb
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x14004e9cb
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14004e5c5
test al, 1
jne 0x14004e9cb
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x14004e5ca
jmp 0x14004e9cb
mov word [rbp - 0x60], r15w
lea rax, [rbp - 0x60]
mov rdi, r13
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004e5d1
test edi, edi
jne 0x14004e63d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004e6ba
cmp dword [rdx + 0x10], 0
jge 0x14004e614
cmp dword [rbx - 0xc], 0
jge 0x14004e607
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14004e6ba
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e624
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 r12, qword [rsp + 0x50]
jmp 0x14004e6ba
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x60]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x14004e65a
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 0x14004e67c
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002490
mov rbx, qword [rsp + 0x30]
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 0x14004e6a0
lea r8, [rbx + rsi*2]
call fcn.1400cc30c
jmp 0x14004e6a9
lea r8, [rbp - 0x60]
call fcn.1400cc4cc
cmp edi, dword [rbx - 0xc]
jg 0x14004e9c0
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], r15w
call fcn.14004a7f0
test al, al
jne 0x14004e6ee
mov r11d, 1
mov ecx, dword [0x1401bdd80]
cmp ecx, r11d
jle 0x14004e6e5
mov eax, ecx
cdq
idiv r11d
inc r11d
add r11d, edx
cmp r11d, ecx
jl 0x14004e6d4
mov dword [0x1401bdd80], r11d
jmp 0x14004e6f5
mov r11d, dword [0x1401bdd80]
lea ecx, [r11 + 2]
lea eax, [r11 + 1]
imul ecx, eax
imul ecx, r11d
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 0xf
jne 0x14004e790
lea r10, [rbp + 0x7a0]
nop word [rax + rax]
movzx esi, r11b
sub sil, r15b
mov ebx, 1
lea r14d, [rbx + 0xe]
xor r8d, r8d
mov eax, r11d
cdq
idiv ebx
mov edi, edx
mov r9d, 1
mov eax, r11d
cdq
idiv r9d
mov ecx, eax
movzx eax, dil
imul cl
movzx ecx, al
movzx eax, sil
imul cl
mov byte [r10 + r8], al
inc r9d
inc r8
cmp r8, 0xb
jl 0x14004e751
inc ebx
add r10, 0xb
dec r14
jne 0x14004e740
inc r15d
cmp r15d, 0xf
jl 0x14004e730
xor r15d, r15d
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rdx, [0x14014c140]
test rdx, 0xffffffffffff0000
jne 0x14004e7db
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004e7f0
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002690
jmp 0x14004e7eb
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.1400023a0
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, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004e99b
mov eax, dword [rsp + 0x6c]
dec eax
cmp eax, 1
ja 0x14004e99b
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14004e85a
test al, 1
jne 0x14004e99b
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x14004e85f
jmp 0x14004e99b
mov word [rbp - 0x60], r15w
lea rax, [rbp - 0x60]
mov rdi, r13
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004e866
test edi, edi
jne 0x14004e8d0
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004e949
cmp dword [rdx + 0x10], 0
jge 0x14004e8a9
cmp dword [rbx - 0xc], 0
jge 0x14004e89c
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14004e949
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e8b9
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 0x14004e949
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x60]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x14004e8ed
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 0x14004e90f
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140002490
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 0x14004e933
lea r8, [rbx + rsi*2]
call fcn.1400cc30c
jmp 0x14004e93c
lea r8, [rbp - 0x60]
call fcn.1400cc4cc
cmp edi, dword [rbx - 0xc]
jg 0x14004e990
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], r15w
lea r8, [rsp + 0x38]
lea rdx, [0x140147148]
lea rcx, [rbp - 0x78]
call fcn.14001afb0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140010970
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e989
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x38]
jmp 0x14004e99b
mov ecx, 0x80070057
call fcn.140001920
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004e9af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x78]
jmp 0x14004e9cb
mov ecx, 0x80070057
call fcn.140001920
int3
test r12, r12
je 0x14004e9de
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
lea rcx, [rbx - 0x18]
call fcn.1400024f0
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x40], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x14004ea12
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 0x14004eab3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r15
jmp 0x14004eab3
mov ecx, dword [0x1401bdd80]
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, 9
jne 0x14004ea9c
lea ecx, [r8 + 0x1f]
call fcn.1400cb128
mov rdi, rax
mov rbx, r15
call fcn.1400cc4a0
add eax, dword [0x1401bdd80]
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x14004ea74
mov ecx, dword [rdi + 0x24]
mov dword [0x1401bdd80], ecx
mov rcx, rdi
call fcn.1400cc208
lea rdx, [0x14014bc30]
mov rcx, rsi
call fcn.1400021f0
mov dword [rsp + 0x40], 1
mov rax, rsi
mov dword [rsp + 0x58], r15d
mov rcx, qword [rbp + 0x1150]
xor rcx, rsp
call fcn.1400cbae0
lea r11, [rsp + 0x1260]
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