Function at 0x415dd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x39c
mov eax, dword [0x445030]
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.0041c990
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 0x415fb1
push 0x58
lea edx, [esp + 0x38]
push edi
push edx
mov dword [esp + 0x3c], edi
call fcn.0041c990
mov eax, dword [esi + 0xa4]
add esp, 0xc
cmp eax, edi
je 0x415e57
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 0x415f2f
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x174]
jne 0x415f2f
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x178]
jne 0x415f2f
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x17c]
jne 0x415f2f
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x180]
jne 0x415f2f
mov cl, byte [esp + 0x44]
cmp cl, byte [esp + 0x184]
jne 0x415f2f
mov dl, byte [esp + 0x45]
cmp dl, byte [esp + 0x185]
jne 0x415f2f
mov al, byte [esp + 0x46]
cmp al, byte [esp + 0x186]
jne 0x415f2f
mov cl, byte [esp + 0x47]
cmp cl, byte [esp + 0x187]
jne 0x415f2f
mov dl, byte [esp + 0x48]
cmp dl, byte [esp + 0x188]
jne 0x415f2f
mov al, byte [esp + 0x49]
cmp al, byte [esp + 0x189]
jne 0x415f2f
mov cl, byte [esp + 0x4a]
cmp cl, byte [esp + 0x18a]
jne 0x415f2f
mov dl, byte [esp + 0x4b]
cmp dl, byte [esp + 0x18b]
jne 0x415f2f
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x415fb1
lea edx, [esp + 0x170]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, eax
cmp ebx, edi
je 0x415fb1
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0xa4], edi
je 0x415f64
mov eax, dword [esi + 0xa4]
push eax
call ebp
test eax, eax
je 0x415f64
mov dword [esi + 0xa4], edi
mov eax, dword [esi + 0xa4]
cmp eax, edi
je 0x415f75
cmp eax, ebx
je 0x415f75
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 0x43f4f0
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 0x43f4f8
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 0x41603b
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x424
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
push 0x43f4fc
push ebp
call edi
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov dword [esi + 0xb0], eax
jmp 0x416045
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.0041c990
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 0x41612b
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 0x4160b6
cmp dword [esp + 0x14], edi
jne 0x4160b6
mov al, 1
jmp 0x4160b8
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.004162d0
mov eax, dword [esp + 0x28c]
cmp eax, 5
jne 0x4160f2
cmp dword [esp + 0x290], 1
jae 0x4160f4
jmp 0x41612b
jbe 0x41612b
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 0x416118
cmp dword [esp + 0x14], edi
je 0x416118
mov al, 1
jmp 0x41611a
xor al, al
mov cl, byte [esi + 0x85]
xor cl, al
and cl, 1
xor byte [esi + 0x85], cl
call fcn.0041ad10
test al, al
je 0x416189
lea edx, [esp + 0x14]
push edx
lea ebx, [esp + 0x30]
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], edi
call fcn.00418470
add esp, 4
test eax, eax
jl 0x416189
cmp dword [esp + 0x14], 6
jb 0x416189
test byte [esi + 0x58], 0x10
jne 0x416189
push str.uxtheme.dll
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4161d6
push str.IsThemeActive
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41618d
call eax
test eax, eax
je 0x41618d
jmp 0x41618f
xor bl, bl
jmp 0x4161ba
xor bl, bl
push str.IsAppThemed
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test bl, bl
je 0x4161ad
test eax, eax
je 0x4161ad
call eax
test eax, eax
je 0x4161ad
mov bl, 1
jmp 0x4161af
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x4161d6
test byte [esi + 0x86], 1
je 0x4161d6
cmp dword [esi + 0x44], 0
je 0x4161d6
cmp dword [esi + 0x50], 0
jle 0x4161d6
mov edi, esi
call fcn.00408280
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.0041b3f1
add esp, 0x39c
ret