Function at 0x401b74
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f4
mov eax, dword [0x4510d0]
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.00425d30
push 0x4a8
lea eax, [ebp - 0x5f4]
push ebx
push eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x128], ebx
call fcn.00425d30
add esp, 0x18
lea eax, [ebp - 0x5f4]
call fcn.00401033
mov edi, eax
cmp edi, ebx
jge 0x401c1a
push str.Failed_to_initialize_engine_state.
jmp 0x401db6
mov eax, dword [ebp + 0x10]
push ebx
push 3
mov dword [ebp - 0x5c8], eax
call fcn.0042d92a
call fcn.0040d861
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
cmp edi, ebx
jge 0x401c48
push str.Failed_to_initialize_COM.
jmp 0x401db6
xor edi, edi
inc edi
push ebx
mov dword [ebp - 0x148], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0042cf64
mov dword [ebp - 0x130], edi
call fcn.00430bbe
mov edi, eax
cmp edi, ebx
jge 0x401c79
push str.Failed_to_initialize_Regutil.
jmp 0x401db6
mov dword [ebp - 0x140], 1
call fcn.0043177c
mov edi, eax
cmp edi, ebx
jge 0x401c98
push str.Failed_to_initialize_Wiutil.
jmp 0x401db6
mov dword [ebp - 0x138], 1
call fcn.004327ae
mov edi, eax
cmp edi, ebx
jge 0x401cb7
push str.Failed_to_initialize_XML_util.
jmp 0x401db6
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 0x401d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x401cec
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x401cf7
mov edi, 0x80004005
push edi
push 0x7a
push str.engine.cpp
call fcn.0042fdc3
push str.Failed_to_get_OS_info.
jmp 0x401db6
push ebx
lea eax, [ebp - 0x124]
push eax
call fcn.0042f4fc
mov esi, dword [ebp - 0x14c]
mov eax, esi
cmp esi, ebx
jne 0x401d2c
mov eax, 0x4385b4
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.1224.0
push 0x20000001
push 2
call fcn.004015e7
add esp, 0x24
cmp dword [ebp - 0x124], ebx
je 0x401d77
push dword [ebp - 0x124]
call fcn.0042dd7e
mov dword [ebp - 0x124], ebx
lea eax, [ebp - 0x5f4]
push eax
push esi
call fcn.0040cea1
mov edi, eax
cmp edi, ebx
jge 0x401d91
push str.Failed_to_initialize_core.
jmp 0x401db6
mov eax, dword [ebp - 0x19c]
sub eax, ebx
je 0x401e53
dec eax
je 0x401e31
dec eax
je 0x401dde
dec eax
je 0x401dc3
mov edi, 0x8000ffff
push str.Invalid_run_mode.
push edi
call fcn.0042d996
pop ecx
pop ecx
jmp 0x401e98
push dword [ebp + 0x10]
mov eax, esi
call fcn.00401206
mov edi, eax
cmp edi, ebx
jge 0x401e7e
push str.Failed_to_run_RunOnce_mode.
jmp 0x401db6
push ebx
lea eax, [ebp - 0x170]
push eax
mov dword [ebp - 0x134], 1
call fcn.004038e6
mov edi, eax
cmp edi, ebx
jge 0x401e02
push str.Failed_to_connect_to_parent_of_embedded_process.
jmp 0x401e1e
push dword [ebp - 0x12c]
lea esi, [ebp - 0x5f4]
call fcn.0040193a
mov edi, eax
cmp edi, ebx
jge 0x401e7e
push str.Failed_to_run_bootstrapper_application_embedded.
push edi
call fcn.0042d996
pop ecx
pop ecx
cmp edi, ebx
jge 0x401e7e
push str.Failed_to_run_embedded_mode.
jmp 0x401db6
push esi
push dword [ebp - 0x12c]
lea esi, [ebp - 0x5f4]
call fcn.004015fd
mov edi, eax
cmp edi, ebx
jge 0x401e7e
push str.Failed_to_run_per_machine_mode.
jmp 0x401db6
push dword [ebp - 0x12c]
lea esi, [ebp - 0x5f4]
mov dword [ebp - 0x134], 1
call fcn.0040193a
mov edi, eax
cmp edi, ebx
jge 0x401e7e
push str.Failed_to_run_per_user_mode.
jmp 0x401db6
mov eax, dword [ebp - 0x500]
mov ecx, dword [ebp - 0x13c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x5dc]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x124], ebx
je 0x401eab
push dword [ebp - 0x124]
call fcn.0042dd7e
cmp edi, ebx
jge 0x401ecf
cmp dword [ebp - 0x238], ebx
jne 0x401ecf
push ebx
push ebx
push ebx
push 0x438af0
push str._Failed
push str.Setup
push ebx
call fcn.0042d7bb
lea eax, [ebp - 0x53c]
push eax
call fcn.0040b1f0
push dword [ebp - 0x4f0]
call fcn.0041748b
cmp dword [ebp - 0x128], ebx
je 0x401f25
cmp dword [ebp - 0x5bc], ebx
je 0x401f25
cmp dword [ebp - 0x5bc], 6
je 0x401f25
push dword [ebp - 0x5bc]
call fcn.00410d4a
push eax
push 0xa0000008
push 2
call fcn.004015e7
add esp, 0xc
mov dword [ebp - 0x128], ebx
mov edi, 0x80070bc2
lea esi, [ebp - 0x5f4]
call fcn.004010bc
cmp dword [ebp - 0x144], ebx
je 0x401f3d
call fcn.0043280c
cmp dword [ebp - 0x138], ebx
je 0x401f4a
call fcn.0043186a
cmp dword [ebp - 0x140], ebx
je 0x401f57
call fcn.00430c06
cmp dword [ebp - 0x148], ebx
je 0x401f65
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x134], ebx
je 0x401faf
cmp edi, ebx
jge 0x401f75
mov esi, edi
jmp 0x401f7d
mov eax, dword [ebp - 0x13c]
mov esi, dword [eax]
push dword [ebp - 0x128]
call fcn.00410b70
push eax
push esi
push 0x20000007
push 2
call fcn.004015e7
add esp, 0x10
cmp dword [ebp - 0x128], ebx
je 0x401faf
push 0xa0000005
push 2
call fcn.004015e7
pop ecx
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x401fbd
push ebx
call fcn.0042d4dc
cmp dword [ebp - 0x128], ebx
je 0x401fca
call fcn.0040143b
cmp dword [ebp - 0x130], ebx
je 0x401fd8
push ebx
call fcn.0042d53b
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425daa
leave
ret 0x10