Function at 0x401e65
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x469004]
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 - 0x130], eax
mov edi, esi
mov eax, dword [ebp + 0x14]
push 0x11c
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x120]
push esi
push eax
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], esi
call fcn.0042b370
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.0042b370
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0043cfaf
push esi
push 3
call fcn.0043d164
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.0043ccee
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.0043c76c
mov esi, eax
test esi, esi
jns 0x401f5a
push str.Failed_to_initialize_Cryputil.
jmp 0x401f13
mov dword [ebp - 0x140], edi
call fcn.0043e7bb
mov esi, eax
test esi, esi
jns 0x401f72
push str.Failed_to_initialize_Regutil.
jmp 0x401f13
mov dword [ebp - 0x13c], edi
call fcn.00441cdd
mov esi, eax
test esi, esi
jns 0x401f8a
push str.Failed_to_initialize_Wiutil.
jmp 0x401f13
mov dword [ebp - 0x138], edi
call fcn.00442763
mov esi, eax
test esi, esi
jns 0x401fa5
push str.Failed_to_initialize_XML_util.
jmp 0x401f13
lea eax, [ebp - 0x120]
mov dword [ebp - 0x134], 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.0043bf09
push str.Failed_to_get_OS_info.
jmp 0x401f13
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.0043dfc1
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.1.2213
push 0x20000001
push 2
call fcn.00402297
add esp, 0x20
cmp dword [ebp - 0x124], ebx
je 0x402056
push dword [ebp - 0x124]
call fcn.00444e5d
and dword [ebp - 0x124], ebx
lea eax, [ebp - 0x624]
push eax
push dword [ebp - 0x130]
call fcn.00413e6e
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 fcn.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 - 0x130]
push dword [ebp - 0x128]
call fcn.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 - 0x144]
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.00444e5d
test esi, esi
jns 0x40218f
cmp dword [ebp - 0x230], 0
jne 0x40218f
xor eax, eax
push eax
push eax
push eax
push 0x44a6e4
push str._Failed
push str.Setup
push eax
call fcn.0043cfdd
lea eax, [ebp - 0x56c]
push eax
call fcn.0040a243
push dword [ebp - 0x514]
call fcn.00416f56
call fcn.004171de
test ebx, ebx
je 0x4021db
mov eax, dword [ebp - 0x5ec]
test eax, eax
je 0x4021db
cmp eax, 6
je 0x4021db
push eax
call fcn.00410d31
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 - 0x134], 0
je 0x4021f5
call fcn.00442c39
cmp dword [ebp - 0x138], 0
je 0x402203
call fcn.004420fa
cmp dword [ebp - 0x13c], 0
je 0x402211
call fcn.0043edf7
cmp dword [ebp - 0x140], 0
je 0x40221f
call fcn.0043c87b
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 - 0x144]
mov edi, dword [eax]
push ebx
call fcn.004107f7
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.0043cbca
test ebx, ebx
je 0x40227b
call fcn.004014b2
push 0
call fcn.0043d2b7
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a807
mov esp, ebp
pop ebp
ret 0x10