Function at 0x4115d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x42e07c]
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.00414cd0
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 0x411784
push 0x58
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], ebx
call fcn.00414cd0
mov eax, dword [esi + 0xa4]
add esp, 0xc
cmp eax, ebx
je 0x41164c
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 0x411700
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x18c]
jne 0x411700
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x188]
jne 0x411700
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x184]
jne 0x411700
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x180]
jne 0x411700
mov al, byte [ebp - 0x64]
cmp al, byte [ebp - 0x17c]
jne 0x411700
mov al, byte [ebp - 0x63]
cmp al, byte [ebp - 0x17b]
jne 0x411700
mov al, byte [ebp - 0x62]
cmp al, byte [ebp - 0x17a]
jne 0x411700
mov al, byte [ebp - 0x61]
cmp al, byte [ebp - 0x179]
jne 0x411700
mov al, byte [ebp - 0x60]
cmp al, byte [ebp - 0x178]
jne 0x411700
mov al, byte [ebp - 0x5f]
cmp al, byte [ebp - 0x177]
jne 0x411700
mov al, byte [ebp - 0x5e]
cmp al, byte [ebp - 0x176]
jne 0x411700
mov al, byte [ebp - 0x5d]
cmp al, byte [ebp - 0x175]
jne 0x411700
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x411784
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x4a8], eax
cmp eax, ebx
je 0x411784
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0xa4], ebx
je 0x411737
push dword [esi + 0xa4]
call edi
test eax, eax
je 0x411737
mov dword [esi + 0xa4], ebx
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x41174c
cmp eax, dword [ebp - 0x4a8]
je 0x41174c
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 0x429804
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 0x42980c
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 0x411816
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0x429810
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 0x41181c
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.00414cd0
add esp, 0xc
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x384], 5
jb 0x41190d
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 0x411891
cmp dword [ebp - 0x4a8], ebx
jne 0x411891
mov al, 1
jmp 0x411893
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.00411af2
cmp dword [ebp - 0x384], 5
jne 0x4118ce
cmp dword [ebp - 0x380], 1
jae 0x4118d0
cmp dword [ebp - 0x384], 5
jbe 0x41190d
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 0x4118fa
cmp dword [ebp - 0x4a8], ebx
je 0x4118fa
mov al, 1
jmp 0x4118fc
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.00414cd0
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4119b4
cmp dword [ebp - 0x49c], 6
jb 0x4119b4
mov dword [ebp - 0x4a8], ebx
mov dword [ebp - 0x4b4], ebx
lea ecx, [ebp - 0x4b4]
lea ebx, [ebp - 0x4a8]
call fcn.00405692
test eax, eax
js 0x4119b2
cmp dword [ebp - 0x4a8], 6
jb 0x4119b2
test byte [esi + 0x58], 0x10
jne 0x4119b2
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 0x411a18
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsThemeActive
push eax
call edi
test eax, eax
je 0x4119bc
call eax
test eax, eax
je 0x4119bc
mov bl, 1
jmp 0x4119be
xor ebx, ebx
mov byte [ebp - 0x4a1], bl
jmp 0x4119fe
xor bl, bl
push str.IsAppThemed
push dword [ebp - 0x4a8]
call edi
test bl, bl
je 0x4119e0
test eax, eax
je 0x4119e0
call eax
mov byte [ebp - 0x4a1], 1
test eax, eax
jne 0x4119e7
mov byte [ebp - 0x4a1], 0
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x4a1], 0
jne 0x411a18
xor ebx, ebx
test byte [esi + 0x86], 1
je 0x411a18
cmp dword [esi + 0x44], ebx
je 0x411a18
cmp dword [esi + 0x50], ebx
jle 0x411a18
mov edi, esi
call fcn.0040ff24
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.004144e4
leave
ret