Function at 0x40fe00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x475aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x150
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x1b8], 0x154
push 0
push eax
mov edi, ecx
call fcn.00420310
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 0x1b8]
add esp, 0xc
push 0
push eax
push 0x154
push 0x29
call ebx
test eax, eax
je 0x40ffb3
push 0x3c
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00420310
mov eax, dword [edi + 0xa4]
add esp, 0xc
test eax, eax
je 0x40fe7f
lea ecx, [ebp - 0x50]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x118]
jne 0x40ff33
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x114]
jne 0x40ff33
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x110]
jne 0x40ff33
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x10c]
jne 0x40ff33
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x108]
jne 0x40ff33
mov al, byte [ebp - 0x3c]
cmp al, byte [ebp - 0x104]
jne 0x40ff33
mov al, byte [ebp - 0x3b]
cmp al, byte [ebp - 0x103]
jne 0x40ff33
mov al, byte [ebp - 0x3a]
cmp al, byte [ebp - 0x102]
jne 0x40ff33
mov al, byte [ebp - 0x39]
cmp al, byte [ebp - 0x101]
jne 0x40ff33
mov al, byte [ebp - 0x38]
cmp al, byte [ebp - 0x100]
jne 0x40ff33
mov al, byte [ebp - 0x37]
cmp al, byte [ebp - 0xff]
jne 0x40ff33
mov al, byte [ebp - 0x36]
cmp al, byte [ebp - 0xfe]
jne 0x40ff33
mov al, byte [ebp - 0x35]
cmp al, byte [ebp - 0xfd]
jne 0x40ff33
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40ffb3
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, eax
test esi, esi
je 0x40ffb3
mov eax, dword [edi + 0xa4]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x40ff67
push eax
call ebx
test eax, eax
je 0x40ff67
mov dword [edi + 0xa4], 0
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x40ff78
cmp eax, esi
je 0x40ff78
push eax
call ebx
push 1
push esi
mov dword [edi + 0xa4], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x30
push dword [edi + 4]
call esi
push 0x4649f0
push 0
push 0x41c
push dword [edi + 4]
call esi
push 0
push 0
push 0x421
push dword [edi + 4]
call esi
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0x2f4], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push dword [edi + 0xa4]
mov esi, eax
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2f0], eax
call eax
push 0x424
mov dword [ebp - 0x2e4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0x4649f4
push esi
mov esi, dword [sym.imp.USER32.dll_DrawTextA]
movups xmmword [ebp - 0x14], xmm0
call esi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, 4
jge 0x41003a
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0x4649f8
push dword [ebp - 0x2ec]
call esi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
jmp 0x41003c
xor eax, eax
mov dword [edi + 0xb0], eax
push dword [ebp - 0x2e4]
push dword [ebp - 0x2ec]
call dword [ebp - 0x2f0]
push 0x90
lea eax, [ebp - 0x248]
mov dword [ebp - 0x24c], 0x94
push 0
push eax
call fcn.00420310
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24c]
add esp, 0xc
push eax
call esi
mov eax, dword [ebp - 0x248]
cmp eax, 5
jb 0x41013b
push 0
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e4], 1
push eax
push 0
push 0x100a
call ebx
test eax, eax
je 0x4100bf
cmp dword [ebp - 0x2e4], 0
jne 0x4100bf
mov cl, 2
jmp 0x4100c1
xor cl, cl
mov al, byte [edi + 0x85]
and al, 0xfd
or al, cl
mov ecx, edi
or al, 8
mov byte [edi + 0x85], al
shr al, 1
not al
and al, 1
movzx eax, al
push eax
call fcn.004156b0
mov eax, dword [ebp - 0x248]
cmp eax, 5
jne 0x4100fa
cmp dword [ebp - 0x244], 1
jae 0x4100fc
jmp 0x41013b
jbe 0x41013b
push 0
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e4], 0
push eax
push 0
push 0x1022
call ebx
test eax, eax
je 0x410129
cmp dword [ebp - 0x2e4], 0
je 0x410129
mov cl, 1
jmp 0x41012b
xor cl, cl
mov al, byte [edi + 0x85]
and al, 0xfe
or al, cl
mov byte [edi + 0x85], al
push 0x90
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2e0], 0x94
push 0
push eax
call fcn.00420310
add esp, 0xc
lea eax, [ebp - 0x2e0]
push eax
call esi
test eax, eax
je 0x4101ad
cmp dword [ebp - 0x2dc], 6
jb 0x4101ad
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0x14
push str.comctl32.dll
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4101ad
push str.DllGetVersion
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4101fe
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor bl, bl
test byte [edi + 0x86], 1
je 0x4101cb
cmp dword [edi + 0x44], 0
je 0x4101cb
cmp dword [edi + 0x50], 0
jle 0x4101cb
mov ecx, edi
call fcn.00416ca0
mov al, byte [edi + 0x86]
push dword [ebp - 0x2ec]
and al, 0xfe
push dword [ebp - 0x2f4]
or al, bl
mov byte [edi + 0x86], al
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041de32
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x64]
push ecx
call eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
js 0x4101ad
cmp dword [ebp - 0x60], 6
jb 0x4101ad
test byte [edi + 0x58], 0x10
jne 0x4101ad
push str.uxtheme.dll
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4101cb
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsThemeActive
push esi
call ebx
test eax, eax
je 0x41025e
call eax
test eax, eax
je 0x41025e
push str.IsAppThemed
push esi
call ebx
test eax, eax
je 0x410266
call eax
test eax, eax
je 0x410266
mov bl, 1
jmp 0x410268
push str.IsAppThemed
push esi
call ebx
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x4101cb
jmp 0x4101af