Function at 0x4a5ca0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x583384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
cmp eax, 0xf
jge 0x4a5cea
mov esi, dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [edi + 0x70]
push eax
call esi
lea eax, [edi + 0x60]
push eax
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513512
mov esp, ebp
pop ebp
ret 4
movups xmm0, xmmword [ebx]
push 0xfffffffffffffff0
push dword [edi + 4]
movups xmmword [ebp - 0xdc], xmm0
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [ebp - 0xd8]
mov esi, dword [ebp - 0xd0]
test al, 2
je 0x4a5d1f
add ecx, 3
test al, 8
jne 0x4a5d2e
sub dword [ebp - 0xd4], 3
jmp 0x4a5d2e
inc ecx
sub esi, 2
test al, 8
jne 0x4a5d2e
sub dword [ebp - 0xd4], 2
push dword [edi + 0x4c]
lea eax, [ecx - 0x18]
add eax, esi
cdq
sub eax, edx
sar eax, 1
neg eax
add esi, eax
mov dword [ebp - 0xd0], esi
lea eax, [esi - 0xf]
mov dword [ebp - 0xd8], eax
lea esi, [edi + 0x60]
movups xmm0, xmmword [ebp - 0xdc]
movups xmmword [edi + 0x70], xmm0
mov eax, dword [edi + 0x78]
add eax, 0xfffffff1
movups xmmword [esi], xmm0
mov dword [edi + 0x70], eax
mov dword [edi + 0x68], eax
add eax, 0xfffffff1
mov dword [esi], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a5ed7
mov eax, dword [edi + 4]
push 0x30
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00517590
push 0x90
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], 0x94
push 0
push eax
call fcn.00517590
add esp, 0x18
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4a5dce
cmp dword [ebp - 0xc4], 6
jae 0x4a5dd5
mov eax, 0x2c
jmp 0x4a5dda
mov eax, 0x30
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x2c], eax
lea eax, [edi + 0x70]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0xfffffff1
test eax, eax
je 0x4a5e02
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x24], xmm0
mov eax, dword [0x58d488]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x406
push dword [edi + 0x4c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 4]
push 0x30
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00517590
push 0x90
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], 0x94
push 0
push eax
call fcn.00517590
add esp, 0x18
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4a5e7c
cmp dword [ebp - 0xc4], 6
jae 0x4a5e83
mov eax, 0x2c
jmp 0x4a5e88
mov eax, 0x30
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0xfffffff2
test esi, esi
je 0x4a5ead
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x24], xmm0
mov eax, dword [0x58d488]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x406
push dword [edi + 0x4c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 8], eax
xor ecx, ebp
pop ebx
call fcn.00513512
mov esp, ebp
pop ebp
ret 4