between 0 and 65535. If we set the sample rate to zero we are able to cause an endless loop in the
.text:001024F0 ; int __stdcall sub_1024F0(int, int, double)
...
.text:00102523 loc_102523: ; CODE XREF: sub_1024F0+A8
.text:00102523 fld st
.text:00102525 call __ftol2_sse
.text:0010252A mov esi, eax
.text:0010252C sub esp, 8
.text:0010252F movsx ecx, word ptr [ebx+esi*2]
.text:00102533 mov [ebp+arg_4], ecx
.text:00102536 fild [ebp+arg_4]
.text:00102539 fstp [ebp+var_18]
.text:0010253C fstp [esp+34h+var_34] ; double
.text:0010253F call _floor
.text:00102544 fsubr [ebp+var_8]
.text:00102547 movsx eax, word ptr [ebx+esi*2+2]
.text:0010254C add esp, 8
.text:0010254F mov [ebp+arg_4], eax
.text:00102552 fild [ebp+arg_4]
.text:00102555 fstp [ebp+var_10]
.text:00102558 fld [ebp+var_10]
.text:0010255B fld [ebp+var_18]
.text:0010255E fsub st(1), st
.text:00102560 fxch st(2)
.text:00102562 fmulp st(1), st
.text:00102564 faddp st(1), st
.text:00102566 call __ftol2_sse
.text:0010256B movzx eax, ax
.text:0010256E lea ecx, [edi+30h]
.text:00102571 mov [ebp+arg_0], eax
.text:00102574 lea eax, [ebp+arg_0]
.text:00102577 push 2 ; int
.text:00102579 push eax ; void *
.text:0010257A call sub_399FD0
.text:0010257F fld [ebp+var_8]
.text:00102582 fadd [ebp+arg_8]
.text:00102585 add dword ptr [edi+7D5Ch], 2
.text:0010258C fst [ebp+var_8]
.text:0010258F fld [ebp+var_20]
.text:00102592 fxch st(1)
.text:00102594 fcomi st, st(1)
.text:00102596 fstp st(1)
.text:00102598 jb short loc_102523