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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
lea esi, [eax*8]
mov dword [esp + 0x5c], ecx
push esi
call edi
push esi
mov dword [esp + 0x48], eax
call edi
push esi
mov dword [esp + 0x44], eax
call edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x94], eax
add esp, 0xc
lea eax, [ebx - 1]
mov ecx, esi
cmp eax, esi
mov dword [esp + 0x28], ecx
jge 0x10015a97
mov ecx, eax
mov dword [esp + 0x28], ecx
lea edx, [esi - 2]
mov eax, ebx
cmp edx, ebx
mov dword [esp + 0x3c], eax
jge 0x10015aaa
mov eax, edx
mov dword [esp + 0x3c], eax
test eax, eax
jge 0x10015ab4
xor eax, eax
mov dword [esp + 0x3c], eax
cmp eax, ecx
mov dword [esp + 0x24], ecx
jle 0x10015ac2
mov ecx, eax
mov dword [esp + 0x24], ecx
cmp ecx, 1
jl 0x10015fea
mov eax, dword [esp + 0x24]
mov ecx, 1
cmp eax, ecx
mov dword [esp + 0x44], ecx
jl 0x10015fea
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
lea eax, [edx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
sub eax, edx
mov dword [esp + 0x48], eax
cmp ecx, dword [esp + 0x28]
jg 0x10015c01
fld qword [0x10021718]
cmp ecx, ebx
jg 0x10015b46
lea edx, [esi + 1]
mov eax, dword [ebp + 8]
imul edx, ecx
sub edx, esi
lea edi, [esi*8]
lea edx, [eax + edx*8 - 8]
mov eax, ebx
sub eax, ecx
inc eax
fld qword [edx]
fld st(0)
fmul st(1)
add edx, edi
dec eax
faddp st(2)
fstp st(0)
jne 0x10015b37
fsqrt
mov edx, dword [esp + 0x2c]
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fcomp qword [0x10021718]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [edx], eax
mov dword [edx + 4], edi
fnstsw ax
test ah, 0x40
jne 0x10015bfb
mov edx, dword [esp + 0x1c]
mov edi, dword [ebp + 8]
lea edx, [edx + ecx - 1]
mov dword [esp + 0x10], edx
fld qword [edi + edx*8]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x10015bbb
fld qword [esp + 0x30]
mov eax, dword [esp + 0x2c]
fabs
fld st(0)
fstp qword [eax]
fld qword [edi + edx*8]
fcomp qword [0x10021718]
fnstsw ax
test ah, 1
je 0x10015bb9
mov eax, dword [esp + 0x2c]
fchs
fstp qword [eax]
jmp 0x10015bbb
fstp st(0)
cmp ecx, ebx
jg 0x10015beb
lea eax, [esi + 1]
sub ebx, ecx
imul eax, ecx
sub eax, esi
lea edx, [esi*8]
inc ebx
lea eax, [edi + eax*8 - 8]
mov edi, dword [esp + 0x2c]
fld qword [eax]
fdiv qword [edi]
fstp qword [eax]
add eax, edx
dec ebx
jne 0x10015bd5
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x10]
fld qword [edi + edx*8]
fadd qword [0x100215b0]
fstp qword [edi + edx*8]
mov edx, dword [esp + 0x2c]
fld qword [edx]
fchs
fstp qword [edx]
lea edx, [ecx + 1]
cmp edx, esi
jg 0x10015d3a
mov eax, dword [esp + 0x20]
mov edi, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x28]
jg 0x10015d05
mov eax, dword [esp + 0x2c]
fld qword [eax]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x10015d05
mov eax, dword [ebp + 0xc]
fld qword [0x10021718]
cmp ecx, eax
jg 0x10015c99
lea eax, [esi + 1]
mov ebx, dword [ebp + 8]
imul eax, ecx
sub eax, esi
lea eax, [ebx + eax*8 - 8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
add eax, edi
lea ebx, [ebx + eax*8 - 8]
mov eax, dword [ebp + 0xc]
sub eax, ecx
inc eax
jmp 0x10015c71
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
fld qword [ebx]
fmul qword [edi]
lea edi, [esi*8]
add ebx, edi
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0xc]
add ebx, edi
dec eax
faddp st(1)
mov dword [esp + 0xc], ebx
jne 0x10015c6d
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
add eax, ecx
fdiv qword [ebx + eax*8 - 8]
cmp ecx, dword [ebp + 0xc]
fchs
fstp qword [esp + 0x60]
jg 0x10015d05
mov eax, dword [esp + 0x1c]
add edi, eax
mov eax, ebx
lea ebx, [esi + 1]
imul ebx, ecx
sub ebx, esi
lea edi, [eax + edi*8 - 8]
lea eax, [eax + ebx*8 - 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
inc eax
jmp 0x10015cd9
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
fld qword [esp + 0x60]
fmul qword [ebx]
lea ebx, [esi*8]
fadd qword [edi]
fstp qword [edi]
add edi, ebx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0xc]
add edi, ebx
dec eax
mov dword [esp + 0xc], edi
jne 0x10015cd5
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add edi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + edi*8 - 8]
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov ebx, dword [ebp + 8]
add eax, 8
mov edi, dword [ebx + edi*8 - 4]
mov dword [esp + 0x18], eax
mov dword [eax - 4], edi
mov edi, dword [esp + 0x14]
inc edi
cmp edi, esi
mov dword [esp + 0x14], edi
jle 0x10015c1a
cmp ecx, dword [esp + 0x28]
jg 0x10015db2
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jg 0x10015db2
lea edi, [eax*8]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], edi
lea edi, [eax + 1]
imul edi, ecx
sub edi, eax
mov eax, dword [ebp + 0x14]
lea edi, [eax + edi*8 - 8]
lea eax, [esi + 1]
imul eax, ecx
sub eax, esi
mov dword [esp + 0x18], edi
lea eax, [ebx + eax*8 - 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
inc eax
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx]
mov dword [edi], ebx
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x14]
lea edi, [esi*8]
add ebx, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
add edi, ebx
dec eax
mov dword [esp + 0x18], edi
jne 0x10015d7e
cmp ecx, dword [esp + 0x3c]
jg 0x10015fb5
fld qword [0x10021718]
mov ebx, dword [esp + 0x20]
cmp edx, esi
jg 0x10015de1
mov eax, esi
mov edi, ebx
sub eax, edx
inc eax
fld qword [edi]
fld st(0)
fmul st(1)
add edi, 8
dec eax
faddp st(2)
fstp st(0)
jne 0x10015dd1
fsqrt
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fcomp qword [0x10021718]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [ebx - 8], eax
mov dword [ebx - 4], edi
fnstsw ax
test ah, 0x40
jne 0x10015e5f
fld qword [ebx]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x10015e36
fld qword [esp + 0x30]
fabs
fst qword [ebx - 8]
fld qword [ebx]
fcomp qword [0x10021718]
fnstsw ax
test ah, 1
je 0x10015e34
fchs
fstp qword [ebx - 8]
jmp 0x10015e36
fstp st(0)
cmp edx, esi
jg 0x10015e51
mov eax, esi
sub eax, edx
inc eax
mov edi, dword [esp + 0x20]
fld qword [ebx]
fdiv qword [edi - 8]
add ebx, 8
dec eax
fstp qword [ebx - 8]
jne 0x10015e3f
mov ebx, dword [esp + 0x20]
fld qword [ebx]
fadd qword [0x100215b0]
fstp qword [ebx]
fld qword [ebx - 8]
mov edi, dword [ebp + 0xc]
fchs
fst qword [esp + 0x60]
fstp qword [ebx - 8]
cmp edx, edi
jg 0x10015f82
fld qword [esp + 0x60]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x10015f82
sub edi, edx
xor eax, eax
lea ecx, [edi + edi + 2]
mov edi, dword [esp + 0x48]
and ecx, 0x3ffffffe
add edi, ebx
rep stosd dword es:[edi], eax
mov eax, edx
cmp edx, esi
mov dword [esp + 0x14], eax
jg 0x10015f09
mov dword [esp + 0xc], ebx
cmp edx, dword [ebp + 0xc]
jg 0x10015ef5
lea edi, [edx - 1]
mov ecx, dword [esp + 0x88]
imul edi, esi
add edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ecx + edx*8 - 8]
lea edi, [eax + edi*8 - 8]
mov eax, dword [ebp + 0xc]
sub eax, edx
inc eax
mov ebx, dword [esp + 0xc]
add ecx, 8
fld qword [ebx]
fmul qword [edi]
lea ebx, [esi*8]
add edi, ebx
dec eax
fadd qword [ecx - 8]
fstp qword [ecx - 8]
jne 0x10015ed4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
inc eax
add edi, 8
cmp eax, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
jle 0x10015eaf
mov eax, edx
cmp edx, esi
mov dword [esp + 0x14], eax
jg 0x10015f7a
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov ebx, dword [ebp + 0xc]
cmp edx, ebx
jg 0x10015f66
mov ecx, dword [esp + 0x88]
lea edi, [ecx + edx*8 - 8]
lea ecx, [edx - 1]
imul ecx, esi
add ecx, eax
mov eax, dword [ebp + 8]
lea ecx, [eax + ecx*8 - 8]
mov eax, ebx
sub eax, edx
inc eax
mov ebx, dword [esp + 0xc]
fld qword [edi]
fmul qword [ebx]
mov ebx, dword [esp + 0x20]
add edi, 8
fdiv qword [ebx]
lea ebx, [esi*8]
fsubr qword [ecx]
fstp qword [ecx]
add ecx, ebx
dec eax
jne 0x10015f41
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
inc eax
add edi, 8
cmp eax, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
jle 0x10015f1b
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x20]
cmp edx, esi
jg 0x10015fb9
mov eax, dword [esp + 0x1c]
mov edi, ebx
add eax, ecx
mov ecx, dword [ebp + 0x18]
add eax, esi
lea ecx, [ecx + eax*8 - 8]
mov eax, esi
sub eax, edx
inc eax
mov ebx, dword [edi]
add edi, 8
mov dword [ecx], ebx
mov ebx, dword [edi - 4]
mov dword [ecx + 4], ebx
lea ebx, [esi*8]
add ecx, ebx
dec eax
jne 0x10015f9c
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add eax, esi
mov ecx, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add ebx, 8
add edi, 8
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 0xc]
cmp ecx, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], edi
jle 0x10015b08
lea eax, [ebx + 1]
mov edx, esi
cmp eax, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
jge 0x10016001
mov edx, eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x28]
cmp eax, esi
jge 0x1001602d
lea edx, [esi + 1]
mov ecx, dword [ebp + 8]
imul edx, eax
mov edi, dword [ecx + edx*8]
mov ecx, dword [esp + 0x40]
mov dword [ecx + eax*8], edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + edx*8 + 4]
mov dword [ecx + eax*8 + 4], edx
mov edx, dword [esp + 0x20]
jmp 0x10016031
mov ecx, dword [esp + 0x40]
cmp ebx, edx
jge 0x1001603f
xor edi, edi
mov dword [ecx + edx*8 - 8], edi
mov dword [ecx + edx*8 - 4], edi
mov edi, dword [esp + 0x3c]
lea ecx, [edi + 1]
cmp ecx, edx
jge 0x10016074
mov eax, edi
mov ecx, dword [ebp + 8]
imul eax, esi
add eax, edx
mov edx, dword [ecx + eax*8 - 8]
mov ecx, dword [esp + 0x38]
mov dword [ecx + edi*8], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*8 - 4]
mov edx, dword [esp + 0x20]
mov dword [ecx + edi*8 + 4], eax
mov eax, dword [esp + 0x28]
jmp 0x10016078
mov ecx, dword [esp + 0x38]
xor edi, edi
cmp ebx, esi
mov dword [ecx + edx*8 - 8], edi
mov dword [ecx + edx*8 - 4], edi
mov edi, ebx
mov dword [esp + 0x2c], edi
jle 0x10016092
mov edi, esi
mov dword [esp + 0x2c], edi
lea ecx, [eax + 1]
cmp ecx, edi
jg 0x1001619d
lea edx, [ecx - 1]
mov edi, dword [ebp + 0x14]
imul edx, ebx
mov dword [esp + 0xc], edx
lea edx, [edi + ecx*8 - 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
cmp ebx, 1
jl 0x100160e8
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
mov dword [ecx], 0
lea edx, [ebx*8]
mov dword [ecx + 4], 0
add ecx, edx
mov edx, dword [esp + 0x18]
dec edx
mov dword [esp + 0x18], edx
jne 0x100160c3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
add edx, ecx
inc ecx
mov dword [esp + 0x14], ecx
mov dword [edi + edx*8 - 8], 0
mov dword [edi + edx*8 - 4], 0x3ff00000
mov edx, dword [esp + 0x24]
add edx, 8
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xc]
add edx, ebx
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jle 0x100160b6
mov edx, dword [esp + 0x20]
cmp eax, 1
jl 0x100163ab
or edx, 0xffffffff
mov ecx, ebx
sub edx, ebx
shl edx, 3
mov dword [esp + 0x30], edx
lea edx, [eax + 1]
mov dword [esp + 0x24], edx
mov edx, eax
imul edx, ebx
mov dword [esp + 0x18], edx
lea edx, [eax - 1]
imul edx, ebx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x10]
imul edx, eax
shl edx, 3
mov dword [esp + 0x28], edx
lea edx, [edi + eax*8 - 8]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x90], edx
mov edx, 8
neg ecx
sub edx, edi
mov dword [esp + 0x48], ecx
lea ecx, [ebx*8]
mov dword [esp + 0x9c], edx
jmp 0x100161a9
mov edi, dword [ebp + 0x14]
jmp 0x10016124
mov edx, dword [esp + 0x9c]
dec eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
add edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x14]
lea edx, [edx + eax - 1]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xc]
fld qword [eax + edx]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x10016324
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
cmp edx, eax
jl 0x100162be
mov edx, dword [esp + 0x44]
add edx, eax
lea edx, [edi + edx*8 - 8]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
sub edx, eax
inc edx
mov dword [esp + 0x8c], edx
mov eax, dword [esp + 0x14]
fld qword [0x10021718]
cmp eax, ebx
jg 0x1001625d
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
sub eax, ecx
lea eax, [eax + edi - 8]
mov dword [esp + 0x24], eax
mov eax, ebx
sub eax, dword [esp + 0x14]
inc eax
mov ebx, dword [esp + 0x24]
fld qword [edx]
fmul qword [ebx]
mov ebx, dword [esp + 0x6c]
add edx, ecx
fdiv qword [edi + ebx*8]
mov ebx, dword [esp + 0x24]
add ebx, ecx
dec eax
mov dword [esp + 0x24], ebx
faddp st(1)
jne 0x1001623a
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
fchs
fstp qword [esp + 0x60]
cmp eax, ebx
jg 0x1001629e
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
sub eax, ecx
lea eax, [eax + edi - 8]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, ebx
sub eax, edi
mov edi, dword [esp + 0x24]
inc eax
fld qword [esp + 0x60]
fmul qword [edi]
add edi, ecx
fadd qword [edx]
fstp qword [edx]
add edx, ecx
dec eax
jne 0x1001628a
mov edi, dword [ebp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x8c]
add edx, 8
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x8c], eax
jne 0x10016213
mov edx, dword [esp + 0x14]
cmp edx, ebx
jg 0x100162f2
mov eax, dword [esp + 0x28]
sub eax, ecx
lea eax, [eax + edi - 8]
mov dword [esp + 0x8c], eax
mov eax, ebx
sub eax, edx
mov edx, dword [esp + 0x8c]
inc eax
fld qword [edx]
fchs
fstp qword [edx]
add edx, ecx
dec eax
jne 0x100162e3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
dec edx
cmp edx, 1
fld qword [edi + eax*8]
fadd qword [0x100215b0]
fstp qword [edi + eax*8]
jl 0x1001635f
mov eax, dword [esp + 0x70]
lea eax, [eax + edi - 8]
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, ecx
dec edx
jne 0x10016310
jmp 0x1001635f
cmp ebx, 1
jl 0x1001633f
mov eax, edx
mov edx, ebx
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, ecx
dec edx
jne 0x1001632d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
add eax, edx
mov edx, dword [esp + 0x14]
add eax, edx
mov dword [edi + eax*8 - 8], 0
mov dword [edi + eax*8 - 4], 0x3ff00000
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
add edx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x44]
add edx, eax
mov eax, dword [esp + 0xc]
sub eax, 8
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
jne 0x100161a2
mov edx, dword [esp + 0x20]
cmp esi, 1
jl 0x10016539
or eax, 0xffffffff
lea edx, [esi + 1]
sub eax, esi
lea ecx, [esi*8]
shl eax, 3
imul edx, esi
mov dword [esp + 0x90], eax
lea edi, [esi + 1]
lea eax, [edx*8 - 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x3c]
dec edi
cmp edi, eax
mov dword [esp + 0x30], edi
jg 0x100164cf
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
fld qword [edx + eax - 8]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x100164cf
mov eax, dword [esp + 0x18]
cmp eax, esi
mov dword [esp + 0x14], eax
jg 0x100164cf
mov ebx, dword [ebp + 0x18]
mov eax, edi
imul eax, esi
fld qword [0x10021718]
lea edx, [eax + edi]
mov edi, dword [esp + 0x14]
add eax, edi
mov edi, esi
lea edx, [ebx + edx*8 - 8]
lea eax, [ebx + eax*8 - 8]
mov ebx, dword [esp + 0x18]
sub edi, ebx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x70], edi
inc edi
mov dword [esp + 0x10], edi
fld qword [edx]
fmul qword [eax]
mov edi, dword [esp + 0xc]
add eax, ecx
add edx, ecx
fdiv qword [edi + ebx]
dec dword [esp + 0x10]
faddp st(1)
jne 0x1001645b
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, edi
imul eax, esi
fchs
add edx, eax
add eax, edi
lea eax, [ebx + eax*8 - 8]
lea edx, [ebx + edx*8 - 8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
fld st(0)
fmul qword [eax]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
fadd qword [edx]
fstp qword [edx]
add edx, ecx
dec eax
mov dword [esp + 0x48], eax
jne 0x1001649a
mov eax, dword [esp + 0x14]
inc eax
cmp eax, esi
mov dword [esp + 0x14], eax
fstp st(0)
jle 0x1001642b
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x28]
lea eax, [eax + edx - 8]
mov edx, esi
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, ecx
dec edx
jne 0x100164dc
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0x18]
sub eax, ecx
mov dword [esp + 0x18], edi
mov dword [eax + edx], 0
mov dword [eax + edx + 4], 0x3ff00000
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0xc]
add eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
sub edx, 8
dec eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x6c], eax
jne 0x100163ea
mov edx, dword [esp + 0x20]
cmp ebx, 1
jl 0x10016580
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
cmp esi, 1
jl 0x10016564
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, esi
and ecx, 0x1fffffff
shl ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
lea eax, [esi*8]
add ecx, eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
jne 0x10016549
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], 0x3c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10016dfd
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10016e41
mov ecx, dword [esp + 0x20]
lea edi, [ecx - 1]
test edi, edi
mov dword [esp + 0x2c], edi
je 0x10016642
mov edx, dword [esp + 0x40]
lea eax, [edx + edi*8]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
lea eax, [edx + edi*8 - 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
sub eax, edx
mov dword [esp + 0x1c], eax
jmp 0x100165de
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
fld qword [eax]
fabs
fcom qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x1001676c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
fld qword [eax + edx]
mov eax, dword [esp + 0x18]
fabs
fld qword [eax]
fabs
faddp st(1)
fmul qword [ebp + 0x1c]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x10016631
mov eax, dword [esp + 0x18]
dec edi
sub eax, 8
sub edx, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
jmp 0x1001663e
mov dword [edx], 0
mov dword [edx + 4], 0
test edi, edi
jne 0x100165da
mov edx, dword [esp + 0x38]
cmp edi, dword [esp + 0x2c]
jne 0x10016773
mov ecx, dword [esp + 0x40]
inc edi
fld qword [ecx + edi*8 - 8]
fcomp qword [0x10021718]
lea ecx, [ecx + edi*8]
mov dword [esp + 0x30], ecx
fnstsw ax
test ah, 1
je 0x10016699
fld qword [ecx - 8]
fchs
fstp qword [ecx - 8]
cmp esi, 1
jl 0x10016699
mov edx, dword [ebp + 0x18]
lea ecx, [esi*8]
lea eax, [edx + edi*8 - 8]
mov edx, esi
fld qword [eax]
fchs
fstp qword [eax]
add eax, ecx
dec edx
jne 0x1001668a
mov ecx, dword [esp + 0x30]
cmp edi, dword [esp + 0x48]
je 0x10016757
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x40]
sub eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x14]
sub eax, edx
mov dword [esp + 0x18], eax
fld qword [ecx - 8]
fcomp qword [ecx]
fnstsw ax
test ah, 1
je 0x10016757
mov eax, dword [ecx]
cmp edi, esi
fld qword [ecx - 8]
mov dword [ecx - 8], eax
mov edx, dword [ecx + 4]
mov dword [ecx - 4], edx
fstp qword [ecx]
jge 0x10016710
cmp esi, 1
jl 0x10016710
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], esi
add eax, ecx
mov edx, dword [eax]
fld qword [eax - 8]
mov dword [eax - 8], edx
mov edx, dword [eax + 4]
mov dword [eax - 4], edx
lea edx, [esi*8]
fstp qword [eax]
add eax, edx
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x10], edx
jne 0x100166ec
cmp edi, ebx
jge 0x10016747
cmp ebx, 1
jl 0x10016747
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
add eax, ecx
mov edx, dword [eax]
fld qword [eax - 8]
mov dword [eax - 8], edx
mov edx, dword [eax + 4]
mov dword [eax - 4], edx
lea edx, [ebx*8]
fstp qword [eax]
add eax, edx
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x10], edx
jne 0x10016723
mov eax, dword [esp + 0x48]
inc edi
add ecx, 8
cmp edi, eax
jne 0x100166b9
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x20], eax
jmp 0x1001658c
fstp st(0)
jmp 0x10016646
cmp ecx, edi
mov dword [esp + 0x1c], ecx
jle 0x10016824
mov eax, dword [esp + 0x40]
lea eax, [eax + ecx*8 - 8]
mov dword [esp + 0x3c], eax
lea eax, [edx + ecx*8 - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
jmp 0x1001679d
mov edx, dword [esp + 0x38]
fld qword [eax]
fabs
fcom qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x10016b9a
mov edx, dword [esp + 0x1c]
fld qword [0x10021718]
cmp edx, ecx
je 0x100167cb
mov eax, dword [esp + 0xc]
fstp st(0)
fld qword [eax + 8]
fabs
lea eax, [edi + 1]
cmp edx, eax
je 0x100167dc
mov eax, dword [esp + 0xc]
fld qword [eax]
fabs
faddp st(1)
fmul qword [ebp + 0x1c]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x10016807
mov eax, dword [esp + 0xc]
dec edx
sub eax, 8
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
sub eax, 8
mov dword [esp + 0x3c], eax
jmp 0x10016818
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
mov dword [eax + 4], 0
cmp edx, edi
jg 0x10016799
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x10016ba1
mov ebx, dword [esp + 0x40]
inc edi
mov dword [esp + 0x44], edi
fld qword [ebx + ecx*8 - 8]
fabs
fld qword [ebx + ecx*8 - 0x10]
fabs
fst qword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10016858
fstp st(0)
fld qword [esp + 0x30]
fld qword [edx + ecx*8 - 0x10]
fabs
fst qword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10016871
fstp st(0)
fld qword [esp + 0x30]
fld qword [ebx + edi*8 - 8]
lea ebx, [ebx + edi*8]
fabs
fst qword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1001688d
fstp st(0)
fld qword [esp + 0x30]
fld qword [edx + edi*8 - 8]
lea eax, [edx + edi*8 - 8]
fabs
fst qword [esp + 0x30]
fcomp st(1)
mov dword [esp + 0x10], eax
fnstsw ax
test ah, 0x41
jne 0x100168ae
fstp st(0)
fld qword [esp + 0x30]
mov eax, dword [esp + 0x40]
fld qword [eax + ecx*8 - 8]
fdiv st(1)
fstp qword [esp + 0x70]
fld qword [eax + ecx*8 - 0x10]
fdiv st(1)
fstp qword [esp + 0x30]
fld qword [edx + ecx*8 - 0x10]
fdiv st(1)
mov ecx, dword [esp + 0x10]
fstp qword [esp + 0x60]
fld qword [ebx - 8]
fdiv st(1)
fstp qword [esp + 0x90]
fdivr qword [ecx]
fld qword [esp + 0x30]
fsub qword [esp + 0x70]
fld qword [esp + 0x30]
fadd qword [esp + 0x70]
fmulp st(1)
fld qword [esp + 0x60]
fmul qword [esp + 0x60]
faddp st(1)
fmul qword [0x100216e8]
fstp qword [esp + 0x30]
fld qword [esp + 0x60]
fmul qword [esp + 0x70]
fld st(0)
fmul st(1)
fstp qword [esp + 0x60]
fstp st(0)
fld qword [0x10021718]
fld qword [esp + 0x30]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
je 0x10016942
fld qword [esp + 0x60]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x1001696d
fstp st(0)
fld qword [esp + 0x30]
fmul qword [esp + 0x30]
fadd qword [esp + 0x60]
fsqrt
fld qword [esp + 0x30]
fcomp qword [0x10021718]
fnstsw ax
test ah, 1
je 0x10016965
fchs
fadd qword [esp + 0x30]
fdivr qword [esp + 0x60]
fld qword [esp + 0x90]
fsub qword [esp + 0x70]
fld qword [esp + 0x90]
fadd qword [esp + 0x70]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], edi
fmulp st(1)
cmp edi, eax
fsub st(1)
fstp qword [esp + 0x78]
fstp st(0)
fmul qword [esp + 0x90]
fstp qword [esp + 0x80]
jg 0x10016b79
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov eax, ecx
mov edi, dword [esp + 0x10]
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
sub eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.10016fb0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
cmp eax, ecx
je 0x100169fe
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [edi - 8], edx
mov dword [edi - 4], eax
fld qword [esp + 0x54]
fmul qword [edi]
mov eax, dword [esp + 0x1c]
fld qword [esp + 0x4c]
fmul qword [eax + edi]
faddp st(1)
fstp qword [esp + 0x78]
fld qword [esp + 0x4c]
fmul qword [edi]
fld qword [esp + 0x54]
fmul qword [eax + edi]
fsubp st(1)
fstp qword [edi]
fld qword [esp + 0x54]
fmul qword [ebx]
fstp qword [esp + 0x80]
fld qword [esp + 0x4c]
fmul qword [ebx]
fstp qword [ebx]
fld qword [esp + 0x4c]
fcomp qword [0x100215b0]
fnstsw ax
test ah, 0x40
je 0x10016a5d
fld qword [esp + 0x54]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x10016a9a
cmp esi, 1
jl 0x10016a9a
mov ecx, dword [esp + 0x3c]
lea edx, [esi*8]
lea eax, [ecx + ebx]
mov ecx, esi
fld qword [esp + 0x54]
fmul qword [eax]
fld qword [esp + 0x4c]
fmul qword [eax - 8]
faddp st(1)
fld qword [esp + 0x4c]
fmul qword [eax]
fld qword [esp + 0x54]
fmul qword [eax - 8]
fsubp st(1)
fstp qword [eax]
fstp qword [eax - 8]
add eax, edx
dec ecx
jne 0x10016a72
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.10016fb0
fld qword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
fstp qword [ecx + edi]
fld qword [esp + 0x4c]
fmul qword [edi]
fld qword [esp + 0x54]
fmul qword [ebx]
cmp eax, edx
faddp st(1)
fstp qword [esp + 0x78]
fld qword [esp + 0x4c]
fmul qword [ebx]
fld qword [esp + 0x54]
fmul qword [edi]
fsubp st(1)
fstp qword [ebx]
fld qword [esp + 0x54]
fmul qword [edi + 8]
fstp qword [esp + 0x80]
fld qword [esp + 0x4c]
fmul qword [edi + 8]
fstp qword [edi + 8]
jge 0x10016b5e
fld qword [esp + 0x4c]
fcomp qword [0x100215b0]
fnstsw ax
test ah, 0x40
je 0x10016b1f
fld qword [esp + 0x54]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x10016b5e
mov eax, dword [ebp + 0xc]
cmp eax, 1
jl 0x10016b5e
mov ecx, eax
mov eax, dword [esp + 0x18]
add eax, ebx
lea edx, [ecx*8]
fld qword [esp + 0x54]
fmul qword [eax]
fld qword [esp + 0x4c]
fmul qword [eax - 8]
faddp st(1)
fld qword [esp + 0x4c]
fmul qword [eax]
fld qword [esp + 0x54]
fmul qword [eax - 8]
fsubp st(1)
fstp qword [eax]
fstp qword [eax - 8]
add eax, edx
dec ecx
jne 0x10016b36
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
inc eax
add ebx, 8
add edi, 8
cmp eax, ecx
mov dword [esp + 0xc], eax
jle 0x100169d1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
fld qword [esp + 0x78]
mov edx, dword [esp + 0x20]
mov ebx, dword [ebp + 0xc]
dec eax
fstp qword [ecx + edx*8 - 0x10]
mov dword [esp + 0x28], eax
jmp 0x1001658c
fstp st(0)
jmp 0x10016824
cmp eax, ecx
jne 0x10016ce6
fld qword [edx + ecx*8 - 0x10]
xor eax, eax
inc edi
fstp qword [esp + 0x80]
mov dword [edx + ecx*8 - 0x10], eax
mov dword [edx + ecx*8 - 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], edi
cmp edi, eax
jg 0x1001658c
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
sub eax, edi
lea edx, [edx + ecx*8 - 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x40]
lea ebx, [edx + ecx*8 - 0x10]
mov ecx, dword [ebp + 0x18]
sub ecx, edx
inc eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
jmp 0x10016c01
mov edi, dword [esp + 0x44]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x78], eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
call fcn.10016fb0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
mov dword [ebx], ecx
cmp eax, edi
mov dword [ebx + 4], edx
je 0x10016c51
mov eax, dword [esp + 0x18]
fld qword [esp + 0x54]
fmul qword [eax]
fchs
fstp qword [esp + 0x80]
fld qword [esp + 0x4c]
fmul qword [eax]
fstp qword [eax]
fld qword [esp + 0x4c]
fcomp qword [0x100215b0]
fnstsw ax
test ah, 0x40
je 0x10016c73
fld qword [esp + 0x54]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x10016cb8
cmp esi, 1
jl 0x10016cb8
mov ecx, dword [ebp + 0x18]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
lea edx, [esi*8]
lea ecx, [ecx + edi*8]
add eax, ebx
mov edi, esi
fld qword [esp + 0x4c]
fmul qword [eax]
fld qword [esp + 0x54]
fmul qword [ecx]
faddp st(1)
fld qword [esp + 0x4c]
fmul qword [ecx]
fld qword [esp + 0x54]
fmul qword [eax]
fsubp st(1)
fstp qword [ecx]
add ecx, edx
fstp qword [eax]
add eax, edx
dec edi
jne 0x10016c91
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
sub ebx, 8
sub edx, 8
dec ecx
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
jne 0x10016bfd
mov ebx, dword [ebp + 0xc]
jmp 0x1001658c
mov eax, dword [esp + 0x1c]
xor edi, edi
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
fld qword [edx + eax*8 - 0x10]
fstp qword [esp + 0x80]
mov dword [edx + eax*8 - 0x10], edi
mov dword [edx + eax*8 - 0xc], edi
jg 0x1001658c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
sub edx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x14]
lea edi, [ecx + eax*8 - 8]
sub edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
sub ecx, eax
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
push edx
fld qword [ecx + edi]
mov ecx, dword [esp + 0x60]
push eax
fstp qword [esp + 0x80]
call fcn.10016fb0
fld qword [esp + 0x78]
mov ecx, dword [esp + 0x1c]
fstp qword [ecx + edi]
fld qword [esp + 0x54]
fmul qword [edi]
fchs
fstp qword [esp + 0x80]
fld qword [esp + 0x4c]
fmul qword [edi]
fstp qword [edi]
fld qword [esp + 0x4c]
fcomp qword [0x100215b0]
fnstsw ax
test ah, 0x40
je 0x10016d97
fld qword [esp + 0x54]
fcomp qword [0x10021718]
fnstsw ax
test ah, 0x40
jne 0x10016de3
cmp ebx, 1
jl 0x10016de3
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x30]
lea edx, [ebx*8]
add eax, edi
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x44]
lea ecx, [ecx + edx*8 - 0x10]
mov edx, dword [esp + 0x70]
fld qword [esp + 0x4c]
fmul qword [eax]
fld qword [esp + 0x54]
fmul qword [ecx]
faddp st(1)
fld qword [esp + 0x4c]
fmul qword [ecx]
fld qword [esp + 0x54]
fmul qword [eax]
fsubp st(1)
fstp qword [ecx]
add ecx, edx
fstp qword [eax]
add eax, edx
dec ebx
jne 0x10016dbc
mov eax, dword [esp + 0x10]
mov ebx, dword [ebp + 0xc]
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x10016d32
jmp 0x1001658c
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [esp + 0x44]
push ebx
push eax
push esi
push edi
push ecx
mov ecx, dword [esp + 0x74]
call fcn.10016e90
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push edi
call esi
mov edx, dword [esp + 0x90]
push edx
call esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [esp + 0x44]
push ebx
push eax
push esi
push edi
push ecx
mov ecx, dword [esp + 0x74]
call fcn.10016e90
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push edi
call esi
mov edx, dword [esp + 0x90]
push edx
call esi
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20