Function at 0x401b46
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0x14]
mov esi, 0x11c
push esi
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x120]
push ebx
push eax
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x144], ebx
call fcn.004284d0
push 0x4d0
lea eax, [ebp - 0x61c]
push ebx
push eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x128], ebx
call fcn.004284d0
add esp, 0x18
lea eax, [ebp - 0x61c]
call fcn.00401033
mov edi, eax
cmp edi, ebx
jge 0x401bec
push str.Failed_to_initialize_engine_state.
jmp 0x401d87
mov eax, dword [ebp + 0x10]
push ebx
push 3
mov dword [ebp - 0x5f0], eax
call fcn.004300ba
call fcn.0040e1b3
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
cmp edi, ebx
jge 0x401c1a
push str.Failed_to_initialize_COM.
jmp 0x401d87
xor edi, edi
inc edi
push ebx
mov dword [ebp - 0x148], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0042f6f4
mov dword [ebp - 0x130], edi
call fcn.0043376a
mov edi, eax
cmp edi, ebx
jge 0x401c4b
push str.Failed_to_initialize_Regutil.
jmp 0x401d87
mov dword [ebp - 0x140], 1
call fcn.00434328
mov edi, eax
cmp edi, ebx
jge 0x401c6a
push str.Failed_to_initialize_Wiutil.
jmp 0x401d87
mov dword [ebp - 0x138], 1
call fcn.004353d2
mov edi, eax
cmp edi, ebx
jge 0x401c89
push str.Failed_to_initialize_XML_util.
jmp 0x401d87
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x144], 1
mov dword [ebp - 0x120], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x401ce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x401cbe
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x401cc9
mov edi, 0x80004005
push edi
push 0x77
push str.engine.cpp
call fcn.00432f06
push str.Failed_to_get_OS_info.
jmp 0x401d87
push ebx
lea eax, [ebp - 0x124]
push eax
call fcn.0043202c
mov esi, dword [ebp - 0x14c]
mov eax, esi
cmp esi, ebx
jne 0x401cfe
mov eax, 0x43b5f8
push eax
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.7.3424.0
push 0x20000001
push 2
call fcn.00401566
add esp, 0x24
cmp dword [ebp - 0x124], ebx
je 0x401d49
push dword [ebp - 0x124]
call fcn.00430887
mov dword [ebp - 0x124], ebx
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.0040d76d
mov edi, eax
cmp edi, ebx
jge 0x401d63
push str.Failed_to_initialize_core.
jmp 0x401d87
mov eax, dword [ebp - 0x19c]
sub eax, ebx
je 0x401df7
dec eax
je 0x401dd8
dec eax
je 0x401db0
dec eax
je 0x401db0
dec eax
je 0x401d94
mov edi, 0x8000ffff
push str.Invalid_run_mode.
push edi
call fcn.00430126
pop ecx
pop ecx
jmp 0x401e3c
push dword [ebp + 0x10]
lea eax, [ebp - 0x524]
push eax
call fcn.00401226
mov edi, eax
cmp edi, ebx
jge 0x401e22
push str.Failed_to_run_RunOnce_mode.
jmp 0x401d87
push dword [ebp - 0x12c]
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x134], 1
call fcn.00401af3
mov edi, eax
cmp edi, ebx
jge 0x401e22
push str.Failed_to_run_embedded_mode.
jmp 0x401d87
push esi
push dword [ebp - 0x12c]
lea esi, [ebp - 0x61c]
call fcn.0040157c
mov edi, eax
cmp edi, ebx
jge 0x401e22
push str.Failed_to_run_per_machine_mode.
jmp 0x401d87
push dword [ebp - 0x12c]
lea esi, [ebp - 0x61c]
mov dword [ebp - 0x134], 1
call fcn.004018b9
mov edi, eax
cmp edi, ebx
jge 0x401e22
push str.Failed_to_run_per_user_mode.
jmp 0x401d87
mov eax, dword [ebp - 0x528]
mov ecx, dword [ebp - 0x13c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x604]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x124], ebx
je 0x401e4f
push dword [ebp - 0x124]
call fcn.00430887
cmp edi, ebx
jge 0x401e73
cmp dword [ebp - 0x238], ebx
jne 0x401e73
push ebx
push ebx
push ebx
push 0x43bb48
push str._Failed
push str.Setup
push ebx
call fcn.0042ff4b
lea eax, [ebp - 0x564]
push eax
call fcn.0040b7bb
push dword [ebp - 0x514]
call fcn.00418e05
call fcn.004178aa
cmp dword [ebp - 0x128], ebx
je 0x401ece
cmp dword [ebp - 0x5e4], ebx
je 0x401ece
cmp dword [ebp - 0x5e4], 6
je 0x401ece
push dword [ebp - 0x5e4]
call fcn.00411a9f
push eax
push 0xa0000008
push 2
call fcn.00401566
add esp, 0xc
mov dword [ebp - 0x128], ebx
mov edi, 0x80070bc2
lea esi, [ebp - 0x61c]
call fcn.004010dc
cmp dword [ebp - 0x144], ebx
je 0x401ee6
call fcn.00435430
cmp dword [ebp - 0x138], ebx
je 0x401ef3
call fcn.00434435
cmp dword [ebp - 0x140], ebx
je 0x401f00
call fcn.004337b2
cmp dword [ebp - 0x148], ebx
je 0x401f0e
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x134], ebx
je 0x401f58
cmp edi, ebx
jge 0x401f1e
mov esi, edi
jmp 0x401f26
mov eax, dword [ebp - 0x13c]
mov esi, dword [eax]
push dword [ebp - 0x128]
call fcn.00411882
push eax
push esi
push 0x20000007
push 2
call fcn.00401566
add esp, 0x10
cmp dword [ebp - 0x128], ebx
je 0x401f58
push 0xa0000005
push 2
call fcn.00401566
pop ecx
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x401f66
push ebx
call fcn.0042fc6c
cmp dword [ebp - 0x128], ebx
je 0x401f73
call fcn.004013ba
cmp dword [ebp - 0x130], ebx
je 0x401f81
push ebx
call fcn.0042fccb
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042854a
leave
ret 0x10