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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [ebp + 0xc]
push ebx
add eax, 0x80
push esi
mov dword [esp + 0x8c], eax
add eax, 0x40
push edi
lea ebx, [eax + 0x40]
mov dword [esp + 0x88], ebx
lea edx, [ebx + 0x240]
mov dword [esp + 0x94], edx
lea esi, [edx + 0x200]
mov dword [esp + 0x74], esi
lea edi, [esi + 0x200]
mov dword [esp + 0x70], edi
lea eax, [edi + 0x400]
mov dword [esp + 0x5c], eax
add eax, 0x200
mov dword [esp + 0x9c], eax
add eax, 0x200
mov dword [esp + 0x10], eax
add eax, 0x200
mov dword [esp + 0x98], eax
xor ecx, ecx
mov eax, dword [ebp + 8]
fld qword [ecx + eax]
fcomp qword [0x10082b38]
fnstsw ax
test ah, 1
jne 0x10066d44
xor eax, eax
mov dword [esp + ecx + 0xe8], eax
mov dword [esp + ecx + 0x228], eax
mov dword [esp + ecx + 0xec], 0x3ff00000
mov dword [esp + ecx + 0x22c], 0xbff00000
jmp 0x10066d75
xor eax, eax
mov dword [esp + ecx + 0xe8], eax
mov dword [esp + ecx + 0x228], eax
mov eax, dword [ebp + 8]
mov dword [esp + ecx + 0xec], 0xbff00000
mov dword [esp + ecx + 0x22c], 0x3ff00000
fld qword [ecx + eax]
fchs
fstp qword [ecx + eax]
add ecx, 8
cmp ecx, 0x140
jl 0x10066d09
lea eax, [esp + 0xe8]
lea ecx, [ebx + 0x40]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x20], 0x28
mov eax, dword [esp + 0x3c]
lea ebx, [esp + 0xe8]
fld qword [eax]
fcomp qword [0x10082b38]
fnstsw ax
test ah, 1
je 0x10066dbf
lea ebx, [esp + 0x228]
lea eax, [ebx + 0x18]
mov ebx, 8
fld qword [eax - 0x10]
fmul qword [ecx]
add ecx, 8
add edx, 8
add esi, 8
add edi, 8
add eax, 0x28
dec ebx
fstp qword [ecx - 8]
fld qword [eax - 0x30]
fmul qword [edx - 8]
fstp qword [edx - 8]
fld qword [esi - 8]
fmul qword [eax - 0x28]
fstp qword [esi - 8]
fld qword [eax - 0x20]
fmul qword [edi - 8]
fstp qword [edi - 8]
jne 0x10066dc7
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
add ebx, 0x28
dec eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], eax
jne 0x10066d9e
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x9c]
add ecx, 0x200
lea ebx, [esp + 0xf0]
mov dword [esp + 0x14], 8
fld qword [ebx]
fcomp qword [0x10082b38]
lea edi, [esp + 0xe8]
fnstsw ax
test ah, 1
je 0x10066e53
lea edi, [esp + 0x228]
lea eax, [edi + 0x20]
mov edi, 8
fld qword [eax - 0x10]
fmul qword [ecx]
add ecx, 8
add edx, 8
add esi, 8
add eax, 0x28
dec edi
fstp qword [ecx - 8]
fld qword [eax - 0x30]
fmul qword [edx - 8]
fstp qword [edx - 8]
fld qword [eax - 0x28]
fmul qword [esi - 8]
fstp qword [esi - 8]
jne 0x10066e5b
mov eax, dword [esp + 0x14]
add ebx, 0x28
dec eax
mov dword [esp + 0x14], eax
jne 0x10066e36
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x98]
lea edi, [esp + 0xf8]
mov ebx, 8
fld qword [edi]
fcomp qword [0x10082b38]
lea esi, [esp + 0xe8]
fnstsw ax
test ah, 1
je 0x10066ec6
lea esi, [esp + 0x228]
lea eax, [esi + 0x18]
mov esi, 8
fld qword [eax]
fmul qword [ecx]
add ecx, 8
add edx, 8
add eax, 0x28
dec esi
fstp qword [ecx - 8]
fld qword [eax - 0x20]
fmul qword [edx - 8]
fstp qword [edx - 8]
jne 0x10066ece
add edi, 0x28
dec ebx
jne 0x10066ea9
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x90]
fld qword [0x100834f0]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x84], eax
fld qword [0x1007cbf8]
mov esi, dword [esp + 0x20]
lea eax, [edx + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
add eax, 0x18
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x6c], 3
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xbff00000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3ff00000
or edi, 0xffffffff
mov dword [esp + 0x10], 2
mov edx, dword [ebp + 8]
mov ecx, 2
fld qword [0x100834f0]
add edx, 0x10
add edi, 0xfffffffe
fld qword [edx]
fsub st(1)
fcomp qword [0x10082b38]
fnstsw ax
test ah, 0x41
jne 0x10066f9c
test edi, edi
je 0x10066f9c
fstp st(0)
fld qword [edx]
mov esi, ecx
add ecx, 5
sub edi, 5
add edx, 0x28
cmp ecx, 0x28
jl 0x10066f81
mov eax, 0x66666667
mov ecx, dword [ebp + 8]
imul esi
fstp st(0)
fld qword [ecx + esi*8]
fstp qword [esp + 0x60]
sar edx, 1
mov eax, edx
mov ecx, dword [esp + 0x5c]
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x90]
mov edi, esi
fld qword [eax + edx*8]
fmul qword [0x1007cbe8]
shl edx, 6
add ecx, edx
cmp ebx, 0x28
mov dword [esp + 0x28], edi
mov edx, ebx
fstp qword [esp + 0x78]
jge 0x10067080
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
sub ebx, ecx
mov dword [esp + 0x24], ebx
fld qword [esp + 0x60]
fadd qword [edi]
fld qword [ebx + ecx]
fmul qword [0x1007cbe8]
add ecx, 8
fadd qword [esp + 0x78]
fadd qword [ecx - 8]
fstp qword [esp + 0x50]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [esp + 0x18]
fld qword [esp + 0x50]
fmul qword [esp + 0x30]
fsubp st(1)
fcomp qword [0x10082b38]
fnstsw ax
test ah, 0x41
jne 0x10067069
fstp qword [esp + 0x30]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
fstp qword [esp + 0xa0]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
jmp 0x1006706d
fstp st(0)
fstp st(0)
add edx, 5
add edi, 0x28
cmp edx, 0x28
jl 0x10067002
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x10066f6d
mov ecx, dword [esp + 0x4c]
mov eax, 0x66666667
imul ecx
fld qword [esp + 0x18]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], ecx
sar edx, 1
mov ecx, edx
mov ebx, dword [esp + 0x48]
shr ecx, 0x1f
lea edi, [eax + 0x40]
add edx, ecx
lea eax, [esp + 0xa8]
mov esi, edx
mov edx, dword [esp + 0x70]
sub eax, edi
mov dword [esp + 0x10], eax
mov eax, 0x66666667
lea ecx, [edx + 0x200]
imul ebx
sar edx, 1
mov eax, edx
mov dword [esp + 0x60], esi
shr eax, 0x1f
add edx, eax
lea ecx, [ecx + esi*8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x84]
lea eax, [edx*8]
mov edx, eax
mov dword [esp + 0x30], 0
sub edx, ecx
mov dword [esp + 0x34], 0xbff00000
add edx, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0x3ff00000
mov edx, 8
fld qword [edi]
fmul qword [0x1007cbe8]
mov ebx, dword [esp + 0x24]
add ecx, 0x40
add edi, 8
dec edx
fadd qword [ebx + ecx - 0x40]
mov ebx, dword [esp + 0x10]
fadd qword [ecx - 0x40]
fstp qword [ebx + edi - 8]
jne 0x1006712a
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x88]
add edx, 0x40
lea ecx, [ecx + esi*8]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x8c]
sub eax, ecx
xor ebx, ebx
add eax, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x60]
fld qword [esp + 0xa0]
fadd qword [eax]
mov eax, dword [esp + 0x24]
add ecx, 0x40
lea edi, [esp + 0xa8]
fld qword [eax]
fmul qword [0x1007cbe8]
add eax, 8
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
fadd qword [edx + ecx - 0x40]
mov edx, 1
lea esi, [eax + 8]
fadd st(2)
fadd qword [ecx - 0x40]
mov eax, dword [esp + 0x28]
add edi, 8
fld st(1)
fadd qword [esi]
fld qword [eax]
fadd qword [edi - 8]
add eax, 8
mov dword [esp + 0x28], eax
fadd st(2)
fstp qword [esp + 0x50]
fld st(0)
fmulp st(1)
fld st(0)
fmul qword [esp + 0x18]
fld qword [esp + 0x50]
fmul qword [esp + 0x30]
fsubp st(1)
fcomp qword [0x10082b38]
fnstsw ax
test ah, 0x41
jne 0x1006722b
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
fstp qword [esp + 0x30]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edx
jmp 0x1006722d
fstp st(0)
add edx, 5
add esi, 0x28
cmp edx, 0x28
jl 0x100671cb
mov edx, dword [esp + 0x10]
add ebx, 5
fstp st(0)
add edx, 0x28
cmp ebx, 0x28
fstp st(0)
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
jl 0x10067189
fstp st(0)
fld qword [esp + 0x30]
fmul st(1)
fld qword [esp + 0x18]
fmul st(3)
fsubp st(1)
fcomp qword [0x10082b38]
fnstsw ax
test ah, 0x41
jne 0x100672a2
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
fstp st(0)
fstp st(0)
fld qword [esp + 0x30]
fld qword [esp + 0x18]
mov dword [esp + 0x38], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jmp 0x100672a6
mov esi, dword [esp + 0x20]
or eax, 0xffffffff
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xbff00000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3ff00000
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 2
jmp 0x100672db
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
fld qword [0x100834f0]
cmp ecx, 0x28
jge 0x1006731b
mov edx, dword [esp + 0x3c]
sub eax, ecx
mov edi, eax
fld qword [edx]
fsub st(1)
fcomp qword [0x10082b38]
fnstsw ax
test ah, 0x41
jne 0x1006730d
test edi, edi
je 0x1006730d
fstp st(0)
fld qword [edx]
mov esi, ecx
add ecx, 5
sub edi, 5
add edx, 0x28
cmp ecx, 0x28
jl 0x100672f2
mov eax, 0x66666667
mov edi, dword [ebp + 8]
imul esi
fstp st(0)
fld qword [edi + esi*8]
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 0xc]
sar edx, 1
mov ecx, edx
mov dword [esp + 0x28], esi
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x8c]
fld qword [eax + edx*8]
fmul qword [0x1007cbe8]
lea edx, [ecx + edx*8]
xor ecx, ecx
fld st(1)
fadd qword [edi]
fld qword [ebx]
fmul qword [0x1007cbe8]
add edx, 0x40
add ebx, 8
mov dword [esp + 0x60], ebx
fadd st(2)
fadd qword [edx - 0x40]
fstp qword [esp + 0x50]
fld st(0)
fmul st(1)
fld st(0)
fmul qword [esp + 0x18]
fld qword [esp + 0x50]
fmul qword [esp + 0x30]
fsubp st(1)
fcomp qword [0x10082b38]
fnstsw ax
test ah, 0x41
jne 0x100673bc
fstp qword [esp + 0x30]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
fstp qword [esp + 0xa0]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ecx
jmp 0x100673c0
fstp st(0)
fstp st(0)
add ecx, 5
add edi, 0x28
cmp ecx, 0x28
jl 0x10067353
mov eax, dword [esp + 0x24]
fstp st(0)
dec eax
fstp st(0)
mov dword [esp + 0x24], eax
jne 0x100672d7
mov ecx, dword [esp + 0x48]
mov eax, 0x66666667
imul ecx
fld qword [esp + 0x18]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x78], ecx
sar edx, 1
mov ecx, edx
mov eax, 0x66666667
shr ecx, 0x1f
add edx, ecx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x60], edx
mov dword [esp + 0x20], esi
lea ecx, [edx*8]
imul esi
sar edx, 1
mov eax, edx
lea esi, [esp + 0xa8]
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x5c]
shl ecx, 3
lea edi, [eax + edx*8]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x60], edx
mov dword [esp + 0x60], ecx
sub ecx, eax
sub esi, eax
add ebx, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xbff00000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3ff00000
mov ecx, 8
fld qword [eax]
fmul qword [0x1007cbe8]
add edi, 0x40
add eax, 8
dec ecx
fadd qword [ebx + eax - 8]
fadd qword [edi - 0x40]
fstp qword [esi + eax - 8]
jne 0x1006746f
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
add eax, 0x40
mov ebx, 1
lea edx, [ecx + edx*8]
mov ecx, dword [esp + 0x60]
add ecx, eax
mov eax, dword [esp + 0x70]
add eax, 0x200
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
add eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, 0x40
sub eax, ecx
mov dword [esp + 0x60], eax
jmp 0x100674db
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x10]
add edx, 0x40
fld qword [esp + 0xa0]
fadd qword [esi]
fld qword [eax + ecx]
fmul qword [0x1007cbe8]
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], edx
lea edi, [esp + 0xa8]
fadd qword [ecx]
add ecx, 8
lea esi, [eax + 0x10]
fadd st(2)
fadd qword [edx - 0x40]
mov edx, 2
mov eax, dword [esp + 0x28]
add edi, 8
fld st(1)
fadd qword [esi]
fld qword [eax]
fadd qword [edi - 8]
add eax, 8
mov dword [esp + 0x28], eax
fadd st(2)
fstp qword [esp + 0x50]
fld st(0)
fmulp st(1)
fld st(0)
fmul qword [esp + 0x18]
fld qword [esp + 0x50]
fmul qword [esp + 0x30]
fsubp st(1)
fcomp qword [0x10082b38]
fnstsw ax
test ah, 0x41
jne 0x10067574
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
fstp qword [esp + 0x30]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edx
jmp 0x10067576
fstp st(0)
add edx, 5
add esi, 0x28
cmp edx, 0x28
jl 0x10067514
mov edx, dword [esp + 0x10]
add ebx, 5
fstp st(0)
add edx, 0x28
cmp ebx, 0x28
fstp st(0)
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], edx
jl 0x100674d3
fstp st(0)
fld qword [esp + 0x30]
fmul st(1)
fld qword [esp + 0x18]
fmul st(3)
fsubp st(1)
fcomp qword [0x10082b38]
fnstsw ax
test ah, 0x41
jne 0x100675eb
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
fstp st(0)
fstp st(0)
fld qword [esp + 0x30]
fld qword [esp + 0x18]
mov dword [esp + 0x74], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
jmp 0x100675ef
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x88]
inc eax
add edx, 8
cmp eax, 5
mov dword [esp + 0x14], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x3c], edx
jl 0x10066f3e
mov ebx, dword [esp + 0x40]
fstp st(0)
fstp st(0)
fld qword [esp + ebx*8 + 0xe8]
call fcn.100697b0
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
fld qword [esp + edx*8 + 0xe8]
call fcn.100697b0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
fld qword [esp + eax*8 + 0xe8]
call fcn.100697b0
mov esi, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
fld qword [esp + esi*8 + 0xe8]
call fcn.100697b0
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
fild dword [esp + 0x20]
mov ecx, 0x50
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
fstp qword [edx + ebx*8]
fild dword [esp + 0x78]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
test ebx, ebx
fstp qword [edx + ecx*8]
fild dword [esp + 0x2c]
mov ebx, dword [ebp + 0x18]
fstp qword [edx + eax*8]
fild dword [esp + 0x14]
fstp qword [edx + esi*8]
jle 0x100676da
mov ecx, dword [esp + 0x40]
mov edi, ebx
and ecx, 0x1fffffff
shl ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 0x10]
test eax, eax
mov eax, dword [esp + 0x40]
jle 0x10067711
cmp eax, 0x28
jge 0x10067736
mov edi, eax
mov ecx, edx
mov edx, 0x28
lea eax, [ebx + edi*8]
sub edx, edi
mov edi, dword [ecx]
add ecx, 8
mov dword [eax], edi
mov edi, dword [ecx - 4]
mov dword [eax + 4], edi
add eax, 8
dec edx
jne 0x100676fc
jmp 0x10067733
cmp eax, 0x28
jge 0x10067736
mov edi, dword [esp + 0x40]
mov eax, 0x28
sub eax, edi
lea ecx, [ebx + edi*8]
fld qword [edx]
fchs
fstp qword [ecx]
add ecx, 8
add edx, 8
dec eax
jne 0x10067724
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x78]
test eax, eax
mov eax, dword [esp + 0x44]
jle 0x10067765
cmp eax, 0x28
jge 0x1006778b
mov edi, eax
mov ecx, 0x28
sub ecx, edi
lea eax, [ebx + edi*8]
fld qword [eax]
fadd qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x10067753
jmp 0x10067788
cmp eax, 0x28
jge 0x1006778b
mov edi, dword [esp + 0x44]
mov ecx, 0x28
sub ecx, edi
lea eax, [ebx + edi*8]
fld qword [eax]
fsub qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x10067778
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2c]
test eax, eax
mov eax, dword [esp + 0x38]
jle 0x100677ba
cmp eax, 0x28
jge 0x100677e0
mov edi, eax
mov ecx, 0x28
sub ecx, edi
lea eax, [ebx + edi*8]
fld qword [eax]
fadd qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x100677a8
jmp 0x100677dd
cmp eax, 0x28
jge 0x100677e0
mov edi, dword [esp + 0x38]
mov ecx, 0x28
sub ecx, edi
lea eax, [ebx + edi*8]
fld qword [eax]
fsub qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x100677cd
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x10067809
cmp esi, 0x28
jge 0x10067828
mov ecx, 0x28
lea eax, [ebx + esi*8]
sub ecx, esi
fld qword [eax]
fadd qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x100677f7
jmp 0x10067828
cmp esi, 0x28
jge 0x10067828
mov ecx, 0x28
lea eax, [ebx + esi*8]
sub ecx, esi
fld qword [eax]
fsub qword [edx]
add eax, 8
add edx, 8
dec ecx
fstp qword [eax - 8]
jne 0x10067818
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
jle 0x10067837
mov eax, 1
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x10067842
add eax, 2
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x1006784d
add eax, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x10067858
add eax, 8
mov ecx, dword [ebp + 0x1c]
pop edi
mov dword [ecx], eax
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
lea ecx, [edx + edx*2 + 3]
imul dword [esp + 0x34]
sar edx, 1
mov eax, edx
sub esi, ecx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
lea ecx, [edx + esi*8]
imul dword [esp + 0x40]
sar edx, 1
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
pop ebx
lea ecx, [edx + ecx*8]
imul dword [esp + 0x34]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + ecx*8]
mov esp, ebp
pop ebp
ret