Function at 0x401b46
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x4540d0]
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.00427e30
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.00427e30
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.0042fa1a
call fcn.0040e1aa
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.0042f054
mov dword [ebp - 0x130], edi
call fcn.0043315b
mov edi, eax
cmp edi, ebx
jge 0x401c4b
push str.Failed_to_initialize_Regutil.
jmp 0x401d87
mov dword [ebp - 0x140], 1
call fcn.00433d19
mov edi, eax
cmp edi, ebx
jge 0x401c6a
push str.Failed_to_initialize_Wiutil.
jmp 0x401d87
mov dword [ebp - 0x138], 1
call fcn.00434dc3
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.0043294e
push str.Failed_to_get_OS_info.
jmp 0x401d87
push ebx
lea eax, [ebp - 0x124]
push eax
call fcn.00431a74
mov esi, dword [ebp - 0x14c]
mov eax, esi
cmp esi, ebx
jne 0x401cfe
mov eax, 0x43a5c8
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.2829.0
push 0x20000001
push 2
call fcn.00401566
add esp, 0x24
cmp dword [ebp - 0x124], ebx
je 0x401d49
push dword [ebp - 0x124]
call fcn.004301e8
mov dword [ebp - 0x124], ebx
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.0040d764
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.0042fa86
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.004301e8
cmp edi, ebx
jge 0x401e73
cmp dword [ebp - 0x238], ebx
jne 0x401e73
push ebx
push ebx
push ebx
push 0x43ab18
push str._Failed
push str.Setup
push ebx
call fcn.0042f8ab
lea eax, [ebp - 0x564]
push eax
call fcn.0040b7b2
push dword [ebp - 0x514]
call fcn.00418988
cmp dword [ebp - 0x128], ebx
je 0x401ec9
cmp dword [ebp - 0x5e4], ebx
je 0x401ec9
cmp dword [ebp - 0x5e4], 6
je 0x401ec9
push dword [ebp - 0x5e4]
call fcn.00411a96
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 0x401ee1
call fcn.00434e21
cmp dword [ebp - 0x138], ebx
je 0x401eee
call fcn.00433e26
cmp dword [ebp - 0x140], ebx
je 0x401efb
call fcn.004331a3
cmp dword [ebp - 0x148], ebx
je 0x401f09
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x134], ebx
je 0x401f53
cmp edi, ebx
jge 0x401f19
mov esi, edi
jmp 0x401f21
mov eax, dword [ebp - 0x13c]
mov esi, dword [eax]
push dword [ebp - 0x128]
call fcn.00411879
push eax
push esi
push 0x20000007
push 2
call fcn.00401566
add esp, 0x10
cmp dword [ebp - 0x128], ebx
je 0x401f53
push 0xa0000005
push 2
call fcn.00401566
pop ecx
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x401f61
push ebx
call fcn.0042f5cc
cmp dword [ebp - 0x128], ebx
je 0x401f6e
call fcn.004013ba
cmp dword [ebp - 0x130], ebx
je 0x401f7c
push ebx
call fcn.0042f62b
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427eaa
leave
ret 0x10