Function at 0x41b7c7
Capabilities:
Check os version
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x461e0d
call fcn.0043b410
sub esp, 0x5f8
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov eax, dword [eax + 8]
push edi
cmp eax, ebx
mov esi, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], 0x4675bc
je 0x41b7f5
mov dword [ebp - 0x18], eax
push 1
lea eax, [ebp - 0x11]
pop edi
lea ecx, [ebp - 0x68]
push edi
push eax
push str.C:CodeBasesisdev_srcRuntimeSharedSetupSetupPrereqMgr.cpp
call fcn.0040a6bc
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x41b819
mov eax, 0x4675bc
push dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0x36
push str.Running_setup_prerequisites___s_...
push eax
call fcn.00408454
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.0040632e
lea eax, [ebp - 0x114]
push 0x64c
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403e5c
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], edi
call fcn.00401f8a
push eax
push ebx
push 0xc
push 0x3eb
push dword [0x47d7e0]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x2d]
mov edi, 0x467550
push ebx
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x467548
mov dword [ebp - 0xa4], edi
call fcn.00401aaf
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
mov eax, dword [esi]
mov byte [ebp - 4], 2
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403637
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x41b8cb
mov eax, 0x46756c
push eax
lea eax, [ebp - 0xc4]
push str.__IS_PREREQ____s
push eax
call fcn.004058da
add esp, 0xc
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00401279
lea eax, [ebp - 0x11]
push ebx
push eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xec], 0x467548
mov dword [ebp - 0xcc], edi
call fcn.00401aaf
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
mov eax, dword [esi]
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403637
mov eax, dword [eax + 8]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x41b932
mov eax, 0x46756c
push eax
lea eax, [ebp - 0xec]
push str.__IS_PREREQF____s
push eax
call fcn.004058da
add esp, 0xc
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00401279
mov dword [ebp - 0x10], ebx
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], ebx
call dword [eax]
test eax, eax
jne 0x41bbe7
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x41b99a
lea ecx, [ebp - 0x10]
call fcn.00409172
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
cmp dword [ecx + 0xc], ebx
jne 0x41bb27
cmp eax, ebx
jne 0x41bb27
lea eax, [ebp - 0x13]
push ebx
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x467548
mov dword [ebp - 0x70], edi
call fcn.00401aaf
lea eax, [ebp - 0x9c]
push 0x105
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 7
mov dword [ebp - 0x2c], 0x104
call fcn.004017a8
mov dword [ebp - 0x34], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 8
call fcn.00401f8a
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov dword [ecx + 8], eax
lea ecx, [ebp - 0xec]
call fcn.00401f8a
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
push ecx
lea ecx, [ebp - 0x34]
push dword [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
call fcn.004019fd
cmp dword [ebp - 0x20], ebx
jne 0x41bb18
mov eax, dword [esi]
lea ecx, [ebp - 0x90]
push ebx
push ecx
push 0x11
mov ecx, esi
call dword [eax + 0x18]
lea ecx, [ebp - 0xec]
call fcn.00401f8a
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], ebx
jne 0x41bb18
lea eax, [ebp + 0x13]
push 1
push eax
push str.C:CodeBasesisdev_srcRuntimeSharedSetupSetupPrereqMgr.cpp
lea ecx, [ebp - 0x13c]
call fcn.0040a6bc
mov eax, dword [eax + 8]
mov byte [ebp - 4], 9
cmp eax, ebx
jne 0x41ba9e
mov eax, 0x4675bc
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 0x24]
push str.Prerequisites_returning__d
push eax
mov dword [ebp - 0x20], 0x56
call fcn.00408454
add esp, 0xc
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 7
call fcn.0040632e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.00401279
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00409172
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401279
xor eax, eax
jmp 0x41c0e6
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.00401279
lea eax, [ebp - 0x13]
push ebx
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0x467548
mov dword [ebp - 0x48], edi
call fcn.00401aaf
lea eax, [ebp - 0x9c]
push 0x105
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x3c], 0x104
call fcn.004017a8
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xb
call fcn.00401f8a
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x20], eax
mov dword [edi + 8], eax
call fcn.00401f8a
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
push ecx
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
lea ecx, [ebp - 0x9c]
sete byte [ebp - 0x11]
mov byte [ebp - 4], 0xa
call fcn.004019fd
cmp byte [ebp - 0x11], bl
je 0x41bbdb
lea eax, [ebp - 0x20]
push 0xa
push eax
lea ecx, [ebp - 0x68]
call fcn.0041cf12
mov eax, dword [esi]
push dword [ebp - 0x20]
mov ecx, esi
call dword [eax + 0x20]
lea ecx, [ebp - 0xc4]
call fcn.00401f8a
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401279
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x19]
push eax
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 1
push dword [ebp + 0xc]
call fcn.0040c375
mov ecx, esi
call fcn.0041c135
cmp al, bl
je 0x41bfe2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
cmp eax, 1
jne 0x41bd58
mov eax, dword [esi]
push 0xe
mov ecx, esi
call dword [eax + 0x28]
test al, al
je 0x41bd58
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp + 8], ecx
je 0x41bfe2
mov edi, 0x4675a8
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x604]
call fcn.0041dfcc
lea eax, [ebp + 0xf]
push ebx
push eax
push 0x47d770
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x68], 0x4675b0
mov dword [ebp - 0x48], edi
call fcn.0040b3d6
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0x14]
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.0040bc49
push eax
lea ecx, [ebp - 0x604]
call fcn.0041e50a
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xc
call fcn.0040632e
push esi
lea ecx, [ebp - 0x2d4]
call fcn.00406233
mov eax, dword [esi]
lea ecx, [ebp - 0x164]
push 0xe
push ecx
mov ecx, esi
mov byte [ebp - 4], 0xe
call dword [eax + 0x1c]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xf
push ecx
mov ecx, eax
call fcn.0040b1d0
push ebx
push eax
lea eax, [ebp - 0x604]
lea ecx, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x13c]
push eax
mov byte [ebp - 4], 0x10
call fcn.00409189
lea ecx, [ebp - 0x13c]
call fcn.0040632e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xf
call fcn.0040632e
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xe
call fcn.00401279
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 0xc
call fcn.004063c4
lea ecx, [ebp - 0x604]
mov byte [ebp - 4], 6
call fcn.0041e423
lea ecx, [ebp + 8]
call fcn.0040bd0a
mov eax, dword [esi + 0xc]
cmp dword [ebp + 8], eax
jne 0x41bc45
jmp 0x41bfe2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x41bfe2
push esi
lea ecx, [ebp - 0x2d4]
call fcn.00406233
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x1d8], eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x1d4], al
call fcn.0042de17
cmp eax, 6
mov edi, 0x4675a8
jb 0x41bdb1
cmp byte [ebp - 0x19], bl
je 0x41bdb1
call fcn.00437063
test al, al
jne 0x41bdb1
mov byte [ebp - 0x1d3], 1
jmp 0x41beb6
cmp byte [ebp - 0x12], bl
mov byte [ebp - 0x1d3], bl
jne 0x41beb6
mov eax, dword [esi]
push 0x10
mov ecx, esi
call dword [eax + 0x28]
test al, al
jne 0x41beb6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
jne 0x41be30
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.004063c4
cmp dword [ebp - 0x10], ebx
je 0x41bdfc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401279
push 2
jmp 0x41bfca
cmp byte [0x47d660], bl
jne 0x41be40
cmp byte [0x47dec0], bl
je 0x41beb6
lea eax, [ebp + 0xb]
push 1
push eax
push str.C:CodeBasesisdev_srcRuntimeSharedSetupSetupPrereqMgr.cpp
lea ecx, [ebp - 0x90]
call fcn.0040a6bc
mov eax, str.Showing_initialization_dialog_for_prerequisites.
mov byte [ebp - 4], 0x12
mov ecx, eax
mov dword [ebp - 0x68], 0x4675b0
test ecx, ecx
mov dword [ebp - 0x48], edi
jne 0x41be74
mov eax, 0x47d770
lea ecx, [ebp - 0x13]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.0040b3d6
lea eax, [ebp - 0x90]
push 0x85
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x13
call fcn.0045d780
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x12
call fcn.0040632e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x11
call fcn.0040632e
cmp byte [ebp - 0x12], bl
push dword [ebp + 0x14]
mov ecx, esi
sete al
push eax
mov eax, dword [esi]
push dword [ebp + 0xc]
call dword [eax + 0x2c]
push dword [eax + 0x20]
lea ecx, [ebp - 0x2d4]
call fcn.0040644a
push 2
pop ecx
sub eax, ecx
je 0x41bfd0
sub eax, 5
je 0x41bef5
sub eax, ecx
je 0x41bfd0
jmp 0x41bfd3
cmp byte [0x47d660], bl
jne 0x41bf05
cmp byte [0x47dec0], bl
je 0x41bf7b
lea eax, [ebp + 0xf]
push 1
push eax
push str.C:CodeBasesisdev_srcRuntimeSharedSetupSetupPrereqMgr.cpp
lea ecx, [ebp - 0x90]
call fcn.0040a6bc
mov eax, str.Prerequisites_rebooting
mov byte [ebp - 4], 0x14
mov ecx, eax
mov dword [ebp - 0x68], 0x4675b0
test ecx, ecx
mov dword [ebp - 0x48], edi
jne 0x41bf39
mov eax, 0x47d770
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.0040b3d6
lea eax, [ebp - 0x90]
push 0x8e
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x15
call fcn.0045d780
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x14
call fcn.0040632e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x11
call fcn.0040632e
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.004063c4
cmp dword [ebp - 0x10], ebx
je 0x41bf9b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401279
push 7
pop eax
jmp 0x41c0e6
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.004063c4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x41c052
cmp dword [ebp - 0x18], ebx
jne 0x41c019
lea ecx, [ebp - 0xc4]
call fcn.00401f8a
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push eax
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0xec]
call fcn.00401f8a
push eax
push dword [ebp - 0x10]
call esi
cmp byte [ebp + 0x10], bl
je 0x41c052
mov dword [ebp + 0x10], ebx
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocStringLen
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x16
call fcn.0041c0f7
test eax, eax
jne 0x41c04e
push str.__ISSetupPrerequisistes
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov byte [ebp - 4], 6
lea eax, [ebp + 0x17]
push 1
push eax
push str.C:CodeBasesisdev_srcRuntimeSharedSetupSetupPrereqMgr.cpp
lea ecx, [ebp - 0x164]
call fcn.0040a6bc
mov eax, dword [eax + 8]
mov byte [ebp - 4], 0x17
cmp eax, ebx
jne 0x41c078
mov eax, 0x4675bc
push dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0xab
push str.Prerequisites_returning__d
push eax
call fcn.00408454
add esp, 0xc
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 6
call fcn.0040632e
cmp dword [ebp - 0x10], ebx
je 0x41c0b6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401279
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10