Function at 0x512bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
movss xmm7, dword [0x5652d0]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
movss xmm5, dword [ecx + 4]
subss xmm5, dword [ebx + 4]
movss xmm2, dword [ecx + 8]
subss xmm2, dword [ebx + 8]
movss xmm4, dword [ecx]
subss xmm4, dword [ebx]
movaps xmm1, xmm5
movaps xmm0, xmm4
movaps xmm3, xmm1
mulss xmm3, xmm1
movaps xmm6, xmm2
mulss xmm6, xmm2
addss xmm3, xmm6
movaps xmm6, xmm0
mulss xmm6, xmm0
addss xmm3, xmm6
sqrtss xmm6, xmm3
movss dword [esp + 0x18], xmm2
movaps xmm3, xmm7
divss xmm3, xmm6
movss xmm6, dword [esp + 0x18]
mulss xmm0, xmm3
mulss xmm1, xmm3
mulss xmm2, xmm3
movaps xmm3, xmm2
mulss xmm3, xmm6
mov esi, edx
shl esi, 4
add esi, dword [edi + 0x94]
movaps xmm6, xmm1
mulss xmm6, xmm5
addss xmm3, xmm6
xorps xmm6, xmm6
ucomiss xmm0, xmm6
lahf
mulss xmm4, xmm0
addss xmm3, xmm4
movss xmm4, dword [0x592bf8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
movss dword [esp + 0x20], xmm3
test ah, 0x44
jp 0x512c97
movss dword [esp + 0x70], xmm4
jmp 0x512ca4
movaps xmm3, xmm7
divss xmm3, xmm0
movss dword [esp + 0x70], xmm3
ucomiss xmm1, xmm6
lahf
test ah, 0x44
jp 0x512cb5
movss dword [esp + 0x74], xmm4
jmp 0x512cc2
movaps xmm0, xmm7
divss xmm0, xmm1
movss dword [esp + 0x74], xmm0
ucomiss xmm2, xmm6
lahf
test ah, 0x44
jp 0x512cd3
movss dword [esp + 0x78], xmm4
jmp 0x512ce0
movaps xmm0, xmm7
divss xmm0, xmm2
movss dword [esp + 0x78], xmm0
comiss xmm6, dword [esp + 0x70]
mov eax, 1
mov dword [esp + 0x34], eax
ja 0x512cf8
mov dword [esp + 0x34], 0
comiss xmm6, dword [esp + 0x74]
mov dword [esp + 0x38], eax
ja 0x512d0b
mov dword [esp + 0x38], 0
comiss xmm6, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
ja 0x512d1e
mov dword [esp + 0x3c], 0
movq xmm0, qword [ebx]
movss xmm1, dword [ecx]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [ebx + 8]
movss xmm5, dword [esp + 0x40]
comiss xmm5, xmm1
movq qword [esp + 0x48], xmm0
movq xmm0, qword [ebx]
movq qword [esp + 0x60], xmm0
movq xmm0, qword [ebx + 8]
movq qword [esp + 0x68], xmm0
jbe 0x512d5a
movaps xmm5, xmm1
movss xmm0, dword [ecx + 4]
movss xmm3, dword [esp + 0x44]
comiss xmm3, xmm0
jbe 0x512d6d
movaps xmm3, xmm0
movss xmm0, dword [ecx + 8]
movss xmm2, dword [esp + 0x48]
comiss xmm2, xmm0
jbe 0x512d83
movss dword [esp + 0x48], xmm0
movss xmm0, dword [ecx + 0xc]
movss xmm2, dword [esp + 0x4c]
comiss xmm2, xmm0
jbe 0x512d99
movss dword [esp + 0x4c], xmm0
movss xmm4, dword [esp + 0x60]
comiss xmm1, xmm4
jbe 0x512da7
movaps xmm4, xmm1
movss xmm0, dword [ecx + 4]
movss xmm2, dword [esp + 0x64]
comiss xmm0, xmm2
jbe 0x512dba
movaps xmm2, xmm0
movss xmm0, dword [ecx + 8]
movss xmm1, dword [esp + 0x68]
comiss xmm0, xmm1
jbe 0x512dcd
movaps xmm1, xmm0
movss xmm0, dword [ecx + 0xc]
comiss xmm0, dword [esp + 0x6c]
jbe 0x512ddf
movss dword [esp + 0x6c], xmm0
mov eax, dword [ebp + 0x14]
movss xmm0, dword [eax]
addss xmm0, xmm5
movss xmm5, dword [eax + 4]
addss xmm5, xmm3
movss xmm3, dword [eax + 8]
mov eax, dword [ebp + 0x18]
addss xmm1, dword [eax + 8]
addss xmm3, dword [esp + 0x48]
addss xmm2, dword [eax + 4]
movss dword [esp + 0x48], xmm3
movss xmm3, dword [eax]
movss dword [esp + 0x68], xmm1
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x44], xmm5
movq xmm1, qword [esp + 0x40]
movss dword [esp + 0x64], xmm2
movss xmm2, dword [edi + 0x10]
comiss xmm2, xmm0
movq qword [esp + 0x80], xmm1
movq xmm1, qword [esp + 0x48]
addss xmm3, xmm4
movss dword [esp + 0x60], xmm3
movq qword [esp + 0x88], xmm1
ja 0x512e68
movss xmm2, dword [esp + 0x80]
movss xmm0, dword [edi + 0x14]
movss xmm1, dword [esp + 0x84]
comiss xmm0, xmm1
jbe 0x512e7e
movaps xmm1, xmm0
movss xmm4, dword [edi + 0x18]
movss xmm0, dword [esp + 0x88]
comiss xmm4, xmm0
jbe 0x512e94
movaps xmm0, xmm4
movss xmm4, dword [edi + 0x20]
comiss xmm2, xmm4
jbe 0x512ea1
movaps xmm2, xmm4
movss xmm4, dword [edi + 0x24]
comiss xmm1, xmm4
jbe 0x512eae
movaps xmm1, xmm4
movss xmm4, dword [edi + 0x28]
comiss xmm0, xmm4
jbe 0x512ebb
movaps xmm0, xmm4
subss xmm0, dword [edi + 0x18]
subss xmm2, dword [edi + 0x10]
subss xmm1, dword [edi + 0x14]
movaps xmm5, xmm0
movss xmm0, dword [edi + 0x30]
mulss xmm0, xmm2
movss xmm2, dword [edi + 0x38]
cvttss2si eax, xmm0
movq xmm0, qword [esp + 0x60]
mov ecx, 0xfffe
and ax, cx
movaps xmm4, xmm1
movss xmm1, dword [edi + 0x34]
mov word [esp + 0x2c], ax
mov eax, ecx
mulss xmm1, xmm4
mulss xmm2, xmm5
cvttss2si ebx, xmm1
and bx, ax
cvttss2si eax, xmm2
movss xmm2, dword [edi + 0x10]
and ax, cx
comiss xmm2, xmm3
movq qword [esp + 0x80], xmm0
movq xmm0, qword [esp + 0x68]
mov word [esp + 0x2e], bx
mov word [esp + 0x30], ax
movq qword [esp + 0x88], xmm0
ja 0x512f47
movss xmm2, dword [esp + 0x80]
movss xmm0, dword [edi + 0x14]
movss xmm1, dword [esp + 0x84]
comiss xmm0, xmm1
jbe 0x512f5d
movaps xmm1, xmm0
movss xmm3, dword [edi + 0x18]
movss xmm0, dword [esp + 0x88]
comiss xmm3, xmm0
jbe 0x512f73
movaps xmm0, xmm3
movss xmm3, dword [edi + 0x20]
comiss xmm2, xmm3
jbe 0x512f80
movaps xmm2, xmm3
movss xmm3, dword [edi + 0x24]
comiss xmm1, xmm3
jbe 0x512f8d
movaps xmm1, xmm3
movss xmm3, dword [edi + 0x28]
comiss xmm0, xmm3
jbe 0x512f9a
movaps xmm0, xmm3
subss xmm0, dword [edi + 0x18]
subss xmm2, dword [edi + 0x10]
subss xmm1, dword [edi + 0x14]
movaps xmm4, xmm0
movss xmm0, dword [edi + 0x30]
mulss xmm0, xmm2
movss xmm2, dword [edi + 0x38]
movaps xmm3, xmm1
movss xmm1, dword [edi + 0x34]
addss xmm0, xmm7
cvttss2si ecx, xmm0
or cx, 1
mov word [esp + 0x24], cx
mulss xmm1, xmm3
addss xmm1, xmm7
cvttss2si ecx, xmm1
or cx, 1
mulss xmm2, xmm4
mov word [esp + 0x26], cx
addss xmm2, xmm7
cvttss2si ecx, xmm2
or cx, 1
cmp edx, dword [ebp + 0x20]
mov word [esp + 0x28], cx
jge 0x513332
jmp 0x51301a
mov bx, word [esp + 0x2e]
movzx eax, word [esp + 0x30]
inc dword [esp + 0x1c]
cmp word [esi + 0xa], ax
movzx edx, word [esi + 2]
sbb eax, eax
movzx ecx, word [esi + 4]
inc eax
cmp word [esi + 8], bx
mov dword [esp + 0x18], 0
sbb ebx, ebx
inc ebx
and eax, ebx
cmp word [esp + 0x26], dx
sbb edx, edx
inc edx
and eax, edx
cmp word [esp + 0x28], cx
sbb edx, edx
inc edx
and eax, edx
movzx edx, word [esi]
cmp word [esp + 0x24], dx
sbb ebx, ebx
inc ebx
and eax, ebx
movzx ebx, word [esp + 0x2c]
cmp word [esi + 6], bx
sbb ebx, ebx
inc ebx
and eax, ebx
cmp dword [esi + 0xc], 0
mov ebx, eax
setge byte [esp + 0x13]
neg ebx
or ebx, eax
sar ebx, 0x1f
test bl, 1
je 0x5132cb
movzx eax, dx
cvtsi2ss xmm3, eax
movzx eax, word [esi + 2]
movzx edx, ax
movaps xmm0, xmm7
divss xmm0, dword [edi + 0x30]
mulss xmm3, xmm0
movzx eax, cx
movzx ecx, word [esi + 6]
movss dword [esp + 0x8c], xmm6
movss xmm6, dword [edi + 0x10]
addss xmm6, xmm3
movss xmm3, dword [edi + 0x14]
cvtsi2ss xmm4, edx
movzx edx, word [esi + 8]
cvtsi2ss xmm5, eax
movzx eax, word [esi + 0xa]
movaps xmm1, xmm7
divss xmm1, dword [edi + 0x34]
mulss xmm4, xmm1
addss xmm3, xmm4
movss dword [esp + 0x84], xmm3
movss xmm3, dword [edi + 0x18]
movaps xmm2, xmm7
divss xmm2, dword [edi + 0x38]
mulss xmm5, xmm2
addss xmm3, xmm5
xorps xmm5, xmm5
movss dword [esp + 0x88], xmm3
movss dword [esp + 0x80], xmm6
movdqa xmm3, xmmword [esp + 0x80]
movdqa xmmword [esp + 0x40], xmm3
cvtsi2ss xmm3, ecx
mulss xmm3, xmm0
cvtsi2ss xmm0, edx
mulss xmm0, xmm1
cvtsi2ss xmm1, eax
mov eax, dword [ebp + 0x14]
mulss xmm1, xmm2
movss xmm2, dword [edi + 0x10]
addss xmm2, xmm3
movss xmm3, dword [edi + 0x14]
addss xmm3, xmm0
movss xmm0, dword [edi + 0x18]
addss xmm0, xmm1
movss dword [esp + 0x68], xmm0
mov ecx, dword [ebp + 0xc]
movss xmm1, dword [ecx]
movss dword [esp + 0x60], xmm2
movss dword [esp + 0x64], xmm3
movss xmm3, dword [esp + 0x70]
movss dword [esp + 0x6c], xmm5
movdqa xmm0, xmmword [esp + 0x60]
movdqa xmmword [esp + 0x50], xmm0
movss xmm0, dword [eax]
addss xmm0, xmm6
movss dword [esp + 0x40], xmm0
movss xmm0, dword [eax + 4]
addss xmm0, dword [esp + 0x44]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [eax + 8]
addss xmm0, dword [esp + 0x48]
mov eax, dword [ebp + 0x18]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [eax]
addss xmm0, xmm2
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0x54]
addss xmm0, dword [eax + 4]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x58]
addss xmm0, dword [eax + 8]
mov eax, dword [esp + 0x34]
movss dword [esp + 0x58], xmm0
shl eax, 4
movss xmm0, dword [esp + eax + 0x40]
lea edx, [esp + 0x50]
sub edx, eax
movss xmm2, dword [edx]
subss xmm0, xmm1
mulss xmm0, xmm3
mov eax, dword [esp + 0x38]
movss xmm4, dword [ecx + 4]
movss xmm6, dword [esp + 0x74]
shl eax, 4
subss xmm2, xmm1
lea edx, [esp + 0x54]
sub edx, eax
movss xmm1, dword [edx]
mulss xmm2, xmm3
movss xmm3, dword [esp + eax + 0x44]
subss xmm1, xmm4
mulss xmm1, xmm6
comiss xmm0, xmm1
subss xmm3, xmm4
mulss xmm3, xmm6
ja 0x5132bf
comiss xmm3, xmm2
ja 0x5132bf
comiss xmm3, xmm0
jbe 0x513257
movaps xmm0, xmm3
comiss xmm2, xmm1
jbe 0x51325f
movaps xmm2, xmm1
movss xmm4, dword [ecx + 8]
mov eax, dword [esp + 0x3c]
movss xmm6, dword [esp + 0x78]
shl eax, 4
movss xmm1, dword [esp + eax + 0x48]
lea ecx, [esp + 0x58]
sub ecx, eax
movss xmm3, dword [ecx]
subss xmm3, xmm4
mulss xmm3, xmm6
comiss xmm0, xmm3
subss xmm1, xmm4
mulss xmm1, xmm6
ja 0x5132bf
comiss xmm1, xmm2
ja 0x5132bf
comiss xmm1, xmm0
jbe 0x5132a3
movaps xmm0, xmm1
comiss xmm2, xmm3
jbe 0x5132ab
movaps xmm2, xmm3
movss xmm1, dword [esp + 0x20]
comiss xmm1, xmm0
jbe 0x5132bf
comiss xmm2, xmm5
jbe 0x5132bf
mov al, 1
jmp 0x5132c1
xor al, al
xorps xmm6, xmm6
movzx edx, al
mov dword [esp + 0x18], edx
cmp byte [esp + 0x13], 0
je 0x5132fe
cmp dword [esp + 0x18], 0
je 0x513305
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ebx, eax
and ebx, 0x1fffff
sar eax, 0x15
push ebx
push eax
mov eax, dword [edx + 4]
call eax
movss xmm7, dword [0x5652d0]
xorps xmm6, xmm6
cmp dword [esp + 0x18], 0
jne 0x51331e
cmp byte [esp + 0x13], 0
jne 0x51331e
mov eax, dword [esi + 0xc]
neg eax
mov ecx, eax
shl ecx, 4
add esi, ecx
add dword [esp + 0x14], eax
jmp 0x513325
add esi, 0x10
inc dword [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp edx, dword [ebp + 0x20]
jl 0x513010
mov eax, dword [esp + 0x1c]
cmp dword [0x6f2774], eax
jge 0x513343
mov dword [0x6f2774], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c