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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [ebp - 0x48], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], edx
mov edx, dword [eax + 8]
sub ecx, 6
test ecx, ecx
mov dword [ebp - 0x10], edx
jle 0xcaa27d
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
lea ebx, [esi + edx*4]
mov edx, dword [ebp - 0x10]
sar eax, 1
lea eax, [esi + eax*4 - 0x20]
fld dword [ebx - 8]
fld dword [eax + 0x18]
fld st(1)
fsub st(1)
fld dword [ebx - 4]
fld dword [eax + 0x1c]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ebx - 8]
fxch st(1)
fadd dword [eax + 0x1c]
fstp dword [ebx - 4]
fld dword [edx + 4]
fmul st(2)
fld dword [edx]
fmul st(2)
faddp st(1)
fstp dword [eax + 0x18]
fxch st(1)
fmul dword [edx]
fxch st(1)
fmul dword [edx + 4]
fsubp st(1)
fstp dword [eax + 0x1c]
fld dword [ebx - 0x10]
fld dword [eax + 0x10]
fld st(1)
fsub st(1)
fld dword [ebx - 0xc]
fld dword [eax + 0x14]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ebx - 0x10]
fxch st(1)
fadd dword [eax + 0x14]
fstp dword [ebx - 0xc]
fld dword [edx + 0x14]
fmul st(2)
fld dword [edx + 0x10]
fmul st(2)
faddp st(1)
fstp dword [eax + 0x10]
fxch st(1)
fmul dword [edx + 0x10]
fxch st(1)
fmul dword [edx + 0x14]
fsubp st(1)
fstp dword [eax + 0x14]
fld dword [ebx - 0x18]
fld dword [eax + 8]
fld st(1)
fsub st(1)
fld dword [ebx - 0x14]
fld dword [eax + 0xc]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ebx - 0x18]
fxch st(1)
fadd dword [eax + 0xc]
fstp dword [ebx - 0x14]
fld dword [edx + 0x24]
fmul st(2)
fld dword [edx + 0x20]
fmul st(2)
faddp st(1)
fstp dword [eax + 8]
fxch st(1)
fmul dword [edx + 0x20]
fxch st(1)
fmul dword [edx + 0x24]
fsubp st(1)
fstp dword [eax + 0xc]
fld dword [ebx - 0x20]
fld dword [eax]
fld st(1)
fsub st(1)
fld dword [ebx - 0x1c]
fld dword [eax + 4]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ebx - 0x20]
fxch st(1)
fadd dword [eax + 4]
fstp dword [ebx - 0x1c]
sub ebx, 0x20
fld dword [edx + 0x34]
fmul st(2)
fld dword [edx + 0x30]
fmul st(2)
faddp st(1)
fstp dword [eax]
fxch st(1)
fmul dword [edx + 0x30]
fxch st(1)
fmul dword [edx + 0x34]
add edx, 0x40
fsubp st(1)
fstp dword [eax + 4]
sub eax, 0x20
cmp dword [ebp - 0x44], eax
jbe 0xcaa16b
sub ecx, 1
test ecx, ecx
mov dword [ebp - 0x14], ecx
jle 0xcaa472
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 1
movzx ecx, byte [ebp - 0x3c]
mov eax, 4
mov edx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x38], 0
shl eax, cl
sar edx, cl
mov ecx, dword [ebp - 0x44]
lea esi, [edx*4]
mov dword [ebp - 0x34], esi
sar edx, 1
add ecx, dword [ebp - 0x34]
lea esi, [eax*4]
lea eax, [esi + eax*8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x44]
add edi, eax
lea edx, [ecx + edx*4 - 0x20]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
lea ecx, [eax + esi]
mov dword [ebp - 0xc8], ecx
add edx, esi
mov dword [ebp - 0xc4], edx
mov edx, dword [ebp - 0x20]
xor ebx, ebx
mov ecx, dword [ebp - 0x24]
lea esi, [esi]
fld dword [ecx - 8]
fld dword [edx + 0x18]
fld st(1)
mov eax, dword [ebp - 0x10]
fsub st(1)
fld dword [ecx - 4]
fld dword [edx + 0x1c]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ecx - 8]
fxch st(1)
fadd dword [edx + 0x1c]
fstp dword [ecx - 4]
fld st(1)
fmul dword [ebx + eax + 4]
fld dword [ebx + eax]
fmul st(2)
faddp st(1)
fstp dword [edx + 0x18]
fxch st(1)
fmul dword [ebx + eax]
fxch st(1)
fmul dword [ebx + eax + 4]
mov eax, dword [ebp - 0xc4]
fsubp st(1)
fstp dword [edx + 0x1c]
fld dword [ecx - 0x10]
fld dword [edx + 0x10]
fld st(1)
fsub st(1)
fld dword [ecx - 0xc]
fld dword [edx + 0x14]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ecx - 0x10]
fxch st(1)
fadd dword [edx + 0x14]
fstp dword [ecx - 0xc]
fld st(1)
fmul dword [ebx + eax + 4]
fld dword [ebx + eax]
fmul st(2)
faddp st(1)
fstp dword [edx + 0x10]
fxch st(1)
fmul dword [ebx + eax]
fxch st(1)
fmul dword [ebx + eax + 4]
fsubp st(1)
fstp dword [edx + 0x14]
fld dword [ecx - 0x18]
fld dword [edx + 8]
fld st(1)
fsub st(1)
fld dword [ecx - 0x14]
fld dword [edx + 0xc]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ecx - 0x18]
fxch st(1)
fadd dword [edx + 0xc]
fstp dword [ecx - 0x14]
mov eax, dword [ebp - 0x10]
add eax, ebx
fld dword [eax + esi*2 + 4]
fmul st(2)
fld dword [eax + esi*2]
fmul st(2)
faddp st(1)
fstp dword [edx + 8]
fxch st(1)
fmul dword [eax + esi*2]
fxch st(1)
fmul dword [eax + esi*2 + 4]
fsubp st(1)
fstp dword [edx + 0xc]
fld dword [ecx - 0x20]
fld dword [edx]
fld st(1)
fsub st(1)
fld dword [ecx - 0x1c]
fld dword [edx + 4]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ecx - 0x20]
fxch st(1)
fadd dword [edx + 4]
fstp dword [ecx - 0x1c]
sub ecx, 0x20
fld dword [ebx + edi + 4]
fmul st(2)
fld dword [ebx + edi]
fmul st(2)
faddp st(1)
fstp dword [edx]
fxch st(1)
fmul dword [ebx + edi]
fxch st(1)
fmul dword [ebx + edi + 4]
add ebx, dword [ebp - 0xc8]
fsubp st(1)
fstp dword [edx + 4]
sub edx, 0x20
cmp edx, dword [ebp - 0x1c]
jae 0xcaa300
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x38], 1
mov ecx, dword [ebp - 0x40]
add dword [ebp - 0x24], edx
add dword [ebp - 0x20], edx
add dword [ebp - 0x1c], edx
cmp dword [ebp - 0x38], ecx
jl 0xcaa2f5
sub dword [ebp - 0x14], 1
je 0xcaa472
add dword [ebp - 0x3c], 1
movzx ecx, byte [ebp - 0x3c]
mov dword [ebp - 0x40], 1
shl dword [ebp - 0x40], cl
mov esi, dword [ebp - 0x40]
test esi, esi
jg 0xcaa299
sub dword [ebp - 0x14], 1
jne 0xcaa44f
mov ebx, dword [ebp - 0x48]
test ebx, ebx
jle 0xcaa9ee
mov edx, dword [ebp - 0x44]
xor eax, eax
fld dword [edx + 0x78]
add eax, 0x20
fld dword [edx + 0x38]
fld dword [edx + 0x7c]
fld dword [edx + 0x3c]
fsubr st(1)
fstp dword [ebp - 0x30]
fld st(2)
fadd st(2)
fstp dword [ebp - 0x4c]
fadd dword [edx + 0x3c]
fstp dword [ebp - 0x50]
fsubp st(1)
fstp dword [ebp - 0x54]
fld dword [edx + 0x70]
fld dword [edx + 0x30]
fld st(1)
fsub st(1)
fld dword [edx + 0x74]
fld dword [edx + 0x34]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ebp - 0x58]
fxch st(1)
fadd dword [edx + 0x34]
fstp dword [ebp - 0x5c]
fld dword [0x12bee04]
fmul st(1)
fstp dword [ebp - 0x60]
fld dword [0x12bee08]
fmul st(2)
fadd dword [ebp - 0x60]
fstp dword [ebp - 0x60]
fld dword [0x12bee0c]
fmul st(1), st(0)
fxch st(2)
fmul dword [0x12bee04]
faddp st(1)
fstp dword [ebp - 0x64]
fld dword [edx + 0x68]
fld dword [edx + 0x28]
fld st(1)
fsub st(1)
fld dword [edx + 0x6c]
fld dword [edx + 0x2c]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ebp - 0x68]
fxch st(1)
fadd dword [edx + 0x2c]
fst dword [ebp - 0x6c]
fstp dword [edx + 0x6c]
fld st(0)
fsub st(2)
fld dword [0x12bee10]
fmulp st(1)
fstp dword [ebp - 0x70]
faddp st(1)
fmul dword [0x12bee10]
fld dword [edx + 0x60]
fld dword [edx + 0x20]
fld st(1)
fsub st(1)
fld dword [edx + 0x64]
fld dword [edx + 0x24]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ebp - 0x74]
fxch st(1)
fadd dword [edx + 0x24]
fst dword [ebp - 0x78]
fstp dword [edx + 0x64]
fld st(0)
fmul st(4)
fld dword [0x12bee14]
fld st(3)
fmul st(1)
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x7c]
fxch st(2)
fmul st(4)
fxch st(1)
fmul dword [0x12bee04]
faddp st(1)
fld dword [edx + 0x58]
fld dword [edx + 0x18]
fld dword [edx + 0x1c]
fsub dword [edx + 0x5c]
fstp dword [ebp - 0x18]
fld st(1)
fadd st(1)
fstp dword [ebp - 0x80]
fld dword [edx + 0x5c]
fadd dword [edx + 0x1c]
fstp dword [edx + 0x5c]
fsubp st(1)
fstp dword [edx + 0x1c]
fld dword [edx + 0x10]
fld dword [edx + 0x50]
fld st(1)
fsub st(1)
fld dword [edx + 0x14]
fsub dword [edx + 0x54]
fxch st(3)
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x84]
fld dword [edx + 0x54]
fadd dword [edx + 0x14]
fstp dword [edx + 0x54]
fld dword [0x12bee04]
fmul st(2)
fstp dword [ebp - 0x88]
fld st(0)
fmul st(6)
fadd dword [ebp - 0x88]
fstp dword [ebp - 0x88]
fxch st(1)
fmul st(5)
fxch st(1)
fmulp st(3)
faddp st(2)
fxch st(1)
fstp dword [edx + 0x14]
fld dword [edx + 8]
fld dword [edx + 0x48]
fld st(1)
fsub st(1)
fld dword [edx + 0xc]
fsub dword [edx + 0x4c]
fxch st(3)
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x8c]
fld dword [edx + 0x4c]
fadd dword [edx + 0xc]
fst dword [ebp - 0x90]
fstp dword [edx + 0x4c]
fld st(1)
fadd st(1)
fmul dword [0x12bee10]
fxch st(2)
fsubrp st(1)
fmul dword [0x12bee10]
fst dword [edx + 0xc]
fld dword [edx + 0x40]
fld dword [edx]
fsub st(1)
fld dword [edx + 4]
fsub dword [edx + 0x44]
fxch st(2)
fadd dword [edx]
fstp dword [ebp - 0x94]
fld dword [edx + 0x44]
fadd dword [edx + 4]
fst dword [ebp - 0x98]
fstp dword [edx + 0x44]
fxch st(6)
fmul st(1)
fld dword [0x12bee04]
fmul st(7)
faddp st(1)
fxch st(1)
fmul dword [0x12bee04]
fxch st(6)
fmul dword [0x12bee08]
faddp st(6)
fxch st(5)
fst dword [edx + 4]
fsub st(3)
fld dword [ebp - 0x7c]
fsubr st(6)
fxch st(6)
fadd dword [ebp - 0x7c]
fxch st(4)
fadd dword [edx + 4]
fstp dword [edx + 0x24]
fld st(0)
fadd st(6)
fstp dword [ebp - 0x9c]
fld dword [0x12bee10]
fmul dword [ebp - 0x9c]
fstp dword [ebp - 0x9c]
fsubrp st(5)
fxch st(4)
fmul dword [0x12bee10]
fstp dword [edx + 4]
fxch st(3)
fsub st(2)
fld dword [ebp - 0x70]
fadd st(4)
fstp dword [ebp - 0xa0]
fxch st(2)
fadd dword [edx + 0xc]
fstp dword [edx + 0x2c]
fxch st(2)
fsubr dword [ebp - 0x70]
fst dword [ebp - 0x70]
fstp dword [edx + 0xc]
fld dword [ebp - 0x60]
fsub dword [ebp - 0x88]
fld dword [ebp - 0x64]
fsub dword [edx + 0x14]
fld dword [ebp - 0x60]
fadd dword [ebp - 0x88]
fstp dword [ebp - 0xa4]
fld dword [ebp - 0x64]
fadd dword [edx + 0x14]
fstp dword [ebp - 0xa8]
fld st(1)
fsub st(1)
fmul dword [0x12bee10]
fxch st(2)
faddp st(1)
fmul dword [0x12bee10]
fld dword [ebp - 0x30]
fsub dword [edx + 0x1c]
fld dword [ebp - 0x54]
fadd dword [ebp - 0x18]
fld dword [ebp - 0x30]
fadd dword [edx + 0x1c]
fstp dword [ebp - 0xac]
fld dword [ebp - 0x54]
fsub dword [ebp - 0x18]
fld st(0)
fadd st(6)
fxch st(1)
fsubrp st(6)
fxch st(5)
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x9c]
fadd st(4)
fxch st(4)
fsub dword [ebp - 0x9c]
fld st(5)
fadd st(5)
fstp dword [edx + 0x18]
fxch st(5)
fsubrp st(4)
fxch st(3)
fstp dword [edx + 0x10]
fld dword [edx + 4]
fsubr st(2)
fld dword [edx + 0xc]
fsubr st(2)
fld dword [ebp - 0x2c]
fadd st(2)
fstp dword [edx]
fxch st(1)
fsubr dword [ebp - 0x2c]
fst dword [ebp - 0x2c]
fstp dword [edx + 8]
fxch st(2)
fadd dword [edx + 4]
fxch st(1)
fadd dword [edx + 0xc]
fld st(2)
fadd st(5)
fstp dword [edx + 0xc]
fxch st(2)
fsubrp st(4)
fxch st(3)
fstp dword [edx + 4]
fld st(0)
fadd st(3)
fstp dword [edx + 0x1c]
fsubrp st(2)
fxch st(1)
fstp dword [edx + 0x14]
fld dword [ebp - 0xa0]
fadd st(1)
fxch st(1)
fsub dword [ebp - 0xa0]
fld dword [ebp - 0xa4]
fadd st(3)
fld dword [ebp - 0xa4]
fsubrp st(4)
fld st(2)
fadd st(1)
fstp dword [edx + 0x38]
fsubp st(2)
fxch st(1)
fstp dword [edx + 0x30]
fld dword [ebp - 0xa8]
fsub dword [edx + 0x24]
fld dword [ebp - 0xac]
fsub dword [edx + 0x2c]
fld st(2)
fadd st(2)
fstp dword [edx + 0x20]
fxch st(2)
fsubrp st(1)
fstp dword [edx + 0x28]
fld dword [ebp - 0xa8]
fadd dword [edx + 0x24]
fld dword [ebp - 0xac]
fadd dword [edx + 0x2c]
fld st(2)
fadd st(4)
fstp dword [edx + 0x2c]
fxch st(2)
fsubrp st(3)
fxch st(2)
fstp dword [edx + 0x24]
fld st(0)
fadd st(2)
fstp dword [edx + 0x3c]
fsubrp st(1)
fstp dword [edx + 0x34]
fld dword [ebp - 0x98]
fsub dword [edx + 0x64]
fld dword [ebp - 0x94]
fsub dword [ebp - 0x74]
fld dword [ebp - 0x94]
fadd dword [ebp - 0x74]
fstp dword [ebp - 0xb0]
fld dword [ebp - 0x78]
fadd dword [edx + 0x44]
fstp dword [edx + 0x64]
fld st(1)
fadd st(1)
fmul dword [0x12bee10]
fxch st(2)
fsubrp st(1)
fmul dword [0x12bee10]
fstp dword [edx + 0x44]
fld dword [ebp - 0x90]
fsub dword [edx + 0x6c]
fld dword [ebp - 0x68]
fadd dword [ebp - 0x8c]
fstp dword [ebp - 0xb4]
fld dword [ebp - 0x6c]
fadd dword [edx + 0x4c]
fstp dword [edx + 0x6c]
fld dword [ebp - 0x68]
fsub dword [ebp - 0x8c]
fstp dword [edx + 0x4c]
fld dword [ebp - 0x58]
fsub dword [ebp - 0x84]
fld dword [ebp - 0x5c]
fsub dword [edx + 0x54]
fld dword [ebp - 0x58]
fadd dword [ebp - 0x84]
fstp dword [ebp - 0xb8]
fld dword [ebp - 0x5c]
fadd dword [edx + 0x54]
fstp dword [ebp - 0xbc]
fld st(1)
fsub st(1)
fmul dword [0x12bee10]
fxch st(2)
faddp st(1)
fmul dword [0x12bee10]
fld dword [ebp - 0x50]
fsub dword [edx + 0x5c]
fld dword [ebp - 0x4c]
fadd dword [ebp - 0x80]
fld dword [ebp - 0x50]
fadd dword [edx + 0x5c]
fstp dword [ebp - 0xc0]
fld dword [ebp - 0x4c]
fsub dword [ebp - 0x80]
fld st(0)
fadd st(6)
fxch st(1)
fsubrp st(6)
fxch st(5)
fstp dword [ebp - 0x28]
fld st(3)
fadd st(6)
fxch st(4)
fsubrp st(6)
fld st(4)
fadd st(4)
fstp dword [edx + 0x58]
fxch st(4)
fsubrp st(3)
fxch st(2)
fstp dword [edx + 0x50]
fld dword [edx + 0x44]
fsubr st(1)
fld dword [edx + 0x4c]
fsubr st(3)
fld dword [ebp - 0x28]
fadd st(2)
fstp dword [edx + 0x40]
fxch st(1)
fsubr dword [ebp - 0x28]
fst dword [ebp - 0x28]
fstp dword [edx + 0x48]
fxch st(1)
fadd dword [edx + 0x44]
fxch st(2)
fadd dword [edx + 0x4c]
fld st(1)
fadd st(5)
fstp dword [edx + 0x4c]
fxch st(1)
fsubrp st(4)
fxch st(3)
fstp dword [edx + 0x44]
fld st(2)
fadd st(1)
fstp dword [edx + 0x5c]
fsubp st(2)
fxch st(1)
fstp dword [edx + 0x54]
fld dword [ebp - 0xb4]
fadd st(1)
fxch st(1)
fsub dword [ebp - 0xb4]
fld dword [ebp - 0xb8]
fadd dword [ebp - 0xb0]
fld dword [ebp - 0xb8]
fsub dword [ebp - 0xb0]
fld st(3)
fadd st(2)
fstp dword [edx + 0x78]
fxch st(3)
fsubrp st(1)
fstp dword [edx + 0x70]
fld dword [ebp - 0xbc]
fsub dword [edx + 0x64]
fld dword [ebp - 0xc0]
fsub dword [edx + 0x6c]
fld st(2)
fadd st(2)
fstp dword [edx + 0x60]
fxch st(2)
fsubrp st(1)
fstp dword [edx + 0x68]
fld dword [ebp - 0xbc]
fadd dword [edx + 0x64]
fld dword [ebp - 0xc0]
fadd dword [edx + 0x6c]
fld st(2)
fadd st(4)
fstp dword [edx + 0x6c]
fxch st(2)
fsubrp st(3)
fxch st(2)
fstp dword [edx + 0x64]
fld st(0)
fadd st(2)
fstp dword [edx + 0x7c]
fsubrp st(1)
fstp dword [edx + 0x74]
sub edx, 0xffffff80
cmp dword [ebp - 0x48], eax
jg 0xcaa482
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret