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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x70
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x48], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x28], edx
mov ebx, dword [eax + 4]
lea esi, [ebx - 6]
test esi, esi
jle 0x50a333
mov eax, ecx
mov edx, dword [ebp - 0x40]
lea ecx, [edx + ecx*4 - 0x20]
sar eax, 1
lea eax, [edx + eax*4 - 0x20]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x40]
fld dword [ecx + 0x18]
fld dword [eax + 0x18]
fld st(1)
fsub st(1)
fld dword [ecx + 0x1c]
fld dword [eax + 0x1c]
fsubr st(1)
fxch st(3)
faddp st(4)
fxch st(3)
fstp dword [ecx + 0x18]
fxch st(2)
fadd dword [eax + 0x1c]
fstp dword [ecx + 0x1c]
fld dword [edx + 4]
fmul st(1)
fld dword [edx]
fmul st(3)
faddp st(1)
fstp dword [eax + 0x18]
fmul dword [edx]
fxch st(1)
fmul dword [edx + 4]
fsubp st(1)
fstp dword [eax + 0x1c]
fld dword [ecx + 0x10]
fld dword [eax + 0x10]
fld st(1)
fsub st(1)
fld dword [ecx + 0x14]
fld dword [eax + 0x14]
fsubr st(1)
fxch st(3)
faddp st(4)
fxch st(3)
fstp dword [ecx + 0x10]
fxch st(2)
fadd dword [eax + 0x14]
fstp dword [ecx + 0x14]
fld dword [edx + 0x14]
fmul st(1)
fld dword [edx + 0x10]
fmul st(3)
faddp st(1)
fstp dword [eax + 0x10]
fmul dword [edx + 0x10]
fxch st(1)
fmul dword [edx + 0x14]
fsubp st(1)
fstp dword [eax + 0x14]
fld dword [ecx + 8]
fld dword [eax + 8]
fld st(1)
fsub st(1)
fld dword [ecx + 0xc]
fld dword [eax + 0xc]
fsubr st(1)
fxch st(3)
faddp st(4)
fxch st(3)
fstp dword [ecx + 8]
fxch st(2)
fadd dword [eax + 0xc]
fstp dword [ecx + 0xc]
fld dword [edx + 0x24]
fmul st(1)
fld dword [edx + 0x20]
fmul st(3)
faddp st(1)
fstp dword [eax + 8]
fmul dword [edx + 0x20]
fxch st(1)
fmul dword [edx + 0x24]
fsubp st(1)
fstp dword [eax + 0xc]
fld dword [ecx]
fld dword [eax]
fld st(1)
fsub st(1)
fld dword [ecx + 4]
fld dword [eax + 4]
fsubr st(1)
fxch st(3)
faddp st(4)
fxch st(3)
fstp dword [ecx]
fxch st(2)
fadd dword [eax + 4]
fstp dword [ecx + 4]
fld dword [edx + 0x34]
fmul st(1)
fld dword [edx + 0x30]
fmul st(3)
faddp st(1)
fstp dword [eax]
fmul dword [edx + 0x30]
fxch st(1)
fmul dword [edx + 0x34]
fsubp st(1)
fstp dword [eax + 4]
sub ecx, 0x20
sub eax, 0x20
add edx, 0x40
cmp edi, eax
jbe 0x50a22c
dec esi
jle 0x50a50a
sub ebx, 7
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x3c], 1
nop
mov eax, 1
mov cl, byte [ebp - 0x3c]
shl eax, cl
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x50a4fa
mov eax, dword [ebp - 0x48]
sar eax, cl
mov ebx, eax
sar ebx, 1
mov esi, 4
shl esi, cl
lea edx, [esi*4]
lea ecx, [eax*4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax*4 - 0x20]
mov dword [ebp - 0x20], eax
lea ebx, [ecx + ebx*4 - 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x28]
add eax, edx
mov dword [ebp - 0x30], eax
lea ecx, [esi*8]
lea eax, [ecx + edx]
lea edx, [eax + edx]
mov dword [ebp - 0x10], edx
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], ecx
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
lea esi, [esi]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
nop
fld dword [edx + 0x18]
fld dword [eax + 0x18]
fld st(1)
fsub st(1)
fld dword [edx + 0x1c]
fld dword [eax + 0x1c]
fsubr st(1)
fxch st(3)
faddp st(4)
fxch st(3)
fstp dword [edx + 0x18]
fxch st(2)
fadd dword [eax + 0x1c]
fstp dword [edx + 0x1c]
fld dword [ecx + 4]
fmul st(1)
fld dword [ecx]
fmul st(3)
faddp st(1)
fstp dword [eax + 0x18]
fmul dword [ecx]
fxch st(1)
fmul dword [ecx + 4]
fsubp st(1)
fstp dword [eax + 0x1c]
fld dword [edx + 0x10]
fld dword [eax + 0x10]
fld st(1)
fsub st(1)
fld dword [edx + 0x14]
fld dword [eax + 0x14]
fsubr st(1)
fxch st(3)
faddp st(4)
fxch st(3)
fstp dword [edx + 0x10]
fxch st(2)
fadd dword [eax + 0x14]
fstp dword [edx + 0x14]
fld dword [edi + 4]
fmul st(1)
fld dword [edi]
fmul st(3)
faddp st(1)
fstp dword [eax + 0x10]
fmul dword [edi]
fxch st(1)
fmul dword [edi + 4]
fsubp st(1)
fstp dword [eax + 0x14]
fld dword [edx + 8]
fld dword [eax + 8]
fld st(1)
fsub st(1)
fld dword [edx + 0xc]
fld dword [eax + 0xc]
fsubr st(1)
fxch st(3)
faddp st(4)
fxch st(3)
fstp dword [edx + 8]
fxch st(2)
fadd dword [eax + 0xc]
fstp dword [edx + 0xc]
fld dword [esi + 4]
fmul st(1)
fld dword [esi]
fmul st(3)
faddp st(1)
fstp dword [eax + 8]
fmul dword [esi]
fxch st(1)
fmul dword [esi + 4]
fsubp st(1)
fstp dword [eax + 0xc]
fld dword [edx]
fld dword [eax]
fld st(1)
fsub st(1)
fld dword [edx + 4]
fld dword [eax + 4]
fsubr st(1)
fxch st(3)
faddp st(4)
fxch st(3)
fstp dword [edx]
fxch st(2)
fadd dword [eax + 4]
fstp dword [edx + 4]
fld dword [ebx + 4]
fmul st(1)
fld dword [ebx]
fmul st(3)
faddp st(1)
fstp dword [eax]
fmul dword [ebx]
fxch st(1)
fmul dword [ebx + 4]
fsubp st(1)
fstp dword [eax + 4]
add ecx, dword [ebp - 0x10]
sub edx, 0x20
sub eax, 0x20
add edi, dword [ebp - 0x10]
add esi, dword [ebp - 0x10]
add ebx, dword [ebp - 0x10]
cmp dword [ebp - 0x14], eax
jbe 0x50a3d4
inc dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x20], ecx
add dword [ebp - 0x18], ecx
add dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x24], eax
jne 0x50a3c0
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x3c], edx
je 0x50a50a
inc dword [ebp - 0x3c]
jmp 0x50a348
mov eax, dword [ebp - 0x48]
test eax, eax
jle 0x50a9b7
mov eax, dword [ebp - 0x40]
xor edx, edx
mov ecx, dword [ebp - 0x48]
lea esi, [esi]
fld dword [eax + 0x78]
fld dword [eax + 0x38]
fld st(1)
fsub st(1)
fstp dword [ebp - 0x4c]
fld dword [eax + 0x7c]
fld dword [eax + 0x3c]
fld st(1)
fsub st(1)
fstp dword [ebp - 0x50]
fxch st(3)
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x40]
faddp st(1)
fstp dword [ebp - 0x48]
fld dword [eax + 0x70]
fld dword [eax + 0x30]
fld st(1)
fsub st(1)
fld dword [eax + 0x74]
fld dword [eax + 0x34]
fld st(1)
fsub st(1)
fxch st(5)
faddp st(4)
fxch st(3)
fstp dword [ebp - 0x38]
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x3c]
fld dword [0x5a5d20]
fmul st(1)
fld dword [0x5a5d24]
fmul st(3)
faddp st(1)
fstp dword [ebp - 0x20]
fld dword [0x5a5d28]
fmul st(1), st(0)
fxch st(2)
fmul dword [0x5a5d20]
faddp st(1)
fstp dword [ebp - 0x24]
fld dword [eax + 0x68]
fld dword [eax + 0x28]
fld st(1)
fsub st(1)
fld dword [eax + 0x6c]
fld dword [eax + 0x2c]
fld st(1)
fsub st(1)
fxch st(5)
faddp st(4)
fxch st(3)
fstp dword [ebp - 0x30]
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x34]
fld st(0)
fsub st(2)
fld dword [0x5a5d2c]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x18]
fxch st(1)
faddp st(2)
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x1c]
fld dword [eax + 0x60]
fld dword [eax + 0x20]
fld st(1)
fsub st(1)
fld dword [eax + 0x64]
fld dword [eax + 0x24]
fld st(1)
fsub st(1)
fxch st(5)
faddp st(4)
fxch st(3)
fstp dword [ebp - 0x28]
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x2c]
fld st(0)
fmul st(4)
fld dword [0x5a5d30]
fld st(3)
fmul st(1)
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x10]
fxch st(2)
fmul st(4)
fxch st(1)
fmul dword [0x5a5d20]
faddp st(1)
fstp dword [ebp - 0x14]
fld dword [eax + 0x58]
fld dword [eax + 0x18]
fld st(1)
fsub st(1)
fstp dword [ebp - 0x6c]
fld dword [eax + 0x1c]
fld dword [eax + 0x5c]
fld st(1)
fsub st(1)
fstp dword [ebp - 0x68]
fxch st(3)
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x70]
faddp st(1)
fstp dword [ebp - 0x74]
fld dword [eax + 0x10]
fld dword [eax + 0x50]
fld st(1)
fsub st(1)
fld dword [eax + 0x14]
fld dword [eax + 0x54]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ebp - 0x78]
fxch st(1)
fadd dword [eax + 0x54]
fstp dword [ebp - 0x54]
fld dword [0x5a5d20]
fmul st(2)
fstp dword [ebp - 0x44]
fld st(0)
fmul st(5)
fadd dword [ebp - 0x44]
fstp dword [ebp - 0x44]
fxch st(1)
fmul st(4)
fxch st(2)
fmulp st(1)
faddp st(1)
fld dword [eax + 8]
fld dword [eax + 0x48]
fld st(1)
fsub st(1)
fld dword [eax + 0xc]
fld dword [eax + 0x4c]
fsubr st(1)
fxch st(4)
faddp st(3)
fxch st(2)
fstp dword [ebp - 0x7c]
fxch st(1)
fadd dword [eax + 0x4c]
fstp dword [ebp - 0x58]
fld st(0)
fadd st(2)
fmul st(4)
fxch st(1)
fsubp st(2)
fxch st(1)
fmul st(3)
fld dword [eax]
fld dword [eax + 0x40]
fsubr st(1)
fld dword [eax + 4]
fsub dword [eax + 0x44]
fxch st(2)
fadd dword [eax + 0x40]
fstp dword [ebp - 0x5c]
fld dword [eax + 4]
fadd dword [eax + 0x44]
fstp dword [ebp - 0x60]
fxch st(6)
fmul st(1)
fld dword [0x5a5d20]
fmul st(7)
faddp st(1)
fxch st(1)
fmul dword [0x5a5d20]
fxch st(6)
fmul dword [0x5a5d24]
faddp st(6)
fld dword [ebp - 0x14]
fsubr st(6)
fld dword [ebp - 0x10]
fsubr st(2)
fxch st(2)
fadd dword [ebp - 0x10]
fstp dword [ebp - 0x10]
fxch st(6)
fadd dword [ebp - 0x14]
fstp dword [ebp - 0x14]
fld st(5)
fadd st(1)
fmul st(5)
fxch st(1)
fsubp st(6)
fxch st(5)
fmul st(4)
fld dword [ebp - 0x1c]
fsubr st(2)
fld dword [ebp - 0x18]
fsub st(4)
fstp dword [ebp - 0x64]
fxch st(3)
fadd dword [ebp - 0x18]
fstp dword [ebp - 0x18]
fxch st(1)
fadd dword [ebp - 0x1c]
fstp dword [ebp - 0x1c]
fld dword [ebp - 0x20]
fsub dword [ebp - 0x44]
fld dword [ebp - 0x24]
fsub st(4)
fld dword [ebp - 0x20]
fadd dword [ebp - 0x44]
fstp dword [ebp - 0x20]
fxch st(4)
fadd dword [ebp - 0x24]
fstp dword [ebp - 0x24]
fld st(0)
fsub st(4)
fmul st(5)
fxch st(4)
faddp st(1)
fmul st(4)
fld dword [ebp - 0x4c]
fsub dword [ebp - 0x68]
fld dword [ebp - 0x50]
fsub dword [ebp - 0x6c]
fstp dword [ebp - 0x44]
fld dword [ebp - 0x4c]
fadd dword [ebp - 0x68]
fstp dword [ebp - 0x4c]
fld dword [ebp - 0x50]
fadd dword [ebp - 0x6c]
fstp dword [ebp - 0x50]
fld st(3)
fadd st(1)
fxch st(4)
fsubp st(1)
fld st(6)
fadd st(5)
fxch st(5)
fsubrp st(7)
fld st(3)
fadd st(5)
fstp dword [eax + 0x18]
fxch st(3)
fsubrp st(4)
fxch st(3)
fstp dword [eax + 0x10]
fld st(2)
fsub st(1)
fld dword [ebp - 0x44]
fsub dword [ebp - 0x64]
fld st(3)
fadd st(2)
fstp dword [eax]
fxch st(1)
fsubp st(3)
fxch st(2)
fstp dword [eax + 8]
faddp st(2)
fld dword [ebp - 0x64]
fadd dword [ebp - 0x44]
fld st(4)
fadd st(2)
fstp dword [eax + 0xc]
fxch st(4)
fsubp st(1)
fstp dword [eax + 4]
fld st(0)
fadd st(3)
fstp dword [eax + 0x1c]
fsubp st(2)
fxch st(1)
fstp dword [eax + 0x14]
fld dword [ebp - 0x18]
fadd dword [ebp - 0x4c]
fld dword [ebp - 0x4c]
fsub dword [ebp - 0x18]
fld dword [ebp - 0x10]
fadd dword [ebp - 0x20]
fld dword [ebp - 0x20]
fsub dword [ebp - 0x10]
fld st(3)
fadd st(2)
fstp dword [eax + 0x38]
fxch st(3)
fsubrp st(1)
fstp dword [eax + 0x30]
fld dword [ebp - 0x24]
fsub dword [ebp - 0x14]
fld dword [ebp - 0x50]
fsub dword [ebp - 0x1c]
fld st(2)
fadd st(2)
fstp dword [eax + 0x20]
fxch st(1)
fsubp st(2)
fxch st(1)
fstp dword [eax + 0x28]
fld dword [ebp - 0x14]
fadd dword [ebp - 0x24]
fld dword [ebp - 0x1c]
fadd dword [ebp - 0x50]
fld st(3)
fadd st(3)
fstp dword [eax + 0x2c]
fxch st(3)
fsubp st(2)
fxch st(1)
fstp dword [eax + 0x24]
fld st(0)
fadd st(2)
fstp dword [eax + 0x3c]
fsubp st(1)
fstp dword [eax + 0x34]
fld dword [ebp - 0x60]
fsub dword [ebp - 0x2c]
fld dword [ebp - 0x5c]
fsub dword [ebp - 0x28]
fld dword [ebp - 0x28]
fadd dword [ebp - 0x5c]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x2c]
fadd dword [ebp - 0x60]
fstp dword [ebp - 0x2c]
fld st(1)
fadd st(1)
fmul st(3)
fxch st(2)
fsubrp st(1)
fmul st(2)
fld dword [ebp - 0x58]
fsub dword [ebp - 0x34]
fld dword [ebp - 0x30]
fsub dword [ebp - 0x7c]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x30]
fadd dword [ebp - 0x7c]
fstp dword [ebp - 0x30]
fld dword [ebp - 0x34]
fadd dword [ebp - 0x58]
fstp dword [ebp - 0x34]
fld dword [ebp - 0x38]
fsub dword [ebp - 0x78]
fld dword [ebp - 0x3c]
fsub dword [ebp - 0x54]
fld dword [ebp - 0x38]
fadd dword [ebp - 0x78]
fstp dword [ebp - 0x38]
fld dword [ebp - 0x3c]
fadd dword [ebp - 0x54]
fstp dword [ebp - 0x3c]
fld st(1)
fsub st(1)
fmul st(6)
fxch st(1)
faddp st(2)
fxch st(1)
fmulp st(5)
fld dword [ebp - 0x40]
fsub dword [ebp - 0x70]
fld dword [ebp - 0x48]
fsub dword [ebp - 0x74]
fld dword [ebp - 0x40]
fadd dword [ebp - 0x70]
fstp dword [ebp - 0x40]
fld dword [ebp - 0x48]
fadd dword [ebp - 0x74]
fstp dword [ebp - 0x48]
fld st(3)
fadd st(2)
fxch st(4)
fsubp st(2)
fld st(5)
fadd st(3)
fxch st(6)
fsubp st(3)
fld st(3)
fadd st(6)
fstp dword [eax + 0x58]
fxch st(5)
fsubp st(3)
fxch st(2)
fstp dword [eax + 0x50]
fld st(4)
fsub st(3)
fld dword [ebp - 0x10]
fsubr st(5)
fld st(3)
fadd st(2)
fstp dword [eax + 0x40]
fxch st(3)
fsubrp st(1)
fstp dword [eax + 0x48]
fxch st(4)
faddp st(2)
fxch st(2)
fadd dword [ebp - 0x10]
fld st(3)
fadd st(3)
fstp dword [eax + 0x4c]
fxch st(3)
fsubp st(2)
fxch st(1)
fstp dword [eax + 0x44]
fld st(0)
fadd st(2)
fstp dword [eax + 0x5c]
fsubp st(1)
fstp dword [eax + 0x54]
fld dword [ebp - 0x30]
fadd dword [ebp - 0x40]
fld dword [ebp - 0x40]
fsub dword [ebp - 0x30]
fld dword [ebp - 0x28]
fadd dword [ebp - 0x38]
fld dword [ebp - 0x38]
fsub dword [ebp - 0x28]
fld st(3)
fadd st(2)
fstp dword [eax + 0x78]
fxch st(3)
fsubrp st(1)
fstp dword [eax + 0x70]
fld dword [ebp - 0x3c]
fsub dword [ebp - 0x2c]
fld dword [ebp - 0x48]
fsub dword [ebp - 0x34]
fld st(2)
fadd st(2)
fstp dword [eax + 0x60]
fxch st(1)
fsubp st(2)
fxch st(1)
fstp dword [eax + 0x68]
fld dword [ebp - 0x2c]
fadd dword [ebp - 0x3c]
fld dword [ebp - 0x34]
fadd dword [ebp - 0x48]
fld st(3)
fadd st(3)
fstp dword [eax + 0x6c]
fxch st(3)
fsubp st(2)
fxch st(1)
fstp dword [eax + 0x64]
fld st(0)
fadd st(2)
fstp dword [eax + 0x7c]
fsubp st(1)
fstp dword [eax + 0x74]
add edx, 0x20
sub eax, 0xffffff80
cmp ecx, edx
jg 0x50a520
add esp, 0x70
pop ebx
pop esi
pop edi
leave
ret