Function at 0x4cf980
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x699a5b
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x1b4]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
call dword [eax + 4]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4cfce3
push 0x48
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00549c70
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.004e0820
mov dword [esp + 0x1bc], 0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x4cfa0c
push eax
lea ecx, [esp + 0x28]
call fcn.004e0980
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
sub eax, ecx
movzx edx, word [esp + 0x2e]
cmp edx, eax
jle 0x4cfa26
lea eax, [edx + ecx]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
sub ecx, edi
movzx eax, word [esp + 0x30]
cmp eax, ecx
jle 0x4cfa40
lea eax, [edx + edi]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x4cfa54
lea eax, [esp + 0x24]
push eax
call fcn.004e0980
mov edi, dword [esp + 0x24]
push 0xfffffffffffffff0
push esi
or edi, 0x2000000
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, eax
or ecx, edi
cmp eax, ecx
je 0x4cfa7b
push ecx
push 0xfffffffffffffff0
push esi
call ebp
mov edi, dword [esp + 0x28]
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, edi
cmp eax, ecx
je 0x4cfa96
push ecx
push 0xffffffffffffffec
push esi
call ebp
cmp dword [esp + 0x34], 0
je 0x4cfaf3
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e6470
add esp, 8
movdqu xmm1, xmmword [eax]
push 0x1c
movdqa xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
movd edx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
sub eax, edx
push eax
movd eax, xmm1
sub ecx, eax
push ecx
push edx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4cfb42
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x4cfb11
mov eax, dword [ecx + 0x18]
sub eax, dword [ecx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x1c]
sub eax, dword [ecx + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
call fcn.004e64d0
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
push 0x1e
push edx
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push esi
call fcn.004d9de0
add esp, 8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
mov ebp, eax
push dword [ebp]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4cfc86
mov dword [ebp], eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 4]
mov edx, dword [0x73fa44]
mov ecx, dword [0x73fa40]
push 0
push dword [0x7486d0]
push 0
push eax
mov eax, dword [0x73fa4c]
sub eax, edx
push eax
mov eax, dword [0x73fa48]
sub eax, ecx
push eax
push edx
push ecx
push VariantInit
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp], eax
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
push 0x30
mov dword [esp + 0x18], eax
lea eax, [esp + 0x70]
push 0
push eax
call fcn.00549c70
push 0x110
lea eax, [esp + 0xb0]
mov dword [esp + 0xac], 0x114
push 0
push eax
mov edi, 0x30
call fcn.00549c70
add esp, 0x18
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4cfc02
cmp dword [esp + 0xa0], 6
jae 0x4cfc07
mov edi, 0x2c
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x14]
push edi
mov dword [esp + 0x74], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [esp + 0x70], 1
mov dword [esp + 0x74], eax
mov eax, dword [0x7486d4]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x6c]
push eax
push 0
push 0x432
push dword [ebp]
mov dword [esp + 0x88], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0xa4], 0
call edi
push 0x1f4
push 0
push 0x403
push dword [ebp]
call edi
push 0
push 1
push 0x401
push dword [ebp]
call edi
push ebx
push 0x4d1040
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x30], 0
je 0x4cfccf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x13
and al, 1
je 0x4cfccf
lea ecx, [ebx + 0x3c]
call fcn.004e01b0
test al, al
jne 0x4cfccf
push 0
push 0
push 0x7f04
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x1bc], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004e08e0
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.005472b9
add esp, 0x1ac
ret