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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xa8
mov edi, dword [eax + 8]
mov ebp, dword [eax + 4]
lea eax, [ebp - 6]
test eax, eax
jle 0x87835e
mov ebx, edi
lea eax, [ecx + ecx]
add eax, eax
lea eax, [eax + edx - 0x20]
mov esi, ecx
sar esi, 1
add esi, esi
add esi, esi
lea esi, [esi + edx - 0x20]
jmp 0x87824b
fstp dword [esi + 0x24]
fld dword [eax + 0x18]
fld st(0)
fld dword [esi + 0x18]
fsub st(1), st(0)
faddp st(2)
fld dword [eax + 0x1c]
fld dword [esi + 0x1c]
fsubr st(1)
fxch st(3)
fstp dword [eax + 0x18]
fld dword [esi + 0x1c]
faddp st(1)
fstp dword [eax + 0x1c]
fld dword [ebx + 4]
fmul st(2)
fld dword [ebx]
fmul st(2)
faddp st(1)
fstp dword [esi + 0x18]
fld dword [ebx]
fmulp st(2)
fld dword [ebx + 4]
fmulp st(1)
fsubp st(1)
fstp dword [esi + 0x1c]
fld dword [eax + 0x10]
fld dword [esi + 0x10]
fld st(1)
fsub st(1)
fld dword [eax + 0x14]
fxch st(2)
faddp st(3)
fld dword [esi + 0x14]
fsubr st(2)
fxch st(3)
fstp dword [eax + 0x10]
fld dword [esi + 0x14]
faddp st(2)
fxch st(1)
fstp dword [eax + 0x14]
fld dword [ebx + 0x14]
fmul st(2)
fld dword [ebx + 0x10]
fmul st(2)
faddp st(1)
fstp dword [esi + 0x10]
fld dword [ebx + 0x10]
fmulp st(2)
fld dword [ebx + 0x14]
fmulp st(1)
fsubp st(1)
fstp dword [esi + 0x14]
fld dword [eax + 8]
fld dword [esi + 8]
fld st(1)
fsub st(1)
fld dword [eax + 0xc]
fxch st(2)
faddp st(3)
fld dword [esi + 0xc]
fsubr st(2)
fxch st(3)
fstp dword [eax + 8]
fld dword [esi + 0xc]
faddp st(2)
fxch st(1)
fstp dword [eax + 0xc]
fld dword [ebx + 0x24]
fmul st(2)
fld dword [ebx + 0x20]
fmul st(2)
faddp st(1)
fstp dword [esi + 8]
fld dword [ebx + 0x20]
fmulp st(2)
fld dword [ebx + 0x24]
fmulp st(1)
fsubp st(1)
fstp dword [esi + 0xc]
fld dword [eax]
fld dword [esi]
fld st(1)
fsub st(1)
fld dword [eax + 4]
fxch st(2)
faddp st(3)
fld dword [esi + 4]
fsubr st(2)
fxch st(3)
fstp dword [eax]
fld dword [esi + 4]
faddp st(2)
fxch st(1)
fstp dword [eax + 4]
fld dword [ebx + 0x30]
fmul st(1)
add eax, 0xffffffe0
fld dword [ebx + 0x34]
fmul st(3)
faddp st(1)
fstp dword [esi]
fld dword [ebx + 0x34]
fmulp st(1)
fld dword [ebx + 0x30]
fmulp st(2)
fsubp st(1)
add ebx, 0x40
add esi, 0xffffffe0
cmp esi, edx
jae 0x878248
fstp dword [esi + 0x24]
mov esi, 1
add ebp, 0xfffffff9
test ebp, ebp
jle 0x878532
mov dword [esp + 0x10], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], ecx
xor ebp, ebp
mov ecx, esi
mov eax, 1
shl eax, cl
test eax, eax
mov dword [esp + 0x20], eax
jle 0x878519
mov ecx, esi
mov edi, dword [esp]
sar edi, cl
lea ebx, [edi + edi]
add ebx, ebx
mov ecx, esi
mov edx, 4
sar edi, 1
shl edx, cl
add edi, edi
add edi, edi
add edx, edx
add edx, edx
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], edx
mov edx, ebp
imul edx, ebx
add edx, eax
mov ecx, ebp
imul ecx, ebx
lea eax, [eax + ecx - 0x20]
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], esi
mov edi, dword [esp + 8]
lea esi, [ebx + eax]
mov ecx, dword [esp + 0x18]
lea ecx, [eax + ecx]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x1c]
jmp 0x8783ee
fstp dword [ecx + 0x24]
fld dword [esi + 0x18]
fld st(0)
fld dword [ecx + 0x18]
fsub st(1), st(0)
faddp st(2)
fld dword [esi + 0x1c]
fld dword [ecx + 0x1c]
fsubr st(1)
fxch st(3)
fstp dword [esi + 0x18]
fld dword [ecx + 0x1c]
faddp st(1)
fstp dword [esi + 0x1c]
fld dword [edi + 4]
fmul st(2)
fld dword [edi]
fmul st(2)
faddp st(1)
fstp dword [ecx + 0x18]
fld dword [edi]
fmulp st(2)
fld dword [edi + 4]
fmulp st(1)
fsubp st(1)
add edi, ebp
fstp dword [ecx + 0x1c]
fld dword [esi + 0x10]
fld dword [ecx + 0x10]
fld st(1)
fsub st(1)
fld dword [esi + 0x14]
fxch st(2)
faddp st(3)
fld dword [ecx + 0x14]
fsubr st(2)
fxch st(3)
fstp dword [esi + 0x10]
fld dword [ecx + 0x14]
faddp st(2)
fxch st(1)
fstp dword [esi + 0x14]
fld dword [edi]
fmul st(1)
fld dword [edi + 4]
fmul st(3)
faddp st(1)
fstp dword [ecx + 0x10]
fld dword [edi + 4]
fmulp st(1)
fld dword [edi]
fmulp st(2)
fsubp st(1)
add edi, ebp
fstp dword [ecx + 0x14]
fld dword [esi + 8]
fld dword [ecx + 8]
fld st(1)
fsub st(1)
fld dword [esi + 0xc]
fxch st(2)
faddp st(3)
fld dword [ecx + 0xc]
fsubr st(2)
fxch st(3)
fstp dword [esi + 8]
fld dword [ecx + 0xc]
faddp st(2)
fxch st(1)
fstp dword [esi + 0xc]
fld dword [edi]
fmul st(1)
fld dword [edi + 4]
fmul st(3)
faddp st(1)
fstp dword [ecx + 8]
fld dword [edi + 4]
fmulp st(1)
fld dword [edi]
fmulp st(2)
fsubp st(1)
add edi, ebp
fstp dword [ecx + 0xc]
fld dword [esi]
fld dword [ecx]
fld st(1)
fsub st(1)
fld dword [esi + 4]
fxch st(2)
faddp st(3)
fld dword [ecx + 4]
fsubr st(2)
fxch st(3)
fstp dword [esi]
fld dword [ecx + 4]
faddp st(2)
fxch st(1)
fstp dword [esi + 4]
fld dword [edi]
fmul st(1)
add esi, 0xffffffe0
fld dword [edi + 4]
fmul st(3)
faddp st(1)
fstp dword [ecx]
fld dword [edi + 4]
fmulp st(1)
fld dword [edi]
fmulp st(2)
fsubp st(1)
add edi, ebp
add ecx, 0xffffffe0
cmp ecx, edx
jae 0x8783eb
fstp dword [ecx + 0x24]
mov ebp, dword [esp + 0x14]
add edx, ebx
add eax, ebx
inc ebp
mov ecx, dword [esp + 0x20]
cmp ebp, ecx
jl 0x8783d3
mov esi, dword [esp + 0xc]
inc esi
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jg 0x87837d
mov edx, dword [esp + 4]
mov ecx, dword [esp]
test ecx, ecx
jle 0x878b35
fld dword [0x99a818]
lea eax, [edx + ecx*4]
fld dword [0x99a814]
fld dword [0x99a810]
fld dword [0x99a80c]
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x878565
fstp dword [edx - 4]
fstp dword [edx - 0xc]
fld dword [edx + 0x78]
fld st(0)
fld dword [edx + 0x38]
fsub st(1), st(0)
faddp st(2)
fstp dword [esp + 0x24]
fld dword [edx + 0x7c]
fld dword [edx + 0x3c]
fld st(1)
fsub st(1)
fstp dword [esp + 0x28]
faddp st(1)
fxch st(1)
fstp dword [esp + 0x2c]
fstp dword [esp + 0x30]
fld dword [edx + 0x70]
fld st(0)
fld dword [edx + 0x30]
fsub st(1), st(0)
faddp st(2)
fld dword [edx + 0x74]
fld st(0)
fld dword [edx + 0x34]
fsub st(1), st(0)
faddp st(2)
fxch st(3)
fstp dword [esp + 0x34]
fstp dword [esp + 0x38]
fld dword [0x99a818]
fld st(0)
fmul st(2)
fld dword [0x99a814]
fld st(0)
fmul st(5)
fsubp st(2)
fmul st(3), st(0)
fxch st(2)
fmul st(4), st(0)
fxch st(1)
fstp dword [esp + 0x3c]
fxch st(3)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fld dword [edx + 0x68]
fld st(0)
fld dword [edx + 0x28]
fsub st(1), st(0)
faddp st(2)
fld st(0)
fld dword [edx + 0x6c]
fld st(0)
fld dword [edx + 0x2c]
fsub st(1), st(0)
faddp st(2)
fxch st(4)
fstp dword [esp + 0x44]
fxch st(1)
fsub st(3)
fxch st(3)
faddp st(2)
fstp dword [esp + 0x48]
fld dword [0x99a810]
fmul st(2), st(0)
fmulp st(1)
fxch st(1)
fstp dword [esp + 0x4c]
fstp dword [esp + 0x50]
fld dword [edx + 0x60]
fld st(0)
fld dword [edx + 0x20]
fsub st(1), st(0)
faddp st(2)
fld dword [edx + 0x64]
fld st(0)
fld st(5)
fld dword [edx + 0x24]
fsub st(2), st(0)
faddp st(3)
fxch st(4)
fstp dword [esp + 0x54]
fld st(4)
fmul st(3)
fxch st(2)
fstp dword [esp + 0x58]
fmul st(3), st(0)
fxch st(3)
fsubp st(1)
fstp dword [esp + 0x5c]
fmul st(3)
fxch st(1)
fmul st(2)
faddp st(1)
fstp dword [esp + 0x60]
fld dword [edx + 0x58]
fld st(0)
fld dword [edx + 0x18]
fsub st(1), st(0)
faddp st(2)
fstp dword [esp + 0x64]
fld dword [edx + 0x1c]
fld st(0)
fld dword [edx + 0x5c]
fsub st(1), st(0)
faddp st(2)
fstp dword [esp + 0x68]
fxch st(1)
fstp dword [esp + 0x6c]
fstp dword [esp + 0x70]
fld dword [edx + 0x10]
fld st(0)
fld dword [edx + 0x50]
fsub st(1), st(0)
faddp st(2)
fld st(3)
fld dword [edx + 0x14]
fld st(0)
fld dword [edx + 0x54]
fsub st(1), st(0)
faddp st(2)
fxch st(4)
fstp dword [esp + 0x74]
fld st(4)
fmul st(3)
fxch st(1)
fstp dword [esp + 0x78]
fxch st(1)
fmul st(3)
faddp st(1)
fstp dword [esp + 0x7c]
fmul st(3)
fxch st(1)
fmul st(2)
fsubrp st(1)
fstp dword [esp + 0x80]
fld dword [edx + 8]
fld st(0)
fld dword [edx + 0x48]
fsub st(1), st(0)
faddp st(2)
fld st(0)
fld dword [edx + 0xc]
fld st(0)
fld dword [edx + 0x4c]
fsub st(1), st(0)
faddp st(2)
fxch st(4)
fstp dword [esp + 0x84]
fxch st(1)
fadd st(3)
fxch st(2)
fsubp st(3)
fstp dword [esp + 0x88]
fld dword [0x99a810]
fmul st(1), st(0)
fmulp st(2)
fstp dword [esp + 0x8c]
fstp dword [esp + 0x90]
fld dword [edx]
fld st(0)
fld dword [edx + 0x40]
fsub st(1), st(0)
faddp st(2)
fld dword [edx + 4]
fld st(0)
fld st(5)
fld dword [edx + 0x44]
fsub st(2), st(0)
faddp st(3)
fxch st(4)
fstp dword [esp + 0x94]
fxch st(2)
fmul st(3), st(0)
fxch st(2)
fmul st(4), st(0)
fxch st(1)
fstp dword [esp + 0x98]
fxch st(3)
faddp st(2)
fxch st(3)
fmulp st(2)
fxch st(2)
fmul dword [0x99a80c]
faddp st(1)
fld st(0)
fld dword [esp + 0x60]
fsub st(1), st(0)
fld st(3)
fld dword [esp + 0x5c]
fsub st(1), st(0)
faddp st(5)
fxch st(4)
fstp dword [esp + 0x5c]
faddp st(2)
fld st(0)
fxch st(2)
fstp dword [esp + 0x60]
fxch st(1)
fadd st(2)
fxch st(2)
fsubp st(1)
fld dword [0x99a810]
fmul st(2), st(0)
fmul st(1), st(0)
fxch st(2)
fstp dword [esp + 0x9c]
fstp dword [esp + 0xa0]
fld dword [esp + 0x90]
fld st(0)
fld dword [esp + 0x50]
fsub st(1), st(0)
faddp st(2)
fld dword [esp + 0x4c]
fld st(0)
fld dword [esp + 0x8c]
fsub st(1), st(0)
faddp st(2)
fstp dword [esp + 0xa4]
fstp dword [esp + 0x4c]
fxch st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x3c]
fld st(0)
fld dword [esp + 0x7c]
fsub st(1), st(0)
faddp st(2)
fld st(0)
fld dword [esp + 0x40]
fld st(0)
fld dword [esp + 0x80]
fsub st(1), st(0)
faddp st(2)
fxch st(4)
fstp dword [esp + 0x3c]
fxch st(1)
fsub st(3)
fmul st(5)
fxch st(1)
fstp dword [esp + 0x40]
fxch st(2)
faddp st(1)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x90]
fld dword [esp + 0x24]
fld st(0)
fld dword [esp + 0x68]
fsub st(1), st(0)
faddp st(2)
fld dword [esp + 0x28]
fld st(0)
fld dword [esp + 0x64]
fsub st(1), st(0)
faddp st(2)
fxch st(3)
fstp dword [esp + 0x24]
fld st(1)
fadd st(4)
fxch st(1)
fstp dword [esp + 0x28]
fxch st(3)
fsubp st(1)
fld st(3)
fld dword [esp + 0x9c]
fadd st(1), st(0)
fsubp st(5)
fld st(3)
fadd st(1)
fxch st(1)
fsubp st(4)
fstp dword [edx + 0x18]
fld st(1)
fxch st(3)
fstp dword [edx + 0x10]
fld dword [esp + 0x90]
fld st(0)
fld dword [esp + 0xa0]
fsub st(1), st(0)
faddp st(2)
fld dword [esp + 0xa4]
fsub st(5), st(0)
faddp st(4)
fxch st(4)
fstp dword [esp + 0x9c]
fld st(1)
fadd st(4)
fstp dword [edx]
fxch st(3)
fsubp st(1)
fld st(3)
fxch st(1)
fstp dword [edx + 8]
fld dword [esp + 0x9c]
fadd st(1), st(0)
fsubrp st(4)
fstp dword [edx + 0xc]
fld st(1)
fadd st(1)
fxch st(3)
fstp dword [edx + 4]
fsubrp st(1)
fxch st(1)
fstp dword [edx + 0x1c]
fstp dword [edx + 0x14]
fld dword [esp + 0x24]
fld st(0)
fld dword [esp + 0x4c]
fadd st(1), st(0)
fsubp st(2)
fld dword [esp + 0x3c]
fld st(0)
fld dword [esp + 0x5c]
fadd st(1), st(0)
fsubp st(2)
fld st(2)
fadd st(1)
fxch st(1)
fsubp st(3)
fstp dword [edx + 0x38]
fxch st(1)
fstp dword [edx + 0x30]
fld dword [esp + 0x40]
fld st(0)
fld dword [esp + 0x60]
fsub st(1), st(0)
faddp st(2)
fld dword [esp + 0x28]
fld st(0)
fld dword [esp + 0x50]
fsub st(1), st(0)
faddp st(2)
fstp dword [esp + 0xa4]
fld st(4)
fadd st(2)
fstp dword [edx + 0x20]
fxch st(1)
fsubp st(4)
fld st(2)
fxch st(4)
fstp dword [edx + 0x28]
fld dword [esp + 0xa4]
fadd st(4), st(0)
fsubrp st(3)
fxch st(3)
fstp dword [edx + 0x2c]
fld st(0)
fadd st(3)
fxch st(2)
fstp dword [edx + 0x24]
fsubp st(2)
fstp dword [edx + 0x3c]
fstp dword [edx + 0x34]
fld dword [esp + 0x98]
fld st(0)
fld dword [esp + 0x58]
fsub st(1), st(0)
faddp st(2)
fld dword [esp + 0x94]
fld st(0)
fld dword [esp + 0x54]
fsub st(1), st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x54]
fld st(1)
fadd st(1)
fxch st(3)
fstp dword [esp + 0x58]
fsubp st(1)
fld dword [0x99a810]
fmul st(2), st(0)
fmul st(1), st(0)
fxch st(2)
fstp dword [esp + 0xa4]
fstp dword [esp + 0xa0]
fld dword [esp + 0x88]
fld st(0)
fld dword [esp + 0x48]
fsub st(1), st(0)
faddp st(2)
fld dword [esp + 0x44]
fld st(0)
fld dword [esp + 0x84]
fsub st(1), st(0)
faddp st(2)
fstp dword [esp + 0x9c]
fstp dword [esp + 0x44]
fxch st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x34]
fld st(0)
fld dword [esp + 0x74]
fsub st(1), st(0)
faddp st(2)
fld st(0)
fld dword [esp + 0x38]
fld st(0)
fld dword [esp + 0x78]
fsub st(1), st(0)
faddp st(2)
fxch st(4)
fstp dword [esp + 0x34]
fxch st(1)
fsub st(3)
fmul st(5)
fxch st(1)
fstp dword [esp + 0x38]
fxch st(2)
faddp st(1)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x98]
fld dword [esp + 0x2c]
fld st(0)
fld dword [esp + 0x6c]
fsub st(1), st(0)
faddp st(2)
fld dword [esp + 0x30]
fld st(0)
fld dword [esp + 0x70]
fsub st(1), st(0)
faddp st(2)
fxch st(3)
fstp dword [esp + 0x2c]
fld st(1)
fadd st(4)
fxch st(1)
fstp dword [esp + 0x30]
fxch st(3)
fsubp st(1)
fld st(3)
fld dword [esp + 0xa4]
fadd st(1), st(0)
fsubp st(5)
fld st(3)
fadd st(1)
fxch st(1)
fsubp st(4)
fstp dword [edx + 0x58]
fld st(1)
fxch st(3)
fstp dword [edx + 0x50]
fld dword [esp + 0x98]
fld st(0)
fld dword [esp + 0xa0]
fsub st(1), st(0)
faddp st(2)
fld dword [esp + 0x9c]
fsub st(5), st(0)
faddp st(4)
fxch st(4)
fstp dword [esp + 0xa4]
fld st(1)
fadd st(4)
fstp dword [edx + 0x40]
fxch st(3)
fsubp st(1)
fld st(3)
fxch st(1)
fstp dword [edx + 0x48]
fld dword [esp + 0xa4]
fadd st(1), st(0)
fsubrp st(4)
fstp dword [edx + 0x4c]
fld st(1)
fadd st(1)
fxch st(3)
fstp dword [edx + 0x44]
fsubrp st(1)
fxch st(1)
fstp dword [edx + 0x5c]
fstp dword [edx + 0x54]
fld dword [esp + 0x2c]
fld st(0)
fld dword [esp + 0x44]
fadd st(1), st(0)
fsubp st(2)
fld dword [esp + 0x34]
fld st(0)
fld dword [esp + 0x54]
fadd st(1), st(0)
fsubp st(2)
fld st(2)
fadd st(1)
fxch st(1)
fsubp st(3)
fstp dword [edx + 0x78]
fxch st(1)
fstp dword [edx + 0x70]
fld dword [esp + 0x38]
fld st(0)
fld dword [esp + 0x58]
fsub st(1), st(0)
faddp st(2)
fld dword [esp + 0x30]
fld st(0)
fld dword [esp + 0x48]
fsub st(1), st(0)
faddp st(2)
fstp dword [esp + 0xa4]
fld st(4)
fadd st(2)
fstp dword [edx + 0x60]
fxch st(1)
fsubp st(4)
fxch st(3)
fstp dword [edx + 0x68]
fld st(1)
fld dword [esp + 0xa4]
fadd st(1), st(0)
fsubrp st(3)
fstp dword [edx + 0x6c]
fld st(0)
fadd st(3)
fxch st(2)
fstp dword [edx + 0x64]
fsubp st(2)
add edx, 0x80
cmp edx, eax
jb 0x87855f
fstp dword [edx - 4]
fstp dword [edx - 0xc]
add esp, 0xa8
pop ebx
pop ebp
pop esi
pop edi
ret