Function at 0x401460
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
mov eax, dword [0x457880]
xor eax, esp
mov dword [esp + 0x188], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, str.nview.dll
mov esi, ecx
mov dword [esp + 0x10], eax
call section..text
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov dword [0x457d78], eax
cmp eax, edi
je 0x4014c1
push str.NVGetDisplayMonitorInfo
push eax
call ebx
mov ecx, dword [0x457d78]
push str.NView_ExtEscape
push ecx
mov dword [0x457d7c], eax
call ebx
mov dword [0x457d6c], eax
call fcn.0041f910
test eax, eax
je 0x4014ed
mov ebx, 0x80004005
mov ecx, esi
call fcn.00402b50
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0044d16e
mov esp, ebp
pop ebp
ret 4
push str.D3D9.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x457d74], eax
cmp eax, edi
je 0x401524
push str.Direct3DCreate9
push eax
call ebx
mov dword [0x457d24], eax
cmp eax, edi
je 0x40151e
push 0x20
call eax
mov dword [esi + 0x2b81c], eax
jmp 0x401524
mov dword [esi + 0x2b81c], edi
cmp dword [esi + 0x2b81c], edi
jne 0x401554
push 0x10
mov ecx, 0x2c96
call fcn.00403080
mov eax, 0x82000001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0044d16e
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.00401830
mov ebx, eax
cmp ebx, edi
jge 0x401596
mov eax, dword [esi + 0x2b81c]
cmp eax, edi
je 0x401578
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0x2b81c], edi
mov ecx, esi
call fcn.00402b50
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0044d16e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x2b818], edi
jne 0x401640
mov edx, dword [0x457d68]
push 0x1e
lea ecx, [esp + 0x15c]
push ecx
push 0x2c90
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, dword [esp + 0x10]
push 0x13ed
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x401440
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x158]
push ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push edi
push ebx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea edx, [esp + 0x17c]
push edx
mov eax, edx
push eax
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x2b818], eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x44]
cmp eax, 5
jne 0x40166e
xor edx, edx
cmp edx, dword [esp + 0x48]
sbb eax, eax
and eax, 2
mov dword [0x457d20], eax
jmp 0x401687
cmp eax, 6
jne 0x401687
xor ecx, ecx
cmp ecx, dword [esp + 0x48]
sbb edx, edx
and edx, 4
add edx, 4
mov dword [0x457d20], edx
cmp dword [0x483c08], edi
jne 0x4016c3
lea eax, [esp + 0x10]
push eax
mov dword [0x483c08], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x483c0c], eax
cmp eax, edi
je 0x40171e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [0x483c10], ecx
mov dword [0x483c14], edx
jmp 0x4016c8
mov eax, dword [0x483c0c]
cmp eax, edi
je 0x40171e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x14]
cmp dword [0x457974], edi
je 0x401701
mov ecx, dword [esp + 0x10]
sub ecx, dword [0x483c18]
mov edx, eax
sbb edx, dword [0x483c1c]
add dword [0x483c28], ecx
adc dword [0x483c2c], edx
mov ecx, dword [esp + 0x10]
mov dword [0x483c18], edi
mov dword [0x483c1c], edi
mov dword [0x483c20], ecx
mov dword [0x483c24], eax
jmp 0x401766
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jge 0x401736
fadd qword [0x4516a0]
fmul qword [0x451698]
cmp dword [0x457974], edi
je 0x401758
fld qword [0x483c40]
fsubr st(1)
fadd qword [0x483c38]
fstp qword [0x483c38]
fldz
fstp qword [0x483c40]
fstp qword [0x483c30]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
mov dword [0x457974], edi
call eax
mov ebx, eax
cmp ebx, edi
jge 0x4017b1
mov eax, dword [esi + 0x2b81c]
cmp eax, edi
je 0x401793
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x2b81c], edi
mov ecx, esi
call fcn.00402b50
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0044d16e
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00402160
mov ebx, eax
cmp ebx, edi
jl 0x40177b
mov ecx, dword [esp + 0x194]
pop edi
mov dword [esi + 0x2b790], 1
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044d16e
mov esp, ebp
pop ebp
ret 4