Function at 0x401b20
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf415
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x510a50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov eax, vtable.CBrush.0
mov dword [ebp - 0x128], 0x52c7b8
mov dword [0x52c84c], edi
mov dword [0x52c848], eax
mov dword [ebp - 4], edi
mov dword [0x52c854], edi
mov dword [0x52c850], eax
mov dword [0x52c85c], edi
mov dword [0x52c858], eax
mov dword [0x52c864], edi
mov dword [0x52c860], eax
mov dword [0x52c86c], edi
mov dword [0x52c868], eax
mov dword [0x52c874], edi
mov dword [0x52c870], eax
mov dword [0x52c87c], edi
mov dword [0x52c878], eax
mov dword [0x52c884], edi
mov dword [0x52c880], eax
mov eax, vtable.CPen.0
mov dword [0x52c88c], edi
mov dword [0x52c888], eax
mov dword [0x52c894], edi
mov dword [0x52c890], eax
mov dword [0x52c89c], edi
mov dword [0x52c898], eax
mov eax, vtable.CFont.0
mov dword [0x52c8c4], edi
mov dword [0x52c8c8], edi
mov dword [0x52c8d0], edi
mov dword [0x52c8cc], eax
mov dword [0x52c8d8], edi
mov dword [0x52c8d4], eax
mov dword [0x52c8e0], edi
mov dword [0x52c8dc], eax
mov dword [0x52c8e8], edi
mov dword [0x52c8e4], eax
mov dword [0x52c8f0], edi
mov dword [0x52c8ec], eax
mov dword [0x52c8f8], edi
mov dword [0x52c8f4], eax
mov dword [0x52c900], edi
mov dword [0x52c8fc], eax
mov dword [0x52c908], edi
mov dword [0x52c904], eax
mov dword [0x52c910], edi
mov dword [0x52c90c], eax
mov dword [0x52c918], edi
mov dword [0x52c914], eax
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x124]
push eax
mov dword [0x52c91c], edi
mov dword [0x52c920], edi
mov dword [0x52c924], edi
mov dword [0x52c928], edi
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x52c938], eax
mov eax, dword [ebp - 0x120]
cmp eax, 6
sbb ecx, ecx
inc ecx
mov dword [0x52c92c], ecx
cmp eax, 6
jne 0x401d83
cmp dword [ebp - 0x11c], 1
jb 0x401d89
mov eax, 1
mov dword [0x52c930], eax
mov dword [0x52c934], edi
mov dword [0x52c99c], 1
mov dword [0x52c7c4], edi
mov dword [0x52c7c0], edi
mov dword [0x52c7c8], edi
call fcn.004027c0
push str.UxTheme.dll
call fcn.00403b30
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
add esp, 4
mov dword [0x52c9a4], eax
cmp eax, edi
je 0x401d90
push str.DrawThemeParentBackground
push eax
call ebx
mov edx, dword [0x52c9a4]
push str.DrawThemeTextEx
push edx
mov dword [0x52c9ac], eax
call ebx
mov dword [0x52c9b0], eax
mov eax, dword [0x52c9a4]
push str.BufferedPaintInit
push eax
call ebx
mov ecx, dword [0x52c9a4]
push str.BufferedPaintUnInit
push ecx
mov dword [0x52c9b4], eax
call ebx
mov edx, dword [0x52c9a4]
push str.BeginBufferedPaint
push edx
mov dword [0x52c9b8], eax
call ebx
mov dword [0x52c9bc], eax
mov eax, dword [0x52c9a4]
push str.EndBufferedPaint
push eax
call ebx
mov dword [0x52c9c0], eax
jmp 0x401db4
ja 0x401cca
xor eax, eax
jmp 0x401ccf
mov dword [0x52c9ac], edi
mov dword [0x52c9b0], edi
mov dword [0x52c9b4], edi
mov dword [0x52c9b8], edi
mov dword [0x52c9bc], edi
mov dword [0x52c9c0], edi
mov esi, str.dwmapi.dll
call fcn.00401a70
mov dword [0x52c9a8], eax
cmp eax, edi
je 0x401dfc
push str.DwmExtendFrameIntoClientArea
push eax
call ebx
mov ecx, dword [0x52c9a8]
push str.DwmDefWindowProc
push ecx
mov dword [0x52c9c4], eax
call ebx
mov edx, dword [0x52c9a8]
push str.DwmIsCompositionEnabled
push edx
mov dword [0x52c9c8], eax
call ebx
mov dword [0x52c9cc], eax
jmp 0x401e0e
mov dword [0x52c9c4], edi
mov dword [0x52c9c8], edi
mov dword [0x52c9cc], edi
mov dword [0x52c8a0], edi
mov dword [0x52c8a4], edi
mov dword [0x52c8a8], edi
mov dword [0x52c8ac], edi
mov dword [0x52c8b8], edi
mov dword [0x52c8bc], edi
mov dword [0x52c8c0], edi
mov dword [0x52c8b0], edi
mov dword [0x52c8b4], edi
mov dword [0x52c7b8], edi
mov dword [0x52c7bc], edi
call fcn.00402100
call fcn.004026f0
mov eax, 4
mov dword [0x52c968], eax
mov dword [0x52c974], eax
mov eax, 1
mov dword [0x52c944], eax
mov dword [0x52c9d4], eax
mov dword [0x52c954], eax
mov dword [0x52c950], edi
mov dword [0x52c9a0], edi
mov dword [0x52c96c], 3
mov dword [0x52c970], 0xe
mov dword [0x52c978], 0x32
mov dword [0x52c97c], 0xffffffff
mov dword [0x52c93c], edi
mov dword [0x52c940], edi
mov dword [0x52c9d0], edi
mov dword [0x52c9d8], edi
mov dword [0x52c9dc], edi
mov eax, 0x52c7b8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004840ae
mov esp, ebp
pop ebp
ret