Function at 0x40fde8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1f0
xor ebx, ebx
lea eax, [ebp - 0x26c]
push ebx
mov edi, 0x1f4
push eax
mov esi, ecx
mov dword [ebp - 0x270], edi
call fcn.00416210
add esp, 0xc
push ebx
lea eax, [ebp - 0x270]
push eax
push edi
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x40ff9c
push 0x58
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], ebx
call fcn.00416210
mov eax, dword [esi + 0xa4]
add esp, 0xc
cmp eax, ebx
je 0x40fe64
lea ecx, [ebp - 0x78]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x190]
jne 0x40ff18
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x18c]
jne 0x40ff18
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x188]
jne 0x40ff18
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x184]
jne 0x40ff18
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x180]
jne 0x40ff18
mov al, byte [ebp - 0x64]
cmp al, byte [ebp - 0x17c]
jne 0x40ff18
mov al, byte [ebp - 0x63]
cmp al, byte [ebp - 0x17b]
jne 0x40ff18
mov al, byte [ebp - 0x62]
cmp al, byte [ebp - 0x17a]
jne 0x40ff18
mov al, byte [ebp - 0x61]
cmp al, byte [ebp - 0x179]
jne 0x40ff18
mov al, byte [ebp - 0x60]
cmp al, byte [ebp - 0x178]
jne 0x40ff18
mov al, byte [ebp - 0x5f]
cmp al, byte [ebp - 0x177]
jne 0x40ff18
mov al, byte [ebp - 0x5e]
cmp al, byte [ebp - 0x176]
jne 0x40ff18
mov al, byte [ebp - 0x5d]
cmp al, byte [ebp - 0x175]
jne 0x40ff18
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40ff9c
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x4a8], eax
cmp eax, ebx
je 0x40ff9c
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0xa4], ebx
je 0x40ff4f
push dword [esi + 0xa4]
call edi
test eax, eax
je 0x40ff4f
mov dword [esi + 0xa4], ebx
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x40ff64
cmp eax, dword [ebp - 0x4a8]
je 0x40ff64
push eax
call edi
mov eax, dword [ebp - 0x4a8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
mov dword [esi + 0xa4], eax
push dword [esi + 4]
call edi
push 0x42e954
push ebx
push 0x44d
push dword [esi + 4]
call edi
push ebx
push ebx
push 0x421
push dword [esi + 4]
call edi
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x4b8], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push dword [esi + 0xa4]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 0x4b0], eax
call edi
push 0x424
mov dword [ebp - 0x4a8], eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0x42e95c
push dword [ebp - 0x4b0]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, 4
jge 0x41002e
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0x42e960
push dword [ebp - 0x4b0]
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [esi + 0xb0], eax
jmp 0x410034
mov dword [esi + 0xb0], ebx
push dword [ebp - 0x4a8]
push dword [ebp - 0x4b0]
call edi
push 0x110
lea eax, [ebp - 0x384]
push ebx
push eax
mov dword [ebp - 0x388], 0x114
call fcn.00416210
add esp, 0xc
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x384], 5
jb 0x410125
push ebx
lea eax, [ebp - 0x4a8]
push eax
push ebx
push 0x100a
mov dword [ebp - 0x4a8], 1
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x4100a9
cmp dword [ebp - 0x4a8], ebx
jne 0x4100a9
mov al, 1
jmp 0x4100ab
xor al, al
mov cl, byte [esi + 0x85]
and al, 1
or al, 4
add al, al
and cl, 0xfd
or al, cl
mov byte [esi + 0x85], al
shr al, 1
not al
and al, 1
call fcn.0041030a
cmp dword [ebp - 0x384], 5
jne 0x4100e6
cmp dword [ebp - 0x380], 1
jae 0x4100e8
cmp dword [ebp - 0x384], 5
jbe 0x410125
push ebx
lea eax, [ebp - 0x4a8]
push eax
push ebx
push 0x1022
mov dword [ebp - 0x4a8], ebx
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x410112
cmp dword [ebp - 0x4a8], ebx
je 0x410112
mov al, 1
jmp 0x410114
xor al, al
mov cl, byte [esi + 0x85]
xor cl, al
and cl, 1
xor byte [esi + 0x85], cl
push 0x110
lea eax, [ebp - 0x49c]
push ebx
push eax
mov dword [ebp - 0x4a0], 0x114
call fcn.00416210
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4101cc
cmp dword [ebp - 0x49c], 6
jb 0x4101cc
mov dword [ebp - 0x4a8], ebx
mov dword [ebp - 0x4b4], ebx
lea ecx, [ebp - 0x4b4]
lea ebx, [ebp - 0x4a8]
call fcn.00405f43
test eax, eax
js 0x4101ca
cmp dword [ebp - 0x4a8], 6
jb 0x4101ca
test byte [esi + 0x58], 0x10
jne 0x4101ca
push str.uxtheme.dll
mov byte [ebp - 0x4a1], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x4a8], eax
test eax, eax
je 0x410230
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsThemeActive
push eax
call edi
test eax, eax
je 0x4101d4
call eax
test eax, eax
je 0x4101d4
mov bl, 1
jmp 0x4101d6
xor ebx, ebx
mov byte [ebp - 0x4a1], bl
jmp 0x410216
xor bl, bl
push str.IsAppThemed
push dword [ebp - 0x4a8]
call edi
test bl, bl
je 0x4101f8
test eax, eax
je 0x4101f8
call eax
mov byte [ebp - 0x4a1], 1
test eax, eax
jne 0x4101ff
mov byte [ebp - 0x4a1], 0
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x4a1], 0
jne 0x410230
xor ebx, ebx
test byte [esi + 0x86], 1
je 0x410230
cmp dword [esi + 0x44], ebx
je 0x410230
cmp dword [esi + 0x50], ebx
jle 0x410230
mov edi, esi
call fcn.0040e9c8
mov al, byte [esi + 0x86]
xor al, byte [ebp - 0x4a1]
push dword [ebp - 0x4b0]
and al, 1
push dword [ebp - 0x4b8]
xor byte [esi + 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.00416201
leave
ret