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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2c], 0
mov esi, ecx
jne 0x6818c9
mov eax, dword [edi + 8]
fld dword [eax + 0x84]
mov edx, dword [eax + 0x3c]
fstp dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
fld dword [eax + 0x30]
mov dword [esp + 0x50], edx
fld dword [eax + 0x2c]
mov edx, dword [eax + 0x40]
fld dword [eax + 0x30]
mov dword [esp + 0x20], eax
fmul dword [eax + 0x30]
mov dword [esp + 0x54], edx
fld dword [eax + 0x2c]
fmul dword [eax + 0x2c]
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fmul dword [eax + 0x84]
fadd dword [eax + 0x8c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fxch st(2)
fsubrp st(1)
fstp dword [esp + 0x1c]
fldz
fcom st(1)
fnstsw ax
fldz
fld1
test ah, 5
jp 0x681508
fld st(0)
fdivrp st(4)
jmp 0x68150e
fstp st(3)
fld st(0)
fxch st(3)
fxch st(3)
fstp dword [esp + 0x2c]
fld dword [esp + 0x1c]
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 0x41
jne 0x681529
fstp st(0)
fdivp st(1)
jmp 0x68152d
fstp st(1)
fstp st(1)
mov eax, dword [ecx]
fstp dword [esp + 0x28]
mov edx, dword [eax + 8]
call edx
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], ecx
jle 0x6818c9
mov dword [esp + 0x14], ecx
jmp 0x681553
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
fnstcw word [esp + 0xc]
add eax, dword [esp + 0x14]
push 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x6c], ecx
fld dword [esp + 0x6c]
mov ecx, dword [eax + 8]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 4]
fsub dword [ecx + 0x18]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0xc]
mov eax, dword [ecx + 0x68]
fstp dword [esp + 0x6c]
mov dword [esp + 0x78], edx
fld dword [esp + 0x70]
mov edx, dword [ecx + 0x70]
fsub dword [ecx + 0x18]
lea ebx, [edx + eax*8]
movzx eax, word [esp + 0x10]
or eax, 0xc00
fstp dword [esp + 0x70]
fld dword [ecx + 0x18]
fadd dword [esp + 0x74]
fstp dword [esp + 0x74]
fld dword [ecx + 0x18]
fadd dword [esp + 0x78]
fstp dword [esp + 0x78]
fld dword [ecx + 0x1c]
fmul dword [esp + 0x70]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
mov dword [esp + 0x20], eax
fadd qword [0x799100]
fldcw word [esp + 0x20]
fistp qword [esp + 0x34]
mov edi, dword [esp + 0x34]
shl edi, 0x14
fldcw word [esp + 0x10]
fld dword [ecx + 0x1c]
fmul dword [esp + 0x6c]
fnstcw word [esp + 0x10]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
movzx eax, word [esp + 0x10]
fmul qword [0x6e1b30]
or eax, 0xc00
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push ebx
fadd qword [0x7990f8]
push edx
fldcw word [esp + 0x2c]
fistp qword [esp + 0x40]
mov ecx, dword [esp + 0x40]
add edi, ecx
mov dword [esp + 0x2c], edi
fldcw word [esp + 0x1c]
call fcn.006807e0
mov ecx, dword [esi + 4]
mov edi, eax
fld dword [ecx + 0x1c]
fmul dword [esp + 0x84]
fnstcw word [esp + 0x1c]
fstp dword [esp + 0x2c]
movzx eax, word [esp + 0x1c]
fld dword [esp + 0x2c]
fadd qword [0x799100]
or eax, 0xc00
mov dword [esp + 0x2c], eax
fldcw word [esp + 0x2c]
fistp qword [esp + 0x40]
mov edx, dword [esp + 0x40]
shl edx, 0x14
fldcw word [esp + 0x1c]
fld dword [ecx + 0x1c]
fmul dword [esp + 0x80]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
push 0
fmul qword [0x6e1b30]
lea ecx, [esp + 0x30]
fnstcw word [esp + 0x20]
push ecx
movzx eax, word [esp + 0x24]
fadd qword [0x7990f8]
or eax, 0xc00
mov dword [esp + 0x34], eax
push ebx
fldcw word [esp + 0x38]
push edi
fistp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
add edx, eax
mov dword [esp + 0x3c], edx
fldcw word [esp + 0x2c]
call fcn.00680830
add esp, 0x20
mov dword [esp + 0x30], eax
mov ecx, edi
mov dword [esp + 0x1c], edi
cmp edi, eax
je 0x6818b1
mov edx, dword [esi + 4]
fld dword [esp + 0x68]
mov eax, dword [edx + 0x38]
mov ebx, dword [ecx]
mov ecx, dword [eax + ebx*8]
mov dword [esp + 0x40], ecx
fld dword [esp + 0x40]
mov edx, dword [eax + ebx*8 + 4]
fcom st(1)
mov dword [esp + 0x44], edx
fnstsw ax
fstp st(1)
test ah, 1
jne 0x68189a
fld dword [esp + 0x70]
fcompp
fnstsw ax
test ah, 1
jne 0x68189c
fld dword [esp + 0x6c]
fld dword [esp + 0x44]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x68189a
fld dword [esp + 0x74]
fcompp
fnstsw ax
test ah, 1
jne 0x68189c
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push edi
lea edi, [esp + 0x4c]
push edi
lea edi, [esp + 0x20]
push edi
lea edi, [esp + 0x4c]
push edi
add eax, 0xc
push eax
call edx
fld dword [esp + 0x18]
mov edx, dword [esi + 4]
fld dword [edx + 0x18]
fcompp
fnstsw ax
test ah, 0x41
jne 0x68189c
mov eax, dword [edx + 0x30]
test byte [eax + ebx*4], 4
je 0x681796
fldz
jmp 0x68179d
mov ecx, edx
call fcn.0067cc30
fstp dword [esp + 0xc]
mov eax, edx
fld dword [esp + 0x40]
mov ecx, dword [eax + 0x80]
cmp ecx, dword [eax + 0x84]
fsub dword [esp + 0x50]
fstp dword [esp + 0x58]
fld dword [esp + 0x44]
fsub dword [esp + 0x54]
fstp dword [esp + 0x5c]
fld dword [esp + 0x4c]
fmul dword [esp + 0x58]
fld dword [esp + 0x48]
fmul dword [esp + 0x5c]
fsubp st(1)
fstp dword [esp + 0x24]
jl 0x68181f
mov ecx, eax
cmp dword [ecx + 0x80], 0
mov eax, dword [ecx + 0x84]
je 0x6817fa
mov edi, dword [edx + 0x80]
add edi, edi
jmp 0x6817ff
mov edi, 0x100
mov edx, dword [ecx + 0x88]
push edi
push eax
push edx
call fcn.0067d1e0
mov ecx, dword [esi + 4]
mov dword [ecx + 0x88], eax
mov edx, dword [esi + 4]
mov dword [edx + 0x84], edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x88]
lea ecx, [ecx + ecx*2]
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov edx, dword [esi + 4]
fld dword [edx + 0x1c]
fmul dword [esp + 0x18]
fld1
fld st(0)
fsubrp st(2)
fxch st(1)
fstp dword [eax + 8]
fld dword [esp + 0x48]
fchs
fstp dword [esp + 0x60]
mov ecx, dword [esp + 0x60]
fld dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
fchs
fstp dword [esp + 0x64]
mov edx, dword [esp + 0x64]
fld dword [esp + 0x24]
mov dword [eax + 0x10], edx
fld st(0)
fmul dword [esp + 0x28]
fmulp st(1)
fld dword [esp + 0xc]
fadd dword [esp + 0x2c]
faddp st(1)
fdivp st(1)
fstp dword [eax + 0x14]
mov eax, dword [esi + 4]
inc dword [eax + 0x80]
jmp 0x68189c
fstp st(0)
mov ecx, dword [esp + 0x1c]
add ecx, 8
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x30]
jne 0x6816e3
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], 0x1c
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
jl 0x681550
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4