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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [ebx + 0x1440]
imul eax, eax, 0x1a0
mov ecx, dword [eax + ebx + 0x11f0]
test ecx, ecx
push esi
push edi
mov dword [esp + 0xc], 0
jle 0x507eb0
mov edx, dword [ebx + 0x1440]
mov eax, dword [esp + 0xc]
mov esi, dword [ebp + 8]
movss xmm0, dword [ebp + 0xc]
mov ecx, edx
imul edx, edx, 0x1a0
mov edx, dword [edx + ebx + 0x10a0]
imul ecx, ecx, 0x1a
add eax, ecx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [eax + 0x115]
add eax, 0x10b
shl ecx, 4
shl eax, 4
push edx
add ecx, ebx
add eax, ebx
push esi
lea edi, [esp + 0x38]
call fcn.0059b190
add esp, 0xc
test eax, eax
je 0x507e8c
movss xmm7, dword [esp + 0x54]
movss xmm5, dword [0x7389bc]
xorps xmm4, xmm4
movss xmm6, dword [esp + 0x50]
movss xmm2, dword [esp + 0x58]
subss xmm2, dword [esi + 8]
movaps xmm1, xmm7
subss xmm1, dword [esi + 4]
movaps xmm3, xmm5
divss xmm3, dword [ebp + 0xc]
mulss xmm1, xmm3
movss dword [esp + 0x14], xmm1
movss xmm1, dword [esp + 0x2c]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
movaps xmm0, xmm6
subss xmm0, dword [esi]
mulss xmm0, xmm3
mulss xmm2, xmm3
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x18], xmm2
jp 0x507ccb
mov eax, dword [ebx + 0x1440]
mov ecx, dword [esp + 0xc]
imul eax, eax, 0x1a
lea eax, [eax + ecx + 0x10b]
shl eax, 4
movss xmm0, dword [eax + ebx]
subss xmm0, dword [esi]
add eax, ebx
movss dword [esp + 0x70], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 4]
mov edx, dword [esp + 0x70]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
mov eax, dword [esp + 0x74]
movss dword [esp + 0x78], xmm0
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x7c]
movss xmm0, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
movss xmm2, dword [esp + 0x14]
movss xmm1, dword [esp + 0x18]
movaps xmm3, xmm2
mulss xmm3, xmm2
movaps xmm2, xmm1
mulss xmm2, xmm1
movaps xmm1, xmm0
mulss xmm1, xmm0
movss xmm0, dword [0x738ab4]
addss xmm3, xmm2
addss xmm3, xmm1
comiss xmm0, xmm3
jbe 0x507d13
movss dword [esp + 0x10], xmm4
movss dword [esp + 0x14], xmm5
movss dword [esp + 0x18], xmm4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
movss xmm3, dword [esp + 0x34]
mov dword [esp + 0x38], edx
movss xmm0, dword [esp + 0x38]
movaps xmm1, xmm3
mulss xmm1, xmm1
movaps xmm2, xmm0
mulss xmm2, xmm0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
addss xmm1, xmm2
movss xmm2, dword [esp + 0x30]
movaps xmm5, xmm2
mulss xmm5, xmm2
addss xmm1, xmm5
comiss xmm1, dword [0x738cb0]
mov dword [esp + 0x3c], eax
movss dword [esp + 0x6c], xmm1
jb 0x507d7e
movss xmm5, dword [0x738c34]
comiss xmm5, xmm1
jae 0x507dbc
fld dword [esp + 0x6c]
fsqrt
fdivr dword [0x7389bc]
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x30]
movss xmm2, dword [esp + 0x30]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x34]
movss xmm3, dword [esp + 0x34]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x38]
movss xmm0, dword [esp + 0x38]
fstp st(0)
mulss xmm0, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x9c], ecx
mulss xmm3, xmm7
addss xmm0, xmm3
mulss xmm2, xmm6
addss xmm0, xmm2
subss xmm4, xmm0
movss xmm0, dword [esp + 0x2c]
mov dword [esp + 0x94], edx
mov edx, dword [ebx + 0x1448]
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 0x144c]
movss dword [esp + 0x40], xmm4
movss dword [esp + 0x80], xmm0
mov ecx, 8
lea esi, [esp + 0x30]
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x30]
lea edi, [esp + 0xc0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xe0], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xe4], eax
push ebx
lea eax, [esp + 0x84]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], 5
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], edx
call fcn.00509600
mov ecx, dword [ebx + 0x1440]
mov eax, dword [esp + 0xc]
imul ecx, ecx, 0x1a0
mov edx, dword [ecx + ebx + 0x11f0]
inc eax
cmp eax, edx
mov dword [esp + 0xc], eax
jl 0x507ba1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10