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

Disassembly:
sub esp, 0x234
mov eax, dword [0x102e5cc0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x244]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x24c]
mov eax, edi
and eax, 1
mov dword [esp + 0x20], 0xffffffff
add edi, eax
lea eax, [esp + 0x10]
push eax
push 0x101fc2e8
push esi
mov dword [esp + 0x258], edi
call fcn.10068580
push dword [esp + 0x1c]
mov ebx, eax
push str.__Manufacturer_:__X_n
push esi
call fcn.10069fd0
lea eax, [esp + 0x28]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
push dword [esp + 0x34]
add ebx, eax
push str.__Product______:__u_n
push esi
call fcn.10069fd0
lea eax, [esp + 0x40]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
push dword [esp + 0x4c]
add ebx, eax
push str.__Period_______:__u_nsec_n
push esi
call fcn.10069fd0
add esp, 0x48
lea eax, [esp + 0x34]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
push dword [esp + 0x40]
add ebx, eax
push str.__Midi_Note____:__u_n
push esi
call fcn.10069fd0
lea eax, [esp + 0x50]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
add ebx, eax
add esp, 0x24
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1007bb83
movsd xmm0, qword [0x101f7690]
sub esp, 8
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x101f36b0]
lea eax, [esp + 0x48]
divsd xmm0, xmm1
movsd qword [esp], xmm0
push 0x101fe0f0
push 0x200
push eax
call fcn.10067f00
lea eax, [esp + 0x54]
push eax
push str.__Pitch_Fract._:__s_n
push esi
call fcn.10069fd0
add esp, 0x20
jmp 0x1007bb91
push str.__Pitch_Fract._:_0_n
push esi
call fcn.10069fd0
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
push dword [esp + 0x1c]
add ebx, eax
push str.__SMPTE_Format_:__u_n
push esi
call fcn.10069fd0
lea eax, [esp + 0x28]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
mov ecx, dword [esp + 0x34]
add ebx, eax
mov eax, ecx
and eax, 0x7f
push eax
mov eax, ecx
shr eax, 8
and eax, 0x7f
push eax
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
and ecx, 0x7f
and eax, 0x7f
push eax
push ecx
push str._02u:_02u:_02u__02u
lea eax, [esp + 0x78]
push 0x200
push eax
call fcn.10067f00
add esp, 0x40
lea eax, [esp + 0x40]
push eax
push str.__SMPTE_Offset_:__s_n
push esi
call fcn.10069fd0
lea eax, [esp + 0x24]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
push dword [esp + 0x30]
add ebx, eax
push str.__Loop_Count___:__u_n
push esi
call fcn.10069fd0
add esp, 0x24
cmp dword [esp + 0x18], ebp
jne 0x1007bc40
cmp edi, ebx
je 0x1007bfd5
lea eax, [esp + 0x1c]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
add esp, 0xc
add ebx, eax
cmp dword [esi + 0x1d40], ebp
je 0x1007bc7c
push str.__Found_more_than_one_SMPL_chunk__using_last_one._n
push esi
call fcn.10069fd0
push dword [esi + 0x1d40]
call fcn.10115694
add esp, 0xc
mov dword [esi + 0x1d40], ebp
call fcn.10069ed0
mov ecx, eax
mov dword [esi + 0x1d40], ecx
test ecx, ecx
jne 0x1007bc95
lea eax, [ecx + 0x11]
jmp 0x1007bfd7
mov eax, dword [esp + 0x18]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ebp
test ecx, ecx
je 0x1007be54
xor edi, edi
nop
mov eax, dword [esp + 0x24c]
sub eax, ebx
cmp eax, 0x18
jb 0x1007be2d
lea eax, [esp + 0x10]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1007be29
push dword [esp + 0x10]
push str.____Cue_ID_:__2u
push esi
call fcn.10069fd0
lea eax, [esp + 0x2c]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
push dword [esp + 0x38]
add eax, dword [esp + 0x58]
push str.__Type_:__2u
push esi
add ebx, eax
call fcn.10069fd0
lea eax, [esp + 0x48]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
push dword [esp + 0x54]
add ebx, eax
push str.__Start_:__5u
push esi
call fcn.10069fd0
lea eax, [esp + 0x64]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
add esp, 0x48
add ebx, eax
push dword [esp + 0x28]
push str.__End_:__5u
push esi
call fcn.10069fd0
lea eax, [esp + 0x1c]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
push dword [esp + 0x28]
add ebx, eax
push str.__Fraction_:__5u
push esi
call fcn.10069fd0
lea eax, [esp + 0x50]
push eax
push 0x101fc2e8
push esi
call fcn.10068580
push dword [esp + 0x5c]
add ebx, eax
push str.__Count_:__5u_n
push esi
call fcn.10069fd0
mov edx, dword [esp + 0x6c]
add esp, 0x3c
cmp edx, 0x10
jge 0x1007be12
mov ecx, dword [esi + 0x1d40]
mov eax, dword [esp + 0x24]
mov dword [edi + ecx + 0x14], eax
mov eax, dword [esi + 0x1d40]
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [edi + eax + 0x18], ecx
mov ecx, dword [esi + 0x1d40]
mov eax, dword [esp + 0x2c]
mov dword [edi + ecx + 0x1c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x1d40]
sub eax, 0
je 0x1007be0a
sub eax, 1
je 0x1007be00
sub eax, 1
je 0x1007bdf6
mov dword [edi + ecx + 0x10], 0x320
jmp 0x1007be12
mov dword [edi + ecx + 0x10], 0x322
jmp 0x1007be12
mov dword [edi + ecx + 0x10], 0x323
jmp 0x1007be12
mov dword [edi + ecx + 0x10], 0x321
mov ecx, dword [esp + 0x18]
inc edx
inc ebp
mov dword [esp + 0x30], edx
add edi, 0x10
test ecx, ecx
jne 0x1007bcb0
jmp 0x1007be2d
mov ecx, dword [esp + 0x18]
cmp ebp, 0x10
jbe 0x1007be54
push 0x10
push ecx
push 0x10
push str._Warning__actual_Loop_Points_count_exceeds__u__changing_Loop_Count_from__u_to__u_n
push esi
call fcn.10069fd0
mov eax, dword [esi + 0x1d40]
add esp, 0x14
mov dword [eax + 0xc], 0x10
jmp 0x1007be71
cmp ecx, ebp
je 0x1007be71
push ebp
push ecx
push str._Warning__actual_Loop_Points_count___Loop_Count__changing_Loop_Count_from__u_to__u_n
push esi
call fcn.10069fd0
mov eax, dword [esi + 0x1d40]
add esp, 0x10
mov dword [eax + 0xc], ebp
mov ebp, dword [esp + 0x24c]
mov eax, dword [esp + 0x1c]
sub ebp, ebx
jne 0x1007bead
test eax, eax
je 0x1007be98
push eax
push str.__Sampler_Data_:__u__should_be_0__n
push esi
call fcn.10069fd0
add esp, 0xc
jmp 0x1007bf5f
push 0
push str.__Sampler_Data_:__u_n
push esi
call fcn.10069fd0
add esp, 0xc
jmp 0x1007bf5f
cmp eax, ebp
je 0x1007bec7
push ebp
push eax
push str.__Sampler_Data_:__u__should_have_been__u__n
push esi
call fcn.10069fd0
add esp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x1007bed6
push eax
push str.__Sampler_Data_:__u_n
push esi
call fcn.10069fd0
add esp, 0xc
push 0x101fe330
push esi
call fcn.10069fd0
xor edi, edi
add esp, 8
cmp dword [esp + 0x1c], edi
jle 0x1007bf51
nop dword [eax]
test edi, edi
jle 0x1007bf1f
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, edi
shl ecx, 2
sub eax, ecx
jne 0x1007bf1f
push 0x101fe338
push esi
call fcn.10069fd0
add esp, 8
lea eax, [esp + 0x17]
push eax
push 0x101fd394
push esi
call fcn.10068580
add esp, 0xc
test eax, eax
je 0x1007bf51
movzx eax, byte [esp + 0x17]
push eax
push str._02X
push esi
call fcn.10069fd0
inc edi
add esp, 0xc
cmp edi, dword [esp + 0x1c]
jl 0x1007bef0
push 0x101f486c
push esi
call fcn.10069fd0
add esp, 8
mov ecx, dword [esi + 0x1d40]
mov al, byte [esp + 0x34]
mov byte [ecx + 4], al
mov eax, dword [esp + 0x38]
movd xmm0, eax
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101f36b0]
mov eax, dword [esi + 0x1d40]
divsd xmm0, qword [0x101fe450]
addsd xmm0, qword [0x102d2bb0]
cvttsd2si ecx, xmm0
mov byte [eax + 5], cl
mov eax, dword [esi + 0x1d40]
mov dword [eax], 1
mov eax, dword [esi + 0x1d40]
mov byte [eax + 8], 0
mov eax, dword [esi + 0x1d40]
mov byte [eax + 6], 0
mov eax, dword [esi + 0x1d40]
mov byte [eax + 9], 0x7f
mov eax, dword [esi + 0x1d40]
mov byte [eax + 7], 0x7f
xor eax, eax
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d06f
add esp, 0x234
ret