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

Disassembly:
sub esp, 0x234
mov eax, dword [0x102f0d80]
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 0x10205af0
push esi
mov dword [esp + 0x258], edi
call fcn.100691b0
push dword [esp + 0x1c]
mov ebx, eax
push str.__Manufacturer_:__X_n
push esi
call fcn.1006ac00
lea eax, [esp + 0x28]
push eax
push 0x10205af0
push esi
call fcn.100691b0
push dword [esp + 0x34]
add ebx, eax
push str.__Product______:__u_n
push esi
call fcn.1006ac00
lea eax, [esp + 0x40]
push eax
push 0x10205af0
push esi
call fcn.100691b0
push dword [esp + 0x4c]
add ebx, eax
push str.__Period_______:__u_nsec_n
push esi
call fcn.1006ac00
add esp, 0x48
lea eax, [esp + 0x34]
push eax
push 0x10205af0
push esi
call fcn.100691b0
push dword [esp + 0x40]
add ebx, eax
push str.__Midi_Note____:__u_n
push esi
call fcn.1006ac00
lea eax, [esp + 0x50]
push eax
push 0x10205af0
push esi
call fcn.100691b0
add ebx, eax
add esp, 0x24
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1007c7b3
movsd xmm0, qword [0x102040f8]
sub esp, 8
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x101fcc40]
lea eax, [esp + 0x48]
divsd xmm0, xmm1
movsd qword [esp], xmm0
push 0x10207900
push 0x200
push eax
call fcn.10068b30
lea eax, [esp + 0x54]
push eax
push str.__Pitch_Fract._:__s_n
push esi
call fcn.1006ac00
add esp, 0x20
jmp 0x1007c7c1
push str.__Pitch_Fract._:_0_n
push esi
call fcn.1006ac00
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0x10205af0
push esi
call fcn.100691b0
push dword [esp + 0x1c]
add ebx, eax
push str.__SMPTE_Format_:__u_n
push esi
call fcn.1006ac00
lea eax, [esp + 0x28]
push eax
push 0x10205af0
push esi
call fcn.100691b0
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.10068b30
add esp, 0x40
lea eax, [esp + 0x40]
push eax
push str.__SMPTE_Offset_:__s_n
push esi
call fcn.1006ac00
lea eax, [esp + 0x24]
push eax
push 0x10205af0
push esi
call fcn.100691b0
push dword [esp + 0x30]
add ebx, eax
push str.__Loop_Count___:__u_n
push esi
call fcn.1006ac00
add esp, 0x24
cmp dword [esp + 0x18], ebp
jne 0x1007c870
cmp edi, ebx
je 0x1007cc05
lea eax, [esp + 0x1c]
push eax
push 0x10205af0
push esi
call fcn.100691b0
add esp, 0xc
add ebx, eax
cmp dword [esi + 0x1d40], ebp
je 0x1007c8ac
push str.__Found_more_than_one_SMPL_chunk__using_last_one._n
push esi
call fcn.1006ac00
push dword [esi + 0x1d40]
call fcn.10128533
add esp, 0xc
mov dword [esi + 0x1d40], ebp
call fcn.1006ab00
mov ecx, eax
mov dword [esi + 0x1d40], ecx
test ecx, ecx
jne 0x1007c8c5
lea eax, [ecx + 0x11]
jmp 0x1007cc07
mov eax, dword [esp + 0x18]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ebp
test ecx, ecx
je 0x1007ca84
xor edi, edi
nop
mov eax, dword [esp + 0x24c]
sub eax, ebx
cmp eax, 0x18
jb 0x1007ca5d
lea eax, [esp + 0x10]
push eax
push 0x10205af0
push esi
call fcn.100691b0
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1007ca59
push dword [esp + 0x10]
push str.____Cue_ID_:__2u
push esi
call fcn.1006ac00
lea eax, [esp + 0x2c]
push eax
push 0x10205af0
push esi
call fcn.100691b0
push dword [esp + 0x38]
add eax, dword [esp + 0x58]
push str.__Type_:__2u
push esi
add ebx, eax
call fcn.1006ac00
lea eax, [esp + 0x48]
push eax
push 0x10205af0
push esi
call fcn.100691b0
push dword [esp + 0x54]
add ebx, eax
push str.__Start_:__5u
push esi
call fcn.1006ac00
lea eax, [esp + 0x64]
push eax
push 0x10205af0
push esi
call fcn.100691b0
add esp, 0x48
add ebx, eax
push dword [esp + 0x28]
push str.__End_:__5u
push esi
call fcn.1006ac00
lea eax, [esp + 0x1c]
push eax
push 0x10205af0
push esi
call fcn.100691b0
push dword [esp + 0x28]
add ebx, eax
push str.__Fraction_:__5u
push esi
call fcn.1006ac00
lea eax, [esp + 0x50]
push eax
push 0x10205af0
push esi
call fcn.100691b0
push dword [esp + 0x5c]
add ebx, eax
push str.__Count_:__5u_n
push esi
call fcn.1006ac00
mov edx, dword [esp + 0x6c]
add esp, 0x3c
cmp edx, 0x10
jge 0x1007ca42
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 0x1007ca3a
sub eax, 1
je 0x1007ca30
sub eax, 1
je 0x1007ca26
mov dword [edi + ecx + 0x10], 0x320
jmp 0x1007ca42
mov dword [edi + ecx + 0x10], 0x322
jmp 0x1007ca42
mov dword [edi + ecx + 0x10], 0x323
jmp 0x1007ca42
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 0x1007c8e0
jmp 0x1007ca5d
mov ecx, dword [esp + 0x18]
cmp ebp, 0x10
jbe 0x1007ca84
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.1006ac00
mov eax, dword [esi + 0x1d40]
add esp, 0x14
mov dword [eax + 0xc], 0x10
jmp 0x1007caa1
cmp ecx, ebp
je 0x1007caa1
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.1006ac00
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 0x1007cadd
test eax, eax
je 0x1007cac8
push eax
push str.__Sampler_Data_:__u__should_be_0__n
push esi
call fcn.1006ac00
add esp, 0xc
jmp 0x1007cb8f
push 0
push str.__Sampler_Data_:__u_n
push esi
call fcn.1006ac00
add esp, 0xc
jmp 0x1007cb8f
cmp eax, ebp
je 0x1007caf7
push ebp
push eax
push str.__Sampler_Data_:__u__should_have_been__u__n
push esi
call fcn.1006ac00
add esp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x1007cb06
push eax
push str.__Sampler_Data_:__u_n
push esi
call fcn.1006ac00
add esp, 0xc
push 0x10207b40
push esi
call fcn.1006ac00
xor edi, edi
add esp, 8
cmp dword [esp + 0x1c], edi
jle 0x1007cb81
nop dword [eax]
test edi, edi
jle 0x1007cb4f
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 0x1007cb4f
push 0x10207b48
push esi
call fcn.1006ac00
add esp, 8
lea eax, [esp + 0x17]
push eax
push 0x10206ba4
push esi
call fcn.100691b0
add esp, 0xc
test eax, eax
je 0x1007cb81
movzx eax, byte [esp + 0x17]
push eax
push str._02X
push esi
call fcn.1006ac00
inc edi
add esp, 0xc
cmp edi, dword [esp + 0x1c]
jl 0x1007cb20
push 0x102007e0
push esi
call fcn.1006ac00
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 + 0x101fcc40]
mov eax, dword [esi + 0x1d40]
divsd xmm0, qword [0x10207c60]
addsd xmm0, qword [0x102de5f0]
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.1011bad5
add esp, 0x234
ret