Function at 0x1007b9b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b5be4
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x49c], eax
mov edi, ecx
mov dword [ebp - 0x4ac], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4a8], 0
mov byte [ebp - 0x48e], 0
mov dword [ebp - 4], 0
push eax
mov edx, str.uninstall_
lea ecx, [ebp - 0x474]
call fcn.1004bd30
mov byte [ebp - 4], 1
lea eax, [ebp - 0x474]
push eax
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersion_
lea ecx, [ebp - 0x444]
call fcn.1004bd30
add esp, 8
mov byte [ebp - 4], 2
mov dword [ebp - 0x494], 0
lea ecx, [ebp - 0x48c]
call fcn.10005010
mov byte [ebp - 4], 3
push str.SystemComponent
lea ecx, [ebp - 0x4d4]
call fcn.10004fc0
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x4d4]
push eax
lea edx, [ebp - 0x444]
mov ecx, edi
call fcn.1006f010
add esp, 0xc
mov byte [ebp - 0x48e], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4d4]
call fcn.10004f10
cmp byte [ebp - 0x48e], 0
je 0x1007bae8
cmp dword [ebp - 0x494], 1
jne 0x1007bae8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48c]
call fcn.10004f10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x444]
call fcn.10004f10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x474]
call fcn.10004f10
xor al, al
jmp 0x1007c333
push str.ParentKeyName
lea ecx, [ebp - 0x4d4]
call fcn.10004fc0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 8
cmovae eax, dword [ebp - 0x444]
push eax
lea ecx, [ebp - 0x42c]
call fcn.10004fc0
mov byte [ebp - 4], 6
push dword [ebp + 0xc]
lea eax, [ebp - 0x42c]
push eax
push edi
call fcn.1006f0b0
mov byte [ebp - 0x48d], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x42c]
call fcn.10004f10
cmp byte [ebp - 0x48d], 0
jne 0x1007bb5a
mov byte [ebp - 0x4a4], 0
jmp 0x1007bc55
mov dword [ebp - 0x4a0], 0
mov ecx, 0x20019
mov dword [ebp - 0x4b4], ecx
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1007bb83
sub eax, 1
jne 0x1007bb8e
mov ecx, 0x20119
jmp 0x1007bb88
mov ecx, 0x20219
mov dword [ebp - 0x4b4], ecx
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 8
cmovae eax, dword [ebp - 0x444]
lea edx, [ebp - 0x4a0]
push edx
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1007bbc4
mov byte [ebp - 0x4a4], 0
jmp 0x1007bc55
mov byte [ebp - 0x48d], 0
push 0x400
push 0
lea eax, [ebp - 0x414]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4b0], 0x3fe
mov dword [ebp - 0x498], 1
lea eax, [ebp - 0x4d4]
cmp dword [ebp - 0x4c0], 8
cmovae eax, dword [ebp - 0x4d4]
lea ecx, [ebp - 0x4b0]
push ecx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x498]
push ecx
push 0
push eax
push dword [ebp - 0x4a0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, byte [ebp - 0x48d]
mov edx, 1
test eax, eax
cmove ecx, edx
mov dword [ebp - 0x4a4], ecx
mov eax, dword [ebp - 0x4a0]
test eax, eax
je 0x1007bc55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4d4]
call fcn.10004f10
cmp byte [ebp - 0x4a4], 0
jne 0x1007bab4
push str.IsMinorUpgrade
lea ecx, [ebp - 0x42c]
call fcn.10004fc0
mov byte [ebp - 4], 7
push dword [ebp + 0xc]
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x42c]
push eax
lea edx, [ebp - 0x444]
mov ecx, edi
call fcn.1006f010
add esp, 0xc
mov byte [ebp - 0x48e], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x42c]
call fcn.10004f10
cmp byte [ebp - 0x48e], 0
je 0x1007bcd1
cmp dword [ebp - 0x494], 1
je 0x1007bab4
xor edi, edi
mov dword [ebp - 0x4b8], edi
cmp edi, 1
jge 0x1007bd0d
push dword [ebp + 0xc]
lea eax, [esi + 0x1c]
push eax
lea eax, [edi + edi*2]
lea eax, [eax*8 + 0x1022bf08]
push eax
lea edx, [ebp - 0x444]
mov ecx, dword [ebp - 0x4ac]
call fcn.1006f450
add esp, 0xc
cmp dword [esi + 0x2c], 0
jne 0x1007bd17
inc edi
jmp 0x1007bcd3
cmp dword [esi + 0x2c], 0
je 0x1007bab4
push str.UninstallString
lea ecx, [ebp - 0x42c]
call fcn.10004fc0
mov byte [ebp - 4], 8
mov dword [ebp - 0x4a8], 1
lea eax, [esi + 0x64]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
lea edx, [ebp - 0x444]
mov edi, dword [ebp - 0x4ac]
mov ecx, edi
call fcn.1006f450
add esp, 0xc
test al, al
je 0x1007bd6a
cmp dword [esi + 0x74], 0
mov byte [ebp - 0x48d], 0
jne 0x1007bd71
mov byte [ebp - 0x48d], 1
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x42c]
call fcn.10004f10
mov dword [ebp - 0x4a8], 0
cmp byte [ebp - 0x48d], 0
je 0x1007bdd7
push str.QuietUninstallString
lea ecx, [ebp - 0x42c]
call fcn.10004fc0
mov byte [ebp - 4], 9
push dword [ebp + 0xc]
lea eax, [esi + 0x64]
push eax
lea eax, [ebp - 0x42c]
push eax
lea edx, [ebp - 0x444]
mov ecx, edi
call fcn.1006f450
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x42c]
call fcn.10004f10
mov dword [ebp - 0x494], 0
push str.WindowsInstaller
lea ecx, [ebp - 0x42c]
call fcn.10004fc0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x4a8], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x42c]
push eax
lea edx, [ebp - 0x444]
mov ecx, edi
call fcn.1006f010
add esp, 0xc
test al, al
je 0x1007be34
cmp dword [ebp - 0x494], 1
mov byte [ebp - 0x48d], 1
je 0x1007be3b
mov byte [ebp - 0x48d], 0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x42c]
call fcn.10004f10
cmp byte [ebp - 0x48d], 0
je 0x1007bf83
lea eax, [esi + 0x64]
push eax
lea ecx, [ebp - 0x45c]
call fcn.10006ac0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x44c], 0
jne 0x1007bede
push dword [ebp - 0x49c]
mov edx, str.MsiExec.exe__X
lea ecx, [ebp - 0x42c]
call fcn.1004bd30
add esp, 4
mov dword [ebp - 0x498], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x45c]
cmp ecx, eax
je 0x1007bf3e
call fcn.10005540
mov eax, dword [ebp - 0x498]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x45c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
xor ecx, ecx
mov word [eax], cx
jmp 0x1007bf3e
lea ecx, [ebp - 0x45c]
call fcn.100b5cd0
lea eax, [ebp - 0x45c]
cmp dword [ebp - 0x448], 8
jb 0x1007bf02
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x1007bf15
push str.msiexec.exe__x
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x1007bf4d
push dword [ebp - 0x49c]
mov edx, str.MsiExec.exe__X
lea ecx, [ebp - 0x42c]
call fcn.1004bd30
add esp, 4
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x45c]
call fcn.10004f50
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x42c]
call fcn.10004f10
lea eax, [ebp - 0x45c]
lea ecx, [esi + 0x64]
cmp ecx, eax
je 0x1007bf74
cmp dword [ebp - 0x448], 8
cmovae eax, dword [ebp - 0x45c]
push dword [ebp - 0x44c]
push eax
call fcn.100055f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x45c]
call fcn.10004f10
cmp dword [esi + 0x74], 0
je 0x1007bf91
lea ecx, [esi + 0x64]
call fcn.1007e9b0
push str.DisplayIcon
lea ecx, [ebp - 0x42c]
call fcn.10004fc0
mov byte [ebp - 4], 0xe
lea eax, [esi + 0x94]
mov dword [ebp - 0x4b0], eax
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
lea edx, [ebp - 0x444]
mov ecx, edi
call fcn.1006f450
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x42c]
call fcn.10004f10
cmp dword [esi + 0xa4], 0
je 0x1007bfef
lea ecx, [esi + 0x94]
call fcn.1007e9b0
lea edx, [esi + 0xac]
lea ecx, [esi + 0x94]
call fcn.10070c80
mov dword [ebp - 0x49c], 0
push str.EstimatedSize
lea ecx, [ebp - 0x42c]
call fcn.10004fc0
mov byte [ebp - 4], 0xf
push dword [ebp + 0xc]
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x42c]
push eax
lea edx, [ebp - 0x444]
mov ecx, edi
call fcn.1006f010
add esp, 0xc
mov byte [ebp - 0x48d], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x42c]
call fcn.10004f10
cmp byte [ebp - 0x48d], 0
je 0x1007c078
mov eax, dword [ebp - 0x49c]
xor ecx, ecx
shld ecx, eax, 0xa
shl eax, 0xa
mov dword [esi + 0x130], eax
mov dword [esi + 0x134], ecx
push str.DisplayVersion
lea ecx, [ebp - 0x42c]
call fcn.10004fc0
mov byte [ebp - 4], 0x10
push dword [ebp + 0xc]
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0x42c]
push eax
lea edx, [ebp - 0x444]
mov ecx, edi
call fcn.1006f450
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x42c]
call fcn.10004f10
xor edi, edi
mov dword [ebp - 0x4bc], edi
cmp edi, 2
jge 0x1007c113
lea eax, [esi + 0x7c]
push dword [ebp + 0xc]
push eax
lea eax, [edi + edi*2]
lea eax, [eax*8 + 0x1022bed8]
push eax
lea edx, [ebp - 0x444]
mov ecx, dword [ebp - 0x4ac]
call fcn.1006f450
add esp, 0xc
cmp dword [esi + 0x8c], 0
je 0x1007c1ce
mov edx, 0x101d39bc
lea ecx, [esi + 0x7c]
call fcn.100b5b10
mov edx, 0x101d39bc
lea ecx, [esi + 0x7c]
call fcn.100b5ba0
cmp dword [esi + 0x8c], 0
je 0x1007c180
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi + 0x7c]
cmp dword [esi + 0x90], 8
jb 0x1007c141
mov eax, dword [esi + 0x7c]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1007c180
lea edx, [ebp - 0x21c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1007c161
sub edx, ecx
sar edx, 1
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [esi + 0x7c]
call fcn.100055f0
lea eax, [ebp - 0x474]
cmp dword [ebp + 0xc], 0
jne 0x1007c1d4
lea edi, [esi + 0xe4]
cmp edi, eax
je 0x1007c1b2
cmp dword [ebp - 0x460], 8
cmovae eax, dword [ebp - 0x474]
push dword [ebp - 0x464]
push eax
mov ecx, edi
call fcn.100055f0
cmp dword [esi + 0x144], 0xffffffff
jne 0x1007c24e
mov dword [esi + 0x144], 2
jmp 0x1007c24e
inc edi
jmp 0x1007c0bb
push eax
mov edx, str.x64_
lea ecx, [ebp - 0x4d4]
call fcn.1004bd30
add esp, 4
mov dword [ebp - 0x498], eax
mov byte [ebp - 4], 0x11
lea edi, [esi + 0xe4]
cmp edi, eax
je 0x1007c22c
mov ecx, edi
call fcn.10005540
mov eax, dword [ebp - 0x498]
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4d4]
call fcn.10004f10
cmp dword [esi + 0x144], 0xffffffff
jne 0x1007c24e
mov dword [esi + 0x144], 1
mov ecx, edi
call fcn.100b5cd0
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x1007c2c5
lea edx, [esi + 0x64]
lea ecx, [ebp - 0x4ec]
call fcn.1007d7a0
mov dword [ebp - 0x498], eax
mov byte [ebp - 4], 0x12
lea edi, [esi + 0x7c]
cmp edi, eax
je 0x1007c2ae
mov ecx, edi
call fcn.10005540
mov eax, dword [ebp - 0x498]
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4ec]
call fcn.10004f10
mov eax, dword [esi + 0x8c]
jmp 0x1007c2c8
lea edi, [esi + 0x7c]
test eax, eax
jne 0x1007c2d9
mov edx, edi
mov ecx, dword [ebp - 0x4b0]
call fcn.100b4020
mov ecx, edi
call fcn.1007c360
test al, al
jne 0x1007c2f2
push 0
push 0x101cdc64
mov ecx, edi
call fcn.100055f0
mov byte [ebp - 0x48e], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48c]
call fcn.10004f10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x444]
call fcn.10004f10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x474]
call fcn.10004f10
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x48e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret