Function at 0x4093f0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x4a8418]
sub esp, 0x44
test eax, eax
jne 0x409406
mov eax, dword [sym.imp.USER32.dll_EnableScrollBar]
mov dword [0x4a8418], eax
push edi
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push str.CoolSBSubclassPtr
push edi
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x409430
xor eax, eax
pop edi
add esp, 0x44
ret 4
push ebx
push ebp
push esi
push 0x6c0
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [sym.imp.USER32.dll_GetScrollInfo]
mov esi, eax
lea eax, [esi + 0x10]
push eax
push 0
mov ebp, 0x17
push edi
mov dword [eax], 0x1c
mov dword [eax + 4], ebp
call ebx
lea eax, [esi + 0x35c]
push eax
push 1
push edi
mov dword [eax], 0x1c
mov dword [eax + 4], ebp
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push edi
call ebx
shr eax, 0xe
push 0xfffffffffffffff0
and eax, 1
push edi
mov dword [esi + 0x6a4], eax
call ebx
push esi
push str.CoolSBSubclassPtr
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_SetPropA]
test ebx, 0x100000
je 0x4094b5
mov dword [esi + 8], 8
test ebx, 0x200000
je 0x4094c7
mov dword [esi + 0x354], 8
push 0x40df90
xor ecx, ecx
or eax, 0xffffffff
push 0xfffffffffffffffc
push edi
mov dword [esi + 0x348], ecx
mov dword [esi + 0x694], 1
mov dword [esi + 0x34c], ecx
mov dword [esi + 0x698], ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x378], eax
mov dword [esi + 0x37c], eax
mov dword [esi + 0x6bc], ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [esi + 4], eax
call ebp
cmp eax, 0x80000000
jae 0x40952c
cmp al, 5
sbb ebx, ebx
and ebx, 2
add ebx, 6
jmp 0x409531
mov ebx, 8
push str.CoolSBSubclassPtr
push edi
mov dword [esp + 0x60], ebx
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x4095a4
cmp ebx, 0xffffffff
jne 0x40956a
call ebp
cmp eax, 0x80000000
jae 0x409561
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
mov ebp, eax
jmp 0x40956e
mov eax, 8
mov ebp, eax
jmp 0x40956e
mov ebp, dword [esp + 0x58]
mov ebx, dword [sym.imp.USER32.dll_GetPropA]
push str.CoolSBSubclassPtr
push edi
call ebx
test eax, eax
je 0x40958b
add eax, 8
je 0x40958b
mov dword [eax + 0x348], ebp
push str.CoolSBSubclassPtr
push edi
call ebx
test eax, eax
je 0x4095a4
add eax, 0x354
je 0x4095a4
mov dword [eax + 0x348], ebp
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
call ebx
push eax
push 0
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000003
push 0x41a3af
push 0x41a990
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 0x6a8], eax
push 0
mov dword [esp + 0x2c], 0x2c
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x50], 0xffffffff
call ebx
mov dword [esp + 0x48], eax
mov ecx, dword [esi + 0x6a8]
lea eax, [esp + 0x28]
push eax
push 0
push 0x404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x37
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x44
ret 4