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

Disassembly:
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 4]
sub esp, 0xcc
push ebx
push ebp
mov ebp, dword [esp + 0xdc]
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp ebp, 4
jl 0x515d0c
lea esi, [edx + 0x10]
lea esp, [esp]
fld dword [esi - 0x10]
fmul dword [ecx]
fld dword [esi - 0xc]
fmul dword [ecx + 4]
faddp st(1)
fld dword [esi - 8]
fmul dword [ecx + 8]
faddp st(1)
fadd dword [ecx + 0xc]
fcomp dword [0x5d380c]
fnstsw ax
test ah, 0x41
jne 0x515c4c
mov eax, 1
jmp 0x515c4e
xor eax, eax
fld dword [esi - 4]
add ebx, eax
fmul dword [ecx]
mov dword [esp + edi*4 + 0xb4], eax
fld dword [esi + 4]
fmul dword [ecx + 8]
faddp st(1)
fld dword [esi]
fmul dword [ecx + 4]
faddp st(1)
fadd dword [ecx + 0xc]
fcomp dword [0x5d380c]
fnstsw ax
test ah, 0x41
jne 0x515c82
mov eax, 1
jmp 0x515c84
xor eax, eax
fld dword [esi + 8]
add ebx, eax
fmul dword [ecx]
mov dword [esp + edi*4 + 0xb8], eax
fld dword [esi + 0xc]
fmul dword [ecx + 4]
faddp st(1)
fld dword [esi + 0x10]
fmul dword [ecx + 8]
faddp st(1)
fadd dword [ecx + 0xc]
fcomp dword [0x5d380c]
fnstsw ax
test ah, 0x41
jne 0x515cb9
mov eax, 1
jmp 0x515cbb
xor eax, eax
fld dword [esi + 0x14]
add ebx, eax
fmul dword [ecx]
mov dword [esp + edi*4 + 0xbc], eax
fld dword [esi + 0x18]
fmul dword [ecx + 4]
faddp st(1)
fld dword [esi + 0x1c]
fmul dword [ecx + 8]
faddp st(1)
fadd dword [ecx + 0xc]
fcomp dword [0x5d380c]
fnstsw ax
test ah, 0x41
jne 0x515cf0
mov eax, 1
jmp 0x515cf2
xor eax, eax
mov dword [esp + edi*4 + 0xc0], eax
add ebx, eax
add edi, 4
lea eax, [ebp - 3]
add esi, 0x30
cmp edi, eax
jb 0x515c20
cmp edi, ebp
jae 0x515d55
lea eax, [edi + edi*2]
lea esi, [edx + eax*4 + 4]
fld dword [esi + 4]
fmul dword [ecx + 8]
fld dword [esi - 4]
fmul dword [ecx]
faddp st(1)
fld dword [esi]
fmul dword [ecx + 4]
faddp st(1)
fadd dword [ecx + 0xc]
fcomp dword [0x5d380c]
fnstsw ax
test ah, 0x41
jne 0x515d42
mov eax, 1
jmp 0x515d44
xor eax, eax
add ebx, eax
mov dword [esp + edi*4 + 0xb4], eax
inc edi
add esi, 0xc
cmp edi, ebp
jb 0x515d17
xor eax, eax
cmp ebx, ebp
je 0x51612c
test ebp, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jbe 0x516128
mov esi, dword [esp + 0xf4]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0xf0]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0xec]
lea esp, [esp]
test eax, eax
lea ebx, [eax - 1]
jne 0x515d9a
lea ebx, [ebp - 1]
mov edi, dword [esp + eax*4 + 0xb4]
test edi, edi
mov edi, dword [esp + ebx*4 + 0xb4]
je 0x515f3e
test edi, edi
jne 0x51611b
fld dword [ecx]
lea edi, [ebx + ebx*2]
shl edi, 2
fmul dword [edi + edx]
lea ebx, [eax + eax*2]
fld dword [ecx + 8]
shl ebx, 2
fmul dword [edi + edx + 8]
mov eax, dword [esp + 0x14]
faddp st(1)
fld dword [edi + edx + 4]
fmul dword [ecx + 4]
faddp st(1)
fadd dword [ecx + 0xc]
fld dword [edi + edx]
fsub dword [ebx + edx]
fmul dword [ecx]
fld dword [edi + edx + 8]
fsub dword [ebx + edx + 8]
fmul dword [ecx + 8]
faddp st(1)
fld dword [edi + edx + 4]
fsub dword [ebx + edx + 4]
fmul dword [ecx + 4]
faddp st(1)
fdivp st(1)
fst dword [esp + 0x10]
fmul dword [ebx + edx]
fstp dword [esp + 0x78]
fld dword [esp + 0x10]
fmul dword [ebx + edx + 4]
fstp dword [esp + 0x7c]
fld dword [esp + 0x10]
fmul dword [ebx + edx + 8]
fstp dword [esp + 0x80]
fld dword [0x5d4410]
fsub dword [esp + 0x10]
fld st(0)
fld st(0)
fmul dword [edi + edx]
fld st(1)
fmul dword [edi + edx + 4]
fstp dword [esp + 0x88]
fxch st(1)
fmul dword [edi + edx + 8]
fstp dword [esp + 0x8c]
fadd dword [esp + 0x78]
fstp dword [esp + 0x60]
mov ebp, dword [esp + 0x60]
fld dword [esp + 0x88]
mov dword [eax], ebp
fadd dword [esp + 0x7c]
fstp dword [esp + 0x64]
mov ebp, dword [esp + 0x64]
fld dword [esp + 0x8c]
mov dword [eax + 4], ebp
fadd dword [esp + 0x80]
fstp dword [esp + 0x68]
mov ebp, dword [esp + 0x68]
fld dword [esp + 0x10]
mov dword [eax + 8], ebp
fmul dword [ebx + esi]
fld dword [esp + 0x10]
fmul dword [ebx + esi + 4]
fstp dword [esp + 0xac]
fld dword [esp + 0x10]
fmul dword [ebx + esi + 8]
fstp dword [esp + 0xb0]
fxch st(1)
fld st(0)
fmul dword [edi + esi]
fstp dword [esp + 0x48]
fld st(0)
fmul dword [edi + esi + 4]
fstp dword [esp + 0x4c]
fmul dword [edi + esi + 8]
fstp dword [esp + 0x50]
fld dword [esp + 0x48]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
fadd st(1)
mov edi, eax
inc ebp
fstp dword [esp + 0x24]
mov ebx, dword [esp + 0x24]
mov dword [edi], ebx
fstp st(0)
mov dword [esp + 0x1c], ebp
fld dword [esp + 0x4c]
fadd dword [esp + 0xac]
fstp dword [esp + 0x28]
mov ebx, dword [esp + 0x28]
fld dword [esp + 0x50]
mov dword [edi + 4], ebx
fadd dword [esp + 0xb0]
fstp dword [esp + 0x2c]
mov ebx, dword [esp + 0x2c]
mov dword [edi + 8], ebx
mov ebx, dword [esp + 0x14]
add ebx, 0xc
add eax, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
jmp 0x516114
test edi, edi
je 0x5160c1
fld dword [ecx + 8]
lea edi, [eax + eax*2]
shl edi, 2
fmul dword [edi + edx + 8]
lea ebx, [ebx + ebx*2]
fld dword [ecx]
shl ebx, 2
fmul dword [edi + edx]
mov eax, dword [esp + 0x14]
faddp st(1)
fld dword [edi + edx + 4]
fmul dword [ecx + 4]
faddp st(1)
fadd dword [ecx + 0xc]
fld dword [edi + edx]
fsub dword [ebx + edx]
fmul dword [ecx]
fld dword [edi + edx + 8]
fsub dword [ebx + edx + 8]
fmul dword [ecx + 8]
faddp st(1)
fld dword [edi + edx + 4]
fsub dword [ebx + edx + 4]
fmul dword [ecx + 4]
faddp st(1)
fdivp st(1)
fst dword [esp + 0x10]
fmul dword [ebx + edx]
fstp dword [esp + 0x6c]
fld dword [esp + 0x10]
fmul dword [ebx + edx + 4]
fstp dword [esp + 0x70]
fld dword [esp + 0x10]
fmul dword [ebx + edx + 8]
fstp dword [esp + 0x74]
fld dword [0x5d4410]
fsub dword [esp + 0x10]
fld st(0)
fld st(0)
fmul dword [edi + edx]
fld st(1)
fmul dword [edi + edx + 4]
fstp dword [esp + 0x94]
fxch st(1)
fmul dword [edi + edx + 8]
fstp dword [esp + 0x98]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x54]
mov ebp, dword [esp + 0x54]
fld dword [esp + 0x94]
mov dword [eax], ebp
fadd dword [esp + 0x70]
fstp dword [esp + 0x58]
mov ebp, dword [esp + 0x58]
fld dword [esp + 0x98]
mov dword [eax + 4], ebp
fadd dword [esp + 0x74]
fstp dword [esp + 0x5c]
mov ebp, dword [esp + 0x5c]
fld dword [esp + 0x10]
mov dword [eax + 8], ebp
fmul dword [ebx + esi]
fld dword [esp + 0x10]
fmul dword [ebx + esi + 4]
fstp dword [esp + 0xa0]
fld dword [esp + 0x10]
fmul dword [ebx + esi + 8]
fstp dword [esp + 0xa4]
fxch st(1)
fld st(0)
fmul dword [edi + esi]
fstp dword [esp + 0x30]
fld st(0)
fmul dword [edi + esi + 4]
fstp dword [esp + 0x34]
fmul dword [edi + esi + 8]
fstp dword [esp + 0x38]
fld dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
fadd st(1)
mov edi, eax
inc ebp
fstp dword [esp + 0x3c]
mov ebx, dword [esp + 0x3c]
mov dword [edi], ebx
fstp st(0)
mov dword [esp + 0x1c], ebp
fld dword [esp + 0x34]
fadd dword [esp + 0xa0]
fstp dword [esp + 0x40]
mov ebx, dword [esp + 0x40]
fld dword [esp + 0x38]
mov dword [edi + 4], ebx
fadd dword [esp + 0xa4]
fstp dword [esp + 0x44]
mov ebx, dword [esp + 0x44]
mov dword [edi + 8], ebx
mov ebx, dword [esp + 0x14]
add ebx, 0xc
add eax, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x14]
lea edi, [eax + eax*2]
shl edi, 2
mov dword [esp + 0x20], edi
add edi, edx
mov ebp, dword [edi]
mov dword [ebx], ebp
mov ebp, dword [edi + 4]
mov dword [ebx + 4], ebp
mov edi, dword [edi + 8]
mov dword [ebx + 8], edi
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
add edi, esi
mov ebp, dword [edi]
mov dword [ebx], ebp
mov ebp, dword [edi + 4]
mov dword [ebx + 4], ebp
mov edi, dword [edi + 8]
mov ebp, dword [esp + 0x14]
mov dword [ebx + 8], edi
inc dword [esp + 0x1c]
mov edi, 0xc
add ebp, edi
add ebx, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0xe4]
inc eax
cmp eax, ebp
mov dword [esp + 0x20], eax
jb 0x515d90
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 0x18