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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
cmp dword [esp + 0xd0], 0
je 0x62941524
lea eax, [ecx + 0x600c]
mov ebp, ecx
mov dword [esp + 0x84], eax
lea eax, [ecx + 0x6010]
mov dword [esp + 0x88], eax
lea eax, [ecx + 0xc]
mov dword [esp + 0x8c], eax
lea eax, [ecx + 0x600c]
mov dword [esp + 0xc], eax
lea eax, [ecx + 0x6010]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], eax
lea eax, [ecx + 0xc]
mov dword [esp], eax
call method.OpenMPT.StereoFill_int__unsigned_int__int__int_
cmp dword [ebp + 0x6030], 2
jbe 0x6294080a
lea eax, [ebp + 0x6014]
mov dword [esp + 0xc], eax
lea eax, [ebp + 0x6018]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], eax
lea eax, [ebp + 0x200c]
mov dword [esp], eax
call method.OpenMPT.StereoFill_int__unsigned_int__int__int_
mov word [esp + 0x62], 0
mov dword [esp + 0x64], 0
movzx eax, word [ebp + 0x753d4]
cmp eax, dword [esp + 0x64]
jbe 0x6294150a
mov eax, dword [esp + 0x64]
movzx eax, word [ebp + eax*2 + 0x10652e]
imul ebx, eax, 0x368
mov dword [esp + 0x40], eax
lea eax, [ebp + ebx + 0x106730]
mov dword [esp + 0x18], eax
lea eax, [ebp + ebx]
cmp dword [eax + 0x106740], 0
jne 0x6294086e
cmp dword [eax + 0x106790], 0
jne 0x6294086e
cmp dword [eax + 0x10678c], 0
je 0x62941501
imul esi, dword [esp + 0x40], 0x368
add esi, ebp
movzx eax, byte [esi + 0x106a4a]
mov dword [esp], eax
call method.OpenMPT::MixFuncTable.ResamplingModeToMixFlags_OpenMPT::ResamplingMode_
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x106788]
test al, 1
je 0x6294089a
or dword [esp + 0x68], 1
test al, 0x40
je 0x629408a3
or dword [esp + 0x68], 2
bt eax, 0xf
jae 0x629408ae
or dword [esp + 0x68], 8
test byte [ebp + 0x6024], 0x20
je 0x629408bd
bt eax, 0x18
jae 0x629408c3
bt eax, 0x17
jae 0x62940919
lea eax, [ebp + 0x6108c]
lea ecx, [ebp + 0x61090]
mov dword [esp + 0x4c], eax
lea eax, [ebp + 0x61088]
mov dword [esp + 0x58], eax
lea eax, [ebp + 0x60088]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xc], eax
lea eax, [ebp + 0x6108c]
mov dword [esp + 8], eax
lea eax, [ebp + 0x61088]
mov dword [esp + 4], eax
lea eax, [ebp + 0x60088]
mov dword [esp], eax
call method.OpenMPT::CReverb.TouchReverbSendBuffer_int__int__int__unsigned_int_
sub esp, 0x10
jmp 0x6294093a
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x4c], eax
imul eax, dword [esp + 0x40], 0x368
test byte [ebp + eax + 0x106789], 1
je 0x62940973
cmp dword [ebp + 0x6030], 2
jbe 0x62940973
lea eax, [ebp + 0x200c]
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0x6018]
mov dword [esp + 0x58], eax
lea eax, [ebp + 0x6014]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 2
mov ecx, ebp
movzx eax, word [ebp + eax*2 + 0x10652e]
mov dword [esp + 4], eax
lea eax, [ebp + 0x1064c8]
mov dword [esp], eax
call method.OpenMPT::CSoundFile.GetBestPlugin_OpenMPT::CSoundFile::PlayState_const__unsigned_short__OpenMPT::PluginPriority__OpenMPT::PluginMutePriority__const
sub esp, 0x10
mov byte [esp + 0x82], al
dec eax
mov byte [esp + 0x83], al
cmp al, 0xf9
ja 0x62940a18
movzx eax, byte [esp + 0x82]
dec eax
imul eax, eax, 0xa0
mov esi, dword [ebp + eax + 0xdd43c]
test esi, esi
je 0x62940a18
mov eax, dword [esi + 0x18]
test eax, eax
je 0x62940a18
lea edi, [esi + 0x28]
test byte [esi + 0x1c], 1
mov dword [esp + 0x58], edi
lea edi, [esi + 0x24]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x2c], eax
jne 0x62940a18
lea eax, [esi + 0x28]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call method.OpenMPT.StereoFill_int__unsigned_int__int__int_
or dword [esi + 0x1c], 1
imul esi, dword [esp + 0x40], 0x368
add esi, ebp
test byte [esi + 0x106a83], 8
je 0x62940a7b
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call method.OpenMPT.EndChannelOfs_OpenMPT::ModChannel__int__unsigned_int_
mov edi, dword [esp + 0x58]
mov eax, dword [esi + 0x10678c]
add dword [edi], eax
mov edi, dword [esp + 0x4c]
mov eax, dword [esi + 0x106790]
add dword [edi], eax
mov dword [esi + 0x106790], 0
mov dword [esi + 0x10678c], 0
jmp 0x62941501
mov eax, dword [ebp + 0x10648c]
mov dword [esp + 0x9c], 0
shr eax, 1
mov dword [esp + 0xa0], 0
and eax, 1
mov dword [esp + 0xa4], 0
mov byte [esp + 0xac], al
mov eax, dword [ebp + 0x106494]
shr eax, 0x14
mov dword [esp + 0xa8], 0
xor eax, 1
and eax, 1
mov byte [esp + 0xad], al
cmp dword [esi + 0x106740], 0
je 0x62940b4f
lea eax, [ebp + ebx + 0x106730]
lea ecx, [esp + 0x9c]
mov dword [esp], eax
call method.OpenMPT::MixLoopState.UpdateLookaheadPointers_OpenMPT::ModChannel_const_
lea eax, [ebp + ebx + 0x106730]
push edx
mov eax, dword [eax + 0xc]
cdq
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], edx
mov edi, edx
lea edx, [ebp + ebx + 0x106730]
xor eax, dword [esp + 0x54]
xor edi, dword [edx + 8]
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x50]
mov eax, 0x4000
sbb edx, dword [esp + 0x54]
mov ecx, edx
xor edx, edx
inc ecx
div ecx
cmp eax, 1
jbe 0x62940b44
mov dword [esp + 0xa8], eax
jmp 0x62940b4f
mov dword [esp + 0xa8], 2
lea eax, [ebp + ebx + 0x106738]
mov word [esp + 0x80], 0
imul ebx, dword [esp + 0x40], 0x368
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x48], eax
add ebx, ebp
mov eax, dword [ebx + 0x106794]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x1c], edi
test eax, eax
je 0x62940b97
mov dword [esp + 0x1c], eax
cmp eax, edi
jbe 0x62940b97
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov ecx, dword [eax + 0x58]
mov esi, ecx
and esi, 2
mov dword [esp + 0x6c], esi
je 0x62940bbb
mov eax, dword [ebx + 0x106780]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x20]
je 0x6294111d
mov eax, dword [ebx + 0x10677c]
test eax, eax
je 0x6294111d
mov edx, dword [esp + 0x9c]
test edx, edx
je 0x6294111d
mov edi, dword [esp + 0x18]
mov dword [ebx + 0x106740], edx
mov edx, dword [esp + 0x28]
mov esi, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x44], edi
cmp edi, edx
jge 0x62940d02
cmp dword [esp + 0x24], 0
jns 0x62940ce1
mov eax, edx
mov edi, dword [esp + 0x18]
add eax, edx
mov edx, eax
mov eax, 0
sub eax, dword [esp + 0x30]
sbb edx, dword [esp + 0x34]
mov dword [edi], eax
cmp dword [esp + 0x28], edx
mov dword [edi + 4], edx
jg 0x62940c5f
mov eax, dword [esp + 0x28]
add eax, dword [ebx + 0x10677c]
shr eax, 1
cmp eax, edx
ja 0x62940c74
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x28]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x58]
test al, 4
je 0x62940ca8
and al, 0x7f
mov edx, dword [esp + 0x18]
neg dword [esp + 0x20]
adc dword [esp + 0x24], 0
mov edi, dword [esp + 0x5c]
neg dword [esp + 0x24]
mov dword [edx + 0x58], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x62940cb6
mov eax, dword [ebx + 0x10677c]
mov edi, dword [esp + 0x18]
dec eax
mov dword [edi + 4], eax
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 0x10677c]
test byte [edi + 0x58], 2
je 0x62940ccf
cmp eax, dword [edi + 4]
ja 0x62940e79
mov edx, dword [esp + 0x18]
mov dword [edx], 0
mov dword [edx + 4], eax
jmp 0x6294111d
cmp dword [esp + 0x44], 0
jns 0x62940e79
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov dword [edi], eax
mov dword [edi + 4], 0
jmp 0x62940e79
cmp eax, dword [esp + 0x44]
ja 0x62940e79
cmp dword [esp + 0x6c], 0
je 0x6294111d
test cl, 4
je 0x62940e35
xor esi, esi
cmp esi, dword [esp + 0x20]
sbb esi, dword [esp + 0x24]
jge 0x62940d4a
neg dword [esp + 0x20]
adc dword [esp + 0x24], 0
mov edx, dword [esp + 0x5c]
neg dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [edx], esi
mov dword [edx + 4], edi
mov edx, dword [esp + 0x18]
or cl, 0x80
cmp byte [esp + 0xad], 0
mov dword [edx + 0x58], ecx
je 0x62940dd4
mov edx, eax
mov esi, dword [ebx + 0x106730]
mov eax, 0
mov edi, dword [ebx + 0x106734]
sub esi, eax
mov eax, dword [ebx + 0x106784]
movzx ecx, byte [esp + 0xac]
sbb edi, edx
sub eax, ecx
mov dword [esp + 0x34], edi
mov edx, dword [ebx + 0x106780]
mov dword [esp + 0x30], esi
sub eax, edx
mov esi, dword [esp + 0x34]
cmp eax, esi
jbe 0x62940dc2
mov eax, dword [ebx + 0x10677c]
mov edi, dword [esp + 0x18]
sub eax, ecx
mov edx, eax
mov eax, 0
sub eax, dword [esp + 0x30]
sbb edx, dword [esp + 0x34]
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x62940e79
mov eax, dword [esp + 0x18]
mov dword [eax], 0
mov dword [eax + 4], edx
jmp 0x62940e79
mov ecx, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0
sub esi, dword [esp + 0x78]
mov edi, 1
lea ecx, [eax + eax]
mov edx, esi
sbb edi, dword [esp + 0x7c]
sub ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x18]
sub ecx, edi
mov dword [esi], edx
mov dword [esi + 4], ecx
cmp ecx, dword [ebx + 0x106780]
jbe 0x62940e13
cmp eax, ecx
ja 0x62940e79
movzx ecx, byte [esp + 0xac]
mov esi, dword [ebx + 0x10677c]
inc ecx
cmp ecx, esi
jbe 0x62940e28
mov ecx, esi
mov edi, dword [esp + 0x18]
sub eax, ecx
mov dword [edi], edx
mov dword [edi + 4], eax
jmp 0x62940e79
cmp dword [esp + 0x24], 0
jns 0x62940e5a
neg dword [esp + 0x20]
adc dword [esp + 0x24], 0
mov ecx, dword [esp + 0x5c]
neg dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x28]
sub edi, eax
mov eax, edi
mov edi, dword [esp + 0x18]
mov edx, eax
mov eax, 0
add dword [edi], eax
adc dword [edi + 4], edx
or dword [edi + 0x58], 0x2000
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x28], ecx
jle 0x62940ea8
test ecx, ecx
js 0x6294111d
cmp dword [esp + 0x24], 0
jns 0x62940ed3
jmp 0x6294111d
mov esi, dword [ebx + 0x10677c]
cmp ecx, esi
ja 0x6294111d
mov edx, dword [esp + 0x24]
sar edx, 0x1f
mov eax, edx
cmp eax, dword [esp + 0x20]
sbb edx, dword [esp + 0x24]
test edx, edx
jns 0x62940ed3
cmp ecx, esi
je 0x6294111d
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sar edx, 0x1f
mov eax, edx
xor edi, eax
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x24]
xor edi, edx
sub dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0xa8]
sbb dword [esp + 0x3c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
cmp eax, edx
jbe 0x62940f0f
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
dec eax
imul edi, eax
mul dword [esp + 0x20]
add edx, edi
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x34]
mov eax, dword [ebx + 0x106780]
mov esi, edx
cmp ecx, eax
jb 0x62940f3e
add eax, 0x10
mov dl, 1
cmp ecx, eax
jb 0x62940f4b
mov eax, dword [esp + 0x18]
xor edx, edx
and dword [eax + 0x58], 0xffffdfff
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x62941072
mov eax, dword [esp + 0xa4]
cmp ecx, eax
jb 0x62940fd4
cmp dword [esp + 0x24], 0
jns 0x62940f89
mov edx, eax
mov esi, dword [esp + 0x30]
mov eax, 0
mov edi, dword [esp + 0x34]
sub esi, eax
sbb edi, edx
mov eax, esi
mov edx, edi
jmp 0x62940f9e
mov eax, dword [ebx + 0x106784]
mov edx, eax
mov eax, 0
sub eax, dword [esp + 0x30]
sbb edx, dword [esp + 0x34]
add eax, 0xffffffff
mov esi, dword [esp + 0x38]
adc edx, 0xffffffff
mov edi, dword [esp + 0x3c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__divdi3
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x106740], eax
jmp 0x629410e0
mov edi, dword [esp + 0x18]
test byte [edi + 0x59], 0x20
je 0x62940fe2
test dl, dl
jne 0x62940ff3
xor ecx, ecx
cmp ecx, dword [esp + 0x20]
sbb ecx, dword [esp + 0x24]
jl 0x62941065
jmp 0x62941079
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
add eax, 0x10
mov edi, dword [esp + 0x3c]
mov edx, eax
mov eax, 0
sub eax, dword [esp + 0x30]
mov dword [esp + 8], esi
sbb edx, dword [esp + 0x34]
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__divdi3
mov edx, dword [ebx + 0x106784]
inc eax
sub edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x106798]
mov ax, word [eax + 0x22]
mov ecx, eax
and ecx, 1
inc ecx
test al, 0x40
setne al
inc eax
imul eax, ecx
movzx eax, al
imul edx, eax
add edx, dword [esp + 0x6c]
mov dword [ebx + 0x106740], edx
jmp 0x629410e0
cmp dword [esp + 0x1c], 1
je 0x629410a0
cmp eax, esi
ja 0x629410a0
jmp 0x629410aa
cmp dword [esp + 0x24], 0
jns 0x629410a0
cmp dword [esp + 0x28], esi
jle 0x6294110b
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov edx, eax
mov eax, 0
sub esi, eax
mov edi, dword [esp + 0x34]
sbb edi, edx
mov eax, esi
mov edx, edi
jmp 0x629410b9
mov eax, dword [ebx + 0x10677c]
cmp esi, eax
jl 0x6294110b
mov edx, eax
mov eax, 0
sub eax, dword [esp + 0x30]
sbb edx, dword [esp + 0x34]
add eax, 0xffffffff
mov esi, dword [esp + 0x38]
adc edx, 0xffffffff
mov edi, dword [esp + 0x3c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__divdi3
inc eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x44], 0
je 0x62941112
cmp dword [esp + 0x1c], 0
je 0x629410fe
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x1c], edx
jbe 0x62941112
mov dword [esp + 0x1c], edx
jmp 0x62941112
mov dword [esp + 0x1c], 1
jmp 0x629411b0
cmp dword [esp + 0x44], 0
jne 0x629410ee
cmp dword [esp + 0x1c], 0
jg 0x629411b0
imul ebx, dword [esp + 0x40], 0x368
add ebx, ebp
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x106740], 0
mov dword [ebx + 0x10677c], 0
mov dword [ebx + 0x106730], 0
mov dword [ebx + 0x106734], 0
mov dword [ebx + 0x106794], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call method.OpenMPT.EndChannelOfs_OpenMPT::ModChannel__int__unsigned_int_
mov esi, dword [esp + 0x58]
mov eax, dword [ebx + 0x10678c]
mov edi, dword [esp + 0x4c]
add dword [esi], eax
mov eax, dword [ebx + 0x106790]
add dword [edi], eax
mov dword [ebx + 0x106790], 0
and dword [ebx + 0x106788], 0xffffff7f
mov dword [ebx + 0x10678c], 0
jmp 0x629414ae
movzx eax, word [esp + 0x62]
cmp eax, dword [ebp + 0x6020]
jae 0x629411d4
cmp dword [ebx + 0x106794], 0
jne 0x62941233
mov eax, dword [ebx + 0x106744]
or eax, dword [ebx + 0x106748]
jne 0x62941233
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x106738]
cdq
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
imul eax, dword [ebx + 0x10673c]
imul ecx, edx
add ecx, eax
mov eax, dword [esp + 0x1c]
mul dword [ebx + 0x106738]
add edx, ecx
add dword [edi], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
adc dword [edi + 4], edx
mov word [esp + 0x80], 0
lea eax, [eax + ecx*8]
mov dword [ebx + 0x106790], 0
mov dword [ebx + 0x10678c], 0
mov dword [esp + 0x2c], eax
jmp 0x629412af
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
lea esi, [eax + esi*8]
mov eax, dword [esi - 8]
neg eax
mov dword [ebx + 0x10678c], eax
mov eax, dword [esi - 4]
neg eax
mov dword [ebx + 0x106790], eax
mov eax, dword [ebx + 0x106794]
test eax, eax
je 0x62941263
mov eax, 4
mov edi, dword [esp + 0x2c]
or eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], edi
lea edx, [ebp + 0x6048]
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax*4 + 0x62b312a0]
mov eax, dword [esi - 8]
add dword [ebx + 0x10678c], eax
mov dword [esp + 0x2c], esi
mov eax, dword [esi - 4]
mov word [esp + 0x80], 1
add dword [ebx + 0x106790], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x106794]
sub dword [esp + 0x48], esi
test eax, eax
je 0x6294132d
cmp eax, esi
ja 0x62941323
mov eax, dword [ebx + 0x1069d0]
test byte [ebx + 0x106789], 0x10
mov dword [ebx + 0x106744], eax
mov eax, dword [ebx + 0x1069d4]
mov dword [ebx + 0x106794], 0
mov dword [ebx + 0x106748], eax
mov dword [ebx + 0x10674c], 0
mov dword [ebx + 0x106750], 0
je 0x6294132d
cmp dword [ebx + 0x1069e8], 0
jne 0x6294132d
mov dword [ebx + 0x10677c], 0
mov dword [ebx + 0x106740], 0
jmp 0x6294132d
sub eax, dword [esp + 0x1c]
mov dword [ebx + 0x106794], eax
mov eax, dword [ebx + 0x106730]
mov esi, dword [ebx + 0x106734]
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [ebx + 0x106784], esi
ja 0x62941352
mov eax, dword [ebx + 0x106788]
shr eax, 1
and eax, 1
mov edx, dword [ebx + 0x10677c]
xor ecx, ecx
cmp edx, esi
ja 0x6294137d
mov ecx, dword [ebx + 0x106788]
shr ecx, 1
xor ecx, 1
test edx, edx
setne dl
and cl, dl
je 0x6294137d
cmp word [ebx + 0x106a42], 0
sete cl
mov esi, dword [ebp + 0x106490]
mov byte [esp + 0x1c], 0
bt esi, 0x15
jae 0x629413b9
movzx edx, byte [ebx + 0x106a53]
test dl, dl
je 0x629413b9
movzx edi, word [ebp + 0x753be]
cmp edx, edi
jg 0x629413b9
imul edx, edx, 0x68
lea edx, [ebp + edx + 0x7641c]
cmp dword [ebx + 0x106798], edx
setne byte [esp + 0x1c]
test al, al
jne 0x629413c5
test cl, cl
je 0x629414a3
cmp byte [esp + 0x1c], 0
je 0x62941467
movzx eax, byte [ebx + 0x106a53]
imul edx, eax, 0x68
mov edi, dword [ebx + 0x106788]
lea ecx, [ebp + edx + 0x7641c]
add edx, ebp
mov dword [ebx + 0x106798], ecx
and edi, 0xfffffd00
mov ecx, dword [edx + 0x76430]
mov dword [ebx + 0x106740], ecx
movzx ecx, word [edx + 0x7643e]
mov esi, ecx
or ecx, edi
mov dword [ebx + 0x106788], ecx
xor ecx, ecx
and esi, 2
je 0x6294141f
mov ecx, dword [edx + 0x76424]
imul eax, eax, 0x68
add eax, ebp
mov dword [ebx + 0x10677c], ecx
lea ecx, [esp + 0x9c]
mov edx, dword [eax + 0x76420]
mov dword [ebx + 0x106780], edx
mov eax, dword [eax + 0x76424]
mov dword [ebx + 0x106734], edx
mov dword [ebx + 0x106784], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call method.OpenMPT::MixLoopState.UpdateLookaheadPointers_OpenMPT::ModChannel_const_
push eax
cmp dword [ebx + 0x106740], 0
jne 0x629414a3
jmp 0x629414ae
test al, al
je 0x629414a3
bt esi, 0x13
jae 0x629414a3
cmp dword [ebx + 0x106780], 0
jne 0x629414a3
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x106734], 0
mov dword [ebx + 0x106730], eax
mov eax, dword [ebx + 0x106798]
mov eax, dword [eax + 8]
mov dword [ebx + 0x10677c], eax
mov dword [ebx + 0x106784], eax
cmp dword [esp + 0x48], 0
jg 0x62940b79
imul eax, dword [esp + 0x40], 0x368
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x80]
add word [esp + 0x62], bx
mov dword [ebp + eax + 0x106740], edx
cmp byte [esp + 0x83], 0xf9
ja 0x62941501
test bx, bx
je 0x62941501
movzx eax, byte [esp + 0x82]
dec eax
imul eax, eax, 0xa0
mov ecx, dword [ebp + eax + 0xdd43c]
test ecx, ecx
je 0x62941501
mov eax, dword [ecx]
call dword [eax + 0x98]
inc dword [esp + 0x64]
jmp 0x62940819
mov ax, word [ebp + 0x753d6]
cmp ax, word [esp + 0x62]
jae 0x6294151d
mov ax, word [esp + 0x62]
mov word [ebp + 0x753d6], ax
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret 4