Function at 0x140054360
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 [0x1401cde90]
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 eax, dword [0x1401d5d60]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 0x8000000f
jge 0x1400543c9
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, 0xd
jne 0x1400543d9
call fcn.1400d41a0
mov dword [0x1401d5d60], eax
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
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 0x14005441f
mov rsi, qword [rsp + 0x70]
jmp 0x140054458
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14015f180]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400549c2
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.1400d8c20
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r15, [0x14015f260]
test r15, 0xffffffffffff0000
jne 0x1400544cd
movzx edi, r15w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14005453e
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002760
mov rbx, qword [rsp + 0x30]
jmp 0x14005453e
mov r14d, dword [rbx - 0x10]
mov rdi, r15
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 3
or eax, ecx
jge 0x140054500
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.140002560
mov rbx, qword [rsp + 0x30]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 6
mov rcx, rbx
add rdx, rdx
cmp rdi, r14
ja 0x140054520
lea r8, [rbx + rdi*2]
call fcn.1400d400c
jmp 0x140054528
mov r8, r15
call fcn.1400d41cc
cmp dword [rbx - 0xc], 3
jl 0x1400549b7
mov dword [rbx - 0x10], 3
mov word [rbx + 6], r12w
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 r15, 0xffffffffffffffff
test eax, eax
jne 0x140054958
mov eax, dword [rsp + 0x6c]
dec eax
cmp eax, 1
ja 0x140054958
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400545ac
test al, 1
jne 0x140054958
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x1400545b1
jmp 0x140054958
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 0x1400545c0
test edi, edi
jne 0x14005462f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400546b1
cmp dword [rdx + 0x10], 0
jge 0x140054603
cmp dword [rbx - 0xc], 0
jge 0x1400545f6
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x1400546b1
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140054613
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 0x1400546b1
mov r12d, dword [rbx - 0x10]
lea r14, [rbp - 0x60]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x14005464c
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 0x14005466e
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002560
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 0x140054692
lea r8, [rbx + r14*2]
call fcn.1400d400c
jmp 0x14005469b
lea r8, [rbp - 0x60]
call fcn.1400d41cc
cmp edi, dword [rbx - 0xc]
jg 0x14005494d
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea r8, [0x14015cc1c]
test r8, 0xffffffffffff0000
jne 0x140054706
movzx edi, r8w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14005477a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002760
mov rbx, qword [rsp + 0x38]
jmp 0x14005477a
mov r14d, dword [rbx - 0x10]
mov rdi, r8
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
dec eax
or eax, ecx
jge 0x14005473f
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140002560
mov rbx, qword [rsp + 0x38]
lea r8, [0x14015cc1c]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 2
mov rcx, rbx
add rdx, rdx
cmp rdi, r14
ja 0x14005475f
lea r8, [rbx + rdi*2]
call fcn.1400d400c
jmp 0x140054764
call fcn.1400d41cc
cmp dword [rbx - 0xc], 1
jl 0x140054942
mov dword [rbx - 0x10], 1
mov word [rbx + 2], r12w
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 0x140054922
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x140054922
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x1400547e4
test al, 1
jne 0x140054922
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x1400547e9
jmp 0x140054922
mov word [rbp - 0x60], r12w
lea rax, [rbp - 0x60]
mov rdi, r15
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400547f0
test edi, edi
jne 0x140054857
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400548d0
cmp dword [rdx + 0x10], 0
jge 0x140054833
cmp dword [rbx - 0xc], 0
jge 0x140054826
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x1400548d0
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140054843
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 0x1400548d0
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x60]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x140054874
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 0x140054896
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140002560
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 0x1400548ba
lea r8, [rbx + rsi*2]
call fcn.1400d400c
jmp 0x1400548c3
lea r8, [rbp - 0x60]
call fcn.1400d41cc
cmp edi, dword [rbx - 0xc]
jg 0x140054917
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], r12w
lea r8, [rsp + 0x38]
lea rdx, [0x14015cc5c]
lea rcx, [rbp - 0x80]
call fcn.14001b400
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400109d0
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140054910
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x38]
jmp 0x140054922
mov ecx, 0x80070057
call fcn.140001920
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140054936
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 0x140054958
mov ecx, 0x80070057
call fcn.140001920
nop
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x14005496b
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.1400025c0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x40], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x1400549a0
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 0x1400549d9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
jmp 0x1400549d9
mov ecx, 0x80070057
call fcn.140001920
nop
lea rdx, [0x14015f268]
mov rcx, r13
call fcn.1400022b0
mov dword [rsp + 0x40], 1
mov rax, r13
mov dword [rsp + 0x58], r12d
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400d37e0
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