Function at 0x50a9e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60639e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
push edi
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.004ddbd0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
push 0
push 0
mov ecx, edi
call fcn.004e6280
push edi
lea ecx, [ebp - 0x84]
call fcn.004ef6f0
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
sub edx, 8
push edx
sub eax, 8
push eax
push 4
push 4
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call fcn.004e67a0
push edi
lea ecx, [ebp - 0xd0]
call fcn.004ef6f0
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
sub ecx, 8
push ecx
push edx
push 4
push 0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.004e67a0
mov eax, dword [esi + 0x7c]
push eax
lea ecx, [ebp - 0x84]
call fcn.004ddbc0
fld qword [esi + 0xa0]
call fcn.005e0b1c
fld qword [esi + 0xa8]
mov edi, eax
call fcn.005e0b1c
mov edx, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
sub ecx, edx
mov ebx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
lea eax, [ebx + edi + 1]
cmp edx, eax
jge 0x50aaf4
mov edx, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
mov dword [ebp - 0x14], edx
jmp 0x50ab06
fld qword [esi + 0xa0]
call fcn.005e0b1c
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x14], eax
mov ebx, dword [esi + 0xcc]
cmp ebx, 0xffffffff
mov ecx, dword [esi + 0x7c]
je 0x50ab2a
mov edx, dword [ecx]
mov dword [ebp - 0x20], ebx
call dword [edx + 0x10]
sub ebx, eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
jmp 0x50ab39
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
cmp edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jg 0x50acc9
fild dword [ebp - 0x20]
lea eax, [edi + edi*2]
shl eax, 2
shl edi, 4
fstp qword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
lea ebx, [ebx]
fild dword [ebp - 0x10]
fsub qword [esi + 0xa0]
fmul qword [ebp - 0x38]
call fcn.005e0b1c
mov edi, dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [esi + 0xb4]
add ebx, 4
cmp edi, eax
je 0x50ab95
cmp edi, dword [esi + 0xb0]
jne 0x50abce
mov al, byte [esi + 0xd0]
test al, al
je 0x50abbd
mov eax, dword [esi + 0x4c]
add eax, 0x40
push eax
lea ecx, [ebp - 0xd0]
call fcn.004ddbd0
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi + 0x2c]
push ecx
push edx
push ebx
push 0
lea ecx, [ebp - 0xd0]
call fcn.004e6280
cmp edi, dword [esi + 0xb0]
jne 0x50abce
mov eax, dword [esi + 0x4c]
add eax, 0x30
push eax
jmp 0x50abfa
cmp edi, dword [esi + 0xb4]
jne 0x50abee
mov eax, dword [esi + 0x50]
mov edi, dword [esi + 0x4c]
sub eax, edi
sar eax, 4
cmp eax, 5
jbe 0x50abee
mov eax, edi
add eax, 0x50
push eax
jmp 0x50abfa
mov eax, dword [esi + 0x94]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.004ddbd0
mov eax, dword [esi + 0x88]
mov edx, dword [ebp - 0x18]
add edx, eax
push edx
lea ecx, [ebp - 0x30]
call fcn.00404e60
mov eax, dword [esi + 0x84]
sub eax, 0
mov byte [ebp - 4], 2
je 0x50ac54
mov ecx, dword [esi + 0x7c]
lea edx, [ebp - 0x30]
dec eax
mov eax, dword [ecx]
push edx
je 0x50ac41
call dword [eax + 0x1c]
mov edi, dword [esi + 0x2c]
sub edi, eax
sub edi, 4
jmp 0x50ac59
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x2c]
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x50ac59
mov edi, 4
mov ecx, dword [esi + 0x7c]
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [ebp - 0x24]
add eax, ebx
add eax, edx
push eax
push edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x84]
call fcn.004e63f0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
sub eax, ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x50aca5
cmp eax, 0x80
jbe 0x50ac9b
push ecx
call fcn.005e05ca
add esp, 4
jmp 0x50aca5
push eax
push ecx
call fcn.00401f50
add esp, 8
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
inc eax
add edi, 0x10
add edx, 0xc
cmp eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edx
jle 0x50ab60
mov al, byte [esi + 0xc5]
test al, al
je 0x50acf9
mov eax, dword [esi + 0x4c]
mov edi, dword [ebp + 8]
add eax, 0x10
push eax
mov ecx, edi
call fcn.004ddbd0
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
dec ecx
push ecx
dec edx
push edx
push 0
push 0
mov ecx, edi
call fcn.004e62f0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0
call fcn.004ef7e0
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
call fcn.004ef7e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4