Function at 0x401210
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x406626
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x40a01c]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push esi
push edi
mov eax, dword [0x40a01c]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [esp + 0x30], eax
mov edi, edx
mov dword [esp + 0x34], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x40150c
push 0x1f4
lea edx, [esp + 0x3c]
push esi
push edx
mov dword [esp + 0x40], 0x1f8
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x114
lea eax, [esp + 0x230]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x22c]
push ecx
mov dword [esp + 0x230], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x230], 6
jae 0x4012c9
sub dword [esp + 0x34], 4
push 0
lea edx, [esp + 0x38]
push edx
push 0
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x401502
push 4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4012fa
lea edx, [esp + 0x14]
mov dword [eax], edx
jmp 0x4012fc
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push 1
lea esi, [esp + 0x18]
mov dword [esp + 0x35c], 1
call fcn.00401fc0
push 0xffff
call fcn.00401fc0
push 0
call fcn.00402020
push 0
call fcn.00402020
push 0x80ca08c0
call fcn.00402020
push 2
call fcn.00401fc0
push 0
call fcn.00401fc0
push 0
call fcn.00401fc0
push 0x9d
call fcn.00401fc0
push 0x20
call fcn.00401fc0
push 0x4071ec
call fcn.00401150
push 0x4071ec
call fcn.00401150
push edi
call fcn.00401150
mov eax, dword [esp + 0x1cc]
test eax, eax
jge 0x4013b2
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
mov eax, dword [esp + 0x1d0]
push 0x48
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x1cc], eax
push eax
lea esi, [esp + 0x18]
call fcn.00401fc0
mov ecx, dword [esp + 0x1dc]
push ecx
call fcn.00401fc0
mov edx, dword [esp + 0x1e0]
push edx
call fcn.00402070
mov eax, dword [esp + 0x1e3]
push eax
call fcn.00402070
lea ecx, [esp + 0x1e8]
push ecx
call fcn.00401150
mov edi, esi
call fcn.00401100
push 0
call fcn.00402020
push 0
call fcn.00402020
push 0x50000001
call fcn.00402020
push 7
call fcn.00401fc0
push 3
call fcn.00401fc0
push 0x90
call fcn.00401fc0
push 0xa
call fcn.00401fc0
push 0xffffffffffffffff
call fcn.00402020
push 0x82ffff
call fcn.00402020
mov edx, dword [esp + 0x2c]
push edx
call fcn.00401150
push 0
call fcn.00401fc0
call fcn.00401100
xor edi, edi
push edi
call fcn.00402020
push edi
call fcn.00402020
push 0x50030001
call fcn.00402020
push 0x37
call fcn.00401fc0
push 0x12
call fcn.00401fc0
push 0x30
call fcn.00401fc0
push 0xb
call fcn.00401fc0
push 1
call fcn.00402020
push 0x80ffff
call fcn.00402020
mov eax, dword [esp + 0x30]
push eax
call fcn.00401150
push edi
call fcn.00401fc0
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
jne 0x4014ba
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
push edi
push 0x4011c0
push edi
push edx
push edi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x20]
setge cl
mov esi, ecx
cmp eax, edi
je 0x4014e7
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x401504
xor edi, edi
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.0040598e
mov esp, ebp
pop ebp
ret