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

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x8c]
mov eax, dword [edi + 0x7c]
test eax, eax
mov dword [esp + 0x28], ecx
jne 0x52eb39
fld dword [edi + 0x54]
fmul dword [ecx + 0x14]
fld dword [edi + 0x50]
fmul dword [ecx + 0x10]
faddp st(1)
fld dword [edi + 0x4c]
fmul dword [ecx + 0xc]
faddp st(1)
fstp dword [esp + 0x4c]
fld dword [edi + 0x60]
fmul dword [ecx + 0x14]
fld dword [edi + 0x5c]
fmul dword [ecx + 0x10]
faddp st(1)
fld dword [edi + 0x58]
fmul dword [ecx + 0xc]
faddp st(1)
fstp dword [esp + 0x50]
fld dword [edi + 0x6c]
fmul dword [ecx + 0x14]
fld dword [edi + 0x68]
fmul dword [ecx + 0x10]
faddp st(1)
fld dword [edi + 0x64]
fmul dword [ecx + 0xc]
faddp st(1)
fstp dword [esp + 0x54]
jmp 0x52eb50
lea eax, [ecx + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov ebx, dword [esp + 0x90]
xor edx, edx
mov dword [esp + 0x1c], edx
lea ecx, [ecx]
mov eax, dword [esp + edx*4 + 0x4c]
mov dword [esp + 0x2c], eax
and eax, 0x7fffffff
mov dword [esp + 0x24], eax
fld dword [esp + 0x24]
fsub dword [edi + edx*4 + 0x70]
fst dword [esp + 0x14]
fcomp dword [0x617db0]
fnstsw ax
test ah, 0x41
jne 0x52eed7
fld dword [ebx + 0x20]
fadd dword [ecx + 4]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x52eed7
fld dword [esp + edx*4 + 0x4c]
mov byte [esp + 0x13], 1
fcom dword [0x617db0]
fnstsw ax
test ah, 5
jp 0x52ebc3
fstp st(0)
fld dword [0x617dc8]
jmp 0x52ebde
fcomp dword [0x617db0]
fnstsw ax
test ah, 0x41
jne 0x52ebd8
fld dword [0x617dbc]
jmp 0x52ebde
fld dword [0x617db0]
fst dword [esp + 0x18]
lea ecx, [edx + edx*2]
fstp dword [esp + 0x24]
lea esi, [edi + ecx*4 + 0x4c]
fld dword [esi + 8]
lea ebp, [ebx + 0x4c]
fmul dword [ebp + 8]
fld dword [esi + 4]
fmul dword [ebp + 4]
faddp st(1)
fld dword [esi]
fmul dword [ebp]
faddp st(1)
fstp dword [esp + 0x20]
lea esp, [esp]
fld dword [esp + 0x20]
fcomp dword [0x617db0]
fnstsw ax
test ah, 5
jp 0x52ec29
fld dword [0x617dc8]
jmp 0x52ec48
fld dword [esp + 0x20]
fcomp dword [0x617db0]
fnstsw ax
test ah, 0x41
jne 0x52ec42
fld dword [0x617dbc]
jmp 0x52ec48
fld dword [0x617db0]
fmul dword [ebx + 0x58]
push ebp
push esi
lea ecx, [esp + 0x84]
fmul dword [esp + 0x2c]
fld st(0)
fmul dword [ebp]
fstp dword [esp + 0x48]
fld st(0)
fmul dword [ebp + 4]
fstp dword [esp + 0x4c]
fmul dword [ebp + 8]
fstp dword [esp + 0x50]
call fcn.00560b90
lea edx, [esp + 0x7c]
push edx
push ebp
lea ecx, [esp + 0x6c]
call fcn.00560b90
lea ecx, [esp + 0x64]
call fcn.00560bd0
fld dword [esp + 0x18]
fmul dword [ebx + 0x5c]
mov edx, dword [esp + 0x28]
fld dword [esp + 0x64]
fmul st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x68]
fmul st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0x6c]
fmul st(1)
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + 0x48]
fmul dword [esi + 8]
fld dword [esp + 0x44]
fmul dword [esi + 4]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esi]
faddp st(1)
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fld dword [esp + 0x14]
and eax, 0x7fffffff
mov dword [esp + 0x34], eax
fsub dword [esp + 0x34]
fst dword [esp + 0x14]
fcomp dword [edx + 4]
fnstsw ax
test ah, 0x41
jp 0x52ee65
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
jl 0x52ed15
xor ecx, ecx
jmp 0x52ed16
inc ecx
fld dword [esp + 0x48]
lea eax, [ecx + ecx*2]
fmul dword [edi + eax*4 + 0x54]
lea eax, [edi + eax*4 + 0x4c]
fld dword [esp + 0x44]
fmul dword [eax + 4]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [eax]
faddp st(1)
fsubr dword [esp + ecx*4 + 0x4c]
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
and eax, 0x7fffffff
mov dword [esp + 0x30], eax
fld dword [esp + 0x30]
fsub dword [edi + ecx*4 + 0x70]
fcomp dword [0x617db0]
fnstsw ax
test ah, 0x41
jp 0x52ee65
cmp ecx, 2
jl 0x52ed6d
xor ecx, ecx
jmp 0x52ed6e
inc ecx
fld dword [esp + 0x48]
lea eax, [ecx + ecx*2]
fmul dword [edi + eax*4 + 0x54]
lea eax, [edi + eax*4 + 0x4c]
fld dword [esp + 0x44]
fmul dword [eax + 4]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [eax]
faddp st(1)
fsubr dword [esp + ecx*4 + 0x4c]
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
and eax, 0x7fffffff
mov dword [esp + 0x30], eax
fld dword [esp + 0x30]
fsub dword [edi + ecx*4 + 0x70]
fcomp dword [0x617db0]
fnstsw ax
test ah, 0x41
jp 0x52ee65
fld dword [esp + 0x40]
mov eax, dword [esp + 0x14]
fadd dword [ebx + 8]
lea ecx, [esp + 0x70]
push ecx
push eax
fstp dword [esp + 0x48]
lea ecx, [esp + 0x48]
fld dword [esp + 0x4c]
push ecx
fadd dword [ebx + 0xc]
push ebx
lea eax, [esp + 0x68]
push eax
fstp dword [esp + 0x58]
push edi
fld dword [esp + 0x60]
mov ecx, edx
fadd dword [ebx + 0x10]
fstp dword [esp + 0x60]
fld dword [esp + 0x30]
fmul dword [esp + 0x2c]
fld st(0)
fmul dword [esi]
fld st(1)
fmul dword [esi + 4]
fstp dword [esp + 0x74]
fxch st(1)
fmul dword [esi + 8]
fstp dword [esp + 0x78]
fadd dword [esp + 0x58]
fstp dword [esp + 0x70]
fld dword [esp + 0x74]
fadd dword [esp + 0x5c]
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fadd dword [esp + 0x60]
fstp dword [esp + 0x78]
fld dword [esp + 0x30]
fmul dword [esi]
fstp dword [esp + 0x88]
fld dword [esp + 0x30]
fmul dword [esi + 4]
fstp dword [esp + 0x8c]
fld dword [esp + 0x30]
fmul dword [esi + 8]
fstp dword [esp + 0x90]
call fcn.0052ddf0
mov edx, dword [esp + 0x28]
mov al, byte [esp + 0x13]
test al, al
je 0x52eecf
mov ecx, dword [esp + 0x20]
mov eax, ecx
and eax, 0x7fffffff
mov dword [esp + 0x30], eax
fld dword [esp + 0x30]
mov dword [esp + 0x38], ecx
fmul dword [ebx + 0x58]
fadd st(0), st(0)
fadd dword [esp + 0x14]
fcomp dword [edx + 4]
fnstsw ax
test ah, 0x41
jp 0x52eecf
mov eax, dword [esp + 0x1c]
fld dword [esp + 0x24]
mov ecx, dword [esp + eax*4 + 0x4c]
fchs
mov edx, ecx
fstp dword [esp + 0x24]
and edx, 0x7fffffff
mov dword [esp + 0x30], edx
fld dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
fsub dword [edi + eax*4 + 0x70]
mov byte [esp + 0x13], 0
fstp dword [esp + 0x14]
jmp 0x52ec10
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc edx
cmp edx, 3
mov dword [esp + 0x1c], edx
jl 0x52eb60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 8