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

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, dword [edx + 0x1f8]
cmp esi, 3
push edi
jl 0x51ac9b
mov eax, dword [edx + 0x68]
mov cl, byte [eax + 0xc4]
test cl, cl
je 0x51a91a
mov ecx, dword [edx + 0x6c]
fld qword [ecx + 0x20]
fsub qword [eax + 0x20]
fstp qword [eax + 0x78]
mov ecx, dword [edx + 0x6c]
mov eax, dword [edx + 0x68]
fld qword [ecx + 0x28]
fsub qword [eax + 0x28]
fstp qword [eax + 0x80]
mov ecx, dword [edx + 0x6c]
mov eax, dword [edx + 0x68]
fld qword [ecx + 0x30]
fsub qword [eax + 0x30]
fstp qword [eax + 0x88]
mov eax, dword [edx + esi*4 + 0x64]
mov cl, byte [eax + 0xc4]
test cl, cl
je 0x51a95d
mov ecx, dword [edx + esi*4 + 0x60]
fld qword [eax + 0x20]
fsub qword [ecx + 0x20]
fstp qword [eax + 0x78]
mov eax, dword [edx + esi*4 + 0x64]
mov ecx, dword [edx + esi*4 + 0x60]
fld qword [eax + 0x28]
fsub qword [ecx + 0x28]
fstp qword [eax + 0x80]
mov eax, dword [edx + esi*4 + 0x64]
mov ecx, dword [edx + esi*4 + 0x60]
fld qword [eax + 0x30]
fsub qword [ecx + 0x30]
fstp qword [eax + 0x88]
lea edi, [esi - 1]
cmp edi, 1
mov dword [esp + 0x30], edi
jle 0x51aa02
lea ecx, [edi - 1]
lea eax, [edx + 0x6c]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax]
mov bl, byte [ecx + 0xc4]
test bl, bl
je 0x51a9f0
mov ebx, dword [eax + 4]
mov ebp, dword [eax - 4]
fld qword [ebx + 0x20]
fsub qword [ebp + 0x20]
fstp qword [ecx + 0x78]
mov ecx, dword [eax + 4]
mov ebx, dword [eax - 4]
fld qword [ecx + 0x28]
fsub qword [ebx + 0x28]
mov ecx, dword [eax]
fstp qword [ecx + 0x80]
mov ecx, dword [eax + 4]
mov ebx, dword [eax - 4]
fld qword [ecx + 0x30]
fsub qword [ebx + 0x30]
mov ecx, dword [eax]
fstp qword [ecx + 0x88]
mov ecx, dword [eax]
fld qword [ecx + 0x78]
fmul qword [0x5335c0]
fstp qword [ecx + 0x78]
mov ecx, dword [eax]
fld qword [ecx + 0x80]
fmul qword [0x5335c0]
fstp qword [ecx + 0x80]
mov ecx, dword [eax]
fld qword [ecx + 0x88]
fmul qword [0x5335c0]
fstp qword [ecx + 0x88]
mov ecx, dword [esp + 0x14]
add eax, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x51a977
mov eax, dword [edx + esi*4 + 0x64]
xor ebp, ebp
lea ebx, [edx + 0x68]
cmp edi, ebp
mov dword [eax + 0x98], ebp
mov dword [esp + 0x20], 0x3b03126f
mov ecx, dword [ebx]
mov dword [esp + 0x18], ebp
mov dword [ecx + 0x94], ebp
jle 0x51ac9b
jmp 0x51aa38
mov edx, dword [esp + 0xb0]
xor ebp, ebp
mov eax, dword [ebx]
mov ecx, 6
lea edi, [esp + 0x34]
mov dword [esp + 0x10], 0
mov dword [eax + 0x98], ebp
mov eax, dword [ebx]
add eax, 0x20
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
jmp 0x51aa70
mov edx, dword [esp + 0xb0]
fld dword [esp + 0x10]
fadd dword [esp + 0x20]
mov eax, dword [esp + 0x18]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
push ecx
push eax
lea ecx, [esp + 0x9c]
push edx
push ecx
call fcn.0051a280
mov ecx, ebp
mov esi, eax
and ecx, 1
mov eax, dword [ebx]
add esp, 0x10
inc ebp
lea edx, [ecx + ecx*2]
mov ecx, 6
cmp ebp, 0x1f4
lea edi, [esp + edx*8 + 0x34]
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x34]
fsub qword [esp + 0x4c]
fstp dword [esp + 0x24]
fld qword [esp + 0x3c]
fsub qword [esp + 0x54]
fstp dword [esp + 0x28]
fld qword [esp + 0x44]
fsub qword [esp + 0x5c]
fld dword [esp + 0x28]
fld dword [esp + 0x24]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fadd dword [eax + 0x98]
fstp dword [eax + 0x98]
jl 0x51aa69
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
fld dword [ecx + 0x90]
fadd dword [edx + 0x90]
fmul dword [0x533504]
fmul dword [0x534c60]
fcom dword [0x5333ec]
fnstsw ax
test ah, 0x41
jne 0x51ab4f
fld dword [edx + 0x98]
fmul dword [0x5333e8]
fdiv st(1)
fadd dword [edx + 0x94]
fstp dword [ecx + 0x94]
fstp st(0)
jmp 0x51ab5b
fstp st(0)
mov dword [ecx + 0x94], 0
mov dword [esp + 0x20], 0x3a83126f
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0x9c
fild dword [esp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x1c]
fmul dword [0x5333c8]
mov dword [ecx + eax], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xb0]
fstp dword [esp + 0x10]
mov edx, dword [esp + 0x10]
push edx
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.0051a280
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x44]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x4c]
xor ebp, ebp
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x10]
fadd dword [0x5336c0]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xb0]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push eax
push ecx
lea eax, [esp + 0x84]
push edx
push eax
call fcn.0051a280
mov ecx, ebp
mov esi, eax
and ecx, 1
mov edx, dword [ebx]
mov eax, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [ecx + ecx*2]
add eax, edx
inc ebp
lea edi, [esp + ecx*8 + 0x34]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x34]
fsub qword [esp + 0x4c]
fstp dword [esp + 0x24]
fld qword [esp + 0x3c]
fsub qword [esp + 0x54]
fstp dword [esp + 0x28]
fld qword [esp + 0x44]
fsub qword [esp + 0x5c]
fld dword [esp + 0x28]
fld dword [esp + 0x24]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
cmp ebp, 0x64
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fadd dword [eax]
fstp dword [eax]
jl 0x51abc9
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add eax, 4
inc esi
cmp eax, 0xc4
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
jl 0x51ab73
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x51aa2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret