Function at 0x140054bb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x1e0], rbx
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r15, rdx
mov rsi, rcx
xor r12d, r12d
mov ebx, r12d
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
mov byte [rdx], r12b
mov byte [rsp + 0x30], r12b
xor r14b, r14b
lea r8, [rcx + 0x80]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea rcx, [rbp + 0x30]
call fcn.14000ccf0
nop
mov qword [rsp + 0x40], r12
cmp qword [rbp + 0x50], 8
mov rdx, qword [rbp + 0x38]
jae 0x140054c3e
lea rdx, [rbp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140054c78
mov dword [rsp + 0x58], r12d
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], r12d
jmp 0x140054ccb
cmp eax, 2
jne 0x140054ccb
cmp byte [rsi + 0xd1], 0
je 0x140054ed6
mov qword [rsp + 0x40], r12
cmp qword [rbp + 0x50], 8
mov rdx, qword [rbp + 0x38]
jae 0x140054c9e
lea rdx, [rbp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140054c62
cmp eax, 2
je 0x140054ed6
cmp byte [rsi + 0xd0], 0
je 0x140054d8e
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Version
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, reloc.OLEAUT32.dll_SafeArrayGetLBound
mov word [rsp + 0x68], ax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x70], eax
lea r8, [rsi + 0xd8]
lea rcx, [rsi + 0x30]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x68]
call fcn.14005bf00
mov edi, eax
test eax, eax
jns 0x140054d7c
lea rax, str.Condition.cpp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x5ce
mov r8d, edi
lea rdx, str.IspInstalled:_failed_to_evaluate_version_comparison__error__x
lea rcx, [rsp + 0x40]
call fcn.14000b8a0
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x140054ed9
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
movzx edi, byte [rsp + 0x30]
jmp 0x140054d91
mov dil, 1
cmp byte [rsi + 0xd2], 0
je 0x140054ebe
lea r13, [0x140102478]
mov qword [rbp - 0x20], r13
lea rax, [0x1401025f8]
mov qword [rbp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x28], eax
mov qword [rbp - 8], r12
mov qword [rbp], r12
mov qword [rbp], 7
mov qword [rbp - 8], r12
mov word [rbp - 0x18], r12w
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov r8d, 0x104
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x20]
call fcn.140009620
nop
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
mov rsi, qword [rax]
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.LogFile
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140054e67
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x140054e67
test rsi, rsi
je 0x140054e67
cmp dword [rsp + 0x34], 0
jne 0x140054e67
mov word [rsi], r12w
lea rcx, [rsp + 0x68]
call fcn.140009c60
cmp qword [rbp - 8], 0
je 0x140054eb3
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x78], r13
lea rax, [0x1401025f8]
mov qword [rbp - 0x38], rax
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x78]
call fcn.140006eb0
nop
mov edx, 4
lea rcx, [rbp - 0x78]
call fcn.1400a2ea4
movzx r14d, al
lea rcx, [rbp - 0x20]
call fcn.1400048d0
jmp 0x140054ec1
mov r14b, 1
test dil, dil
je 0x140054ed0
test r14b, r14b
mov eax, 1
jne 0x140054ed3
mov eax, r12d
mov byte [r15], al
mov edi, r12d
lea rcx, [rbp + 0x30]
call fcn.1400048d0
nop
test rbx, rbx
je 0x140054ef6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
mov eax, edi
mov dword [rsp + 0x58], r12d
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400b31f0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret