Function at 0x401b46
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
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.004284a0
push 0x4d8
lea eax, [ebp - 0x624]
push ebx
push eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x128], ebx
call fcn.004284a0
add esp, 0x18
lea eax, [ebp - 0x624]
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 - 0x5f8], eax
call fcn.0043008b
call fcn.0040e21d
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.0042f6c4
mov dword [ebp - 0x130], edi
call fcn.004337cc
mov edi, eax
cmp edi, ebx
jge 0x401c4b
push str.Failed_to_initialize_Regutil.
jmp 0x401d87
mov dword [ebp - 0x140], 1
call fcn.0043438a
mov edi, eax
cmp edi, ebx
jge 0x401c6a
push str.Failed_to_initialize_Wiutil.
jmp 0x401d87
mov dword [ebp - 0x138], 1
call fcn.00435434
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.00432f68
push str.Failed_to_get_OS_info.
jmp 0x401d87
push ebx
lea eax, [ebp - 0x124]
push eax
call fcn.0043208e
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.3813.0
push 0x20000001
push 2
call fcn.00401566
add esp, 0x24
cmp dword [ebp - 0x124], ebx
je 0x401d49
push dword [ebp - 0x124]
call fcn.00430858
mov dword [ebp - 0x124], ebx
lea eax, [ebp - 0x624]
push eax
push esi
call fcn.0040d7d7
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.004300f7
pop ecx
pop ecx
jmp 0x401e3c
push dword [ebp + 0x10]
lea eax, [ebp - 0x52c]
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 - 0x624]
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 - 0x624]
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 - 0x624]
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 - 0x530]
mov ecx, dword [ebp - 0x13c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x60c]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x124], ebx
je 0x401e4f
push dword [ebp - 0x124]
call fcn.00430858
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.0042ff1c
lea eax, [ebp - 0x56c]
push eax
call fcn.0040b825
push dword [ebp - 0x51c]
call fcn.00418c0e
call fcn.0041789c
cmp dword [ebp - 0x128], ebx
je 0x401ece
cmp dword [ebp - 0x5ec], ebx
je 0x401ece
cmp dword [ebp - 0x5ec], 6
je 0x401ece
push dword [ebp - 0x5ec]
call fcn.00411b0c
push eax
push 0xa0000008
push 2
call fcn.00401566
add esp, 0xc
mov dword [ebp - 0x128], ebx
mov edi, 0x80070bc2
lea esi, [ebp - 0x624]
call fcn.004010dc
cmp dword [ebp - 0x144], ebx
je 0x401ee6
call fcn.00435492
cmp dword [ebp - 0x138], ebx
je 0x401ef3
call fcn.00434497
cmp dword [ebp - 0x140], ebx
je 0x401f00
call fcn.00433814
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.004118ef
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.0042fc3c
cmp dword [ebp - 0x128], ebx
je 0x401f73
call fcn.004013ba
cmp dword [ebp - 0x130], ebx
je 0x401f81
push ebx
call fcn.0042fc9b
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042851a
leave
ret 0x10