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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x148
push esi
push edi
mov eax, ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xa4], edx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xa8], ecx
mov ecx, dword [eax]
mov dword [esp + 0xac], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xb0], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xb4], edx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xb8], ecx
mov ecx, dword [eax]
mov dword [esp + 0xbc], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xc0], ecx
mov ecx, dword [eax + 8]
mov edi, dword [ebp + 8]
mov dword [esp + 0xc4], edx
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x1440]
imul eax, eax, 0x1a0
mov dword [esp + 0xc8], ecx
mov ecx, dword [eax + edi + 0x11f0]
test ecx, ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xc], 0
jle 0x5086ad
mov eax, dword [edi + 0x1440]
mov edx, dword [esp + 0xc]
mov ecx, eax
imul eax, eax, 0x1a0
mov eax, dword [eax + edi + 0x10a0]
imul ecx, ecx, 0x1a
add ecx, edx
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x30]
push edx
lea edx, [ecx + 0x115]
add ecx, 0x10b
shl edx, 4
push eax
add edx, edi
shl ecx, 4
push edx
add ecx, edi
push ecx
lea esi, [esp + 0xb4]
call fcn.0059a190
add esp, 0x14
test eax, eax
je 0x508689
mov eax, dword [edi + 0x1440]
mov ecx, dword [esp + 0xc]
imul eax, eax, 0x1a
movss xmm3, dword [esp + 0x2c]
movss xmm5, dword [esp + 0x34]
movss xmm4, dword [esp + 0x30]
add ecx, eax
lea edx, [ecx + 0x10b]
add ecx, 0x115
shl ecx, 4
movss xmm0, dword [ecx + edi]
movss xmm1, dword [ecx + edi + 4]
movss xmm2, dword [ecx + edi + 8]
add ecx, edi
shl edx, 4
subss xmm1, dword [edx + edi + 4]
subss xmm0, dword [edx + edi]
subss xmm2, dword [edx + edi + 8]
mulss xmm1, xmm3
lea eax, [edx + edi]
mulss xmm0, xmm3
mulss xmm2, xmm3
movss xmm3, dword [eax]
addss xmm3, xmm0
movss xmm0, dword [eax + 4]
addss xmm0, xmm1
movss xmm1, dword [eax + 8]
addss xmm1, xmm2
subss xmm1, dword [esp + 0x38]
subss xmm0, xmm5
movaps xmm2, xmm0
subss xmm3, xmm4
movss dword [esp + 0x18], xmm1
mulss xmm2, xmm0
movss dword [esp + 0x14], xmm0
mulss xmm1, xmm1
movaps xmm0, xmm3
addss xmm1, xmm2
mulss xmm0, xmm3
addss xmm1, xmm0
comiss xmm1, dword [0x738d48]
movss dword [esp + 0x10], xmm3
movss dword [esp + 0x68], xmm1
jbe 0x50840e
fld dword [esp + 0x68]
fsqrt
fdivr dword [0x7389bc]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fstp st(0)
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
movss xmm1, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
movss xmm0, dword [esp + 0x44]
movaps xmm3, xmm1
mulss xmm3, xmm1
movaps xmm6, xmm0
mulss xmm6, xmm0
mov dword [esp + 0x48], edx
movss xmm2, dword [esp + 0x48]
addss xmm3, xmm6
movaps xmm6, xmm2
movaps xmm7, xmm6
mulss xmm7, xmm6
addss xmm3, xmm7
comiss xmm3, dword [0x738cb0]
mov dword [esp + 0x4c], eax
movss dword [esp + 0x6c], xmm3
jb 0x50847c
movss xmm6, dword [0x738c34]
comiss xmm6, xmm3
jae 0x5084ba
fld dword [esp + 0x6c]
fsqrt
fdivr dword [0x7389bc]
fld dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 0x40]
movss xmm1, dword [esp + 0x40]
fld dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x44]
movss xmm0, dword [esp + 0x44]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x48]
movss xmm2, dword [esp + 0x48]
fstp st(0)
mulss xmm2, dword [esp + 0x38]
mov eax, dword [ebp + 0x10]
mulss xmm0, xmm5
mulss xmm1, xmm4
movss xmm4, dword [eax]
subss xmm4, dword [ebx]
addss xmm0, xmm2
movss xmm2, dword [eax + 8]
subss xmm2, dword [ebx + 8]
addss xmm0, xmm1
xorps xmm1, xmm1
subss xmm1, xmm0
movss xmm0, dword [eax + 4]
mov eax, dword [ebp + 0xc]
movss xmm3, dword [eax + 4]
subss xmm0, dword [ebx + 4]
movss xmm5, dword [eax]
subss xmm3, dword [ebx + 4]
subss xmm5, dword [ebx]
movss dword [esp + 0x50], xmm1
movss xmm1, dword [eax + 8]
subss xmm1, dword [ebx + 8]
movaps xmm7, xmm1
movaps xmm6, xmm3
mulss xmm7, xmm0
mulss xmm6, xmm2
subss xmm6, xmm7
mulss xmm0, xmm5
mulss xmm3, xmm4
movss dword [esp + 0x70], xmm6
mov ecx, dword [esp + 0x70]
subss xmm0, xmm3
mulss xmm1, xmm4
mulss xmm2, xmm5
movss dword [esp + 0x78], xmm0
mov eax, dword [esp + 0x78]
subss xmm1, xmm2
movss dword [esp + 0x74], xmm1
mov edx, dword [esp + 0x74]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], ecx
call fcn.00417b40
movss xmm0, dword [ebx + 4]
mulss xmm0, dword [esp + 0x84]
movss xmm1, dword [esp + 0x88]
mulss xmm1, dword [ebx + 8]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
addss xmm0, xmm1
movss xmm1, dword [ebx]
mulss xmm1, dword [esp + 0x80]
mov dword [esp + 0xe8], ecx
addss xmm0, xmm1
xorps xmm1, xmm1
mov dword [esp + 0xe0], edx
mov edx, dword [esp + 0x3c]
subss xmm1, xmm0
movss xmm0, dword [esp + 0x2c]
mov dword [esp + 0xe4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xec], edx
mov edx, dword [eax + 0x144c]
movss dword [esp + 0xd0], xmm0
mov ecx, 8
lea esi, [esp + 0x80]
lea edi, [esp + 0xf0]
movss dword [esp + 0x90], xmm1
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x40]
lea edi, [esp + 0x110]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x1448]
mov dword [esp + 0x130], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x134], edx
mov edx, dword [ebp + 0x14]
push eax
lea eax, [esp + 0xd4]
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x140], 6
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], edx
call fcn.00509600
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1440]
mov eax, dword [esp + 0xc]
imul ecx, ecx, 0x1a0
mov edx, dword [ecx + edi + 0x11f0]
inc eax
cmp eax, edx
mov dword [esp + 0xc], eax
jl 0x5082c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14