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

Disassembly:
sub esp, 0x40
fild dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
fdivr dword [0x557f08]
mov ebp, dword [esp + 0x50]
mov edx, ebx
mov eax, ebx
push esi
push edi
fld st(0)
imul edx, ecx
fcos
mov dword [esp + 0x10], edx
lea edx, [ebx - 1]
sar edx, 1
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x64]
fstp dword [esp + 0x34]
imul eax, ebp
fsin
inc ebp
mov dword [esp + 0x1c], eax
sar ebp, 1
cmp ebx, ecx
mov dword [esp + 0x14], ebp
fstp dword [esp + 0x30]
jge 0x509b42
test ebx, ebx
jle 0x509b92
mov esi, dword [esp + 0x70]
mov dword [esp + 0x20], ebx
mov eax, esi
sub eax, edx
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jle 0x509b32
mov esi, dword [esp + 0x5c]
lea edi, [ebx*4]
add eax, edx
mov ecx, edx
mov ebp, dword [ecx]
mov dword [eax], ebp
mov ebp, dword [esp + 0x1c]
shl ebp, 2
add eax, edi
add ecx, ebp
dec esi
jne 0x509b14
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
add edx, 4
dec ecx
mov dword [esp + 0x20], ecx
jne 0x509afd
jmp 0x509b96
test ecx, ecx
jle 0x509b92
mov esi, dword [esp + 0x70]
mov dword [esp + 0x18], ecx
shl eax, 2
mov dword [esp + 0x40], eax
mov eax, edx
mov dword [esp + 0x20], eax
test ebx, ebx
jle 0x509b70
mov ecx, esi
mov edx, ebx
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x509b63
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
lea eax, [ebx*4]
add esi, eax
mov eax, dword [esp + 0x20]
add eax, edx
dec ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jne 0x509b5b
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
cmp ebp, 1
lea eax, [ebx + ebx]
jle 0x509c48
mov ecx, dword [esp + 0x18]
lea edi, [eax*4]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x38], edi
add eax, edi
lea edx, [esi + ecx*4]
mov dword [esp + 0x20], eax
lea eax, [ebp - 1]
mov ecx, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
shl eax, 2
add ecx, eax
sub edx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
test eax, eax
mov dword [esp + 0x3c], edx
jle 0x509c33
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x5c]
lea edi, [ebx*4]
lea esi, [eax*4]
mov eax, dword [esp + 0x20]
fld dword [eax - 4]
fadd st(0), st(0)
fstp dword [ecx]
fld dword [eax]
fadd st(0), st(0)
add ecx, edi
add eax, esi
fstp dword [edx]
add edx, edi
dec ebp
jne 0x509c09
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x20]
add eax, edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x509bd4
cmp ebx, 1
je 0x509e3c
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jge 0x509d50
cmp ebp, 1
jle 0x509e3c
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x64]
dec ebp
mov edx, esi
lea esi, [esi + eax*4]
mov dword [esp + 0x28], ebp
mov ecx, dword [esp + 0x10]
lea eax, [ecx*4]
add edx, eax
sub esi, eax
lea eax, [ebx*8]
mov dword [esp + 0x48], edx
add edi, eax
cmp ebx, 2
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
jle 0x509d38
lea ebp, [ebx - 1]
mov eax, edi
shr ebp, 1
mov ecx, edi
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x5c]
add ecx, 8
add edx, 8
add esi, 8
sub eax, 8
mov dword [esp + 0x3c], ecx
test ebp, ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], eax
jle 0x509d25
mov edi, dword [esp + 0x1c]
shl edi, 2
shl ebx, 2
fld dword [eax - 4]
fadd dword [ecx - 4]
fstp dword [edx - 4]
fld dword [ecx - 4]
fsub dword [eax - 4]
fstp dword [esi - 4]
fld dword [ecx]
fsub dword [eax]
fstp dword [edx]
fld dword [eax]
fadd dword [ecx]
add edx, ebx
add eax, edi
add ecx, edi
fstp dword [esi]
add esi, ebx
dec ebp
jne 0x509ce4
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x64]
dec ebp
mov dword [esp + 0x64], ebp
jne 0x509cb6
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x509c7c
mov ebp, dword [esp + 0x14]
jmp 0x509e3c
cmp ebp, 1
jle 0x509e3c
mov edx, dword [esp + 0x18]
lea eax, [ebp - 1]
mov dword [esp + 0x2c], eax
lea ecx, [esi + edx*4]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
shl eax, 2
add esi, eax
sub ecx, eax
lea eax, [ebx*8]
mov dword [esp + 0x40], esi
add edx, eax
mov eax, dword [esp + 0x5c]
test eax, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
jle 0x509e2d
mov dword [esp + 0x64], ecx
mov ecx, eax
mov dword [esp + 0x20], esi
mov ebp, edx
mov dword [esp + 0x28], ecx
cmp ebx, 2
jle 0x509dea
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x20]
lea edi, [ebx - 1]
mov eax, ebp
mov ecx, ebp
shr edi, 1
fld dword [ecx - 0xc]
fadd dword [eax + 4]
sub ecx, 8
add eax, 8
add edx, 8
add esi, 8
dec edi
fstp dword [edx - 4]
fld dword [eax - 4]
fsub dword [ecx - 4]
fstp dword [esi - 4]
fld dword [eax]
fsub dword [ecx]
fstp dword [edx]
fld dword [eax]
fadd dword [ecx]
fstp dword [esi]
jne 0x509dbd
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x64]
lea eax, [ebx*4]
add edx, eax
add esi, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x64], esi
lea eax, [edx*4]
add ebp, eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x509da7
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x509d6b
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
mov esi, eax
mov ecx, dword [esp + 0x74]
imul esi, edi
fld dword [0x521fb0]
dec eax
mov dword [esp + 0x64], 0x3f800000
imul eax, edi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
cmp ebp, 1
mov dword [esp + 0x44], esi
jle 0x509fe8
fld dword [esp + 0x64]
mov edx, eax
lea esi, [eax + esi*4]
lea eax, [ebp - 1]
mov dword [esp + 0x40], eax
jmp 0x509e8e
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
fld st(0)
fmul dword [esp + 0x34]
fld st(2)
fmul dword [esp + 0x30]
lea eax, [edi*4]
add edx, eax
sub esi, eax
fsubp st(1)
test edi, edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], esi
fstp dword [esp + 0x64]
fmul dword [esp + 0x30]
fxch st(1)
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x64]
jle 0x509f15
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x28], edi
lea ebp, [ecx + esi*4]
fld dword [esp + 0x64]
fmul dword [eax]
mov esi, dword [esp + 0x2c]
add eax, 4
add esi, 4
add edx, 4
fadd dword [ecx]
mov dword [esp + 0x2c], esi
add ecx, 4
add ebp, 4
fstp dword [edx - 4]
fld st(1)
fmul dword [ebp - 4]
fstp dword [esi - 4]
mov esi, dword [esp + 0x28]
dec esi
mov dword [esp + 0x28], esi
jne 0x509ed8
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
sub eax, edi
cmp ebp, 2
mov dword [esp + 0x4c], edx
fld st(1)
jle 0x509fd5
fld dword [esp + 0x4c]
lea edx, [ecx + edi*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], edx
lea edx, [ebp - 2]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
fld st(0)
fmul dword [esp + 0x64]
fld st(2)
fmul st(5)
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea eax, [edi*4]
fsubp st(1)
add esi, eax
sub edx, eax
test edi, edi
fstp dword [esp + 0x2c]
fxch st(1)
fmul dword [esp + 0x64]
fxch st(1)
fmul st(3)
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
faddp st(1)
fld dword [esp + 0x2c]
jle 0x509fc4
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov esi, edx
mov edx, dword [esp + 0x1c]
mov ebp, edi
fld dword [esp + 0x2c]
fmul dword [edx]
add edx, 4
add eax, 4
add esi, 4
add ecx, 4
fadd dword [eax - 4]
dec ebp
fstp dword [eax - 4]
fld st(1)
fmul dword [esi - 4]
fadd dword [ecx - 4]
fstp dword [ecx - 4]
jne 0x509f96
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x509f47
fstp st(0)
mov eax, dword [esp + 0x40]
dec eax
fstp st(0)
mov dword [esp + 0x40], eax
jne 0x509e86
fstp st(0)
cmp ebp, 1
fstp st(0)
jle 0x50a0ad
lea eax, [ebp - 1]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x64]
lea eax, [edi*4]
add edx, eax
test edi, edi
mov dword [esp + 0x64], edx
jle 0x50a027
mov eax, ecx
mov esi, edi
fld dword [eax]
fadd dword [edx]
add edx, 4
add eax, 4
dec esi
fstp dword [eax - 4]
jne 0x50a017
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jne 0x509ffe
cmp ebp, 1
jle 0x50a0ad
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
lea esi, [ebp - 1]
lea edx, [ecx*4]
mov dword [esp + 0x64], esi
lea ecx, [edi + eax*4]
mov dword [esp + 0x44], edx
mov eax, edi
mov esi, dword [esp + 0x5c]
add eax, edx
sub ecx, edx
mov dword [esp + 0x4c], eax
test esi, esi
mov dword [esp + 0x48], ecx
jle 0x50a0a0
mov edx, dword [esp + 0x70]
lea ebp, [ebx*4]
sub edx, edi
fld dword [eax]
fsub dword [ecx]
fstp dword [edx + eax]
fld dword [ecx]
fadd dword [eax]
add eax, ebp
fstp dword [edx + ecx]
add ecx, ebp
dec esi
jne 0x50a07b
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x64]
dec esi
mov dword [esp + 0x64], esi
jne 0x50a05a
jmp 0x50a0b1
mov edi, dword [esp + 0x68]
cmp ebx, 1
je 0x50a536
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jge 0x50a1d4
cmp ebp, 1
jle 0x50a2e5
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
lea edx, [edi - 4]
lea esi, [ecx + eax*4]
lea ebp, [edi + eax*4 - 4]
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
shl eax, 2
add ecx, eax
add edx, eax
sub esi, eax
sub ebp, eax
cmp ebx, 2
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ebp
jle 0x50a1c0
mov eax, edx
lea edx, [ebx - 1]
shr edx, 1
mov edi, ecx
mov ecx, ebp
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x5c]
add edi, 8
add eax, 8
add esi, 8
add ecx, 8
mov dword [esp + 0x3c], edi
test edx, edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
jle 0x50a19d
mov ebp, dword [esp + 0x68]
lea edx, [ebx*4]
mov ebx, esi
mov esi, dword [esp + 0x70]
sub esi, ebp
mov ebp, dword [esp + 0x5c]
fld dword [eax]
fsub dword [ecx + 4]
fstp dword [eax + esi]
fld dword [ecx + 4]
fadd dword [eax]
fstp dword [ecx + esi]
fld dword [eax + 4]
fadd dword [ecx]
fstp dword [edi]
fld dword [eax + 4]
fsub dword [ecx]
add edi, edx
add eax, edx
add ecx, edx
fstp dword [ebx]
add ebx, edx
dec ebp
jne 0x50a160
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x64]
dec edx
mov dword [esp + 0x64], edx
jne 0x50a125
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jne 0x50a0ee
jmp 0x50a2e5
cmp ebp, 1
jle 0x50a2e5
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
lea edx, [edi - 4]
lea ebp, [ecx + eax*4]
lea esi, [edi + eax*4 - 4]
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
shl eax, 2
add ecx, eax
add edx, eax
sub ebp, eax
sub esi, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x48], ecx
test eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], esi
jle 0x50a2d6
mov edi, ecx
mov dword [esp + 0x64], edx
mov ecx, esi
mov edx, eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
cmp ebx, 2
jle 0x50a284
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
sub edx, esi
lea esi, [ebx - 1]
shr esi, 1
fld dword [eax + 8]
fsub dword [ecx + 0xc]
add eax, 8
add ecx, 8
add edi, 8
add ebp, 8
dec esi
fstp dword [eax + edx]
fld dword [eax]
fadd dword [ecx + 4]
fstp dword [ecx + edx]
fld dword [eax + 4]
fadd dword [ecx]
fstp dword [edi]
fld dword [eax + 4]
fsub dword [ecx]
fstp dword [ebp]
jne 0x50a255
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x3c]
lea eax, [ebx*4]
add ebp, eax
add edi, eax
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x40]
add ebp, eax
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], edi
dec eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
jne 0x50a23d
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x50a1f8
mov edx, dword [esp + 0x60]
test edx, edx
jle 0x50a302
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
sub ecx, eax
mov esi, dword [ecx + eax]
mov dword [eax], esi
add eax, 4
dec edx
jne 0x50a2f7
mov esi, dword [esp + 0x58]
cmp esi, 1
jle 0x50a357
lea ecx, [esi - 1]
mov eax, edi
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x10]
lea ecx, [edx*4]
mov edx, dword [esp + 0x5c]
add eax, ecx
test edx, edx
mov dword [esp + 0x74], eax
jle 0x50a34c
mov ecx, dword [esp + 0x70]
lea ebp, [ebx*4]
sub ecx, edi
mov esi, dword [eax + ecx]
mov dword [eax], esi
add eax, ebp
dec edx
jne 0x50a33a
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
dec ecx
mov dword [esp + 0x64], ecx
jne 0x50a314
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jle 0x50a45e
or eax, 0xffffffff
sub eax, ebx
cmp esi, 1
jle 0x50a536
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], edi
lea edx, [ecx*4]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x4c], edx
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x70]
add eax, 0xfffffffc
dec esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x74]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
lea eax, [ebx*4]
add esi, eax
mov eax, dword [esp + 0x4c]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], esi
test eax, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], ecx
jle 0x50a447
mov ebp, edx
mov edx, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], edx
cmp ebx, 2
jle 0x50a429
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x54]
sub edi, edx
lea edx, [ebx - 1]
mov esi, ebp
shr edx, 1
fld dword [ecx + 4]
fmul dword [eax + 8]
fld dword [ecx + 8]
add ecx, 8
add eax, 8
add esi, 8
dec edx
fmul dword [eax + 4]
fsubp st(1)
fstp dword [edi + eax]
fld dword [eax]
fmul dword [ecx]
fld dword [ecx - 4]
fmul dword [eax + 4]
faddp st(1)
fstp dword [esi]
jne 0x50a3fa
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x54]
lea eax, [ebx*4]
add ebp, eax
add ecx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], ecx
dec eax
mov dword [esp + 0x60], eax
jne 0x50a3e0
mov eax, dword [esp + 0x6c]
dec eax
mov dword [esp + 0x6c], eax
jne 0x50a3a3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
or eax, 0xffffffff
sub eax, ebx
cmp esi, 1
jle 0x50a536
mov ecx, dword [esp + 0x10]
lea ebp, [ebx*4]
lea edx, [ecx*4]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x74], edx
mov edx, edi
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x70]
add eax, 0xfffffffc
dec esi
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x74]
add ecx, ebp
add edx, esi
add eax, esi
cmp ebx, 2
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x4c], eax
jle 0x50a527
lea esi, [ebx - 1]
shr esi, 1
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x5c]
add ecx, 8
add edx, 8
add eax, 8
test esi, esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x54], eax
jle 0x50a510
mov esi, edi
mov edi, dword [esp + 0x70]
sub esi, edi
mov edi, dword [esp + 0x5c]
fld dword [ecx - 4]
fmul dword [eax]
fld dword [eax + 4]
fmul dword [ecx]
fsubp st(1)
fstp dword [esi + eax]
fld dword [eax]
fmul dword [ecx]
fld dword [ecx - 4]
fmul dword [eax + 4]
add eax, ebp
faddp st(1)
fstp dword [edx]
add edx, ebp
dec edi
jne 0x50a4e0
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x58]
dec esi
mov dword [esp + 0x58], esi
jne 0x50a4bb
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x64]
dec esi
mov dword [esp + 0x64], esi
jne 0x50a497
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret