Function at 0x401b94
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x4530d0]
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.004272a0
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.004272a0
add esp, 0x18
lea eax, [ebp - 0x61c]
call fcn.00401033
mov edi, eax
cmp edi, ebx
jge 0x401c3a
push str.Failed_to_initialize_engine_state.
jmp 0x401dd6
mov eax, dword [ebp + 0x10]
push ebx
push 3
mov dword [ebp - 0x5f0], eax
call fcn.0042ee8a
call fcn.0040df43
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
cmp edi, ebx
jge 0x401c68
push str.Failed_to_initialize_COM.
jmp 0x401dd6
xor edi, edi
inc edi
push ebx
mov dword [ebp - 0x148], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0042e4c4
mov dword [ebp - 0x130], edi
call fcn.004324bf
mov edi, eax
cmp edi, ebx
jge 0x401c99
push str.Failed_to_initialize_Regutil.
jmp 0x401dd6
mov dword [ebp - 0x140], 1
call fcn.0043307d
mov edi, eax
cmp edi, ebx
jge 0x401cb8
push str.Failed_to_initialize_Wiutil.
jmp 0x401dd6
mov dword [ebp - 0x138], 1
call fcn.004340af
mov edi, eax
cmp edi, ebx
jge 0x401cd7
push str.Failed_to_initialize_XML_util.
jmp 0x401dd6
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 0x401d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x401d0c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x401d17
mov edi, 0x80004005
push edi
push 0x77
push str.engine.cpp
call fcn.0043166e
push str.Failed_to_get_OS_info.
jmp 0x401dd6
push ebx
lea eax, [ebp - 0x124]
push eax
call fcn.00430da7
mov esi, dword [ebp - 0x14c]
mov eax, esi
cmp esi, ebx
jne 0x401d4c
mov eax, 0x4395e8
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.2002.0
push 0x20000001
push 2
call fcn.00401607
add esp, 0x24
cmp dword [ebp - 0x124], ebx
je 0x401d97
push dword [ebp - 0x124]
call fcn.0042f657
mov dword [ebp - 0x124], ebx
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.0040d50b
mov edi, eax
cmp edi, ebx
jge 0x401db1
push str.Failed_to_initialize_core.
jmp 0x401dd6
mov eax, dword [ebp - 0x19c]
sub eax, ebx
je 0x401e73
dec eax
je 0x401e51
dec eax
je 0x401dfe
dec eax
je 0x401de3
mov edi, 0x8000ffff
push str.Invalid_run_mode.
push edi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x401eb8
push dword [ebp + 0x10]
mov eax, esi
call fcn.00401226
mov edi, eax
cmp edi, ebx
jge 0x401e9e
push str.Failed_to_run_RunOnce_mode.
jmp 0x401dd6
push ebx
lea eax, [ebp - 0x170]
push eax
mov dword [ebp - 0x134], 1
call fcn.00403903
mov edi, eax
cmp edi, ebx
jge 0x401e22
push str.Failed_to_connect_to_parent_of_embedded_process.
jmp 0x401e3e
push dword [ebp - 0x12c]
lea esi, [ebp - 0x61c]
call fcn.0040195a
mov edi, eax
cmp edi, ebx
jge 0x401e9e
push str.Failed_to_run_bootstrapper_application_embedded.
push edi
call fcn.0042eef6
pop ecx
pop ecx
cmp edi, ebx
jge 0x401e9e
push str.Failed_to_run_embedded_mode.
jmp 0x401dd6
push esi
push dword [ebp - 0x12c]
lea esi, [ebp - 0x61c]
call fcn.0040161d
mov edi, eax
cmp edi, ebx
jge 0x401e9e
push str.Failed_to_run_per_machine_mode.
jmp 0x401dd6
push dword [ebp - 0x12c]
lea esi, [ebp - 0x61c]
mov dword [ebp - 0x134], 1
call fcn.0040195a
mov edi, eax
cmp edi, ebx
jge 0x401e9e
push str.Failed_to_run_per_user_mode.
jmp 0x401dd6
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 0x401ecb
push dword [ebp - 0x124]
call fcn.0042f657
cmp edi, ebx
jge 0x401eef
cmp dword [ebp - 0x238], ebx
jne 0x401eef
push ebx
push ebx
push ebx
push 0x439b20
push str._Failed
push str.Setup
push ebx
call fcn.0042ed1b
lea eax, [ebp - 0x564]
push eax
call fcn.0040b626
push dword [ebp - 0x518]
call fcn.0041816b
cmp dword [ebp - 0x128], ebx
je 0x401f45
cmp dword [ebp - 0x5e4], ebx
je 0x401f45
cmp dword [ebp - 0x5e4], 6
je 0x401f45
push dword [ebp - 0x5e4]
call fcn.0041165f
push eax
push 0xa0000008
push 2
call fcn.00401607
add esp, 0xc
mov dword [ebp - 0x128], ebx
mov edi, 0x80070bc2
lea esi, [ebp - 0x61c]
call fcn.004010dc
cmp dword [ebp - 0x144], ebx
je 0x401f5d
call fcn.0043410d
cmp dword [ebp - 0x138], ebx
je 0x401f6a
call fcn.0043316b
cmp dword [ebp - 0x140], ebx
je 0x401f77
call fcn.00432507
cmp dword [ebp - 0x148], ebx
je 0x401f85
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x134], ebx
je 0x401fcf
cmp edi, ebx
jge 0x401f95
mov esi, edi
jmp 0x401f9d
mov eax, dword [ebp - 0x13c]
mov esi, dword [eax]
push dword [ebp - 0x128]
call fcn.00411485
push eax
push esi
push 0x20000007
push 2
call fcn.00401607
add esp, 0x10
cmp dword [ebp - 0x128], ebx
je 0x401fcf
push 0xa0000005
push 2
call fcn.00401607
pop ecx
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x401fdd
push ebx
call fcn.0042ea3c
cmp dword [ebp - 0x128], ebx
je 0x401fea
call fcn.0040145b
cmp dword [ebp - 0x130], ebx
je 0x401ff8
push ebx
call fcn.0042ea9b
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042731a
leave
ret 0x10