Function at 0x5f91a0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642bd0
mov eax, dword fs:[0]
push eax
sub esp, 0xc6c
mov eax, dword [0x6ccc30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0061e8c0
push str.NotificationAppx
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 0
push 0x104
push eax
call fcn.005cfe48
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0061e8c0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0061e8c0
push str.SOFTWAREAdobeAcrobat_Reader_
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0x104
push eax
call fcn.005cfe48
push 0x6505e8
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push 0x104
push eax
call fcn.005dd749
add esp, 0x48
push 0x6505ec
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 3
push 0x104
push eax
call fcn.005dd749
push 0x6505f4
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 4
push 0x104
push eax
call fcn.005dd749
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 5
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005dd749
push 0x6505f8
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 6
push 0x104
push eax
call fcn.005cfe48
push 0x650638
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 7
push 0x104
push eax
call fcn.005dd749
push 0x65063c
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 8
push 0x104
push eax
call fcn.005dd749
add esp, 0x48
push str.Installer_
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 9
push 0x104
push eax
call fcn.005dd749
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.005dd749
push 0
push 2
push 6
mov dword [ebp - 4], 0xffffffff
xor bl, bl
mov dword [ebp - 0xc78], 0
call fcn.005d7800
add esp, 0x24
test al, al
je 0x5f9490
push str.RtlGetVersion
push 0x650de0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x5f9490
push 0x110
lea eax, [ebp - 0xc70]
push 0
push eax
call fcn.0061e8c0
add esp, 0xc
mov dword [ebp - 0xc74], 0x114
lea eax, [ebp - 0xc74]
mov ecx, esi
push eax
call dword [0x64689c]
call esi
test eax, eax
js 0x5f9490
mov eax, dword [ebp - 0xc70]
cmp eax, 0xa
ja 0x5f93fd
jne 0x5f9490
mov eax, dword [ebp - 0xc6c]
test eax, eax
jne 0x5f93fd
cmp dword [ebp - 0xc68], 0x3839
jb 0x5f9490
push 0x100
lea eax, [ebp - 0xb4c]
mov dword [ebp - 0xb60], 0x11c
push 0
push eax
mov dword [ebp - 0xb5c], 0
mov dword [ebp - 0xb58], 0
mov dword [ebp - 0xb54], 0
mov dword [ebp - 0xb50], 0
call fcn.0061e8c0
add esp, 0xc
mov dword [ebp - 0xa48], 0x10000
xor eax, eax
mov dword [ebp - 0xa4c], eax
push 1
push 0x80
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 0x80
lea eax, [ebp - 0xb60]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x5f9490
call fcn.005f8d10
test al, al
jne 0x5f9490
mov byte [0x6cee95], 1
jmp 0x5f949c
cmp byte [0x6cee95], bl
je 0x5f962a
lea eax, [ebp - 0xc78]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x218]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5f962a
push 0x208
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0061e8c0
add esp, 0xc
mov dword [ebp - 0xa40], 0x206
lea eax, [ebp - 0xa40]
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xa44]
push eax
push 0
push 0x65065c
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc78]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc78], 0
test esi, esi
jne 0x5f962a
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f9534
sub ecx, edx
sar ecx, 1
je 0x5f962a
lea eax, [ebp - 0xc78]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x420]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x5f9588
mov bl, 1
mov ecx, dword [ebp - 0xc78]
test ecx, ecx
je 0x5f9581
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x5f962c
test eax, eax
jne 0x5f9570
push 0x208
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.0061e8c0
add esp, 0xc
mov dword [ebp - 0xa3c], 0x206
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa38]
push eax
push 0
push 0
push str.AppVersion
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc78]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
je 0x5f9624
test esi, esi
jne 0x5f9581
lea ecx, [ebp - 0xa38]
lea eax, [ebp - 0x830]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5f9617
test dx, dx
je 0x5f9613
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5f9617
add eax, 4
add ecx, 4
test dx, dx
jne 0x5f95f1
xor eax, eax
jmp 0x5f961c
sbb eax, eax
or eax, 1
test eax, eax
je 0x5f9581
mov bl, 1
mov al, bl
jmp 0x5f962c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov esp, ebp
pop ebp
ret