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

Disassembly:
sub esp, 0x234
mov eax, dword [0x10259b00]
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 0x10175240
push esi
mov dword [esp + 0x258], edi
call fcn.10009230
push dword [esp + 0x1c]
mov ebx, eax
push str.__Manufacturer_:__X_n
push esi
call fcn.1000ac80
lea eax, [esp + 0x28]
push eax
push 0x10175240
push esi
call fcn.10009230
push dword [esp + 0x34]
add ebx, eax
push str.__Product______:__u_n
push esi
call fcn.1000ac80
lea eax, [esp + 0x40]
push eax
push 0x10175240
push esi
call fcn.10009230
push dword [esp + 0x4c]
add ebx, eax
push str.__Period_______:__u_nsec_n
push esi
call fcn.1000ac80
add esp, 0x48
lea eax, [esp + 0x34]
push eax
push 0x10175240
push esi
call fcn.10009230
push dword [esp + 0x40]
add ebx, eax
push str.__Midi_Note____:__u_n
push esi
call fcn.1000ac80
lea eax, [esp + 0x50]
push eax
push 0x10175240
push esi
call fcn.10009230
add ebx, eax
add esp, 0x24
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1001c853
movsd xmm0, qword [0x10173818]
sub esp, 8
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x10174c90]
lea eax, [esp + 0x48]
divsd xmm0, xmm1
movsd qword [esp], xmm0
push 0x10177058
push 0x200
push eax
call fcn.10008bb0
lea eax, [esp + 0x54]
push eax
push str.__Pitch_Fract._:__s_n
push esi
call fcn.1000ac80
add esp, 0x20
jmp 0x1001c861
push str.__Pitch_Fract._:_0_n
push esi
call fcn.1000ac80
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0x10175240
push esi
call fcn.10009230
push dword [esp + 0x1c]
add ebx, eax
push str.__SMPTE_Format_:__u_n
push esi
call fcn.1000ac80
lea eax, [esp + 0x28]
push eax
push 0x10175240
push esi
call fcn.10009230
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.10008bb0
add esp, 0x40
lea eax, [esp + 0x40]
push eax
push str.__SMPTE_Offset_:__s_n
push esi
call fcn.1000ac80
lea eax, [esp + 0x24]
push eax
push 0x10175240
push esi
call fcn.10009230
push dword [esp + 0x30]
add ebx, eax
push str.__Loop_Count___:__u_n
push esi
call fcn.1000ac80
add esp, 0x24
cmp dword [esp + 0x18], ebp
jne 0x1001c910
cmp edi, ebx
je 0x1001cca5
lea eax, [esp + 0x1c]
push eax
push 0x10175240
push esi
call fcn.10009230
add esp, 0xc
add ebx, eax
cmp dword [esi + 0x1d40], ebp
je 0x1001c94c
push str.__Found_more_than_one_SMPL_chunk__using_last_one._n
push esi
call fcn.1000ac80
push dword [esi + 0x1d40]
call fcn.100a80a4
add esp, 0xc
mov dword [esi + 0x1d40], ebp
call fcn.1000ab80
mov ecx, eax
mov dword [esi + 0x1d40], ecx
test ecx, ecx
jne 0x1001c965
lea eax, [ecx + 0x11]
jmp 0x1001cca7
mov eax, dword [esp + 0x18]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ebp
test ecx, ecx
je 0x1001cb24
xor edi, edi
nop
mov eax, dword [esp + 0x24c]
sub eax, ebx
cmp eax, 0x18
jb 0x1001cafd
lea eax, [esp + 0x10]
push eax
push 0x10175240
push esi
call fcn.10009230
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1001caf9
push dword [esp + 0x10]
push str.____Cue_ID_:__2u
push esi
call fcn.1000ac80
lea eax, [esp + 0x2c]
push eax
push 0x10175240
push esi
call fcn.10009230
push dword [esp + 0x38]
add eax, dword [esp + 0x58]
push str.__Type_:__2u
push esi
add ebx, eax
call fcn.1000ac80
lea eax, [esp + 0x48]
push eax
push 0x10175240
push esi
call fcn.10009230
push dword [esp + 0x54]
add ebx, eax
push str.__Start_:__5u
push esi
call fcn.1000ac80
lea eax, [esp + 0x64]
push eax
push 0x10175240
push esi
call fcn.10009230
add esp, 0x48
add ebx, eax
push dword [esp + 0x28]
push str.__End_:__5u
push esi
call fcn.1000ac80
lea eax, [esp + 0x1c]
push eax
push 0x10175240
push esi
call fcn.10009230
push dword [esp + 0x28]
add ebx, eax
push str.__Fraction_:__5u
push esi
call fcn.1000ac80
lea eax, [esp + 0x50]
push eax
push 0x10175240
push esi
call fcn.10009230
push dword [esp + 0x5c]
add ebx, eax
push str.__Count_:__5u_n
push esi
call fcn.1000ac80
mov edx, dword [esp + 0x6c]
add esp, 0x3c
cmp edx, 0x10
jge 0x1001cae2
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 0x1001cada
sub eax, 1
je 0x1001cad0
sub eax, 1
je 0x1001cac6
mov dword [edi + ecx + 0x10], 0x320
jmp 0x1001cae2
mov dword [edi + ecx + 0x10], 0x322
jmp 0x1001cae2
mov dword [edi + ecx + 0x10], 0x323
jmp 0x1001cae2
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 0x1001c980
jmp 0x1001cafd
mov ecx, dword [esp + 0x18]
cmp ebp, 0x10
jbe 0x1001cb24
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.1000ac80
mov eax, dword [esi + 0x1d40]
add esp, 0x14
mov dword [eax + 0xc], 0x10
jmp 0x1001cb41
cmp ecx, ebp
je 0x1001cb41
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.1000ac80
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 0x1001cb7d
test eax, eax
je 0x1001cb68
push eax
push str.__Sampler_Data_:__u__should_be_0__n
push esi
call fcn.1000ac80
add esp, 0xc
jmp 0x1001cc2f
push 0
push str.__Sampler_Data_:__u_n
push esi
call fcn.1000ac80
add esp, 0xc
jmp 0x1001cc2f
cmp eax, ebp
je 0x1001cb97
push ebp
push eax
push str.__Sampler_Data_:__u__should_have_been__u__n
push esi
call fcn.1000ac80
add esp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x1001cba6
push eax
push str.__Sampler_Data_:__u_n
push esi
call fcn.1000ac80
add esp, 0xc
push 0x10177298
push esi
call fcn.1000ac80
xor edi, edi
add esp, 8
cmp dword [esp + 0x1c], edi
jle 0x1001cc21
nop dword [eax]
test edi, edi
jle 0x1001cbef
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 0x1001cbef
push 0x101772a0
push esi
call fcn.1000ac80
add esp, 8
lea eax, [esp + 0x17]
push eax
push 0x101762f4
push esi
call fcn.10009230
add esp, 0xc
test eax, eax
je 0x1001cc21
movzx eax, byte [esp + 0x17]
push eax
push str._02X
push esi
call fcn.1000ac80
inc edi
add esp, 0xc
cmp edi, dword [esp + 0x1c]
jl 0x1001cbc0
push 0x101772a8
push esi
call fcn.1000ac80
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 + 0x10174c90]
mov eax, dword [esi + 0x1d40]
divsd xmm0, qword [0x101773b8]
addsd xmm0, qword [0x102511d8]
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.1009fd88
add esp, 0x234
ret