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

Disassembly:
mov eax, 0x461355
call fcn.0043bc08
sub esp, 0x6f8
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], 0x4665fc
je 0x41bd01
mov dword [ebp - 0x18], eax
push 1
lea eax, [ebp - 0x11]
pop edi
lea ecx, [ebp - 0x64]
push edi
push eax
push str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeSharedSetupSetupPrereqMgr.cpp
call fcn.0040a3fb
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x41bd25
mov eax, 0x4665fc
push dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0x36
push str.Running_setup_prerequisites___s_...
push eax
call fcn.00408215
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.00405fcc
lea eax, [ebp - 0x114]
push 0x64c
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403cd6
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 4], edi
cmp eax, ebx
jne 0x41bd7b
mov eax, 0x466588
push eax
push ebx
push 0xc
push 0x3eb
push dword [0x47d3a0]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea eax, [ebp - 0x29]
mov edi, 0x46658c
push ebx
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x466594
mov dword [ebp - 0xa4], edi
call fcn.00401a4d
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
mov eax, dword [esi]
mov byte [ebp - 4], 2
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004034ad
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x41bddb
mov eax, 0x466588
push eax
lea eax, [ebp - 0xc4]
push str.__IS_PREREQ____s
push eax
call fcn.004055eb
add esp, 0xc
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401257
lea eax, [ebp - 0x11]
push ebx
push eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xec], 0x466594
mov dword [ebp - 0xcc], edi
call fcn.00401a4d
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
mov eax, dword [esi]
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004034ad
mov eax, dword [eax + 8]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x41be42
mov eax, 0x466588
push eax
lea eax, [ebp - 0xec]
push str.__IS_PREREQF____s
push eax
call fcn.004055eb
add esp, 0xc
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.00401257
mov dword [ebp - 0x10], ebx
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x38], ebx
call dword [eax]
test eax, eax
jne 0x41c102
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41beaa
lea ecx, [ebp - 0x10]
call fcn.00408e81
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
cmp dword [ecx + 0xc], ebx
jne 0x41c03e
cmp eax, ebx
jne 0x41c03e
lea eax, [ebp - 0x13]
push ebx
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x466594
mov dword [ebp - 0x70], edi
call fcn.00401a4d
mov eax, dword [ebp - 0xe4]
mov byte [ebp - 4], 7
cmp eax, ebx
mov dword [ebp - 0x68], 0x104
mov dword [ebp - 0x18], 0x466588
je 0x41befd
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x9c]
push 0x105
push eax
lea ecx, [ebp - 0x90]
call fcn.00401746
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00401c5a
mov eax, dword [eax]
lea ecx, [ebp - 0x68]
push ecx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
call fcn.0040199b
cmp dword [ebp - 0x20], ebx
jne 0x41c02f
mov eax, dword [esi]
lea ecx, [ebp - 0x90]
push ebx
push ecx
push 0x11
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [ebp - 0xe4]
cmp eax, ebx
jne 0x41bf79
mov eax, 0x466588
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], ebx
jne 0x41c02f
lea eax, [ebp + 0x13]
push 1
push eax
push str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeSharedSetupSetupPrereqMgr.cpp
lea ecx, [ebp - 0x13c]
call fcn.0040a3fb
mov eax, dword [eax + 8]
mov byte [ebp - 4], 9
cmp eax, ebx
jne 0x41bfb5
mov eax, 0x4665fc
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 0x24]
push str.Prerequisites_returning__d
push eax
mov dword [ebp - 0x20], 0x5a
call fcn.00408215
add esp, 0xc
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 7
call fcn.00405fcc
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.00401257
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00408e81
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.00401257
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401257
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401257
xor eax, eax
jmp 0x41c60d
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.00401257
lea eax, [ebp - 0x13]
push ebx
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x466594
mov dword [ebp - 0x44], edi
call fcn.00401a4d
mov edi, dword [ebp - 0xbc]
mov byte [ebp - 4], 0xa
cmp edi, ebx
mov dword [ebp - 0x30], 0x104
jne 0x41c06f
mov edi, 0x466588
lea eax, [ebp - 0x9c]
push 0x105
push eax
lea ecx, [ebp - 0x64]
call fcn.00401746
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
mov byte [eax + 4], 1
call fcn.00401c5a
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
lea ecx, [ebp - 0x9c]
sete byte [ebp - 0x11]
mov byte [ebp - 4], 0xa
call fcn.0040199b
cmp byte [ebp - 0x11], bl
je 0x41c0f6
lea eax, [ebp - 0x20]
push 0xa
push eax
lea ecx, [ebp - 0x64]
call fcn.0041d3b1
mov eax, dword [esi]
push dword [ebp - 0x20]
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [ebp - 0xbc]
cmp eax, ebx
jne 0x41c0ec
mov eax, 0x466588
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.00401257
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x19]
push eax
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x30], esp
push 1
push dword [ebp + 0xc]
call fcn.0040c138
mov ecx, esi
call fcn.0041c65c
cmp al, bl
je 0x41c501
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
cmp eax, 1
jne 0x41c277
mov eax, dword [esi]
push 0xe
mov ecx, esi
call dword [eax + 0x28]
test al, al
je 0x41c277
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp + 8], ecx
je 0x41c501
mov edi, 0x4665e8
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x704]
call fcn.0041e540
lea eax, [ebp + 0xf]
push ebx
push eax
push 0x47d330
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x64], 0x4665f0
mov dword [ebp - 0x44], edi
call fcn.0040b151
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xd
mov eax, dword [eax + 0x1c]
cmp eax, ebx
jne 0x41c1a9
mov eax, 0x4665fc
lea ecx, [ebp - 0x64]
push ecx
push ebx
push eax
lea ecx, [ebp - 0x704]
call fcn.0041ea81
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
call fcn.00405fcc
push esi
lea ecx, [ebp - 0x2d4]
call fcn.00405ecc
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.0040aedb
push ebx
push eax
lea eax, [ebp - 0x704]
lea ecx, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x13c]
push eax
mov byte [ebp - 4], 0x10
call fcn.00408e98
lea ecx, [ebp - 0x13c]
call fcn.00405fcc
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xf
call fcn.00405fcc
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xe
call fcn.00401257
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 0xc
call fcn.00406062
lea ecx, [ebp - 0x704]
mov byte [ebp - 4], 6
call fcn.0041e99a
lea ecx, [ebp + 8]
call fcn.0040bacd
mov eax, dword [esi + 0xc]
cmp dword [ebp + 8], eax
jne 0x41c160
jmp 0x41c501
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x41c501
push esi
lea ecx, [ebp - 0x2d4]
call fcn.00405ecc
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.0042dfb5
cmp eax, 6
mov edi, 0x4665e8
jb 0x41c2d0
cmp byte [ebp - 0x19], bl
je 0x41c2d0
call fcn.004375db
test al, al
jne 0x41c2d0
mov byte [ebp - 0x1d3], 1
jmp 0x41c3d5
cmp byte [ebp - 0x12], bl
mov byte [ebp - 0x1d3], bl
jne 0x41c3d5
mov eax, dword [esi]
push 0x10
mov ecx, esi
call dword [eax + 0x28]
test al, al
jne 0x41c3d5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
jne 0x41c34f
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.00406062
cmp dword [ebp - 0x10], ebx
je 0x41c31b
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.00401257
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401257
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401257
push 2
jmp 0x41c4e9
cmp byte [0x47d224], bl
jne 0x41c35f
cmp byte [0x47db88], bl
je 0x41c3d5
lea eax, [ebp + 0xb]
push 1
push eax
push str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeSharedSetupSetupPrereqMgr.cpp
lea ecx, [ebp - 0x90]
call fcn.0040a3fb
mov eax, str.Showing_initialization_dialog_for_prerequisites.
mov byte [ebp - 4], 0x12
mov ecx, eax
mov dword [ebp - 0x64], 0x4665f0
test ecx, ecx
mov dword [ebp - 0x44], edi
jne 0x41c393
mov eax, 0x47d330
lea ecx, [ebp - 0x13]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.0040b151
lea eax, [ebp - 0x90]
push 0x8d
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x13
call fcn.0045cb20
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x12
call fcn.00405fcc
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x11
call fcn.00405fcc
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.004060e8
push 2
pop ecx
sub eax, ecx
je 0x41c4ef
sub eax, 5
je 0x41c414
sub eax, ecx
je 0x41c4ef
jmp 0x41c4f2
cmp byte [0x47d224], bl
jne 0x41c424
cmp byte [0x47db88], bl
je 0x41c49a
lea eax, [ebp + 0xf]
push 1
push eax
push str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeSharedSetupSetupPrereqMgr.cpp
lea ecx, [ebp - 0x90]
call fcn.0040a3fb
mov eax, str.Prerequisites_rebooting
mov byte [ebp - 4], 0x14
mov ecx, eax
mov dword [ebp - 0x64], 0x4665f0
test ecx, ecx
mov dword [ebp - 0x44], edi
jne 0x41c458
mov eax, 0x47d330
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.0040b151
lea eax, [ebp - 0x90]
push 0x96
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x15
call fcn.0045cb20
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x14
call fcn.00405fcc
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x11
call fcn.00405fcc
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.00406062
cmp dword [ebp - 0x10], ebx
je 0x41c4ba
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.00401257
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401257
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401257
push 7
pop eax
jmp 0x41c60d
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 6
call fcn.00406062
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x41c579
cmp dword [ebp - 0x38], ebx
jne 0x41c540
mov eax, dword [ebp - 0xbc]
cmp eax, ebx
jne 0x41c51f
mov eax, 0x466588
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0xe4]
cmp eax, ebx
jne 0x41c53a
mov eax, 0x466588
push eax
push dword [ebp - 0x10]
call esi
cmp byte [ebp + 0x10], bl
je 0x41c579
mov dword [ebp + 0x10], ebx
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push SysReAllocString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x16
call fcn.0041c61e
test eax, eax
jne 0x41c575
push str.__ISSetupPrerequisistes
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 6
lea eax, [ebp + 0x17]
push 1
push eax
push str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeSharedSetupSetupPrereqMgr.cpp
lea ecx, [ebp - 0x164]
call fcn.0040a3fb
mov eax, dword [eax + 8]
mov byte [ebp - 4], 0x17
cmp eax, ebx
jne 0x41c59f
mov eax, 0x4665fc
push dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0xb3
push str.Prerequisites_returning__d
push eax
call fcn.00408215
add esp, 0xc
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 6
call fcn.00405fcc
cmp dword [ebp - 0x10], ebx
je 0x41c5dd
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.00401257
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00401257
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00401257
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10