Function at 0x47d480
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x47d6c8
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47d6c8
test dword [esi + 0xa8], 8
je 0x47d6c8
lea edi, [esi + 0x4c]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push dword [esi + 4]
call ebx
push 0xfffffffffffffff0
push dword [esi + 4]
mov dword [ebp - 0xcc], eax
call ebx
test al, 2
jne 0x47d4f4
add dword [edi], 2
add dword [edi + 8], 0xfffffffe
mov ebx, dword [ebp - 0xcc]
test ebx, 8
je 0x47d686
mov ecx, dword [esi + 0x24]
test ecx, ecx
js 0x47d686
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x47d686
mov eax, dword [edx + ecx*4]
test eax, eax
je 0x47d686
cmp byte [eax + 0x49], 0
je 0x47d686
mov eax, dword [edi + 8]
lea ebx, [esi + 0x7c]
sub eax, dword [edi]
cmp eax, 0xf
jge 0x47d552
push ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x47d680
movups xmm0, xmmword [edi]
push 0xfffffffffffffff0
push dword [esi + 4]
movups xmmword [ebx], xmm0
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
and eax, 2
je 0x47d57e
mov eax, 3
lea ecx, [eax - 6]
jmp 0x47d58b
mov eax, 1
sub edx, 2
mov ecx, 0xfffffffe
add eax, dword [esi + 0x80]
add edx, 0xfffffff1
push dword [esi + 0x48]
add eax, edx
add ecx, edi
cdq
sub eax, edx
mov dword [esi + 0x84], ecx
sar eax, 1
mov dword [esi + 0x80], eax
add eax, 0xf
mov dword [esi + 0x88], eax
lea eax, [ecx - 0xf]
mov dword [ebx], eax
call dword [sym.imp.USER32.dll_IsWindow]
lea edi, [esi + 0x4c]
test eax, eax
je 0x47d67b
mov eax, dword [esi + 4]
xorps xmm0, xmm0
push 0x90
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xc4]
push 0
push eax
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc8], 0x94
call fcn.004c3810
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x47d627
cmp dword [ebp - 0xc4], 6
mov eax, 0x30
jae 0x47d62c
mov eax, 0x2c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0xfffffff0
test ebx, ebx
je 0x47d651
movups xmm0, xmmword [ebx]
movups xmmword [ebp - 0x24], xmm0
mov eax, dword [0x534b98]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x406
push dword [esi + 0x48]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx]
mov dword [edi + 8], eax
mov ebx, dword [ebp - 0xcc]
mov ecx, esi
test ebx, 1
je 0x47d6b1
push edi
call fcn.0045fb10
movups xmm0, xmmword [edi]
sub esp, 0x10
mov ecx, esi
mov eax, esp
movups xmmword [eax], xmm0
call fcn.0047dd70
mov ecx, esi
call fcn.0047eb50
jmp 0x47d6c1
movups xmm0, xmmword [edi]
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.0047d920
mov ecx, esi
call fcn.0047ed40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ab970
mov esp, ebp
pop ebp
ret