Function at 0x4d1f20
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 esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp eax, 0xf
jge 0x4d1f68
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
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513512
mov esp, ebp
pop ebp
ret 4
movups xmm0, xmmword [esi]
push 0xfffffffffffffff0
push dword [edi + 4]
movups xmmword [ebp - 0xdc], xmm0
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [ebp - 0xd8]
mov edx, eax
mov eax, dword [ebp - 0xd0]
test edx, 2
je 0x4d1fa7
add ecx, 3
test edx, 8
jne 0x4d1fba
sub dword [ebp - 0xd4], 3
jmp 0x4d1fba
inc ecx
sub eax, 2
test edx, 8
jne 0x4d1fba
sub dword [ebp - 0xd4], 2
add ecx, 0xfffffff1
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xd8], eax
add eax, 0xf
mov dword [ebp - 0xd0], eax
movups xmm0, xmmword [ebp - 0xdc]
push ebx
push dword [edi + 0x4c]
movups xmmword [edi + 0x70], xmm0
mov eax, dword [edi + 0x78]
lea ebx, [edi + 0x60]
add eax, 0xfffffff1
movups xmmword [ebx], xmm0
mov dword [edi + 0x70], eax
mov dword [edi + 0x68], eax
add eax, 0xfffffff1
mov dword [ebx], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d2160
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 0x4d2057
cmp dword [ebp - 0xc4], 6
jae 0x4d205e
mov eax, 0x2c
jmp 0x4d2063
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 0x4d208b
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 0x4d2105
cmp dword [ebp - 0xc4], 6
jae 0x4d210c
mov eax, 0x2c
jmp 0x4d2111
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 ebx, ebx
je 0x4d2136
movups xmm0, xmmword [ebx]
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 [ebx]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
mov dword [esi + 8], eax
xor ecx, ebp
pop esi
call fcn.00513512
mov esp, ebp
pop ebp
ret 4