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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xf0]
cmp eax, 1
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], 0
jl 0x564f1b
fld dword [edi]
add eax, 6
shl eax, 4
fsub dword [eax + ebx]
add eax, ebx
fld dword [edi + 4]
lea ecx, [esp + 0x20]
fsub dword [eax + 4]
fld dword [edi + 8]
push ecx
fsub dword [eax + 8]
lea edx, [esp + 0x34]
push edx
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x28]
mov dword [esp + 0x30], eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fsqrt
fstp dword [esp + 0x1c]
call fcn.00599e10
add esp, 8
mov ecx, dword [ebx + 0xf0]
xor edx, edx
cmp ecx, 2
jl 0x564fc5
fld dword [esp + 0x34]
fmul dword [ebx + 0x14]
fld dword [esp + 0x38]
fmul dword [ebx + 0x18]
faddp st(1)
fld dword [esp + 0x30]
fmul dword [ebx + 0x10]
faddp st(1)
fsubr dword [0x6bda18]
fld dword [esp + 0x14]
fadd dword [ebx + 0x20]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fcom dword [0x6a81e0]
mov dword [esp + 0x18], eax
fnstsw ax
test ah, 0x41
jne 0x564f88
mov eax, dword [ebx + 0x34]
fstp st(0)
test eax, eax
je 0x5651c6
mov dword [eax], edx
mov dword [ebx + 0x34], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
fld dword [esp + 0x18]
fcomp dword [0x6a81d8]
fnstsw ax
test ah, 5
jp 0x564f9e
mov edx, 1
fcomp dword [0x6a81dc]
fnstsw ax
test ah, 5
jp 0x564fb0
mov edx, 1
fld dword [esp + 0x18]
fcomp dword [0x6a81d4]
fnstsw ax
test ah, 0x41
je 0x564fc5
test edx, edx
jne 0x564fd8
cmp ecx, 8
jne 0x564fe9
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea esi, [ecx + 6]
mov ecx, dword [esp + 0x1c]
shl esi, 4
add esi, ebx
mov dword [ebx + 0x20], ecx
jmp 0x56501b
lea esi, [ecx + 7]
shl esi, 4
lea eax, [ecx + 1]
add esi, ebx
cmp eax, 2
mov dword [ebx + 0xf0], eax
jl 0x565014
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x20], edx
push edi
mov edi, dword [ebp + 0x10]
call fcn.00564c30
fld dword [ebp + 0x18]
fmul dword [0x6bdbc8]
call fcn.00666390
mov ecx, dword [ebp + 0xc]
mov byte [esi + 0xf], al
mov eax, dword [esp + 0x14]
push eax
push ecx
lea esi, [ebx + 0x50]
lea edi, [ebx + 0x60]
push esi
push edi
call fcn.0059a510
mov eax, dword [ebx + 0x2c]
push esi
lea edx, [eax + 0x40]
push edi
push edx
add eax, 0x30
push eax
call fcn.0059a5e0
fld dword [edi + 4]
fld dword [edi + 8]
mov eax, dword [esi + 8]
fld dword [esi + 4]
mov dword [esp + 0x3c], eax
fld dword [edi]
mov al, byte [ebp + 0x14]
fadd dword [esi]
add esp, 0x20
test al, al
fstp dword [ebx + 0x100]
fadd st(2)
fstp dword [ebx + 0x104]
fld dword [esp + 0x1c]
fadd st(1)
fstp dword [ebx + 0x108]
fstp st(0)
fstp st(0)
fld dword [ebx + 0x104]
fld dword [ebx + 0x108]
fld dword [ebx + 0x100]
fmul dword [0x6bda38]
fstp dword [ebx + 0x100]
fxch st(1)
fmul dword [0x6bda38]
fstp dword [ebx + 0x104]
fmul dword [0x6bda38]
fstp dword [ebx + 0x108]
je 0x5651c6
fld dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
fchs
fld dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [0x72c9d4]
fxch st(1)
fstp dword [esp + 0x60]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0xc]
fstp dword [esp + 0x64]
mov dword [esp + 0x50], edx
fld dword [eax + 4]
mov edx, ecx
fstp dword [esp + 0x84]
fld dword [eax + 8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [eax]
fstp dword [esp + 0x88]
mov eax, 0x72c9d4
mov dword [esp + 0x5c], 0
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x8c], 0x3f800000
call fcn.0058a1c0
mov edi, eax
cmp ebx, edi
mov dword [esp + 0x1c], edi
je 0x5651c6
push ebx
call fcn.004029e0
mov esi, eax
add esp, 4
test esi, esi
je 0x5651c0
lea edx, [esp + 0x50]
push edx
lea eax, [esi + 0x30]
push eax
mov dword [esi + 0x10], 1
call fcn.00401c70
add esp, 8
mov edi, 0x780500
call fcn.00402b60
push esi
mov esi, 0x72c9cc
call fcn.00565870
mov edi, dword [esp + 0x1c]
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x565180
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14