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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, eax
mov edx, dword [esp + 0x74]
imul ebp, ebx
push esi
mov esi, dword [esp + 0x74]
test ebx, ebx
push edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x1c], 0
jle 0x4c84fe
lea ecx, [ebp + ebp*2]
lea ebx, [esi + ebp*4]
lea edi, [eax*4]
mov dword [esp + 0x10], esi
lea ecx, [esi + ecx*4]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ecx
lea ecx, [esi + ebp*8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
fld dword [ebx]
fadd dword [ecx]
mov ecx, dword [esp + 0x14]
fld dword [ecx]
mov ecx, dword [esp + 0x10]
fadd dword [ecx]
mov ecx, dword [esp + 0x1c]
shl ecx, 2
fld st(0)
fadd st(2)
lea ebx, [edi + ecx]
fstp dword [edx + ecx*4]
fsub st(1)
fstp dword [edx + ebx*4 - 4]
lea ebx, [eax + eax]
add ecx, ebx
mov ebx, dword [esp + 0x10]
fstp st(0)
fld dword [ebx]
mov ebx, dword [esp + 0x14]
fsub dword [ebx]
mov ebx, dword [esp + 0x18]
fstp dword [edx + ecx*4 - 4]
fld dword [ebx]
mov ebx, dword [esp + 0x28]
fsub dword [ebx]
add ebx, edi
mov dword [esp + 0x28], ebx
fstp dword [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
add ecx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
add ecx, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
add ecx, edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
dec ecx
mov dword [esp + 0x24], ecx
jne 0x4c846c
mov ebx, dword [esp + 0x74]
cmp eax, 2
jl 0x4c886a
je 0x4c87ac
xor edi, edi
test ebx, ebx
mov dword [esp + 0x54], edi
jle 0x4c87a4
lea ecx, [eax*4]
lea ebx, [eax + eax]
mov dword [esp + 0x68], ecx
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x64], ecx
lea ecx, [ebp + ebp*2]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x20], edx
lea ecx, [esi + ecx*4]
mov dword [esp + 0x28], ecx
lea ecx, [esi + ebp*4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x58], ecx
jmp 0x4c855a
mov ebx, dword [esp + 0x5c]
cmp eax, 2
lea ecx, [ebx + edi*4]
jle 0x4c8765
lea eax, [edx + ecx*4]
add ecx, ebx
lea ebx, [ebx + edi*4]
mov dword [esp + 0x18], eax
lea eax, [edx + ecx*4]
lea ebp, [esi + edi*4]
lea edx, [edx + ebx*4]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
lea edx, [edi + edx*2]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x80]
lea esi, [esi + edx*4]
mov edx, dword [esp + 0x84]
sub edx, ebx
mov edi, dword [esp + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x88]
sub edx, ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x84]
sub edx, ebx
add eax, 4
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x70]
dec edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
shr edx, 1
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x48]
fld dword [ecx + 4]
fmul dword [eax - 4]
fld dword [eax]
add ecx, 8
mov ebx, dword [esp + 0x1c]
add ebx, 8
add esi, 8
fmul dword [ecx]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
add ebx, 8
add edi, 8
faddp st(1)
fld dword [eax - 4]
fmul dword [ecx]
fld dword [eax]
fmul dword [ecx - 4]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x18]
sub ebx, 8
add ebp, 8
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
fsubp st(1)
sub ebx, 8
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x2c]
fstp dword [esp + 0x34]
fld dword [esi - 4]
fmul dword [ebx + edx]
mov ebx, dword [esp + 0x30]
fld dword [ebx + eax]
fmul dword [esi]
mov ebx, dword [esp + 0x2c]
faddp st(1)
fstp dword [esp + 0x40]
fld dword [esi]
fmul dword [ebx + edx]
mov ebx, dword [esp + 0x30]
fld dword [esi - 4]
fmul dword [ebx + eax]
mov ebx, dword [esp + 0x60]
fsubp st(1)
fstp dword [esp + 0x3c]
fld dword [ebx + eax]
fmul dword [edi]
fld dword [edi - 4]
fmul dword [edx]
faddp st(1)
fld dword [edi]
fmul dword [edx]
fld dword [edi - 4]
fmul dword [ebx + eax]
mov ebx, dword [esp + 0x1c]
fsubp st(1)
fstp dword [esp + 0x38]
fld st(0)
fadd st(2)
fstp dword [esp + 0x44]
fsubrp st(1)
fld dword [esp + 0x38]
fadd dword [esp + 0x34]
fstp dword [esp + 0x48]
fld dword [esp + 0x34]
fsub dword [esp + 0x38]
fld dword [esp + 0x3c]
fadd dword [ebp]
fstp dword [esp + 0x34]
fld dword [ebp]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fadd dword [ebp - 4]
fstp dword [esp + 0x38]
fld dword [ebp - 4]
fsub dword [esp + 0x40]
fld dword [esp + 0x38]
fadd dword [esp + 0x44]
fstp dword [ebx - 4]
fld dword [esp + 0x34]
fadd dword [esp + 0x48]
fstp dword [ebx]
mov ebx, dword [esp + 0x18]
add eax, 8
fld st(0)
fsub st(2)
add edx, 8
fstp dword [ebx - 4]
fld st(2)
fsub dword [esp + 0x3c]
fstp dword [ebx]
mov ebx, dword [esp + 0x14]
fadd st(1)
fstp dword [ebx - 4]
fstp st(0)
fld dword [esp + 0x3c]
fadd st(1)
fstp dword [ebx]
mov ebx, dword [esp + 0x10]
fstp st(0)
fld dword [esp + 0x38]
fsub dword [esp + 0x44]
fstp dword [ebx - 4]
fld dword [esp + 0x48]
fsub dword [esp + 0x34]
fstp dword [ebx]
mov ebx, dword [esp + 0x4c]
dec ebx
mov dword [esp + 0x4c], ebx
jne 0x4c85f6
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x20]
add ebx, ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x24]
add ebx, ecx
add edi, eax
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x28]
add ebx, ecx
mov ecx, dword [esp + 0x58]
dec ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x58], ecx
jne 0x4c8556
mov ebx, dword [esp + 0x74]
test al, 1
jne 0x4c886a
test ebx, ebx
lea edi, [eax + ebp - 1]
lea ecx, [eax*4]
jle 0x4c886a
shl ecx, 2
mov dword [esp + 0x80], ecx
lea ecx, [eax*4]
lea eax, [eax + eax*2]
lea ebx, [ecx + edx]
mov dword [esp + 0x70], ebx
lea ebx, [edi + ebp*2]
lea edx, [edx + eax*4]
lea eax, [edi + ebp]
lea ebx, [esi + ebx*4]
mov dword [esp + 0x88], ebx
lea ebx, [esi + edi*4]
sub edi, ebp
mov ebp, dword [esp + 0x70]
lea eax, [esi + eax*4]
lea esi, [esi + edi*4]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x88]
jmp 0x4c8814
mov edi, dword [esp + 0x88]
fld dword [edi]
fadd dword [ebx]
fmul dword [0x539ca4]
fchs
fld dword [ebx]
fsub dword [edi]
add edi, ecx
add ebx, ecx
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x80]
fmul dword [0x539ca4]
fld st(0)
fadd dword [esi]
fstp dword [ebp - 4]
fld dword [esi]
fsub st(1)
add esi, ecx
fstp dword [edx - 4]
fstp st(0)
fld st(0)
fsub dword [eax]
fstp dword [ebp]
add ebp, edi
fadd dword [eax]
add eax, ecx
fstp dword [edx]
add edx, edi
mov edi, dword [esp + 0x74]
dec edi
mov dword [esp + 0x74], edi
jne 0x4c880d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret