Function at 0x100129a0
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 [0x1001a550]
fnstsw ax
test ah, 1
jne 0x10012a54
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 0x10012a85
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 0x10012a19
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 [0x1001a550]
fnstsw ax
test ah, 1
je 0x10012acf
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 0x10012ad7
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 0x10012aae
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 [0x1001a550]
lea edi, [esp + 0xe8]
fnstsw ax
test ah, 1
je 0x10012b63
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 0x10012b6b
mov eax, dword [esp + 0x14]
add ebx, 0x28
dec eax
mov dword [esp + 0x14], eax
jne 0x10012b46
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x98]
lea edi, [esp + 0xf8]
mov ebx, 8
fld qword [edi]
fcomp qword [0x1001a550]
lea esi, [esp + 0xe8]
fnstsw ax
test ah, 1
je 0x10012bd6
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 0x10012bde
add edi, 0x28
dec ebx
jne 0x10012bb9
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x90]
fld qword [0x1001a5a0]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x84], eax
fld qword [0x100184d8]
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 [0x1001a5a0]
add edx, 0x10
add edi, 0xfffffffe
fld qword [edx]
fsub st(1)
fcomp qword [0x1001a550]
fnstsw ax
test ah, 0x41
jne 0x10012cac
test edi, edi
je 0x10012cac
fstp st(0)
fld qword [edx]
mov esi, ecx
add ecx, 5
sub edi, 5
add edx, 0x28
cmp ecx, 0x28
jl 0x10012c91
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 [0x1001f910]
shl edx, 6
add ecx, edx
cmp ebx, 0x28
mov dword [esp + 0x28], edi
mov edx, ebx
fstp qword [esp + 0x78]
jge 0x10012d90
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 [0x1001f910]
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 [0x1001a550]
fnstsw ax
test ah, 0x41
jne 0x10012d79
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 0x10012d7d
fstp st(0)
fstp st(0)
add edx, 5
add edi, 0x28
cmp edx, 0x28
jl 0x10012d12
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x10012c7d
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 [0x1001f910]
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 0x10012e3a
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 [0x1001f910]
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 [0x1001a550]
fnstsw ax
test ah, 0x41
jne 0x10012f3b
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 0x10012f3d
fstp st(0)
add edx, 5
add esi, 0x28
cmp edx, 0x28
jl 0x10012edb
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 0x10012e99
fstp st(0)
fld qword [esp + 0x30]
fmul st(1)
fld qword [esp + 0x18]
fmul st(3)
fsubp st(1)
fcomp qword [0x1001a550]
fnstsw ax
test ah, 0x41
jne 0x10012fb2
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 0x10012fb6
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 0x10012feb
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
fld qword [0x1001a5a0]
cmp ecx, 0x28
jge 0x1001302b
mov edx, dword [esp + 0x3c]
sub eax, ecx
mov edi, eax
fld qword [edx]
fsub st(1)
fcomp qword [0x1001a550]
fnstsw ax
test ah, 0x41
jne 0x1001301d
test edi, edi
je 0x1001301d
fstp st(0)
fld qword [edx]
mov esi, ecx
add ecx, 5
sub edi, 5
add edx, 0x28
cmp ecx, 0x28
jl 0x10013002
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 [0x1001f910]
lea edx, [ecx + edx*8]
xor ecx, ecx
fld st(1)
fadd qword [edi]
fld qword [ebx]
fmul qword [0x1001f910]
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 [0x1001a550]
fnstsw ax
test ah, 0x41
jne 0x100130cc
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 0x100130d0
fstp st(0)
fstp st(0)
add ecx, 5
add edi, 0x28
cmp ecx, 0x28
jl 0x10013063
mov eax, dword [esp + 0x24]
fstp st(0)
dec eax
fstp st(0)
mov dword [esp + 0x24], eax
jne 0x10012fe7
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 [0x1001f910]
add edi, 0x40
add eax, 8
dec ecx
fadd qword [ebx + eax - 8]
fadd qword [edi - 0x40]
fstp qword [esi + eax - 8]
jne 0x1001317f
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 0x100131eb
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 [0x1001f910]
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 [0x1001a550]
fnstsw ax
test ah, 0x41
jne 0x10013284
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 0x10013286
fstp st(0)
add edx, 5
add esi, 0x28
cmp edx, 0x28
jl 0x10013224
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 0x100131e3
fstp st(0)
fld qword [esp + 0x30]
fmul st(1)
fld qword [esp + 0x18]
fmul st(3)
fsubp st(1)
fcomp qword [0x1001a550]
fnstsw ax
test ah, 0x41
jne 0x100132fb
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 0x100132ff
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 0x10012c4e
mov ebx, dword [esp + 0x40]
fstp st(0)
fstp st(0)
fld qword [esp + ebx*8 + 0xe8]
call fcn.10014bc0
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
fld qword [esp + edx*8 + 0xe8]
call fcn.10014bc0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
fld qword [esp + eax*8 + 0xe8]
call fcn.10014bc0
mov esi, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
fld qword [esp + esi*8 + 0xe8]
call fcn.10014bc0
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 0x100133ea
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 0x10013421
cmp eax, 0x28
jge 0x10013446
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 0x1001340c
jmp 0x10013443
cmp eax, 0x28
jge 0x10013446
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 0x10013434
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x78]
test eax, eax
mov eax, dword [esp + 0x44]
jle 0x10013475
cmp eax, 0x28
jge 0x1001349b
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 0x10013463
jmp 0x10013498
cmp eax, 0x28
jge 0x1001349b
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 0x10013488
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2c]
test eax, eax
mov eax, dword [esp + 0x38]
jle 0x100134ca
cmp eax, 0x28
jge 0x100134f0
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 0x100134b8
jmp 0x100134ed
cmp eax, 0x28
jge 0x100134f0
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 0x100134dd
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x10013519
cmp esi, 0x28
jge 0x10013538
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 0x10013507
jmp 0x10013538
cmp esi, 0x28
jge 0x10013538
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 0x10013528
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
jle 0x10013547
mov eax, 1
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x10013552
add eax, 2
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x1001355d
add eax, 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x10013568
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