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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, eax
imul ebp, ebx
test ebx, ebx
push esi
mov esi, dword [esp + 0x74]
push edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x1c], 0
jle 0x498833
lea ecx, [ebp + ebp*2]
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]
lea ebx, [esi + ebp*4]
lea edi, [eax*4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
fld dword [ebx]
mov ecx, dword [esp + 0x18]
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
lea ebx, [edi + ecx]
fld st(0)
fadd st(2)
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
add dword [esp + 0x10], edi
add dword [esp + 0x14], edi
add dword [esp + 0x18], edi
dec dword [esp + 0x24]
jne 0x4987bc
mov ebx, dword [esp + 0x74]
cmp eax, 2
jl 0x498b94
je 0x498adb
xor edi, edi
test ebx, ebx
mov dword [esp + 0x54], edi
jle 0x498ad3
lea ecx, [eax*4]
mov dword [esp + 0x68], ecx
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x64], ecx
lea ecx, [ebp + ebp*2]
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]
lea ebx, [eax + eax]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x58], ecx
jmp 0x49888f
mov ebx, dword [esp + 0x5c]
cmp eax, 2
lea ecx, [ebx + edi*4]
jle 0x498a9a
lea eax, [edx + ecx*4]
add ecx, ebx
mov dword [esp + 0x18], eax
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x20]
lea ebx, [ebx + edi*4]
lea edx, [edx + ebx*4]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x50]
lea edx, [edi + edx*2]
lea ebp, [esi + edi*4]
lea esi, [esi + edx*4]
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x28]
sub edx, ebx
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]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
sub edx, ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x70]
add eax, 4
dec edx
shr edx, 1
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x48]
fld dword [ecx + 4]
mov ebx, dword [esp + 0x1c]
fmul dword [eax - 4]
add ecx, 8
fld dword [eax]
add ebx, 8
fmul dword [ecx]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
add ebx, 8
faddp st(1)
mov dword [esp + 0x14], ebx
fld dword [eax - 4]
mov ebx, dword [esp + 0x18]
fmul dword [ecx]
sub ebx, 8
fld dword [eax]
mov dword [esp + 0x18], ebx
fmul dword [ecx - 4]
mov ebx, dword [esp + 0x10]
add esi, 8
add edi, 8
fsubp st(1)
add ebp, 8
sub ebx, 8
mov dword [esp + 0x10], ebx
fstp dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
fld dword [esi - 4]
fmul dword [ebx + edx]
mov ebx, dword [esp + 0x30]
fld dword [ebx + eax]
mov ebx, dword [esp + 0x2c]
fmul dword [esi]
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)
add edx, 8
fsub st(2)
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 0x49892b
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
add dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x28]
add ebx, ecx
mov ecx, dword [esp + 0x58]
add edi, eax
dec ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x58], ecx
jne 0x49888b
mov ebx, dword [esp + 0x74]
test al, 1
jne 0x498b94
test ebx, ebx
lea edi, [eax + ebp - 1]
lea ecx, [eax*4]
jle 0x498b94
shl ecx, 2
mov dword [esp + 0x80], ecx
lea ecx, [eax*4]
lea ebx, [ecx + edx]
mov dword [esp + 0x70], ebx
lea ebx, [edi + ebp*2]
lea ebx, [esi + ebx*4]
lea eax, [eax + eax*2]
mov dword [esp + 0x88], ebx
lea ebx, [esi + edi*4]
lea edx, [edx + eax*4]
lea eax, [edi + ebp]
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 0x498b43
mov edi, dword [esp + 0x88]
fld dword [edi]
fadd dword [ebx]
fmul dword [0x4c02dc]
fchs
fld dword [ebx]
add ebx, ecx
fsub dword [edi]
add edi, ecx
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x80]
fmul dword [0x4c02dc]
fld st(0)
fadd dword [esi]
fstp dword [ebp - 4]
fld dword [esi]
add esi, ecx
fsub st(1)
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
dec dword [esp + 0x74]
jne 0x498b3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret