Function at 0x401e65
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x468004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x128], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x144], eax
mov edi, esi
mov eax, dword [ebp + 0x14]
push 0x11c
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x120]
push esi
push eax
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x140], esi
call fcn.0042b200
push 0x4e0
lea eax, [ebp - 0x624]
mov dword [ebp - 0x124], esi
push esi
push eax
mov dword [ebp - 0x12c], esi
mov ebx, esi
call fcn.0042b200
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0043ce5e
push esi
push 3
call fcn.0043d010
lea eax, [ebp - 0x624]
push eax
call fcn.00401308
mov esi, eax
test esi, esi
jns 0x401f20
push str.Failed_to_initialize_engine_state.
push esi
call fcn.0043cb9d
pop ecx
pop ecx
jmp 0x402154
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5f8], eax
call fcn.004022ad
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x401f45
push str.Failed_to_initialize_COM.
jmp 0x401f13
xor edi, edi
inc edi
call fcn.0043c61b
mov esi, eax
test esi, esi
jns 0x401f5a
push str.Failed_to_initialize_Cryputil.
jmp 0x401f13
mov dword [ebp - 0x134], edi
call fcn.0043e5f9
mov esi, eax
test esi, esi
jns 0x401f72
push str.Failed_to_initialize_Regutil.
jmp 0x401f13
mov dword [ebp - 0x13c], edi
call fcn.00441b2f
mov esi, eax
test esi, esi
jns 0x401f8a
push str.Failed_to_initialize_Wiutil.
jmp 0x401f13
mov dword [ebp - 0x130], edi
call fcn.004425b5
mov esi, eax
test esi, esi
jns 0x401fa5
push str.Failed_to_initialize_XML_util.
jmp 0x401f13
lea eax, [ebp - 0x120]
mov dword [ebp - 0x140], edi
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x401ffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x80
push str.engine.cpp
call fcn.0043bd8c
push str.Failed_to_get_OS_info.
jmp 0x401f13
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.0043de6d
push dword [ebp - 0x124]
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.3.10.0.1823
push 0x20000001
push 2
call fcn.00402297
add esp, 0x20
cmp dword [ebp - 0x124], ebx
je 0x402056
push dword [ebp - 0x124]
call fcn.004408e7
and dword [ebp - 0x124], ebx
lea eax, [ebp - 0x624]
push eax
push dword [ebp - 0x144]
call fcn.00413d3e
mov esi, eax
test esi, esi
jns 0x402078
push str.Failed_to_initialize_core.
jmp 0x401f13
mov eax, dword [ebp - 0x194]
sub eax, 0
je 0x402118
sub eax, 1
je 0x4020f0
sub eax, 1
je 0x4020c8
sub eax, 1
je 0x4020a5
mov esi, 0x8000ffff
push str.Invalid_run_mode.
jmp 0x401f13
push dword [ebp + 0x10]
lea eax, [ebp - 0x524]
push eax
call fcn.00401c43
mov esi, eax
test esi, esi
jns 0x402140
push str.Failed_to_run_RunOnce_mode.
jmp 0x401f13
lea eax, [ebp - 0x624]
mov dword [ebp - 0x12c], edi
push eax
push dword [ebp - 0x128]
call int.004019a9
mov esi, eax
test esi, esi
jns 0x402140
push str.Failed_to_run_embedded_mode.
jmp 0x401f13
lea eax, [ebp - 0x624]
push eax
push dword [ebp - 0x144]
push dword [ebp - 0x128]
call int.004017b2
mov esi, eax
test esi, esi
jns 0x402140
push str.Failed_to_run_per_machine_mode.
jmp 0x401f13
lea eax, [ebp - 0x624]
mov dword [ebp - 0x12c], edi
push eax
push dword [ebp - 0x128]
call fcn.00401a06
mov esi, eax
test esi, esi
jns 0x402140
push str.Failed_to_run_per_user_mode.
jmp 0x401f13
mov ecx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x52c]
mov ebx, dword [ebp - 0x60c]
mov dword [ecx], eax
cmp dword [ebp - 0x124], 0
je 0x402168
push dword [ebp - 0x124]
call fcn.004408e7
test esi, esi
jns 0x40218f
cmp dword [ebp - 0x230], 0
jne 0x40218f
xor eax, eax
push eax
push eax
push eax
push 0x44a6f4
push str._Failed
push str.Setup
push eax
call fcn.0043ce89
lea eax, [ebp - 0x56c]
push eax
call fcn.0040a0ab
push dword [ebp - 0x514]
call fcn.00416e2a
call fcn.004170b2
test ebx, ebx
je 0x4021db
mov eax, dword [ebp - 0x5ec]
test eax, eax
je 0x4021db
cmp eax, 6
je 0x4021db
push eax
call fcn.00410b82
push eax
push 0xa0000008
push 2
call fcn.00402297
add esp, 0xc
mov esi, 0x80070bc2
xor ebx, ebx
lea eax, [ebp - 0x624]
push eax
call fcn.00401cf6
cmp dword [ebp - 0x140], 0
je 0x4021f5
call fcn.00442a8b
cmp dword [ebp - 0x130], 0
je 0x402203
call fcn.00441f4c
cmp dword [ebp - 0x13c], 0
je 0x402211
call fcn.0043ec35
cmp dword [ebp - 0x134], 0
je 0x40221f
call fcn.0043c72a
test edi, edi
je 0x402229
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x12c], 0
je 0x40226b
test esi, esi
jns 0x40223a
mov edi, esi
jmp 0x402242
mov eax, dword [ebp - 0x138]
mov edi, dword [eax]
push ebx
call fcn.00410648
push eax
push edi
push 0x20000007
push 2
call fcn.00402297
add esp, 0x10
test ebx, ebx
je 0x40226b
push 0xa0000005
push 2
call fcn.00402297
pop ecx
pop ecx
push 0
call fcn.0043ca79
test ebx, ebx
je 0x40227b
call fcn.004014b2
push 0
call fcn.0043d163
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a6d1
mov esp, ebp
pop ebp
ret 0x10