Function at 0x4085d4
Capabilities:
Check os version
Create thread

Disassembly:
mov eax, 0x45ed8b
call fcn.0043bc08
sub esp, 0x19c
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x47d3a4], esi
mov edi, ecx
jne 0x408600
cmp byte [0x47d3a9], 0
je 0x40890c
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, edi
call fcn.004089a1
and byte [ebp - 0xd], 0
cmp dword [ebp - 0x1a4], 5
ja 0x408635
jne 0x408642
cmp dword [ebp - 0x1a0], esi
jbe 0x408642
cmp dword [ebp - 0x198], 2
jne 0x408642
mov byte [ebp - 0xd], 1
cmp byte [0x47d3a9], 0
je 0x40886a
cmp byte [0x47d224], 0
mov esi, str.E:CodeBases_Majesty_Hotfixesisdev_srcRuntimeSharedSetupIsPreReqDlg.cpp
mov ebx, 0x4665e8
jne 0x40866b
cmp byte [0x47db88], 0
je 0x4086d5
lea eax, [ebp - 0xe]
push 1
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.0040a3fb
and dword [ebp - 4], 0
mov eax, str.StartStopProgress___Embedded
mov ecx, eax
mov dword [ebp - 0x44], 0x4665f0
test ecx, ecx
mov dword [ebp - 0x24], ebx
jne 0x408698
mov eax, 0x47d330
lea ecx, [ebp - 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b151
lea eax, [ebp - 0x6c]
push 0x334
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.0045cb20
and byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405fcc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00405fcc
cmp dword [ebp - 0x1a4], 6
jb 0x4086e2
and byte [ebp - 0xd], 0
mov ecx, edi
call fcn.0040a17a
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40890c
cmp byte [ebp - 0xd], 0
je 0x4087b0
cmp byte [0x47d224], 0
jne 0x408710
cmp byte [0x47db88], 0
je 0x40877d
lea eax, [ebp - 0xf]
push 1
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.0040a3fb
mov eax, str.StartStopProgress___Embedded_Looping
mov dword [ebp - 4], 2
mov ecx, eax
mov dword [ebp - 0x44], 0x4665f0
test ecx, ecx
mov dword [ebp - 0x24], ebx
jne 0x408740
mov eax, 0x47d330
lea ecx, [ebp - 0xe]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b151
lea eax, [ebp - 0x6c]
push 0x33c
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 3
call fcn.0045cb20
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00405fcc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00405fcc
mov al, byte [ebp + 8]
push 0
neg al
sbb eax, eax
add eax, 4
push eax
push 0x111
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 2
jne 0x40890c
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0040a2bc
jmp 0x40890c
cmp byte [ebp + 8], 0
je 0x40890c
mov eax, dword [edi + 0xc8]
push 1
lea ecx, [ebp - 0x94]
mov ebx, dword [eax + 0x14]
lea eax, [ebp + 0xb]
push eax
push esi
call fcn.0040a3fb
mov eax, dword [eax + 8]
mov dword [ebp - 4], 4
test eax, eax
jne 0x4087e8
mov eax, 0x4665fc
push ebx
mov dword [ebp - 0x1c], eax
push dword [edi + 0x16c]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x344
push str.StartStopProgress___Fallback____d_of__d
push eax
call fcn.00408215
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.00405fcc
mov eax, dword [edi + 0xc8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [eax + 0x14]
inc eax
push eax
push 1
push 0x406
push dword [ebp - 0x14]
call esi
cmp eax, 2
je 0x4087a1
push 0
mov ebx, 0x402
push 0
push ebx
push dword [ebp - 0x14]
call esi
cmp eax, 2
je 0x4087a1
push 0
push dword [edi + 0x16c]
push ebx
push dword [ebp - 0x14]
call esi
jmp 0x408798
cmp byte [ebp + 8], 0
je 0x4088c4
cmp byte [ebp - 0xd], 0
je 0x4088a6
push 0xfffffffffffffff0
push dword [0x47d3a4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [edi + 0x164], eax
or al, 8
push eax
push 0xfffffffffffffff0
push dword [0x47d3a4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x64
push 1
push 0x40a
jmp 0x408900
lea eax, [edi + 0x160]
push eax
push esi
push edi
push 0x40891d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x15c], eax
jmp 0x40890c
cmp byte [ebp - 0xd], 0
je 0x4088f9
add edi, 0x164
cmp dword [edi], esi
je 0x4088f9
push esi
push esi
push 0x40a
push dword [0x47d3a4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi]
push 0xfffffffffffffff0
push dword [0x47d3a4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x40890c
push esi
push esi
push 0x402
push dword [0x47d3a4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4