Function at 0x422d9f
Capabilities:
Check os version
Delete registry value
Persist via run registry key

Disassembly:
push 0x7e4
mov eax, 0x466d26
call fcn.004414e8
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x7d4], eax
lea eax, [esi + 4]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x7bc], esi
mov dword [ebp - 0x7e4], ebx
jb 0x422dd5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x7c4]
push str.Running_setup_prerequisites___s_...
push eax
mov dword [ebp - 0x7c4], str.....SharedSetupSetupPrereqMgr.cpp
mov dword [ebp - 0x7c0], 0x36
call fcn.0040b2fa
add esp, 0xc
lea eax, [ebp - 0x100]
push 0x64c
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00409b6c
cmp dword [ebp - 0xe8], 8
lea eax, [ebp - 0xfc]
cmovae eax, dword [ebp - 0xfc]
push eax
push ebx
push 0xc
push 0x3eb
push dword [0x4893c0]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push ebx
lea eax, [ebp - 0x7b5]
push eax
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0x4745e4
mov dword [ebp - 0xa8], 0x46ef78
call fcn.004033a0
lea eax, [ebp - 0x40]
push eax
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 1
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00409ad0
add eax, 4
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x422e90
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xd0]
push str.__IS_PREREQ____s
push eax
call fcn.0040a4eb
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00401500
push ebx
lea eax, [ebp - 0x7b5]
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x4745e4
mov dword [ebp - 0x78], 0x46ef78
call fcn.004033a0
lea eax, [ebp - 0x40]
push eax
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 3
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00409ad0
add eax, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x422ef6
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa0]
push str.__IS_PREREQF____s
push eax
call fcn.0040a4eb
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00401500
mov dword [ebp - 0x7d0], ebx
mov dword [ebp - 0x7cc], ebx
mov dword [ebp - 0x7c8], ebx
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x7e0], ebx
call dword [eax]
test eax, eax
jne 0x423157
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersion
push SysReAllocStringLen
lea ecx, [ebp - 0x7d0]
call fcn.004013d0
mov dword [ebp - 0x7e0], eax
cmp dword [esi + 0x14], ebx
jne 0x423079
test eax, eax
jne 0x423079
push ebx
lea eax, [ebp - 0x7b5]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4745e4
mov dword [ebp - 0x48], 0x46ef78
call fcn.004033a0
push 0x105
lea eax, [ebp - 0x7f0]
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
mov dword [ebp - 0x7c0], 0x104
call fcn.004076d5
mov ecx, dword [eax]
mov byte [ebp - 4], 7
mov byte [eax + 4], 1
call fcn.0040767a
cmp dword [ebp - 0x88], 8
lea edx, [ebp - 0x7c0]
push edx
push dword [eax]
lea ecx, [ebp - 0x9c]
cmovae ecx, dword [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x7d0]
call fcn.00401480
lea ecx, [ebp - 0x7f0]
mov esi, eax
mov byte [ebp - 4], 6
call fcn.00406d8b
test esi, esi
jne 0x42306b
mov eax, dword [edi]
push ebx
lea ecx, [ebp - 0x70]
push ecx
push 0x11
mov ecx, edi
call dword [eax + 0x18]
cmp dword [ebp - 0x88], 8
lea eax, [ebp - 0x9c]
cmovae eax, dword [ebp - 0x9c]
push eax
push dword [ebp - 0x7d0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [ebp - 0x7bc]
cmp dword [esi + 0x14], ebx
jne 0x423071
push ebx
lea eax, [ebp - 0x7d8]
push str.Prerequisites_returning__d
push eax
mov dword [ebp - 0x7d8], str.....SharedSetupSetupPrereqMgr.cpp
mov dword [ebp - 0x7d4], 0x5a
call fcn.0040b2fa
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.00401500
jmp 0x42350a
mov esi, dword [ebp - 0x7bc]
lea ecx, [ebp - 0x70]
call fcn.00401500
push ebx
lea eax, [ebp - 0x7b5]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.004033a0
push 0x105
lea eax, [ebp - 0x7f0]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
mov dword [ebp - 0x7c0], 0x104
call fcn.004076d5
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov byte [eax + 4], 1
call fcn.0040767a
cmp dword [ebp - 0xb8], 8
lea edx, [ebp - 0x7c0]
push edx
push dword [eax]
lea ecx, [ebp - 0xcc]
cmovae ecx, dword [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0x7d0]
call fcn.00401480
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x7f0]
sbb bl, bl
mov byte [ebp - 4], 8
call fcn.00406d8b
inc bl
je 0x423149
push 0xa
lea eax, [ebp - 0x7c0]
push eax
lea ecx, [ebp - 0x40]
call fcn.00423c31
mov eax, dword [edi]
push dword [ebp - 0x7c0]
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 0xb8], 8
lea eax, [ebp - 0xcc]
cmovae eax, dword [ebp - 0xcc]
push eax
push dword [ebp - 0x7d0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401500
xor ebx, ebx
lea eax, [ebp - 0x7b6]
push eax
lea eax, [ebp - 0x7b5]
push eax
sub esp, 0x30
mov ecx, esp
push ebx
push esi
mov dword [ecx], 0x4745e4
mov dword [ecx + 0x28], 0x46ef78
call fcn.004043d0
mov ecx, edi
call fcn.0042245b
test al, al
je 0x423435
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
cmp eax, 1
jne 0x4232cc
mov eax, dword [edi]
push 0xe
mov ecx, edi
call dword [eax + 0x28]
test al, al
je 0x4232cc
mov eax, dword [edi + 8]
mov esi, dword [eax]
mov dword [ebp - 0x7bc], esi
cmp esi, eax
je 0x423435
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x2c]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x7b4]
call fcn.004252d5
push ebx
lea eax, [ebp - 0x7b5]
push eax
push 0x478ed0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.00403400
add esi, 0x1c
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x14], 8
jb 0x42320c
mov esi, dword [esi]
lea eax, [ebp - 0x40]
push eax
push ebx
push esi
lea ecx, [ebp - 0x7b4]
call fcn.0042baac
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.00401500
push edi
lea ecx, [ebp - 0x2d8]
call fcn.0040b132
mov eax, dword [edi]
push 0xe
lea ecx, [ebp - 0x130]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xc
call dword [eax + 0x1c]
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0040f87b
push ebx
push eax
lea eax, [ebp - 0x7b4]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 0xe
call fcn.0040c112
lea ecx, [ebp - 0x40]
call fcn.00401500
lea ecx, [ebp - 0x70]
call fcn.00401500
lea ecx, [ebp - 0x130]
call fcn.00401500
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 0xa
call fcn.0040b244
lea ecx, [ebp - 0x7b4]
mov byte [ebp - 4], 5
call fcn.00425876
lea ecx, [ebp - 0x7bc]
call fcn.0040b2c0
mov esi, dword [ebp - 0x7bc]
cmp esi, dword [edi + 8]
jne 0x4231c0
jmp 0x423435
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
test eax, eax
jne 0x423435
push edi
lea ecx, [ebp - 0x2d8]
call fcn.0040b132
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 4], 0xf
mov byte [ebp - 0x1b0], al
call fcn.00437212
cmp eax, 6
jb 0x423324
cmp byte [ebp - 0x7b5], 0
je 0x423324
call fcn.0043d0ca
test al, al
jne 0x423324
mov byte [ebp - 0x1af], 1
jmp 0x4233e1
mov al, byte [ebp - 0x7b6]
mov byte [ebp - 0x1af], bl
test al, al
jne 0x4233e7
mov eax, dword [edi]
push 0x10
mov ecx, edi
call dword [eax + 0x28]
test al, al
jne 0x4233e1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
jne 0x42335b
push 2
jmp 0x4235be
cmp byte [0x489238], 0
jne 0x42336d
cmp byte [0x48a884], 0
je 0x4233e1
push ebx
lea eax, [ebp - 0x7b5]
push eax
push str.....SharedSetupSetupPrereqMgr.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4745e4
mov dword [ebp - 0x48], 0x46ef78
call fcn.00403400
push ebx
lea eax, [ebp - 0x7b5]
push eax
push str.Showing_initialization_dialog_for_prerequisites.
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.00403400
push 0x8d
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0x11
call fcn.00402270
lea ecx, [ebp - 0x40]
call fcn.00401500
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xf
call fcn.00401500
mov al, byte [ebp - 0x7b6]
push dword [ebp - 0x7d4]
test al, al
sete al
movzx eax, al
push eax
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x2c]
lea ecx, [ebp - 0x2d8]
push dword [eax + 0x20]
call fcn.0040b58d
push 2
pop ecx
sub eax, ecx
je 0x423420
sub eax, 5
je 0x423540
sub eax, ecx
jne 0x423426
mov dword [ebp - 0x7e4], ecx
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 5
call fcn.0040b244
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
test eax, eax
jne 0x4234db
cmp dword [ebp - 0x7e0], eax
jne 0x423489
cmp dword [ebp - 0xb8], 8
mov esi, dword [ebp - 0x7d0]
lea eax, [ebp - 0xcc]
cmovae eax, dword [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 0x88], 8
lea eax, [ebp - 0x9c]
cmovae eax, dword [ebp - 0x9c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [ebp + 0x10], 0
je 0x4234db
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocStringLen
lea ecx, [ebp - 0x7d0]
mov dword [ebp - 0x7dc], ebx
mov dword [ebp - 0x7d8], ebx
mov dword [ebp - 0x7d4], ebx
call fcn.004013d0
test eax, eax
jne 0x4234d0
push str.__ISSetupPrerequisistes
push dword [ebp - 0x7d0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x7dc]
call fcn.004013a0
mov ebx, dword [ebp - 0x7e4]
push ebx
lea eax, [ebp - 0x7d8]
push str.Prerequisites_returning__d
push eax
mov dword [ebp - 0x7d8], str.....SharedSetupSetupPrereqMgr.cpp
mov dword [ebp - 0x7d4], 0xb3
call fcn.0040b2fa
add esp, 0xc
lea ecx, [ebp - 0x7d0]
call fcn.004013a0
lea ecx, [ebp - 0xa0]
call fcn.00401500
lea ecx, [ebp - 0xd0]
call fcn.00401500
lea ecx, [ebp - 0x100]
call fcn.00401500
mov eax, ebx
call fcn.00441497
ret 0x10
cmp byte [0x489238], 0
jne 0x423552
cmp byte [0x48a884], 0
je 0x4235bc
push ebx
lea eax, [ebp - 0x7b5]
push eax
mov esi, 0x4745e4
mov edi, 0x46ef78
push str.....SharedSetupSetupPrereqMgr.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x48], edi
call fcn.00403400
push ebx
lea eax, [ebp - 0x7b5]
push eax
push str.Prerequisites_rebooting
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x18], edi
call fcn.00403400
push 0x96
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0x13
call fcn.00402270
lea ecx, [ebp - 0x40]
call fcn.00401500
lea ecx, [ebp - 0x70]
call fcn.00401500
push 7
pop ebx
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 5
call fcn.0040b244
jmp 0x42350a