Function at 0x41ff00
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x42f6de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
mov ebx, dword [esp + 0xf0]
push ebp
push esi
mov eax, dword [ebx*4 + 0x439328]
push edi
push eax
mov dword [esp + 0x30], ecx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x30], ebp
je 0x42017f
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
test esi, esi
je 0x41ff90
mov eax, ebx
mov edx, dword [esi]
shl eax, 4
mov ecx, dword [eax + 0x439354]
mov eax, dword [eax + 0x439350]
push ecx
lea ecx, [esp + 0x50]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x40]
jmp 0x41ffaa
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov esi, eax
mov dword [esp + 0x18], 1
xor eax, eax
mov dword [esp + 0x10], 0x432764
mov dword [esp + 0x14], eax
mov dword [esp + 0xf0], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x58], 5
jne 0x41ffeb
cmp dword [esp + 0x5c], 1
jne 0x41ffeb
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x41fff0
push 0xc0c0c0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [0x439344], eax
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [0x439344]
mov edx, dword [esi + 4]
push ecx
push edx
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
push 0xfffffffffffffffe
lea ecx, [esp + 0x40]
push 0xfffffffffffffffe
push ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [0x439348]
mov ecx, dword [edi + 0xdc]
add edx, ebx
add ecx, 0x14
push edx
call sub.MFC42.DLL_CPtrList::FindIndex
xor ebx, ebx
cmp eax, ebx
je 0x420163
mov ebp, dword [eax + 8]
lea edx, [esp + 0x3c]
push edx
push 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x74]
push ecx
mov ecx, dword [edi + 0xdc]
mov eax, dword [eax + 4]
push eax
call fcn.0040ac10
push 0x7c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0xf0], 2
je 0x4200ec
mov ecx, eax
call fcn.00424fa0
mov edi, eax
jmp 0x4200ee
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
mov byte [esp + 0xf0], 0
call dword [eax + 0x14]
mov ebp, dword [ebp + 0x14]
cmp ebp, ebx
je 0x420129
mov edx, dword [esp + 0x2c]
push esi
lea ecx, [esp + 0x40]
push 1
mov eax, dword [edx + 0x20]
push ecx
lea ecx, [esp + 0x40]
push eax
push ecx
push ebp
mov ecx, edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.00425c00
cmp edi, ebx
je 0x420136
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
cmp dword [esp + 0x18], ebx
je 0x42014e
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 4]
push eax
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esp + 0x10], 0x431dc8
mov dword [esp + 0xf0], 3
jmp 0x420176
mov dword [esp + 0x10], 0x431dc8
mov dword [esp + 0xf0], 1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe4
ret 8