Function at 0x411320
Capabilities:
Check os version

Disassembly:
sub esp, 0x39c
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x394], eax
push ebx
push ebp
push esi
push edi
push 0x1f0
xor edi, edi
lea eax, [esp + 0x98]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x9c], 0x1f4
call fcn.0041e460
add esp, 0xc
push edi
lea ecx, [esp + 0x94]
push ecx
push 0x1f4
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x411501
push 0x58
lea edx, [esp + 0x38]
push edi
push edx
mov dword [esp + 0x3c], edi
call fcn.0041e460
mov eax, dword [esi + 0xa4]
add esp, 0xc
cmp eax, edi
je 0x4113a7
lea ecx, [esp + 0x30]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x170]
jne 0x41147f
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x174]
jne 0x41147f
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x178]
jne 0x41147f
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x17c]
jne 0x41147f
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x180]
jne 0x41147f
mov cl, byte [esp + 0x44]
cmp cl, byte [esp + 0x184]
jne 0x41147f
mov dl, byte [esp + 0x45]
cmp dl, byte [esp + 0x185]
jne 0x41147f
mov al, byte [esp + 0x46]
cmp al, byte [esp + 0x186]
jne 0x41147f
mov cl, byte [esp + 0x47]
cmp cl, byte [esp + 0x187]
jne 0x41147f
mov dl, byte [esp + 0x48]
cmp dl, byte [esp + 0x188]
jne 0x41147f
mov al, byte [esp + 0x49]
cmp al, byte [esp + 0x189]
jne 0x41147f
mov cl, byte [esp + 0x4a]
cmp cl, byte [esp + 0x18a]
jne 0x41147f
mov dl, byte [esp + 0x4b]
cmp dl, byte [esp + 0x18b]
jne 0x41147f
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x411501
lea edx, [esp + 0x170]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, eax
cmp ebx, edi
je 0x411501
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0xa4], edi
je 0x4114b4
mov eax, dword [esi + 0xa4]
push eax
call ebp
test eax, eax
je 0x4114b4
mov dword [esi + 0xa4], edi
mov eax, dword [esi + 0xa4]
cmp eax, edi
je 0x4114c5
cmp eax, ebx
je 0x4114c5
push eax
call ebp
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov ecx, ebx
push ecx
mov dword [esi + 0xa4], ebx
mov edx, dword [esi + 4]
push 0x30
push edx
call edi
mov eax, dword [esi + 4]
push 0x434df0
push 0
push 0x44d
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 0
push 0x421
push ecx
call edi
xor edi, edi
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
mov eax, dword [esi + 0xa4]
push eax
push ebp
call ebx
push 0x424
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
push 0x434df8
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov edi, dword [sym.imp.USER32.dll_DrawTextW]
push ebp
mov dword [esp + 0x28], eax
call edi
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cmp eax, 4
jge 0x41158b
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
push 0x434dfc
push ebp
call edi
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov dword [esi + 0xb0], eax
jmp 0x411595
mov dword [esi + 0xb0], 0
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call ebx
push 0x110
xor edi, edi
lea edx, [esp + 0x290]
push edi
push edx
mov dword [esp + 0x294], 0x114
call fcn.0041e460
add esp, 0xc
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x28c]
cmp eax, 5
jb 0x41167b
push edi
lea ecx, [esp + 0x18]
push ecx
push edi
push 0x100a
mov dword [esp + 0x24], 1
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x411606
cmp dword [esp + 0x14], edi
jne 0x411606
mov al, 1
jmp 0x411608
xor al, al
mov dl, byte [esi + 0x85]
and al, 1
or al, 4
add al, al
and dl, 0xfd
or al, dl
mov byte [esi + 0x85], al
shr al, 1
not al
and al, 1
call fcn.00411820
mov eax, dword [esp + 0x28c]
cmp eax, 5
jne 0x411642
cmp dword [esp + 0x290], 1
jae 0x411644
jmp 0x41167b
jbe 0x41167b
push edi
lea eax, [esp + 0x18]
push eax
push edi
push 0x1022
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x411668
cmp dword [esp + 0x14], edi
je 0x411668
mov al, 1
jmp 0x41166a
xor al, al
mov cl, byte [esi + 0x85]
xor cl, al
and cl, 1
xor byte [esi + 0x85], cl
call fcn.0041c1a0
test al, al
je 0x4116d9
lea edx, [esp + 0x14]
push edx
lea ebx, [esp + 0x30]
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], edi
call fcn.00414100
add esp, 4
test eax, eax
jl 0x4116d9
cmp dword [esp + 0x14], 6
jb 0x4116d9
test byte [esi + 0x58], 0x10
jne 0x4116d9
push str.uxtheme.dll
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x411726
push str.IsThemeActive
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4116dd
call eax
test eax, eax
je 0x4116dd
jmp 0x4116df
xor bl, bl
jmp 0x41170a
xor bl, bl
push str.IsAppThemed
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test bl, bl
je 0x4116fd
test eax, eax
je 0x4116fd
call eax
test eax, eax
je 0x4116fd
mov bl, 1
jmp 0x4116ff
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x411726
test byte [esi + 0x86], 1
je 0x411726
cmp dword [esi + 0x44], 0
je 0x411726
cmp dword [esi + 0x50], 0
jle 0x411726
mov edi, esi
call fcn.0040f300
mov al, byte [esi + 0x86]
mov ecx, dword [esp + 0x28]
xor al, bl
push ebp
and al, 1
xor byte [esi + 0x86], al
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041cac6
add esp, 0x39c
ret