Function at 0x4d6340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x58a710]
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 0x4d6388
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.005193a0
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 0x4d63c7
add ecx, 3
test edx, 8
jne 0x4d63da
sub dword [ebp - 0xd4], 3
jmp 0x4d63da
inc ecx
sub eax, 2
test edx, 8
jne 0x4d63da
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 0x4d6580
mov eax, dword [edi + 4]
push 0x30
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.0051d400
push 0x90
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], 0x94
push 0
push eax
call fcn.0051d400
add esp, 0x18
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4d6477
cmp dword [ebp - 0xc4], 6
jae 0x4d647e
mov eax, 0x2c
jmp 0x4d6483
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 0x4d64ab
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x24], xmm0
mov eax, dword [0x594b00]
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.0051d400
push 0x90
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], 0x94
push 0
push eax
call fcn.0051d400
add esp, 0x18
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4d6525
cmp dword [ebp - 0xc4], 6
jae 0x4d652c
mov eax, 0x2c
jmp 0x4d6531
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 0x4d6556
movups xmm0, xmmword [ebx]
movups xmmword [ebp - 0x24], xmm0
mov eax, dword [0x594b00]
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.005193a0
mov esp, ebp
pop ebp
ret 4