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

Disassembly:
sub esp, 0x24
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov ecx, 0xd
xor eax, eax
mov edi, esi
sub esp, 8
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], 0xffffff9d
mov dword [esp + 0x18], 1
mov eax, dword [edi]
mov dword [esi + 0x24], eax
fild dword [edi]
fmul dword [0x6b710c]
fldln2
fxch st(1)
fyl2x
fldln2
fld qword [0x69df78]
fyl2x
fdivp st(1)
fadd qword [0x6af0a0]
fstp qword [esp]
call fcn.006822d0
fsub qword [0x6aab58]
call fcn.00681ef4
fild dword [esp + 0x4c]
fild dword [esp + 0x48]
lea ecx, [eax + 1]
mov edx, 1
shl edx, cl
fst qword [esp + 0x28]
mov dword [esi + 0x20], eax
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fld st(2)
fmul dword [0x6b7108]
fmul qword [0x6af0a0]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x6b7100]
fsub qword [0x6b70f8]
fmul st(1)
fisub dword [edi]
call fcn.00681ef4
fild dword [esp + 0x48]
mov edi, eax
mov dword [esi + 0x1c], edi
fadd dword [0x6b7108]
fmul st(3)
fmul qword [0x6af0a0]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x6b7100]
fsub qword [0x6b70f8]
fmul st(1)
fadd qword [0x6af0a0]
call fcn.00681ef4
mov ebp, dword [esp + 0x48]
sub eax, edi
fstp st(0)
lea edi, [ebp*4]
inc eax
fstp st(0)
push edi
mov dword [esi + 0x28], eax
fstp st(0)
call fcn.004cb917
mov dword [esi + 0x10], eax
push edi
call fcn.004cb917
push edi
mov dword [esi + 0x14], eax
call fcn.004cb917
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x58]
add esp, 0x14
cmp eax, 0x6590
mov dword [esi], ebp
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x3f800000
jge 0x66e0a4
mov dword [esi + 0x30], 0
jmp 0x66e0c2
cmp eax, 0x9470
jge 0x66e0b4
mov dword [esi + 0x30], 0x3f70a3d7
jmp 0x66e0c2
cmp eax, 0xb3b0
jle 0x66e0c2
mov dword [esi + 0x30], 0x3fa33333
fild dword [esp + 0x44]
push ebx
xor eax, eax
xor edi, edi
mov ebx, 0x6b159c
fstp qword [esp + 0x2c]
inc eax
sub esp, 8
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul qword [0x6b0dc8]
fsub qword [0x69df78]
fadd qword [0x6b70f8]
fmul qword [0x6b70f0]
fldl2e
fmulp st(1)
fld st(0)
frndint
fxch st(1)
fsub st(1)
f2xm1
fld1
faddp st(1)
fscale
fstp st(1)
fmul qword [esp + 0x2c]
fadd st(0), st(0)
fdiv qword [esp + 0x34]
fadd qword [0x6af0a0]
fstp qword [esp]
call fcn.006822d0
add esp, 8
call fcn.00681ef4
fld dword [ebx - 4]
cmp edi, eax
jge 0x66e165
fld dword [ebx]
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x40], ecx
fsub st(1)
fidiv dword [esp + 0x40]
fstp dword [esp + 0x40]
cmp edi, ebp
jge 0x66e165
mov edx, dword [esi + 0x10]
inc edi
fld st(0)
fadd qword [0x69e250]
cmp edi, eax
fstp dword [edx + edi*4 - 4]
fadd dword [esp + 0x40]
jl 0x66e149
mov eax, dword [esp + 0x38]
add ebx, 4
cmp ebx, 0x6b16f8
fstp st(0)
jl 0x66e0d4
cmp edi, ebp
jge 0x66e18f
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + edi*4 - 4]
lea eax, [eax + edi*4]
inc edi
cmp edi, ebp
mov dword [eax], ecx
jl 0x66e17e
xor eax, eax
xor ebx, ebx
cmp ebp, eax
jle 0x66e377
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
lea ecx, [ebp + ebp]
cdq
idiv ecx
mov ecx, eax
mov edx, ecx
imul edx, ecx
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
imul eax, ebx
fild dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x48]
mov eax, dword [eax + 0x78]
add eax, edi
fmul dword [0x6b70e8]
fld1
cmp eax, ebx
fpatan
fmul qword [0x6b70e0]
fld st(1)
fmul dword [0x6b70d8]
fld1
fpatan
fmul qword [0x6b70d0]
faddp st(1)
fxch st(1)
fmul dword [0x6abe54]
faddp st(1)
fstp dword [esp + 0x1c]
jge 0x66e2a4
mov edi, dword [esp + 0x3c]
mov ebp, ecx
imul ebp, dword [esp + 0x10]
fld dword [esp + 0x1c]
fsub dword [edi + 0x70]
fstp dword [esp + 0x20]
mov edi, edx
mov dword [esp + 0x18], eax
imul edi, dword [esp + 0x10]
mov dword [esp + 0x48], ebp
mov eax, edi
imul eax, dword [esp + 0x10]
fild dword [esp + 0x48]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fmul dword [0x6b70e8]
fld1
fpatan
fmul qword [0x6b70e0]
fld st(1)
fmul dword [0x6b70d8]
fld1
fpatan
fmul qword [0x6b70d0]
faddp st(1)
fxch st(1)
fmul dword [0x6abe54]
faddp st(1)
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x66e2a0
mov eax, dword [esp + 0x10]
add edi, edx
inc eax
add ebp, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x48], ebp
cmp eax, ebx
mov dword [esp + 0x18], eax
jl 0x66e234
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jg 0x66e345
mov edi, dword [esp + 0x3c]
mov edi, dword [edi + 0x7c]
add edi, ebx
mov dword [esp + 0x20], edi
mov edi, ecx
imul edi, eax
mov dword [esp + 0x48], edi
mov edi, edx
imul edi, eax
cmp eax, dword [esp + 0x20]
jl 0x66e32c
mov ebp, edi
imul ebp, eax
fild dword [esp + 0x48]
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x18]
fmul dword [0x6b70e8]
fld1
fpatan
fmul qword [0x6b70e0]
fld st(1)
fmul dword [0x6b70d8]
fld1
fpatan
fmul qword [0x6b70d0]
faddp st(1)
fxch st(1)
fmul dword [0x6abe54]
faddp st(1)
fld dword [esp + 0x1c]
fadd dword [eax + 0x74]
fcompp
fnstsw ax
test ah, 0x41
jne 0x66e484
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x48]
inc eax
add ebp, ecx
add edi, edx
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x44]
cmp eax, ebp
mov dword [esp + 0x14], eax
jle 0x66e2cb
mov edi, dword [esp + 0x10]
shl edi, 0x10
inc ebx
lea eax, [edi + eax - 0x10001]
mov edi, dword [esi + 0x18]
mov dword [edi + ebx*4 - 4], eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
add eax, edx
add edi, ecx
cmp ebx, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edi
jl 0x66e1b5
xor edi, edi
pop ebx
test ebp, ebp
mov dword [esp + 0x40], edi
jle 0x66e3dc
fild dword [esp + 0x40]
mov ecx, dword [esi + 0x20]
mov edx, 1
inc ecx
fadd dword [0x6b7108]
shl edx, cl
fmul qword [esp + 0x28]
mov dword [esp + 0x40], edx
fmul qword [0x6af0a0]
fdiv qword [esp + 0x20]
fldln2
fxch st(1)
fyl2x
fmul qword [0x6b7100]
fsub qword [0x6b70f8]
fild dword [esp + 0x40]
fmulp st(1)
fadd qword [0x6af0a0]
call fcn.00681ef4
mov ecx, dword [esi + 0x14]
inc edi
cmp edi, ebp
mov dword [esp + 0x40], edi
mov dword [ecx + edi*4 - 4], eax
jl 0x66e382
fld qword [esp + 0x28]
fmul qword [0x6af0a0]
mov eax, dword [esp + 0x38]
fdiv qword [esp + 0x20]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
push edx
push ecx
push ebp
push ecx
add eax, 0x24
fstp dword [esp]
push eax
call fcn.0066e510
push 0xc
mov dword [esi + 8], eax
call fcn.004cb917
add esp, 0x18
mov dword [esi + 0xc], eax
xor edi, edi
lea eax, [ebp*4]
push eax
call fcn.004cb917
mov edx, dword [esi + 0xc]
add edi, 4
add esp, 4
cmp edi, 0xc
mov dword [edi + edx - 4], eax
jl 0x66e416
xor edi, edi
test ebp, ebp
mov dword [esp + 0x40], edi
jle 0x66e4fe
fld qword [esp + 0x20]
fadd st(0), st(0)
fild dword [esp + 0x40]
fadd qword [0x6af0a0]
fmul qword [esp + 0x28]
fdiv st(1)
fldln2
fxch st(1)
fyl2x
fmul qword [0x6b7100]
fsub qword [0x6b70f8]
fadd st(0), st(0)
fcom dword [0x6abb10]
fnstsw ax
test ah, 1
je 0x66e491
fstp st(0)
fld dword [0x6abb10]
jmp 0x66e4a6
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
jmp 0x66e345
fcom dword [0x6b70c8]
fnstsw ax
test ah, 1
jne 0x66e4a6
fstp st(0)
fld dword [0x6b70c8]
fld st(0)
call fcn.00681ef4
mov dword [esp + 0x40], eax
xor ecx, ecx
fisub dword [esp + 0x40]
lea eax, [eax*4 + 0x88]
fld st(0)
fsubr qword [0x6aab58]
mov edx, dword [esi + 4]
add ecx, 4
fld dword [edx + eax - 4]
fmul st(1)
fld st(2)
fmul dword [edx + eax]
mov edx, dword [esi + 0xc]
add eax, 0x44
cmp ecx, 0xc
mov edx, dword [ecx + edx - 4]
faddp st(1)
fstp dword [edx + edi*4]
jl 0x66e4c6
inc edi
fstp st(0)
cmp edi, ebp
mov dword [esp + 0x40], edi
fstp st(0)
jl 0x66e449
fstp st(0)
pop edi
pop esi
pop ebp
add esp, 0x24
ret