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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x74
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
movss xmm0, dword [ebx]
push esi
mov esi, dword [ebp + 8]
movss xmm1, dword [esi]
movss xmm2, dword [esi + 4]
movss xmm3, dword [esi + 8]
push edi
mov edi, dword [ebp + 0xc]
movss xmm4, dword [edi]
movss dword [esp + 0x1c], xmm4
subss xmm4, xmm0
movss dword [esp + 0x60], xmm4
movss xmm4, dword [edi + 4]
movss dword [esp + 0x20], xmm1
subss xmm1, xmm0
movss dword [esp + 0x50], xmm1
movss xmm1, dword [ebx + 4]
subss xmm4, xmm1
movss dword [esp + 0x64], xmm4
movss xmm4, dword [edi + 8]
subss xmm2, xmm1
movss dword [esp + 0x54], xmm2
movss xmm2, dword [ebx + 8]
subss xmm4, xmm2
movss dword [esp + 0x68], xmm4
movss xmm4, dword [eax]
movss dword [esp + 0x18], xmm4
subss xmm4, xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x14], xmm0
subss xmm0, xmm1
movss dword [esp + 0x74], xmm0
movss xmm0, dword [eax + 8]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x64]
subss xmm3, xmm2
push ecx
lea edx, [esp + 0x58]
movss dword [esp + 0x60], xmm3
xorps xmm3, xmm3
movss dword [esp + 0x30], xmm0
subss xmm0, xmm2
push edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], ebx
movss dword [esp + 0x68], xmm3
movss dword [esp + 0x78], xmm3
movss dword [esp + 0x7c], xmm4
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x88], xmm3
call fcn.005208b0
fstp dword [esp + 0x30]
movss xmm7, dword [esp + 0x28]
movss xmm4, dword [esp + 0x2c]
movss xmm5, dword [esi + 4]
movss xmm6, dword [edi + 4]
movss xmm1, dword [esi + 8]
movss xmm3, dword [edi + 8]
subss xmm4, xmm7
subss xmm7, dword [esp + 0x24]
movaps xmm0, xmm5
subss xmm0, xmm6
subss xmm6, dword [esp + 0x20]
movaps xmm2, xmm1
subss xmm2, xmm3
subss xmm3, dword [esp + 0x34]
movss dword [esp + 0x3c], xmm7
movss dword [esp + 0x40], xmm6
movaps xmm7, xmm3
mulss xmm7, xmm0
mulss xmm6, xmm2
subss xmm6, xmm7
movss xmm7, dword [esp + 0x3c]
add esp, 0xc
mulss xmm3, xmm4
mulss xmm2, xmm7
subss xmm3, xmm2
movss xmm2, dword [esp + 0x34]
mulss xmm0, xmm7
mulss xmm2, xmm4
subss xmm0, xmm2
movss xmm2, dword [esp + 0x24]
mulss xmm1, xmm0
movss xmm0, dword [esp + 0x20]
mulss xmm5, xmm3
addss xmm1, xmm5
mulss xmm0, xmm6
addss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, xmm2
comiss xmm0, xmm1
jb 0x521338
movaps xmm1, xmm2
movss xmm2, dword [0x565350]
andps xmm1, xmm2
comiss xmm1, xmm0
jbe 0x521338
movss xmm0, dword [0x565338]
mov esi, dword [ebp + 0x18]
lea ecx, [esp + 0x54]
xor edx, edx
movss dword [esp + 0x14], xmm0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edi, dword [edx + 0x5933f4]
movss xmm2, dword [ecx]
movss xmm0, dword [ecx + 4]
mov eax, edi
movaps xmm3, xmm2
movaps xmm1, xmm0
shl eax, 4
movss xmm4, dword [esp + eax + 0x58]
movss xmm5, dword [esp + eax + 0x54]
movss xmm6, dword [esp + eax + 0x50]
lea eax, [esp + eax + 0x50]
mulss xmm1, xmm5
mulss xmm2, xmm6
mulss xmm3, xmm4
subss xmm3, xmm1
movss xmm1, dword [ecx - 4]
mulss xmm0, xmm6
movaps xmm7, xmm1
mulss xmm1, xmm5
subss xmm1, xmm2
movss xmm2, dword [ebx]
mulss xmm7, xmm4
subss xmm0, xmm7
mulss xmm0, dword [ebx + 4]
mulss xmm2, xmm3
addss xmm2, xmm0
movss xmm0, dword [ebx + 8]
mulss xmm0, xmm1
addss xmm2, xmm0
mulss xmm2, dword [esp + 0x24]
xorps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x521296
mov edx, dword [esp + edx + 0x40]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + edi*4 + 0x44]
lea eax, [esp + 0x34]
push eax
push ebx
push ecx
push edx
call fcn.00520aa0
fstp dword [esp + 0x3c]
xorps xmm0, xmm0
movss xmm1, dword [esp + 0x28]
movss xmm2, dword [esp + 0x3c]
add esp, 0x14
comiss xmm0, xmm1
ja 0x521215
comiss xmm1, xmm2
jbe 0x52128c
mov edx, dword [esp + 0x2c]
mov al, dl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, dword [esp + 0x20]
movaps xmm1, xmm2
movss dword [esp + 0x14], xmm1
test dl, 2
je 0x52124c
mov ecx, edi
mov ebx, 1
shl ebx, cl
mov dword [esp + 0x28], ebx
mov ebx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x28]
jmp 0x52124e
xor ecx, ecx
movss xmm2, dword [esp + 0x30]
and edx, 4
lea ecx, [ecx + edx*2]
mov edx, dword [ebp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [edx], ecx
movss dword [eax + esi], xmm2
movss xmm2, dword [esp + 0x34]
movss dword [esi + edi*4], xmm2
mov ecx, dword [edi*4 + 0x5933f4]
movss xmm2, dword [esp + 0x38]
movss dword [esi + ecx*4], xmm0
movss dword [esi + 0xc], xmm2
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x52129c
movss xmm1, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add ecx, 0x10
add edx, 4
rol eax, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
cmp edx, 0xc
jb 0x52114f
comiss xmm0, xmm1
jbe 0x52132d
fld1
mov edx, dword [ebp + 0xc]
fdiv dword [esp + 0x24]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
push ebx
push edx
push edi
movss dword [esp + 0x20], xmm0
mov dword [ecx], 0xf
fstp dword [esp + 0x30]
call fcn.005208b0
fmul dword [esp + 0x30]
push ebx
push edi
mov edi, dword [ebp + 8]
fst dword [esp + 0x3c]
push edi
fstp dword [esi]
call fcn.005208b0
fmul dword [esp + 0x3c]
mov eax, dword [ebp + 0xc]
push ebx
push edi
fst dword [esp + 0x4c]
push eax
fstp dword [esi + 4]
call fcn.005208b0
fmul dword [esp + 0x48]
add esp, 0x24
fst dword [esi + 8]
fadd dword [esp + 0x2c]
fadd dword [esp + 0x28]
fld1
fsubrp st(1)
fstp dword [esi + 0xc]
fld dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [0x565338]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret