Function at 0x405195
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x18]
push 0x11c
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x120]
push ebx
push eax
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
call fcn.0042f8e0
push 0x4e8
lea eax, [ebp - 0x630]
mov dword [ebp - 0x124], ebx
push ebx
push eax
mov dword [ebp - 0x130], ebx
call fcn.0042f8e0
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.004404f8
push ebx
push 3
call fcn.004406ae
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
push eax
push esi
call fcn.0040120a
mov esi, eax
test esi, esi
jns 0x405259
push str.Failed_to_parse_command_line.
push esi
call fcn.00440237
pop ecx
pop ecx
mov edi, ebx
jmp 0x4054d4
push edi
lea eax, [ebp - 0x630]
push eax
call fcn.004042d7
mov esi, eax
test esi, esi
jns 0x405273
push str.Failed_to_initialize_engine_state.
jmp 0x40524a
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x604], eax
call fcn.00405618
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x405298
push str.Failed_to_initialize_COM.
jmp 0x40524a
xor edi, edi
inc edi
call fcn.0043fcae
mov esi, eax
test esi, esi
jns 0x4052b8
push str.Failed_to_initialize_Cryputil.
push esi
call fcn.00440237
pop ecx
pop ecx
jmp 0x4054d4
mov dword [ebp - 0x144], edi
call fcn.00440e07
mov esi, eax
test esi, esi
jns 0x4052d0
push str.Failed_to_initialize_Regutil.
jmp 0x4052ab
mov dword [ebp - 0x140], edi
call fcn.00442af7
mov esi, eax
test esi, esi
jns 0x4052e8
push str.Failed_to_initialize_Wiutil.
jmp 0x4052ab
mov dword [ebp - 0x13c], edi
call fcn.00443565
mov esi, eax
test esi, esi
jns 0x405300
push str.Failed_to_initialize_XML_util.
jmp 0x4052ab
lea eax, [ebp - 0x120]
mov dword [ebp - 0x138], edi
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x405359
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x405338
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40533f
mov esi, 0x80004005
push esi
push 0x95
push str.engine.cpp
call fcn.00403821
push str.Failed_to_get_OS_info.
jmp 0x4052ab
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.004033c7
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.11.1.2318
push 0x20000001
push 2
call fcn.00405602
add esp, 0x20
cmp dword [ebp - 0x124], ebx
je 0x4053b1
push dword [ebp - 0x124]
call fcn.00445636
and dword [ebp - 0x124], ebx
lea eax, [ebp - 0x630]
push eax
call fcn.0041752a
mov esi, eax
test esi, esi
jns 0x4053cd
push str.Failed_to_initialize_core.
jmp 0x4052ab
mov eax, dword [ebp - 0x1a0]
sub eax, 0
je 0x40549e
sub eax, 1
je 0x405476
sub eax, 1
je 0x40544e
sub eax, 1
je 0x405426
sub eax, 1
je 0x405403
mov esi, 0x8000ffff
push str.Invalid_run_mode.
jmp 0x4052ab
push dword [ebp + 0x14]
lea eax, [ebp - 0x530]
push eax
call fcn.00404c86
mov esi, eax
test esi, esi
jns 0x4054c0
push str.Failed_to_run_RunOnce_mode.
jmp 0x4052ab
lea eax, [ebp - 0x630]
mov dword [ebp - 0x130], edi
push eax
push dword [ebp - 0x12c]
call fcn.00404a88
mov esi, eax
test esi, esi
jns 0x4054c0
push str.Failed_to_run_embedded_mode.
jmp 0x4052ab
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0x134]
push dword [ebp - 0x12c]
call fcn.004048ef
mov esi, eax
test esi, esi
jns 0x4054c0
push str.Failed_to_run_per_machine_mode.
jmp 0x4052ab
lea eax, [ebp - 0x630]
mov dword [ebp - 0x130], edi
push eax
push dword [ebp - 0x12c]
call fcn.00404ae5
mov esi, eax
test esi, esi
jns 0x4054c0
push str.Failed_to_run_per_user_mode.
jmp 0x4052ab
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0x134]
call fcn.00404d39
mov esi, eax
test esi, esi
jns 0x4054c0
push str.Failed_to_run_untrusted_mode.
jmp 0x4052ab
mov ecx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x538]
mov ebx, dword [ebp - 0x618]
mov dword [ecx], eax
cmp dword [ebp - 0x124], 0
je 0x4054e8
push dword [ebp - 0x124]
call fcn.00445636
test esi, esi
jns 0x4054fa
cmp dword [ebp - 0x23c], 0
jne 0x4054fa
call fcn.004141ec
lea eax, [ebp - 0x578]
push eax
call fcn.0040d82f
push dword [ebp - 0x520]
call fcn.0041a8d6
call fcn.0041ab24
test ebx, ebx
je 0x405546
mov eax, dword [ebp - 0x5f8]
test eax, eax
je 0x405546
cmp eax, 6
je 0x405546
push eax
call fcn.0041434c
push eax
push 0xa0000008
push 2
call fcn.00405602
add esp, 0xc
mov esi, 0x80070bc2
xor ebx, ebx
lea eax, [ebp - 0x630]
push eax
call fcn.00404fa4
cmp dword [ebp - 0x138], 0
je 0x405560
call fcn.00443a35
cmp dword [ebp - 0x13c], 0
je 0x40556e
call fcn.00442efe
cmp dword [ebp - 0x140], 0
je 0x40557c
call fcn.00441479
cmp dword [ebp - 0x144], 0
je 0x40558a
call fcn.0043fdbd
test edi, edi
je 0x405594
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x130], 0
je 0x4055d6
test esi, esi
jns 0x4055a5
mov edi, esi
jmp 0x4055ad
mov eax, dword [ebp - 0x148]
mov edi, dword [eax]
push ebx
call fcn.00413d85
push eax
push edi
push 0x20000007
push 2
call fcn.00405602
add esp, 0x10
test ebx, ebx
je 0x4055d6
push 0xa0000005
push 2
call fcn.00405602
pop ecx
pop ecx
push 0
call fcn.00440113
test ebx, ebx
je 0x4055e6
call fcn.004045ee
push 0
call fcn.00440802
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e06f
mov esp, ebp
pop ebp
ret 0x14