Function at 0x407f10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4496bb
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x469070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x1f0
lea eax, [ebp - 0x274]
mov dword [ebp - 0x278], 0x1f4
push 0
push eax
call fcn.0042c5c0
add esp, 0xc
lea eax, [ebp - 0x278]
push 0
push eax
push 0x1f4
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4080d9
push 0x5c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0042c5c0
mov eax, dword [esi + 0xa4]
add esp, 0xc
test eax, eax
je 0x407fab
lea ecx, [ebp - 0x80]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x198]
jne 0x40805b
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x194]
jne 0x40805b
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x190]
jne 0x40805b
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x18c]
jne 0x40805b
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x188]
jne 0x40805b
mov al, byte [ebp - 0x6c]
cmp al, byte [ebp - 0x184]
jne 0x40805b
mov al, byte [ebp - 0x6b]
cmp al, byte [ebp - 0x183]
jne 0x40805b
mov al, byte [ebp - 0x6a]
cmp al, byte [ebp - 0x182]
jne 0x40805b
mov al, byte [ebp - 0x69]
cmp al, byte [ebp - 0x181]
jne 0x40805b
mov al, byte [ebp - 0x68]
cmp al, byte [ebp - 0x180]
jne 0x40805b
mov al, byte [ebp - 0x67]
cmp al, byte [ebp - 0x17f]
jne 0x40805b
mov al, byte [ebp - 0x66]
cmp al, byte [ebp - 0x17e]
jne 0x40805b
mov al, byte [ebp - 0x65]
cmp al, byte [ebp - 0x17d]
jne 0x40805b
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4080d9
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
test edi, edi
je 0x4080d9
cmp dword [esi + 0xa4], 0
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x408093
push dword [esi + 0xa4]
call ebx
test eax, eax
je 0x408093
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x4080a4
cmp eax, edi
je 0x4080a4
push eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push edi
push 0x30
mov dword [esi + 0xa4], edi
push dword [esi + 4]
call ebx
push 0x45a004
push 0
push 0x44d
push dword [esi + 4]
call ebx
push 0
push 0
push 0x421
push dword [esi + 4]
call ebx
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x4b0], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
mov dword [ebp - 0x4b4], edi
mov dword [ebp - 4], 0
push dword [esi + 0xa4]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x424
mov dword [ebp - 0x4ac], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push 0x45a00c
push edi
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
cmp eax, 4
jge 0x408163
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push 0x45a010
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov dword [esi + 0xb0], eax
jmp 0x40816d
mov dword [esi + 0xb0], 0
push dword [ebp - 0x4ac]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x110
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x390], 0x114
push 0
push eax
call fcn.0042c5c0
add esp, 0xc
lea eax, [ebp - 0x390]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x38c]
cmp eax, 5
jb 0x40829e
push 0
lea eax, [ebp - 0x4ac]
mov dword [ebp - 0x4ac], 1
push eax
push 0
push 0x100a
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x4081e7
cmp dword [ebp - 0x4ac], 0
jne 0x4081e7
mov cl, 1
jmp 0x4081e9
xor cl, cl
mov al, byte [esi + 0x85]
and cl, 1
and al, 0xfd
or cl, 4
add cl, cl
or cl, al
mov al, cl
add al, al
not al
xor al, cl
and al, 4
xor al, cl
mov byte [esi + 0x85], al
movzx eax, al
shr eax, 2
shl eax, 0x14
not eax
and eax, 0x100000
push eax
push 0x100000
push 0x446
push dword [esi + 4]
call ebx
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x38c]
cmp eax, 5
jne 0x408259
cmp dword [ebp - 0x388], 1
jae 0x40825b
jmp 0x40829e
jbe 0x40829e
push 0
lea eax, [ebp - 0x4ac]
mov dword [ebp - 0x4ac], 0
push eax
push 0
push 0x1022
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x40828c
cmp dword [ebp - 0x4ac], 0
je 0x40828c
mov cl, 1
jmp 0x40828e
xor cl, cl
mov al, byte [esi + 0x85]
xor al, cl
and al, 1
xor byte [esi + 0x85], al
test byte [esi + 0x58], 0x10
jne 0x4082eb
push 0x110
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x4a8], 0x114
push 0
push eax
call fcn.0042c5c0
add esp, 0xc
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4082eb
cmp dword [ebp - 0x4a4], 6
jb 0x4082eb
call fcn.00407de0
test al, al
je 0x4082eb
mov bl, 1
jmp 0x408309
xor bl, bl
test byte [esi + 0x86], 1
je 0x408309
cmp dword [esi + 0x44], 0
je 0x408309
cmp dword [esi + 0x50], 0
jle 0x408309
mov ecx, esi
call fcn.00407e80
mov al, byte [esi + 0x86]
xor al, bl
push edi
push dword [ebp - 0x4b0]
and al, 1
xor byte [esi + 0x86], al
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429d08
mov esp, ebp
pop ebp
ret