Function at 0x518a00
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 + 0x10], 0
jle 0x518ada
lea ecx, [ebp + ebp*2]
lea ebx, [esi + ebp*4]
lea edi, [eax*4]
mov dword [esp + 0x28], ebx
lea ecx, [esi + ecx*4]
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 + 0x10]
mov ebx, dword [esp + 0x14]
fld dword [esi + ecx*4]
fadd dword [ebx]
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 [esi + ebx*4]
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 + 0x10]
add ecx, eax
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 0x518a58
mov ebx, dword [esp + 0x74]
cmp eax, 2
jl 0x518e26
je 0x518d71
xor edi, edi
test ebx, ebx
mov dword [esp + 0x54], edi
jle 0x518d69
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 0x518b36
mov ebx, dword [esp + 0x5c]
cmp eax, 2
lea ecx, [ebx + edi*4]
jle 0x518d2a
lea eax, [edx + ecx*4]
add ecx, ebx
lea ebx, [ebx + edi*4]
mov dword [esp + 0x14], eax
lea eax, [edx + ecx*4]
lea ebp, [esi + edi*4]
lea edx, [edx + ebx*4]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
lea edx, [edi + edx*2]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x48], eax
lea esi, [esi + edx*4]
mov edx, dword [esp + 0x84]
sub edx, ebx
mov eax, dword [esp + 0x80]
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]
add edx, 0xfffffffd
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
shr edx, 1
inc edx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x48]
fld dword [eax - 4]
mov ebx, dword [esp + 0x18]
add ecx, 8
add ebx, 8
add esi, 8
fmul dword [ecx - 4]
fld dword [ecx]
fmul dword [eax]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
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 + 0x10], ebx
mov ebx, dword [esp + 0x14]
sub ebx, 8
add ebp, 8
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c]
sub ebx, 8
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
fsubp st(1)
fld dword [ebx + edx]
mov ebx, dword [esp + 0x30]
fmul dword [esi - 4]
fld dword [ebx + eax]
fmul dword [esi]
mov ebx, dword [esp + 0x2c]
faddp st(1)
fstp dword [esp + 0x3c]
fld dword [ebx + edx]
fmul dword [esi]
mov ebx, dword [esp + 0x30]
fld dword [esi - 4]
fmul dword [ebx + eax]
mov ebx, dword [esp + 0x60]
fsubp st(1)
fstp dword [esp + 0x38]
fld dword [edx]
fmul dword [edi - 4]
fld dword [ebx + eax]
fmul dword [edi]
faddp st(1)
fld dword [edx]
fmul dword [edi]
fld dword [edi - 4]
fmul dword [ebx + eax]
mov ebx, dword [esp + 0x18]
fsubp st(1)
fstp dword [esp + 0x34]
fld st(0)
fadd st(3)
fstp dword [esp + 0x44]
fsub st(2)
fstp dword [esp + 0x40]
fld dword [esp + 0x34]
fadd st(1)
fstp dword [esp + 0x48]
fsub dword [esp + 0x34]
fstp st(1)
fld dword [esp + 0x38]
fadd dword [ebp]
fld dword [ebp]
fsub dword [esp + 0x38]
fld dword [esp + 0x3c]
fadd dword [ebp - 4]
fld dword [ebp - 4]
fsub dword [esp + 0x3c]
fld st(1)
fadd dword [esp + 0x44]
fstp dword [ebx - 4]
fld st(3)
fadd dword [esp + 0x48]
fstp dword [ebx]
fld st(0)
fsub st(5)
mov ebx, dword [esp + 0x14]
add eax, 8
add edx, 8
fstp dword [ebx - 4]
fld dword [esp + 0x40]
fsub st(3)
fstp dword [ebx]
mov ebx, dword [esp + 0x10]
fadd st(4)
fstp dword [ebx - 4]
fxch st(1)
fadd dword [esp + 0x40]
fstp dword [ebx]
mov ebx, dword [esp + 0x1c]
fsub dword [esp + 0x44]
fstp dword [ebx - 4]
fld dword [esp + 0x48]
fsub st(1)
fstp dword [ebx]
mov ebx, dword [esp + 0x4c]
fstp st(0)
dec ebx
fstp st(0)
mov dword [esp + 0x4c], ebx
jne 0x518bd5
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
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 0x518b32
mov ebx, dword [esp + 0x74]
test al, 1
jne 0x518e26
test ebx, ebx
lea edi, [eax + ebp - 1]
lea ecx, [eax*4]
jle 0x518e26
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]
fld dword [ebx]
fadd dword [edi]
fmul dword [0x572664]
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 [0x572664]
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 0x518dc9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret