Function at 0x40fdbb
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.004161e0
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 0x40ff6f
push 0x58
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], ebx
call fcn.004161e0
mov eax, dword [esi + 0xa4]
add esp, 0xc
cmp eax, ebx
je 0x40fe37
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 0x40feeb
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x18c]
jne 0x40feeb
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x188]
jne 0x40feeb
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x184]
jne 0x40feeb
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x180]
jne 0x40feeb
mov al, byte [ebp - 0x64]
cmp al, byte [ebp - 0x17c]
jne 0x40feeb
mov al, byte [ebp - 0x63]
cmp al, byte [ebp - 0x17b]
jne 0x40feeb
mov al, byte [ebp - 0x62]
cmp al, byte [ebp - 0x17a]
jne 0x40feeb
mov al, byte [ebp - 0x61]
cmp al, byte [ebp - 0x179]
jne 0x40feeb
mov al, byte [ebp - 0x60]
cmp al, byte [ebp - 0x178]
jne 0x40feeb
mov al, byte [ebp - 0x5f]
cmp al, byte [ebp - 0x177]
jne 0x40feeb
mov al, byte [ebp - 0x5e]
cmp al, byte [ebp - 0x176]
jne 0x40feeb
mov al, byte [ebp - 0x5d]
cmp al, byte [ebp - 0x175]
jne 0x40feeb
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40ff6f
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x4a8], eax
cmp eax, ebx
je 0x40ff6f
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0xa4], ebx
je 0x40ff22
push dword [esi + 0xa4]
call edi
test eax, eax
je 0x40ff22
mov dword [esi + 0xa4], ebx
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x40ff37
cmp eax, dword [ebp - 0x4a8]
je 0x40ff37
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 0x410001
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 0x410007
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.004161e0
add esp, 0xc
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x384], 5
jb 0x4100f8
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 0x41007c
cmp dword [ebp - 0x4a8], ebx
jne 0x41007c
mov al, 1
jmp 0x41007e
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.004102dd
cmp dword [ebp - 0x384], 5
jne 0x4100b9
cmp dword [ebp - 0x380], 1
jae 0x4100bb
cmp dword [ebp - 0x384], 5
jbe 0x4100f8
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 0x4100e5
cmp dword [ebp - 0x4a8], ebx
je 0x4100e5
mov al, 1
jmp 0x4100e7
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.004161e0
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41019f
cmp dword [ebp - 0x49c], 6
jb 0x41019f
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 0x41019d
cmp dword [ebp - 0x4a8], 6
jb 0x41019d
test byte [esi + 0x58], 0x10
jne 0x41019d
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 0x410203
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsThemeActive
push eax
call edi
test eax, eax
je 0x4101a7
call eax
test eax, eax
je 0x4101a7
mov bl, 1
jmp 0x4101a9
xor ebx, ebx
mov byte [ebp - 0x4a1], bl
jmp 0x4101e9
xor bl, bl
push str.IsAppThemed
push dword [ebp - 0x4a8]
call edi
test bl, bl
je 0x4101cb
test eax, eax
je 0x4101cb
call eax
mov byte [ebp - 0x4a1], 1
test eax, eax
jne 0x4101d2
mov byte [ebp - 0x4a1], 0
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x4a1], 0
jne 0x410203
xor ebx, ebx
test byte [esi + 0x86], 1
je 0x410203
cmp dword [esi + 0x44], ebx
je 0x410203
cmp dword [esi + 0x50], ebx
jle 0x410203
mov edi, esi
call fcn.0040e921
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.004161d1
leave
ret