Function at 0x411e06
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x42f064]
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.00414670
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 0x411fba
push 0x58
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], ebx
call fcn.00414670
mov eax, dword [esi + 0xa4]
add esp, 0xc
cmp eax, ebx
je 0x411e82
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 0x411f36
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x18c]
jne 0x411f36
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x188]
jne 0x411f36
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x184]
jne 0x411f36
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x180]
jne 0x411f36
mov al, byte [ebp - 0x64]
cmp al, byte [ebp - 0x17c]
jne 0x411f36
mov al, byte [ebp - 0x63]
cmp al, byte [ebp - 0x17b]
jne 0x411f36
mov al, byte [ebp - 0x62]
cmp al, byte [ebp - 0x17a]
jne 0x411f36
mov al, byte [ebp - 0x61]
cmp al, byte [ebp - 0x179]
jne 0x411f36
mov al, byte [ebp - 0x60]
cmp al, byte [ebp - 0x178]
jne 0x411f36
mov al, byte [ebp - 0x5f]
cmp al, byte [ebp - 0x177]
jne 0x411f36
mov al, byte [ebp - 0x5e]
cmp al, byte [ebp - 0x176]
jne 0x411f36
mov al, byte [ebp - 0x5d]
cmp al, byte [ebp - 0x175]
jne 0x411f36
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x411fba
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x4a8], eax
cmp eax, ebx
je 0x411fba
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0xa4], ebx
je 0x411f6d
push dword [esi + 0xa4]
call edi
test eax, eax
je 0x411f6d
mov dword [esi + 0xa4], ebx
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x411f82
cmp eax, dword [ebp - 0x4a8]
je 0x411f82
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 0x42a9ac
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 0x42a9b4
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 0x41204c
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0x42a9b8
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 0x412052
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.00414670
add esp, 0xc
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x384], 5
jb 0x412143
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 0x4120c7
cmp dword [ebp - 0x4a8], ebx
jne 0x4120c7
mov al, 1
jmp 0x4120c9
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.00412328
cmp dword [ebp - 0x384], 5
jne 0x412104
cmp dword [ebp - 0x380], 1
jae 0x412106
cmp dword [ebp - 0x384], 5
jbe 0x412143
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 0x412130
cmp dword [ebp - 0x4a8], ebx
je 0x412130
mov al, 1
jmp 0x412132
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.00414670
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4121ea
cmp dword [ebp - 0x49c], 6
jb 0x4121ea
mov dword [ebp - 0x4a8], ebx
mov dword [ebp - 0x4b4], ebx
lea ecx, [ebp - 0x4b4]
lea ebx, [ebp - 0x4a8]
call fcn.00405f10
test eax, eax
js 0x4121e8
cmp dword [ebp - 0x4a8], 6
jb 0x4121e8
test byte [esi + 0x58], 0x10
jne 0x4121e8
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 0x41224e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsThemeActive
push eax
call edi
test eax, eax
je 0x4121f2
call eax
test eax, eax
je 0x4121f2
mov bl, 1
jmp 0x4121f4
xor ebx, ebx
mov byte [ebp - 0x4a1], bl
jmp 0x412234
xor bl, bl
push str.IsAppThemed
push dword [ebp - 0x4a8]
call edi
test bl, bl
je 0x412216
test eax, eax
je 0x412216
call eax
mov byte [ebp - 0x4a1], 1
test eax, eax
jne 0x41221d
mov byte [ebp - 0x4a1], 0
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x4a1], 0
jne 0x41224e
xor ebx, ebx
test byte [esi + 0x86], 1
je 0x41224e
cmp dword [esi + 0x44], ebx
je 0x41224e
cmp dword [esi + 0x50], ebx
jle 0x41224e
mov edi, esi
call fcn.0041075a
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.00414657
leave
ret