Function at 0x62962ac0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x358]
sub esp, 0x46c
mov dword [ebp - 0x40c], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader10ReadStructIN7OpenMPT14MMD0FileHeaderENS4_6detail10FileReaderINS1_24FileCursorTraitsFi
test al, al
jne 0x62962afe
mov byte [ebp - 0x411], 0
jmp 0x62965559
mov eax, ebx
call method.OpenMPT.ValidateHeader_OpenMPT::MMD0FileHeader_const_
test al, al
je 0x62962af2
mov eax, ebx
call method.OpenMPT.GetHeaderMinimumAdditionalSize_OpenMPT::MMD0FileHeader_const_
cmp edx, 0
jbe 0x62962b18
or eax, 0xffffffff
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.629c8e18
mov byte [ebp - 0x411], al
test al, al
push edx
je 0x62962af2
cmp dword [ebp + 0xc], 0x40
je 0x62965559
mov ecx, dword [ebp - 0x40c]
mov dword [esp], 8
call method.OpenMPT::CSoundFile.InitializeGlobals_OpenMPT::MODTYPE_
mov ecx, dword [ebp - 0x40c]
push ebx
call method.OpenMPT::CSoundFile.InitializeChannels__
mov al, byte [ebp - 0x355]
mov ecx, dword [ebp + 8]
sub eax, 0x30
lea ebx, [ebp - 0x134]
mov byte [ebp - 0x3fb], al
mov eax, dword [ebp - 0x350]
bswap eax
mov dword [esp], eax
call fcn.62924a60
mov eax, dword [ebp + 8]
mov ecx, ebx
push esi
mov dword [esp], eax
mov dword [esp + 4], 0x1f8
call fcn.62924b20
lea ecx, [ebp - 0x3ec]
push edi
push edi
mov dword [esp], ebx
call fcn.62924d94
mov ecx, ebx
push eax
call fcn.62925d04
lea eax, [ebp - 0x250]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader10ReadStructIN7OpenMPT7MMDSongENS4_6detail10FileReaderINS1_24FileCursorTraitsFileDataEN
cmp byte [ebp - 0x135], 0x3f
jbe 0x62962bd6
mov byte [ebp - 0x411], 0
jmp 0x62965462
test byte [ebp - 0x250], 0x80
jne 0x62962bca
xor eax, eax
lea edi, [ebp - 0x2f0]
mov ecx, 0x14
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x338]
bswap eax
test eax, eax
je 0x62962c1f
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push ecx
je 0x62962c1f
lea eax, [ebp - 0x2f0]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader10ReadStructIN7OpenMPT7MMD0ExpENS4_6detail10FileReaderINS1_24FileCursorTraitsFileDataEN
mov al, byte [ebp - 0x3fb]
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 0x413], al
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x324]
mov dword [eax + 8], 0
lea eax, [ebp - 0x134]
mov dword [esp], eax
mov eax, dword [ebp + 8]
call sym.__ZN7OpenMPTL15MEDReadNextSongERNS_6detail10FileReaderIN3mpt14mpt_libopenmpt2IO24FileCursorTraitsFileDataENS4_24FileCursorFile
cmp dword [ebp - 0x304], 0
mov eax, 1
je 0x62962c68
movzx eax, byte [ebp - 0x2f1]
inc eax
mov dword [ebp - 0x39c], eax
mov dword [ebp - 0x370], 0xff
lea edx, [ebp - 0x39c]
cmp eax, 0x100
jne 0x62962c8b
lea edx, [ebp - 0x370]
cmp dword [edx], 0
mov dword [ebp - 0x388], 0
jg 0x62962ca0
lea edx, [ebp - 0x388]
mov eax, dword [edx]
mov byte [ebp - 0x412], al
cmp al, 0x31
jbe 0x62962cb3
mov byte [ebp - 0x412], 0x32
mov ebx, 4
mov byte [ebp - 0x410], 0
mov dword [ebp - 0x418], 0
mov dl, byte [ebp - 0x410]
cmp byte [ebp - 0x412], dl
je 0x62962dcc
movzx edi, word [ebp - 0x134]
rol di, 8
cmp byte [ebp - 0x19], 0x3f
ja 0x62962dc3
test di, di
js 0x62962dc3
xor esi, esi
cmp di, si
jbe 0x62962d5e
mov eax, dword [ebp - 0x314]
mov ecx, dword [ebp + 8]
bswap eax
lea eax, [eax + esi*4]
mov dword [esp], eax
call fcn.62924a60
test al, al
push edx
je 0x62962d5b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEIjN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push ecx
je 0x62962d5b
mov eax, dword [ebp + 8]
cmp byte [ebp - 0x413], 0
mov dword [esp], eax
jne 0x62962d4f
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadUint8IN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCursor
movzx eax, al
jmp 0x62962d54
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEItN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
cmp bx, ax
jae 0x62962d5b
mov ebx, eax
inc esi
jmp 0x62962cfb
mov eax, dword [ebp - 0x2a0]
bswap eax
cmp eax, dword [ebp - 0x418]
jbe 0x62962db4
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push edx
je 0x62962db4
mov eax, dword [ebp - 0x2a0]
lea ecx, [ebp - 0x2a0]
bswap eax
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x134]
mov dword [esp], eax
lea edx, [ebp - 0x324]
mov eax, dword [ebp + 8]
call sym.__ZN7OpenMPTL15MEDReadNextSongERNS_6detail10FileReaderIN3mpt14mpt_libopenmpt2IO24FileCursorTraitsFileDataENS4_24FileCursorFile
inc byte [ebp - 0x410]
jmp 0x62962cc9
mov al, byte [ebp - 0x410]
inc eax
mov byte [ebp - 0x412], al
jmp 0x62962dcc
mov byte [ebp - 0x412], 0
xor ebx, ebx
lea eax, [ebx - 1]
cmp ax, 0x7e
ja 0x62962bca
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 0x3f8], 0
mov dword [ebp - 0x3f4], 0
mov dword [ebp - 0x3f0], 0
mov word [eax + 0x753bc], bx
mov eax, dword [ebp - 0x340]
bswap eax
test eax, eax
je 0x62962edd
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
mov edx, dword [ebp - 0x3f4]
push eax
mov ecx, dword [ebp - 0x3f8]
mov eax, edx
sub eax, ecx
movzx ebx, byte [ebp - 0x135]
sar eax, 2
cmp ebx, eax
jbe 0x62962e53
mov edi, ebx
lea ecx, [ebp - 0x3f8]
sub edi, eax
mov dword [esp], edi
call method.std::vector_mpt::mpt_libopenmpt.packed_unsigned_int___mpt::mpt_libopenmpt::endian_305419896__unsigned_int___std::allocator_mpt::mpt_libopenmpt::packed_unsigned_int___mpt::mpt_libopenmpt::endian_305419896__unsigned_int_____::_M_default_append_unsign
push edi
jmp 0x62962e62
jae 0x62962e62
lea eax, [ecx + ebx*4]
cmp edx, eax
je 0x62962e62
mov dword [ebp - 0x3f4], eax
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
call fcn.629c8e18
test al, al
push esi
jne 0x62962ebc
movzx eax, byte [ebp - 0x135]
mov edi, dword [ebp - 0x40c]
cmp byte [ebp - 0x3fb], 1
mov word [edi + 0x753be], ax
mov word [edi + 0x753c0], ax
mov al, byte [ebp - 0x411]
mov byte [ebp - 0x434], al
jbe 0x62962eeb
mov al, byte [ebp - 0x148]
not eax
shr al, 7
mov byte [ebp - 0x434], al
jmp 0x62962eeb
mov edx, dword [ebp - 0x3f8]
mov eax, dword [ebp - 0x3f4]
sub eax, edx
mov dword [esp], edx
mov dword [esp + 4], eax
mov ecx, dword [ebp + 8]
call fcn.62924ad4
push ebx
push ebx
jmp 0x62962e79
cmp byte [ebp - 0x135], 0
je 0x62962e79
jmp 0x62965449
mov word [ebp - 0x418], 1
mov word [ebp - 0x424], 1
mov byte [ebp - 0x414], 0
mov byte [ebp - 0x413], 0
mov eax, dword [ebp - 0x40c]
mov edi, dword [ebp - 0x424]
cmp word [eax + 0x753c0], di
jb 0x629633e5
movzx eax, word [ebp - 0x418]
movzx ebx, di
mov dword [esp + 4], eax
mov dword [esp], ebx
mov ecx, dword [ebp - 0x40c]
call method.OpenMPT::CSoundFile.AllocateInstrument_unsigned_short__unsigned_short_
push ecx
test eax, eax
push ecx
je 0x62965449
mov eax, dword [ebp - 0x40c]
lea edi, [ebp - 0x324]
mov ecx, 6
mov esi, dword [eax + ebx*4 + 0xdbd1c]
xor eax, eax
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x2a0]
call fcn.629256f4
mov eax, dword [ebp - 0x3f8]
mov eax, dword [eax + ebx*4 - 4]
bswap eax
test eax, eax
je 0x6296303e
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push edx
je 0x6296303e
lea eax, [ebp - 0x324]
mov dword [esp + 4], 6
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 6
push eax
je 0x62962fca
lea edi, [ebp - 0x324]
mov ecx, 6
xor eax, eax
rep stosb byte es:[edi], al
jmp 0x62962fda
mov dword [esp], 6
mov ecx, dword [ebp + 8]
call fcn.62924a9c
push eax
movzx edx, word [ebp - 0x320]
mov eax, dword [ebp - 0x324]
xchg dl, dh
bswap eax
test dx, dx
jle 0x62962ff7
and dl, 0x20
je 0x62962ff7
add eax, eax
lea ebx, [ebp - 0x3d8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [esp], eax
call fcn.62924b20
push edx
lea edi, [ebp - 0x134]
push edx
mov ecx, edi
mov dword [esp], ebx
call fcn.62924d94
push ecx
lea ecx, [ebp - 0x2a0]
mov dword [esp], edi
call fcn.62925efc
mov ecx, edi
push eax
call fcn.62925d04
mov ecx, ebx
call fcn.62925d04
movzx eax, word [ebp - 0x320]
xchg al, ah
mov word [ebp - 0x41c], ax
mov ebx, dword [ebp - 0x41c]
and eax, 0xf
and ebx, 0xf
mov word [ebp - 0x428], ax
cmp word [ebp - 0x41c], 0
jns 0x6296308d
xor eax, eax
mov word [esi + eax + 0xec], 0
add eax, 2
cmp eax, 0x100
jne 0x6296306d
mov al, byte [ebp - 0x411]
mov byte [ebp - 0x414], al
lea eax, [ebp - 0x134]
mov dword [esp + 4], 8
mov dword [esp], eax
lea ecx, [ebp - 0x3ec]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 8
push eax
jne 0x629630c5
mov dword [esp], 8
lea ecx, [ebp - 0x3ec]
call fcn.62924a9c
push eax
jmp 0x629630d9
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov edi, dword [ebp - 0x41c]
not edi
shr di, 0xf
cmp ebx, 6
mov ecx, edi
mov eax, edi
setbe dl
and cl, dl
mov byte [ebp - 0x420], cl
je 0x62963180
movzx edx, byte [ebx + 0x62b3b220]
mov byte [ebp - 0x410], dl
cmp dl, 1
jbe 0x629631b5
mov eax, dword [ebp - 0x40c]
mov ecx, 0x3c
mov ax, word [eax + 0x753be]
lea eax, [eax + edx - 1]
mov edx, dword [ebp - 0x40c]
mov word [edx + 0x753be], ax
movzx edx, byte [ebp - 0x410]
shl edx, 3
movzx ebx, byte [edx + 0x62b3b1d0]
add ebx, dword [ebp - 0x418]
lea eax, [ecx - 0xc]
mov edi, ebx
mov bl, byte [edx + 0x62b3b230]
mov word [esi + eax*2 + 0xec], di
add byte [esi + eax + 0x6c], bl
inc eax
cmp eax, ecx
jne 0x62963158
inc edx
lea ecx, [eax + 0xc]
cmp eax, 0x78
jne 0x62963140
mov al, byte [ebp - 0x420]
mov byte [ebp - 0x413], al
jmp 0x629631f6
cmp word [ebp - 0x428], 7
mov byte [ebp - 0x410], 1
jne 0x629631b5
mov dword [esp], 0xffffffe8
mov ecx, esi
call method.OpenMPT::ModInstrument.Transpose_signed_char_
push eax
mov al, byte [ebp - 0x411]
mov byte [ebp - 0x413], al
mov byte [ebp - 0x410], 1
jmp 0x629631f6
test al, al
je 0x629631f6
cmp byte [ebp - 0x434], 0
je 0x629631f6
xor ebx, ebx
mov edi, 0xc
movzx edx, byte [esi + ebx + 0x6c]
movsx eax, byte [ebp - 0x12d]
add eax, edx
mov ecx, edx
cmp eax, 0x54
jle 0x629631ed
sub eax, 0x49
cdq
idiv edi
imul eax, eax, 0xc
sub ecx, eax
mov byte [esi + ebx + 0x6c], cl
inc ebx
cmp ebx, 0x80
jne 0x629631c9
mov al, byte [ebp - 0x130]
lea edx, [eax - 1]
cmp dl, 0xf
ja 0x62963213
mov byte [esi + 0x1f], al
mov al, byte [ebp - 0x411]
mov byte [ebp - 0x413], al
mov al, byte [ebp - 0x12f]
mov dl, al
dec dl
js 0x62963222
mov byte [esi + 0x1e], al
movzx ebx, word [ebp - 0x418]
imul ebx, ebx, 0x68
add ebx, dword [ebp - 0x40c]
xor edi, edi
mov esi, ebx
movzx eax, byte [ebp - 0x410]
cmp ax, di
mov word [ebp - 0x420], ax
jbe 0x62963288
lea ecx, [esi + 0x7641c]
mov dword [esp], 8
call method.OpenMPT::ModSample.Initialize_OpenMPT::MODTYPE_
push eax
movzx eax, byte [ebp - 0x12e]
cmp al, 0x40
jbe 0x6296326c
mov eax, 0x40
shl eax, 2
inc edi
mov word [esi + 0x7643a], ax
mov al, byte [ebp - 0x12d]
mov byte [esi + 0x76440], al
add esi, 0x68
jmp 0x62963236
cmp word [ebp - 0x41c], 0
js 0x62963298
test byte [ebp + 0xc], 2
jne 0x629632b0
mov edi, dword [ebp - 0x420]
lea ecx, [ebp - 0x2a0]
add word [ebp - 0x418], di
jmp 0x629633d4
movzx eax, word [ebp - 0x132]
xchg al, ah
mov word [ebp - 0x428], ax
movzx eax, word [ebp - 0x134]
xchg al, ah
movzx eax, ax
mov ecx, dword [ebp - 0x2a0]
mov dword [ebp - 0x370], 0x10108
lea edi, [eax + eax]
movzx eax, word [ebp - 0x428]
add eax, eax
add eax, edi
mov dword [ebp - 0x41c], eax
mov eax, dword [ecx]
call dword [eax + 0x18]
movzx edx, word [ebp - 0x320]
mov esi, eax
mov eax, edx
xchg al, ah
and dh, 0x10
je 0x62963310
shr esi, 1
mov byte [ebp - 0x370], 0x10
test al, 0x20
je 0x6296331d
shr esi, 1
mov byte [ebp - 0x36f], 3
test al, 0x40
je 0x62963328
mov byte [ebp - 0x36d], 2
cmp byte [ebp - 0x410], 1
jbe 0x62963349
mov cl, byte [ebp - 0x410]
mov eax, 1
shl eax, cl
xor edx, edx
lea ecx, [eax - 1]
mov eax, esi
div ecx
mov esi, eax
mov word [ebp - 0x410], 0
mov edx, dword [ebp - 0x410]
lea ecx, [ebp - 0x2a0]
cmp word [ebp - 0x420], dx
je 0x629633c7
lea eax, [ebx + 0x7641c]
mov dword [ebx + 0x7641c], esi
mov dword [esp + 4], ecx
mov dword [esp], eax
lea ecx, [ebp - 0x370]
call sym.__ZNK7OpenMPT8SampleIO10ReadSampleERNS_9ModSampleERNS_6detail10FileReaderIN3mpt14mpt_libopenmpt2IO24FileCursorTraitsFileDataEN
push eax
cmp word [ebp - 0x428], 1
push eax
jbe 0x629633ab
or word [ebx + 0x7643e], 2
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x76420], edi
mov dword [ebx + 0x76424], eax
mov edx, dword [ebp - 0x41c]
add esi, esi
add dword [ebp - 0x41c], edx
add edi, edi
inc word [ebp - 0x410]
add ebx, 0x68
jmp 0x62963352
mov edi, dword [ebp - 0x420]
add word [ebp - 0x418], di
call fcn.62925d04
inc word [ebp - 0x424]
jmp 0x62962f0b
mov eax, dword [ebp - 0x2ec]
bswap eax
test eax, eax
je 0x629636bc
cmp word [ebp - 0x2e8], 0
je 0x629636bc
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
mov byte [ebp - 0x418], al
push ecx
test al, al
je 0x629636bc
movzx edi, byte [ebp - 0x135]
movzx eax, word [ebp - 0x2e8]
mov word [ebp - 0x41c], di
xchg al, ah
cmp di, ax
jbe 0x62963440
mov word [ebp - 0x41c], ax
movzx eax, word [ebp - 0x2e6]
mov dword [ebp - 0x420], 0
xchg al, ah
mov word [ebp - 0x410], ax
mov edi, dword [ebp - 0x420]
cmp word [ebp - 0x41c], di
jbe 0x629636bc
movzx esi, word [ebp - 0x410]
mov ebx, esi
cmp esi, 0x16
jbe 0x62963480
mov ebx, 0x16
mov dword [esp], ebx
mov ecx, dword [ebp + 8]
call fcn.629c8e18
test al, al
push edx
jne 0x6296349a
mov ecx, dword [ebp + 8]
call fcn.629c8e48
mov ebx, eax
lea edi, [ebp - 0x134]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov ecx, dword [ebp + 8]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
mov ecx, 0x16
push eax
sub ecx, ebx
add ebx, edi
push eax
mov edi, ebx
xor eax, eax
rep stosb byte es:[edi], al
mov dword [esp], esi
mov ecx, dword [ebp + 8]
call fcn.62924a9c
movzx ecx, byte [ebp - 0x134]
mov eax, dword [ebp - 0x40c]
mov edi, dword [ebp - 0x420]
push ebx
test cl, cl
mov ebx, dword [eax + edi*4 + 0xdbd20]
je 0x629635b0
lea eax, [ecx - 1]
mov dl, byte [ebp - 0x133]
mov word [ebp - 0x29c], ax
lea esi, [ebx + 0x30]
xor eax, eax
mov word [ebp - 0x2a0], 0
mov byte [ebp - 0x29e], 0x40
mov byte [ebp - 0x29a], 0x40
test dl, dl
je 0x6296352b
movzx edi, dl
mov eax, 0x40
xor edx, edx
div di
add eax, ecx
lea edx, [ebp - 0x294]
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x2a0]
mov byte [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
mov ecx, esi
mov byte [ebp - 0x296], 0
call method.void_std::vector_OpenMPT::EnvelopeNode__std::allocator_OpenMPT::EnvelopeNode___::_M_assign_aux_OpenMPT.EnvelopeNode_const__OpenMPT::EnvelopeNode_const__OpenMPT::EnvelopeNode_const__std::forward_iterator_tag_
sub esp, 0xc
cmp byte [ebp - 0x134], 1
jne 0x62963589
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
lea edx, [ecx + 4]
cmp eax, edx
je 0x62963585
sub eax, edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], ecx
call sym._memmove
sub dword [ebx + 0x34], 4
mov dl, byte [ebp - 0x133]
mov eax, 0x7fff
test dl, dl
je 0x6296359e
movzx eax, dl
shl eax, 9
or byte [ebx + 0x3c], 1
mov dword [ebx], eax
mov al, byte [ebp - 0x418]
mov byte [ebp - 0x413], al
cmp word [ebp - 0x410], 4
jbe 0x62963604
mov al, byte [ebp - 0x130]
test al, al
je 0x629635d9
add eax, 0x18
mov byte [ebx + 0x84], al
mov al, byte [ebp - 0x418]
mov byte [ebp - 0x413], al
cmp word [ebp - 0x410], 0x12
jbe 0x62963604
movzx eax, byte [ebp - 0x122]
inc eax
shr eax, 1
mov dword [ebx + 4], eax
cmp word [ebp - 0x410], 0x14
jbe 0x62963604
mov eax, dword [ebp - 0x120]
mov word [ebx + 0x1c], ax
movzx eax, word [ebx + 0x166]
imul ebx, eax, 0x68
movsx edx, byte [ebp - 0x131]
shl edx, 4
add ebx, dword [ebp - 0x40c]
cmp word [ebp - 0x410], 0xe
mov byte [ebx + 0x76441], dl
jbe 0x62963650
mov edx, dword [ebp - 0x12a]
bswap edx
mov ecx, edx
mov dword [ebx + 0x76420], edx
mov edx, dword [ebp - 0x126]
bswap edx
add edx, ecx
mov dword [ebx + 0x76424], edx
jmp 0x6296365a
cmp word [ebp - 0x410], 5
jbe 0x629636b1
imul ecx, eax, 0x68
mov esi, dword [ebp - 0x40c]
mov dl, byte [ebp - 0x12f]
mov cx, word [esi + ecx + 0x7643e]
mov ebx, ecx
and ebx, 0xfffd
test dl, 1
je 0x62963684
or ecx, 2
movzx ebx, cx
mov ecx, ebx
and ecx, 0xfffffffb
test dl, 8
je 0x62963693
or ebx, 4
mov ecx, ebx
imul eax, eax, 0x68
add eax, dword [ebp - 0x40c]
and dl, 4
mov word [eax + 0x7643e], cx
je 0x629636b1
mov word [eax + 0x7643c], 0
inc dword [ebp - 0x420]
jmp 0x6296345a
mov eax, dword [ebp - 0x2dc]
bswap eax
test eax, eax
je 0x629638a6
cmp word [ebp - 0x2d8], 0
je 0x629638a6
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push ecx
je 0x629638a6
movzx esi, byte [ebp - 0x135]
movzx eax, word [ebp - 0x2d8]
mov word [ebp - 0x418], si
xchg al, ah
cmp si, ax
jbe 0x62963711
mov word [ebp - 0x418], ax
movzx eax, word [ebp - 0x2d6]
mov dword [ebp - 0x410], 0
xchg al, ah
mov word [ebp - 0x420], ax
mov esi, dword [ebp - 0x410]
cmp word [ebp - 0x418], si
jbe 0x629638a6
movzx esi, word [ebp - 0x420]
mov ebx, esi
cmp esi, 0x28
jbe 0x62963751
mov ebx, 0x28
mov dword [esp], ebx
mov ecx, dword [ebp + 8]
call fcn.629c8e18
test al, al
push edx
jne 0x6296376b
mov ecx, dword [ebp + 8]
call fcn.629c8e48
mov ebx, eax
lea edi, [ebp - 0x134]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov ecx, dword [ebp + 8]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
mov ecx, 0x28
push eax
sub ecx, ebx
add ebx, edi
push eax
mov edi, ebx
xor eax, eax
rep stosb byte es:[edi], al
mov dword [esp], esi
mov ecx, dword [ebp + 8]
call fcn.62924a9c
lea edx, [ebp - 0x134]
push eax
lea eax, [ebp - 0x388]
mov dword [esp + 0xc], 0x28
mov dword [esp + 8], edx
mov dword [esp + 4], 2
mov dword [esp], eax
call method.OpenMPT::mpt::String::detail.ReadStringBuffer_abi:cxx11__OpenMPT::mpt::String::ReadWriteMode__char_const__unsigned_int_
mov eax, dword [ebp - 0x40c]
mov edi, dword [ebp - 0x410]
lea ebx, [ebp - 0x388]
lea ecx, [ebp - 0x2a0]
mov eax, dword [eax + edi*4 + 0xdbd20]
mov dword [esp], ebx
mov dword [ebp - 0x41c], eax
add eax, 0x1ec
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], 0x20
call method.mpt::mpt_libopenmpt::StringBufRefImpl_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____char_.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov ecx, ebx
push eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
mov eax, dword [ebp - 0x40c]
mov esi, dword [ebp - 0x410]
lea ecx, [ebp - 0x2a0]
mov eax, dword [eax + esi*4 + 0xdbd20]
mov dword [esp], eax
call method.OpenMPT::ModInstrument.GetSamples___const
lea ebx, [ebp - 0x29c]
push eax
mov eax, dword [ebp - 0x294]
cmp eax, ebx
je 0x62963886
movzx edx, word [eax + 0x10]
mov esi, dword [ebp - 0x410]
mov edi, dword [ebp - 0x40c]
add edx, 0x7384
mov ecx, 8
shl edx, 5
mov edi, dword [edi + esi*4 + 0xdbd20]
add edx, dword [ebp - 0x40c]
mov dword [ebp - 0x41c], edi
lea esi, [edi + 0x1ec]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp], eax
call method.std._Rb_tree_increment_std::_Rb_tree_node_base_const_
jmp 0x6296383d
mov eax, dword [ebp - 0x298]
lea ecx, [ebp - 0x2a0]
mov dword [esp], eax
call method.std::_Rb_tree_unsigned_short__unsigned_short__std::_Identity_unsigned_short___std::less_unsigned_short___std::allocator_unsigned_short___._M_erase_std::_Rb_tree_node_unsigned_short__
inc dword [ebp - 0x410]
push edi
jmp 0x6296372b
mov eax, dword [ebp - 0x40c]
lea ecx, [eax + 0xdc11c]
call method.OpenMPT::MIDIMacroConfig.ClearZxxMacros__
mov eax, dword [ebp - 0x40c]
lea ecx, [eax + 0xdc23c]
mov dword [eax + 0xdc23c], 0x7a206343
mov byte [eax + 0xdc240], 0
call method.OpenMPT::MIDIMacroConfigData::Macro.Sanitize__
mov eax, dword [ebp + 8]
mov dword [ebp - 0x428], 0
mov dword [eax + 8], 0
mov word [ebp - 0x41c], 0
mov al, byte [ebp - 0x428]
mov byte [ebp - 0x42c], al
mov al, byte [ebp - 0x412]
cmp byte [ebp - 0x428], al
jae 0x62965234
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x2f0]
mov dword [esp], eax
lea edx, [ebp - 0x358]
mov eax, dword [ebp + 8]
call sym.__ZN7OpenMPTL15MEDReadNextSongERNS_6detail10FileReaderIN3mpt14mpt_libopenmpt2IO24FileCursorTraitsFileDataENS4_24FileCursorFile
cmp byte [ebp - 0x42c], 0
jne 0x629639a1
imul eax, dword [ebp - 0x428], 0x2c
mov esi, dword [ebp - 0x40c]
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x380], 0
mov dword [ebp - 0x374], 0
add eax, dword [esi + 0x76408]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x384]
mov dword [ebp - 0x37c], eax
mov dword [ebp - 0x378], eax
mov eax, dword [ebp - 0x410]
mov edi, dword [ebp - 0x410]
mov eax, dword [eax]
cmp eax, dword [edi + 4]
je 0x629639bb
mov esi, dword [ebp - 0x410]
mov dword [esi + 4], eax
jmp 0x629639bb
mov eax, dword [ebp - 0x40c]
lea ecx, [eax + 0x76408]
call method.OpenMPT::ModSequenceSet.AddSequence__
inc al
jne 0x6296393a
jmp 0x62965449
cmp byte [ebp - 0x3fb], 1
ja 0x62963af1
movzx ebx, word [ebp - 0x24e]
xchg bl, bh
cmp bx, 0x100
ja 0x62965224
lea edi, [ebp - 0x134]
lea esi, [ebp - 0x24c]
mov ecx, 0x40
mov word [ebp - 0x3fa], 0xffff
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x410]
movzx ebx, bx
mov ecx, dword [edi + 4]
mov edx, ecx
sub edx, eax
sar edx, 1
cmp ebx, edx
jbe 0x62963a2f
lea eax, [ebp - 0x3fa]
mov dword [esp], ecx
mov dword [esp + 8], eax
mov eax, ebx
sub eax, edx
mov ecx, edi
mov dword [esp + 4], eax
call method.std::vector_unsigned_short__std::allocator_unsigned_short___._M_fill_insert___gnu_cxx::__normal_iterator_unsigned_short__std::vector_unsigned_short__std::allocator_unsigned_short_______unsigned_int__unsigned_short_const_
sub esp, 0xc
jmp 0x62963a43
jae 0x62963a43
lea edx, [ebx + ebx]
add eax, edx
cmp ecx, eax
je 0x62963a43
mov esi, dword [ebp - 0x410]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x410]
xor edx, edx
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov ecx, esi
sub ecx, eax
sar ecx, 1
cmp ebx, edx
jle 0x62963a81
movzx edi, byte [edx + ebp - 0x134]
cmp ecx, edx
ja 0x62963a7a
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 0x62b19f4b
call method.std.__throw_out_of_range_fmt_char_const__..._
mov word [eax + edx*2], di
inc edx
jmp 0x62963a56
cmp esi, eax
je 0x62963a93
mov edi, dword [ebp - 0x41c]
add word [eax], di
add eax, 2
jmp 0x62963a81
mov dword [esp], 1
mov ecx, dword [ebp - 0x40c]
call method.OpenMPT::CSoundFile.SetupMODPanning_bool_
mov eax, dword [ebp - 0x40c]
push esi
mov cx, word [eax + 0x753bc]
cmp cx, 0x10
jbe 0x62963abe
mov ecx, 0x10
xor eax, eax
cmp cx, ax
jbe 0x629644bb
movzx edx, byte [ebp + eax - 0x146]
mov ebx, eax
shl ebx, 5
cmp dl, 0x40
jbe 0x62963ae0
mov edx, 0x40
mov esi, dword [ebp - 0x40c]
inc eax
mov word [esi + ebx + 0x7541e], dx
jmp 0x62963ac0
mov dl, byte [ebp - 0x230]
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 0x424], dl
mov dl, byte [ebp - 0x22f]
mov byte [ebp - 0x420], dl
mov dx, word [ebp - 0x22e]
mov word [ebp - 0x430], dx
mov dword [ebp - 0x440], eax
movzx edx, word [ebp - 0x240]
mov eax, dword [ebp - 0x248]
xchg dl, dh
mov dword [ebp - 0x43c], eax
dec edx
mov ax, word [ebp - 0x23e]
mov esi, dword [ebp - 0x244]
mov word [ebp - 0x438], ax
mov edi, dword [ebp - 0x23c]
mov ebx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x234]
cmp dx, 0x3f
ja 0x62965224
mov edx, dword [ebp - 0x40c]
cmp word [edx + 0x753bc], 0x40
ja 0x62965224
bswap ebx
xchg al, ah
and ebx, 2
test ax, ax
jne 0x62963b95
mov dword [ebp - 0x418], 0x20
jmp 0x62963bd4
cmp ax, 0x320
jbe 0x62963ba0
mov eax, 0x320
movzx eax, ax
xor edx, edx
mov dword [esp + 8], 0x64
shld edx, eax, 5
shl eax, 5
mov dword [esp + 0xc], 0
add eax, 0x32
adc edx, 0
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__udivdi3
mov dword [ebp - 0x418], eax
test ebx, ebx
je 0x62963bde
shr dword [ebp - 0x418], 1
bswap esi
mov dword [esp], esi
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push ebx
je 0x62963c2b
xor ebx, ebx
mov eax, dword [ebp - 0x40c]
cmp word [eax + 0x753bc], bx
jbe 0x62963c2b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadUint8IN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCursor
movzx edx, bx
shl edx, 5
add edx, dword [ebp - 0x40c]
cmp al, 0x40
jbe 0x62963c1e
mov al, 0x40
movzx eax, al
mov word [edx + 0x7541e], ax
inc ebx
jmp 0x62963bf2
bswap edi
test edi, edi
jne 0x62963c49
mov dword [esp], 1
mov ecx, dword [ebp - 0x40c]
call method.OpenMPT::CSoundFile.SetupMODPanning_bool_
push ecx
jmp 0x62963cd2
mov dword [esp], edi
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push edx
je 0x62963c31
xor ebx, ebx
mov eax, dword [ebp - 0x40c]
cmp word [eax + 0x753bc], bx
jbe 0x62963cd2
lea eax, [ebp - 0x134]
mov dword [esp + 4], 1
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
push eax
xor eax, eax
dec edx
jne 0x62963ca1
mov dword [esp], 1
mov ecx, dword [ebp + 8]
call fcn.62924a9c
push eax
movsx eax, byte [ebp - 0x134]
movzx edx, bx
shl edx, 5
add edx, dword [ebp - 0x40c]
cmp al, 0x10
jle 0x62963cb8
mov eax, 0x10
jmp 0x62963cc1
cmp al, 0xf0
jge 0x62963cc1
mov eax, 0xfffffff0
lea eax, [eax*8 + 0x80]
inc ebx
mov word [edx + 0x7541c], ax
jmp 0x62963c5b
mov al, byte [ebp - 0x424]
dec eax
cmp al, 1
ja 0x6296400b
mov cl, byte [ebp - 0x420]
test cl, cl
jne 0x62963ced
mov cl, 1
mov eax, 1
shl eax, cl
fld1
mov dword [ebp - 0x420], eax
fld st(0)
fidiv dword [ebp - 0x420]
fst dword [ebp - 0x420]
fld st(0)
fmulp st(1)
fsubp st(1)
fstp dword [esp]
call sym._sqrtf
mov eax, dword [ebp - 0x430]
xchg al, ah
fdivr dword [ebp - 0x420]
test ax, ax
fld1
jne 0x62963d32
mov eax, 1
movzx eax, ax
dec eax
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x40c]
fld dword [0x62b1a00c]
fidivr dword [ebp - 0x430]
add eax, 0xdd440
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x40c]
mov eax, dword [eax + 0xdd440]
test eax, eax
fstp dword [ebp - 0x430]
je 0x62963d89
fstp st(0)
mov dword [esp], eax
fstp dword [ebp - 0x448]
call sym.operator_delete_void_
fld1
fld dword [ebp - 0x448]
jmp 0x62963d8b
fxch st(1)
fld st(0)
fadd st(2)
mov eax, dword [ebp - 0x40c]
mov ecx, 0x20
mov dword [eax + 0xdd43c], 0
mov dword [eax + 0xdd440], 0
fdivp st(1)
mov dword [eax + 0xdd444], 0
mov dword [eax + 0xdd448], 0
lea edi, [eax + 0xdd44c]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x40c]
lea ecx, [ebp - 0x134]
mov dword [eax + 0xdd4d0], 0
mov dword [eax + 0xdd4d4], 0
mov dword [eax + 0xdd4d8], 0
mov dword [eax + 0xdd44c], 0x44584d4f
mov dword [eax + 0xdd450], 0xef3e932c
mov byte [eax + 0xdd454], 0x11
mov byte [eax + 0xdd456], 0xa
fsubp st(1)
fstp dword [eax + 0xdd4cc]
call fcn.62a68840
mov eax, dword [ebp - 0x130]
mov dword [esp + 8], 0x20
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x134]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x40c]
add eax, 0xdd46c
mov dword [esp], 1
mov dword [esp + 4], eax
call method.OpenMPT::mpt::String::detail.WriteStringBuffer_OpenMPT::mpt::String::ReadWriteMode__char__unsigned_int__char_const__unsigned_int_
lea ecx, [ebp - 0x134]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea ecx, [ebp - 0x134]
call fcn.62a68840
mov eax, dword [ebp - 0x130]
mov dword [esp + 8], 0x40
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x134]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x40c]
add eax, 0xdd48c
mov dword [esp], 1
mov dword [esp + 4], eax
lea ebx, [ebp - 0x134]
call method.OpenMPT::mpt::String::detail.WriteStringBuffer_OpenMPT::mpt::String::ReadWriteMode__char__unsigned_int__char_const__unsigned_int_
mov ecx, ebx
mov edi, ebx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
mov ebx, dword [ebp - 0x420]
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
mov eax, ebx
mov esi, dword [ebp - 0x430]
shr eax, 0x18
mov edi, esi
shr edi, 8
mov dword [ebp - 0x448], eax
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x44c], eax
mov eax, ebx
shr eax, 8
mov dword [ebp - 0x450], eax
mov eax, esi
shr eax, 0x18
mov dword [ebp - 0x420], eax
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x430], eax
mov eax, 0x3f800000
cmp byte [ebp - 0x424], 2
je 0x62963f1b
xor eax, eax
mov edx, eax
mov dword [esp], 0x18
shr edx, 0x18
mov ecx, dword [ebp - 0x444]
shr eax, 0x10
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x458], eax
call method.std::vector_std::byte__std::allocator_std::byte___.resize_unsigned_int_
push eax
mov eax, dword [ebp - 0x40c]
mov word [ebp - 0x12e], 0x3f80
mov byte [ebp - 0x12c], bl
mov eax, dword [eax + 0xdd440]
mov word [ebp - 0x120], 0
mov dword [ebp - 0x424], eax
mov al, byte [ebp - 0x450]
mov byte [ebp - 0x12b], al
mov al, byte [ebp - 0x44c]
mov byte [ebp - 0x12a], al
mov al, byte [ebp - 0x448]
mov byte [ebp - 0x129], al
mov eax, esi
mov byte [ebp - 0x128], al
mov eax, edi
mov byte [ebp - 0x127], al
mov al, byte [ebp - 0x430]
mov byte [ebp - 0x126], al
mov al, byte [ebp - 0x420]
mov byte [ebp - 0x125], al
mov eax, esi
mov byte [ebp - 0x124], al
mov eax, edi
mov byte [ebp - 0x123], al
mov al, byte [ebp - 0x430]
mov byte [ebp - 0x122], al
mov al, byte [ebp - 0x420]
mov byte [ebp - 0x121], al
mov al, byte [ebp - 0x458]
mov byte [ebp - 0x11e], al
mov al, byte [ebp - 0x454]
mov byte [ebp - 0x11d], al
lea esi, [ebp - 0x134]
mov ecx, 6
mov edi, dword [ebp - 0x424]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp + 8]
bswap eax
mov dword [esp], eax
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 0
call fcn.62924a60
test al, al
push ecx
je 0x62964106
movzx eax, word [ebp - 0x24e]
xchg al, ah
movzx eax, ax
add eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp], eax
call fcn.629c8e18
test al, al
push edx
je 0x62964106
movzx eax, word [ebp - 0x24e]
mov ecx, dword [ebp - 0x320]
mov edx, dword [ebp - 0x324]
mov esi, ecx
xchg al, ah
sub esi, edx
movzx eax, ax
sar esi, 1
cmp eax, esi
lea ebx, [eax + eax]
jbe 0x6296409f
sub eax, esi
lea ecx, [ebp - 0x324]
mov dword [esp], eax
call method.std::vector_mpt::mpt_libopenmpt.packed_unsigned_short___mpt::mpt_libopenmpt::endian_305419896__unsigned_short___std::allocator_mpt::mpt_libopenmpt::packed_unsigned_short___mpt::mpt_libopenmpt::endian_305419896__unsigned_short_____::_M_default_appen
push edi
jmp 0x629640ae
jae 0x629640ae
lea eax, [edx + ebx]
cmp ecx, eax
je 0x629640ae
mov dword [ebp - 0x320], eax
mov dword [esp], ebx
mov ecx, dword [ebp + 8]
call fcn.629c8e18
test al, al
push esi
je 0x62964106
mov edx, dword [ebp - 0x324]
mov eax, dword [ebp - 0x320]
sub eax, edx
mov dword [esp], edx
mov dword [esp + 4], eax
mov ecx, dword [ebp + 8]
call fcn.62924ad4
mov eax, dword [ebp - 0x320]
push ebx
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x438]
xchg al, ah
push ebx
mov word [ebp - 0x444], ax
jmp 0x6296412b
lea ecx, [ebp - 0x324]
call method.std::_Vector_base_mpt::mpt_libopenmpt.packed_unsigned_short___mpt::mpt_libopenmpt::endian_305419896__unsigned_short___std::allocator_mpt::mpt_libopenmpt::packed_unsigned_short___mpt::mpt_libopenmpt::endian_305419896__unsigned_short_____::_Vector_b
jmp 0x62965201
movzx eax, word [edi]
xchg al, ah
cmp ax, word [ebp - 0x444]
jbe 0x6296413e
add dword [ebp - 0x420], 2
mov edi, dword [ebp - 0x420]
cmp dword [ebp - 0x43c], edi
jne 0x62964116
jmp 0x629644ae
mov edx, dword [ebp - 0x440]
mov ecx, dword [ebp + 8]
movzx eax, ax
bswap edx
lea eax, [edx + eax*4]
mov dword [esp], eax
call fcn.62924a60
mov eax, dword [ebp + 8]
push ecx
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEIjN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push edx
je 0x62964124
mov dword [esp], 0x2a
mov ecx, dword [ebp + 8]
call fcn.629c8e18
test al, al
push edi
je 0x62964124
lea eax, [ebp - 0x134]
mov dword [esp + 4], 0x2a
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push esi
cmp edx, 0x2a
push esi
jne 0x629641b9
mov dword [esp], 0x2a
mov ecx, dword [ebp + 8]
call fcn.62924a9c
push ebx
jmp 0x629641c8
lea edi, [ebp - 0x134]
mov ecx, 0x2a
xor eax, eax
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x410]
mov edi, dword [eax]
cmp dword [eax + 4], edi
je 0x629641e4
mov dword [esp], 0xfffe
mov ecx, eax
call method.OpenMPT::ModSequence.push_back_unsigned_short_
push ecx
mov eax, dword [ebp - 0x410]
mov esi, dword [ebp - 0x410]
movzx ebx, word [ebp - 0x10c]
mov eax, dword [eax + 4]
xchg bl, bh
sub eax, dword [esi]
mov ecx, dword [ebp + 8]
movzx ebx, bx
sar eax, 1
mov dword [esp], ebx
mov dword [ebp - 0x424], eax
call fcn.629c8e18
test al, al
push edx
jne 0x62964227
mov ecx, dword [ebp + 8]
call fcn.629c8e48
cmp ebx, eax
jbe 0x62964227
mov ebx, eax
cmp ebx, 0xfffe
jbe 0x62964234
mov ebx, 0xfffe
mov eax, dword [ebp - 0x424]
add eax, ebx
cmp eax, 0x3fffffff
jbe 0x6296424f
mov dword [esp], 0x62b19f95
call method.std.__throw_length_error_char_const_
mov edi, dword [ebp - 0x410]
mov esi, edi
mov ecx, dword [edi]
mov edi, dword [edi + 8]
mov edx, edi
mov dword [ebp - 0x430], edi
sub edx, ecx
sar edx, 1
cmp eax, edx
jbe 0x629642dd
mov edi, dword [esi + 4]
lea esi, [eax + eax]
sub edi, ecx
mov dword [ebp - 0x430], esi
test eax, eax
je 0x6296428a
mov dword [esp], esi
call sym.operator_new_unsigned_int_
mov esi, eax
jmp 0x6296428c
xor esi, esi
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x438], eax
sub eax, ecx
test eax, eax
jle 0x629642b3
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], esi
call sym._memmove
mov eax, dword [ebp - 0x410]
mov eax, dword [eax]
test eax, eax
je 0x629642c7
mov dword [esp], eax
call sym.operator_delete_void_
mov eax, dword [ebp - 0x410]
add edi, esi
mov dword [eax], esi
add esi, dword [ebp - 0x430]
mov dword [eax + 4], edi
mov dword [eax + 8], esi
xor esi, esi
cmp esi, ebx
je 0x6296430e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEItN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
test ax, ax
js 0x6296430b
add eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x410]
movzx eax, ax
mov dword [esp], eax
call method.OpenMPT::ModSequence.push_back_unsigned_short_
push edi
inc esi
jmp 0x629642df
cmp byte [ebp - 0x134], 0
je 0x62964367
lea eax, [ebp - 0x134]
lea ebx, [ebp - 0x370]
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x2a0]
mov dword [esp + 8], eax
mov eax, dword [0x62b318c0]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x29c], 0x20
call fcn.6292cf48
mov eax, dword [ebp - 0x410]
mov dword [esp], ebx
lea ecx, [eax + 0xc]
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::operator_std::__cxx11::basic_string_char__mpt::mpt_libopenmpt::encodi
push ecx
mov ecx, ebx
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::_M_dispose__
mov eax, dword [ebp - 0x114]
bswap eax
test eax, eax
je 0x62964124
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push edx
je 0x62964124
lea eax, [ebp - 0x370]
mov dword [esp + 4], 4
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 4
push eax
jne 0x62964124
mov dword [esp], 4
mov ecx, dword [ebp + 8]
call fcn.62924a9c
push eax
lea ebx, [ebp - 0x3c4]
movzx eax, byte [ebp - 0x36d]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov ecx, ebx
call fcn.62924b20
push esi
lea ecx, [ebp - 0x2a0]
push esi
mov dword [esp], ebx
call fcn.62924d94
mov ecx, ebx
push edi
call fcn.62925d04
movzx edx, word [ebp - 0x370]
xchg dl, dh
movzx eax, dx
add eax, dword [ebp - 0x424]
cmp eax, 0xffff
jbe 0x62964413
mov eax, 0xffff
inc dx
mov word [ebp - 0x39c], ax
je 0x6296444c
mov edi, dword [ebp - 0x410]
mov ecx, dword [edi]
mov edi, dword [edi + 4]
mov edx, edi
mov dword [ebp - 0x430], edi
sub edx, ecx
sar edx, 1
cmp edx, eax
jbe 0x6296444c
mov dl, byte [ebp - 0x36e]
cmp dl, 1
jne 0x6296445c
mov word [ecx + eax*2], 0xffff
jmp 0x6296449e
lea ecx, [ebp - 0x2a0]
call fcn.62925d04
jmp 0x62964124
cmp dl, 2
jne 0x6296449e
lea esi, [ebp - 0x2a0]
mov dword [esp], esi
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEItN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
mov ebx, eax
lea eax, [ebp - 0x39c]
mov dword [esp], eax
lea ecx, [ebp - 0x388]
call method.std::map_unsigned_short__unsigned_short__std::less_unsigned_short___std::allocator_std::pair_unsigned_short_const__unsigned_short_____.operator___unsigned_short_const_
push ecx
mov word [eax], bx
mov eax, dword [ebp - 0x410]
movzx edx, word [ebp - 0x39c]
mov eax, dword [eax]
mov word [eax + edx*2], 0xfffe
lea ecx, [ebp - 0x2a0]
call fcn.62925d04
jmp 0x6296438b
lea ecx, [ebp - 0x324]
call method.std::_Vector_base_mpt::mpt_libopenmpt.packed_unsigned_short___mpt::mpt_libopenmpt::endian_305419896__unsigned_short___std::allocator_mpt::mpt_libopenmpt::packed_unsigned_short___mpt::mpt_libopenmpt::endian_305419896__unsigned_short_____::_Vector_b
jmp 0x629644c5
mov dword [ebp - 0x418], 0x20
mov al, byte [ebp - 0x149]
mov dl, al
shr al, 6
shr dl, 4
and eax, 1
mov byte [ebp - 0x440], al
mov al, byte [ebp - 0x148]
mov bl, al
and edx, 1
and bl, 0x20
mov byte [ebp - 0x448], dl
setne byte [ebp - 0x444]
and eax, 0x1f
inc eax
mov byte [ebp - 0x438], al
cmp byte [ebp - 0x42c], 0
jne 0x62964580
movzx esi, byte [ebp - 0x438]
movzx eax, word [ebp - 0x14c]
movzx ecx, byte [ebp - 0x444]
xchg al, ah
movzx edx, byte [ebp - 0x440]
mov dword [esp], esi
movzx eax, ax
call method.OpenMPT.MMDTempoToBPM_unsigned_int__bool__bool__unsigned_char_
mov esi, dword [ebp - 0x40c]
mov dword [esi + 0x753cc], eax
movzx eax, byte [ebp - 0x147]
cmp al, 0x20
jbe 0x62964551
mov eax, 0x20
jmp 0x6296455a
test al, al
jne 0x6296455a
mov eax, 1
mov edi, dword [ebp - 0x40c]
test bl, bl
mov dword [edi + 0x753c4], eax
je 0x62964580
movzx eax, byte [ebp - 0x438]
mov dword [edi + 0x753d8], eax
shl eax, 2
mov dword [edi + 0x753dc], eax
movzx eax, byte [ebp - 0x136]
test al, al
je 0x629645a3
cmp al, 0x40
jbe 0x62964594
mov eax, 0x40
shl eax, 2
mov esi, dword [ebp - 0x40c]
mov dword [esi + 0x753c8], eax
mov eax, dword [ebp - 0x40c]
mov edi, dword [ebp - 0x418]
mov edx, dword [eax + 0x753d0]
mov dword [eax + 0x753e8], edi
mov dword [eax + 0x753e4], edi
mov eax, edx
and eax, 0xfffffffd
test byte [ebp - 0x149], 0x20
jne 0x629645d4
mov eax, edx
or eax, 2
mov edi, dword [ebp - 0x40c]
mov dword [edi + 0x753d0], eax
mov eax, dword [ebp - 0x2c4]
bswap eax
test eax, eax
je 0x629646cd
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push edx
je 0x629646cd
mov eax, dword [ebp - 0x2c0]
mov esi, dword [ebp - 0x40c]
bswap eax
lea ebx, [esi + 0x13cfa8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.62995020
cmp byte [ebp - 0x412], 1
je 0x629646cd
lea esi, [ebp - 0x2a0]
mov dword [esp], ebx
mov ecx, esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea ebx, [ebp - 0x134]
push eax
lea eax, [ebp - 0x370]
mov dword [esp + 4], esi
mov dword [esp], eax
mov ecx, ebx
mov dword [ebp - 0x370], 0x1c
call method.std::__cxx11::basic_string_char32_t__std::char_traits_char32_t___std::allocator_char32_t____OpenMPT::mpt::CharsetTranscoder::decode_std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char______std::__cxx11::basic_string_char__st
push eax
push eax
lea eax, [ebp - 0x324]
mov dword [esp + 8], 0x3f
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt11encode_utf8INSt7__cxx1112basic_stringIcNS0_20encoding_char_traitsILNS0_15common_encodingE0ES5_EESaIc
mov ecx, ebx
lea ebx, [ebp - 0x324]
call method.std::__cxx11::basic_string_char32_t__std::char_traits_char32_t___std::allocator_char32_t___._M_dispose__
mov ecx, esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
mov eax, dword [ebp - 0x410]
mov dword [esp], ebx
lea ecx, [eax + 0xc]
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::operator_std::__cxx11::basic_string_char__mpt::mpt_libopenmpt::encodi
mov ecx, ebx
push eax
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::_M_dispose__
jmp 0x629646cd
mov eax, dword [ebp - 0x2e0]
bswap eax
cmp eax, 1
jbe 0x62964721
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [ebp + 8]
bswap eax
mov dword [esp], eax
call fcn.62924a60
test al, al
push edi
je 0x62964721
mov eax, dword [ebp - 0x2e0]
mov edi, dword [ebp - 0x40c]
bswap eax
dec eax
lea ecx, [edi + 0x13cfd8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 4
mov dword [esp], eax
call sym.__ZN7OpenMPT11SongMessage4ReadERNS_6detail10FileReaderIN3mpt14mpt_libopenmpt2IO24FileCursorTraitsFileDataENS5_24FileCursorFile
sub esp, 0xc
mov eax, dword [ebp - 0x2b8]
bswap eax
test eax, eax
je 0x62964895
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push esi
je 0x62964895
mov dword [esp], 0xc
mov ecx, dword [ebp + 8]
call fcn.629c8e18
test al, al
push ebx
je 0x62964895
mov dword [esp], 6
mov ecx, dword [ebp + 8]
call fcn.62924a9c
mov eax, dword [ebp + 8]
push ecx
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEItN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
dec ax
jne 0x62964895
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEIjN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
mov ebx, eax
test eax, eax
je 0x62964895
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.629c8e18
test al, al
push edx
je 0x62964895
mov eax, dword [ebp - 0x40c]
lea ecx, [ebp - 0x370]
lea esi, [eax + 0x13cfd8]
mov dword [esp], esi
call fcn.62a67b70
mov eax, dword [ebp + 8]
mov ecx, esi
push edi
mov dword [esp + 8], 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.__ZN7OpenMPT11SongMessage4ReadERNS_6detail10FileReaderIN3mpt14mpt_libopenmpt2IO24FileCursorTraitsFileDataENS5_24FileCursorFile
sub esp, 0xc
cmp dword [ebp - 0x36c], 0
je 0x6296488a
lea eax, [ebp - 0x31c]
mov dword [esp + 4], 0xd
mov dword [esp], 2
lea ecx, [ebp - 0x324]
mov dword [ebp - 0x324], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_unsigned_int__char_
push ebx
lea eax, [ebp - 0x370]
push ebx
lea ecx, [ebp - 0x324]
mov dword [esp + 4], eax
mov dword [esp], 0
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.insert_unsigned_int__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
push edx
lea ecx, [ebp - 0x2a0]
push edx
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
push ecx
lea ecx, [ebp - 0x2a0]
mov dword [esp], esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.append_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea ebx, [ebp - 0x134]
push edi
mov dword [esp], eax
mov ecx, ebx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
mov ecx, esi
push eax
mov dword [esp], ebx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.assign_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
mov ecx, ebx
push eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea ecx, [ebp - 0x2a0]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea ecx, [ebp - 0x324]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea ecx, [ebp - 0x370]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
cmp byte [ebp - 0x3fb], 1
jbe 0x629649d9
cmp dword [ebp - 0x2ac], 0
je 0x629649d9
xor edi, edi
mov eax, dword [ebp - 0x40c]
cmp word [eax + 0x753bc], di
jbe 0x629649d9
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp + 8]
bswap eax
movzx edx, di
lea eax, [eax + edx*4]
mov dword [esp], eax
call fcn.62924a60
test al, al
push ebx
je 0x629649d3
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEIjN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push ecx
je 0x629649d3
xor ebx, ebx
xor esi, esi
mov dword [esp], 8
mov ecx, dword [ebp + 8]
call fcn.629c8e18
test al, al
push edx
je 0x62964995
lea eax, [ebp - 0x134]
mov dword [esp + 4], 8
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 8
push eax
jne 0x6296494f
mov dword [esp], 8
mov ecx, dword [ebp + 8]
call fcn.62924a9c
push eax
jmp 0x62964963
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x134]
bswap eax
test eax, eax
je 0x62964995
and eax, 0x1fffffff
cmp eax, 1
je 0x62964988
cmp eax, 2
jne 0x62964909
mov ebx, dword [ebp - 0x130]
bswap ebx
jmp 0x62964909
mov esi, dword [ebp - 0x130]
bswap esi
jmp 0x62964909
test esi, esi
je 0x629649d3
test ebx, ebx
je 0x629649d3
mov dword [esp], esi
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push esi
je 0x629649d3
movzx eax, di
shl eax, 5
mov esi, dword [ebp - 0x40c]
mov dword [esp + 8], ebx
lea eax, [esi + eax + 0x75421]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN7OpenMPT13FileReaderExt10ReadStringILNS_3mpt6String13ReadWriteModeE2ELj20ENS_6detail10FileReaderIN3mpt14mpt_libopenmpt2IO2
inc edi
jmp 0x629648b1
movzx eax, word [ebp - 0x250]
mov edi, dword [ebp - 0x41c]
xchg al, ah
not edi
cmp di, ax
mov word [ebp - 0x418], di
jbe 0x629649fd
mov word [ebp - 0x418], ax
mov eax, dword [ebp - 0x40c]
add eax, 0x763f8
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x41c]
add eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x42c]
movzx eax, ax
mov dword [esp], eax
call method.OpenMPT::CPatternContainer.ResizeArray_unsigned_short_
movzx eax, word [ebp - 0x41c]
push ebx
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x420], 0
mov eax, dword [ebp - 0x420]
cmp word [ebp - 0x418], ax
mov word [ebp - 0x450], ax
jbe 0x62964f66
test byte [ebp + 0xc], 1
je 0x62964f5b
mov eax, dword [ebp - 0x348]
mov esi, dword [ebp - 0x420]
bswap eax
mov ecx, dword [ebp + 8]
lea eax, [eax + esi*4]
mov dword [esp], eax
call fcn.62924a60
test al, al
push ecx
je 0x62964f5b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEIjN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push edx
je 0x62964f5b
movsx bx, byte [ebp - 0x14a]
lea eax, [ebp - 0x298]
lea ecx, [ebp - 0x3c4]
mov dword [ebp - 0x2a0], eax
lea eax, [ebx + 0x30]
mov dword [ebp - 0x29c], 0
mov byte [ebp - 0x298], 0
mov word [ebp - 0x43c], ax
call fcn.629256f4
lea ecx, [ebp - 0x370]
call fcn.629256f4
mov al, byte [ebp - 0x3fb]
test al, al
jne 0x62964b58
lea eax, [ebp - 0x134]
mov dword [esp + 4], 2
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 2
push eax
jne 0x62964b2c
mov dword [esp], 2
mov ecx, dword [ebp + 8]
call fcn.62924a9c
push eax
jmp 0x62964b35
mov word [ebp - 0x134], 0
movzx eax, byte [ebp - 0x134]
mov word [ebp - 0x424], ax
xor edi, edi
movzx eax, byte [ebp - 0x133]
inc eax
mov dword [ebp - 0x430], eax
jmp 0x62964dc9
cmp al, 2
jbe 0x62964b66
lea eax, [ebx + 0x18]
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x3d8]
mov dword [esp + 4], 8
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 8
push eax
jne 0x62964b98
mov dword [esp], 8
mov ecx, dword [ebp + 8]
call fcn.62924a9c
push eax
jmp 0x62964bac
mov dword [ebp - 0x3d8], 0
mov dword [ebp - 0x3d4], 0
movzx eax, word [ebp - 0x3d8]
xchg al, ah
mov word [ebp - 0x424], ax
movzx eax, word [ebp - 0x3d6]
xchg al, ah
movzx eax, ax
inc eax
xor edi, edi
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x3d4]
bswap eax
test eax, eax
je 0x62964dc9
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, dword [edi + 8]
mov dword [esp], eax
mov dword [ebp - 0x44c], esi
call fcn.62924a60
push eax
lea eax, [ebp - 0x134]
mov dword [esp], eax
mov dword [esp + 4], 0x24
mov ecx, dword [ebp + 8]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push edi
cmp edx, 0x24
push edi
jne 0x62964c2a
mov dword [esp], 0x24
mov ecx, dword [ebp + 8]
call fcn.62924a9c
push esi
jmp 0x62964c39
lea edi, [ebp - 0x134]
mov ecx, 9
xor eax, eax
rep stosd dword es:[edi], eax
cmp dword [ebp - 0x12c], 0
je 0x62964c7f
mov eax, dword [ebp - 0x130]
bswap eax
test eax, eax
je 0x62964c7f
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push ebx
je 0x62964c7f
mov eax, dword [ebp - 0x12c]
bswap eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x2a0]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.62995020
mov eax, dword [ebp - 0x128]
bswap eax
test eax, eax
jne 0x62964c92
xor edi, edi
jmp 0x62964d20
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push ecx
je 0x62964c8b
mov dword [esp], 8
mov ecx, dword [ebp + 8]
call fcn.629c8e18
test al, al
push edx
je 0x62964c8b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEItN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
mov dword [esp], 2
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.62924a9c
push eax
lea ebx, [ebp - 0x3b0]
movzx eax, di
shl eax, 2
mov ecx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.62924b20
push esi
push esi
lea esi, [ebp - 0x324]
mov ecx, esi
mov dword [esp], ebx
call fcn.62924d94
lea ecx, [ebp - 0x370]
push eax
mov dword [esp], esi
call fcn.62925efc
mov ecx, esi
push eax
call fcn.62925d04
mov ecx, ebx
call fcn.62925d04
mov eax, dword [ebp - 0x124]
bswap eax
test eax, eax
je 0x62964db7
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push ecx
je 0x62964db7
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEIjN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push edx
je 0x62964db7
movzx eax, word [ebp - 0x424]
imul eax, dword [ebp - 0x430]
movzx edx, di
inc edx
lea ebx, [ebp - 0x39c]
imul eax, edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov ecx, ebx
call fcn.62924b20
push eax
lea esi, [ebp - 0x324]
push eax
mov ecx, esi
mov dword [esp], ebx
call fcn.62924d94
lea ecx, [ebp - 0x3c4]
push eax
mov dword [esp], esi
call fcn.62925efc
mov ecx, esi
push eax
call fcn.62925d04
mov ecx, ebx
call fcn.62925d04
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
call fcn.62924a60
push eax
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0x42c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x450]
add eax, dword [ebp - 0x41c]
movzx eax, ax
mov dword [esp], eax
call method.OpenMPT::CPatternContainer.Insert_unsigned_short__unsigned_int_
push esi
lea ecx, [ebp - 0x370]
push esi
test al, al
je 0x62964f40
mov esi, dword [ebp - 0x454]
mov eax, dword [ebp - 0x40c]
add esi, dword [ebp - 0x420]
shl esi, 6
add esi, dword [eax + 0x763f8]
lea eax, [ebp - 0x2a0]
mov dword [esp], eax
mov ecx, esi
call method.OpenMPT::CPattern.SetName_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov eax, dword [ebp - 0x40c]
push ebx
mov eax, dword [eax + 0x753bc]
cmp ax, word [ebp - 0x424]
jbe 0x62964e47
mov eax, dword [ebp - 0x424]
movzx edx, word [ebp - 0x43c]
shl eax, 0x10
mov ebx, dword [ebp - 0x440]
or edx, eax
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x430], edx
xor edx, edx
mov dl, byte [ebp - 0x3fb]
and eax, 1
mov dh, byte [ebp - 0x438]
and ebx, 1
shl eax, 0x10
mov dword [esp + 8], 0
shl ebx, 0x11
mov ecx, eax
mov eax, edx
and eax, 0xfffcffff
or eax, ecx
or eax, ebx
mov ebx, dword [ebp - 0x444]
and ebx, 1
and eax, 0xfff3ffff
shl ebx, 0x12
mov ecx, ebx
mov ebx, dword [ebp - 0x448]
and ebx, 1
or eax, ecx
mov edx, ebx
mov ebx, eax
shl edx, 0x13
mov eax, dword [ebp - 0x430]
or ebx, edx
mov dword [esp], eax
mov dword [esp + 4], ebx
mov ecx, esi
lea edx, [ebp - 0x3c4]
mov eax, dword [ebp + 8]
call sym.__ZN7OpenMPTL19TranslateMEDPatternERNS_6detail10FileReaderIN3mpt14mpt_libopenmpt2IO24FileCursorTraitsFileDataENS4_24FileCursor
or byte [ebp - 0x413], al
mov word [ebp - 0x424], 0
cmp di, word [ebp - 0x424]
lea ecx, [ebp - 0x370]
je 0x62964f40
mov dword [esp], ecx
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntBEIjN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
test eax, eax
je 0x62964f37
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push ecx
je 0x62964f37
mov eax, dword [ebp - 0x430]
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], ebx
mov ecx, esi
lea edx, [ebp - 0x3c4]
mov eax, dword [ebp + 8]
call sym.__ZN7OpenMPTL19TranslateMEDPatternERNS_6detail10FileReaderIN3mpt14mpt_libopenmpt2IO24FileCursorTraitsFileDataENS4_24FileCursor
inc word [ebp - 0x424]
jmp 0x62964ee7
call fcn.62925d04
lea ecx, [ebp - 0x3c4]
call fcn.62925d04
lea ecx, [ebp - 0x2a0]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
inc dword [ebp - 0x420]
jmp 0x62964a43
mov ebx, dword [ebp - 0x37c]
lea eax, [ebp - 0x384]
cmp ebx, eax
je 0x6296508d
mov ax, word [ebx + 0x10]
test ax, ax
jne 0x62964f95
movzx eax, word [ebx + 0x10]
movzx edx, word [ebx + 0x12]
inc eax
cmp edx, eax
jne 0x62964fc7
jmp 0x6296507e
dec eax
mov ecx, dword [ebp - 0x410]
movzx eax, ax
mov dword [esp], eax
call method.OpenMPT::ModSequence.IsValidPat_unsigned_short__const
test al, al
push edx
je 0x62964f83
mov ax, word [ebx + 0x10]
mov ecx, dword [ebp - 0x410]
dec eax
movzx eax, ax
mov dword [esp], eax
call method.OpenMPT::ModSequence.EnsureUnique_unsigned_short_
mov esi, eax
push edi
jmp 0x62964fff
mov dword [esp + 4], 0
mov dword [esp], 1
mov ecx, dword [ebp - 0x42c]
call method.OpenMPT::CPatternContainer.InsertAny_unsigned_int__bool_
cmp ax, 0xffff
push esi
push esi
mov esi, eax
je 0x6296507e
mov eax, dword [ebp - 0x410]
movzx edx, word [ebx + 0x10]
mov eax, dword [eax]
mov word [eax + edx*2], si
mov eax, dword [ebp - 0x40c]
movzx ecx, si
shl ecx, 6
add ecx, dword [eax + 0x763f8]
mov ax, word [ebx + 0x12]
cmp ax, 0xff
jbe 0x62965020
mov eax, 0xff
mov byte [ebp - 0x129], al
mov al, byte [ebp - 0x128]
and eax, 0xfffffff8
mov byte [ebp - 0x12a], 0xc
or eax, 1
mov word [ebp - 0x12c], 0xffff
mov byte [ebp - 0x128], al
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x134], 2
dec eax
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x134]
mov dword [esp], eax
call method.OpenMPT::CPattern.WriteEffect_OpenMPT::EffectWriter_
cmp si, word [ebp - 0x418]
push ecx
jb 0x6296507e
lea eax, [esi + 1]
mov word [ebp - 0x418], ax
mov dword [esp], ebx
call method.std._Rb_tree_increment_std::_Rb_tree_node_base_
mov ebx, eax
jmp 0x62964f6c
cmp byte [ebp - 0x412], 1
je 0x629651d8
mov ecx, dword [ebp - 0x410]
call method.OpenMPT::ModSequence.GetFirstValidIndex___const
mov ecx, dword [ebp - 0x410]
movzx eax, ax
mov dword [esp], eax
call method.OpenMPT::ModSequence.EnsureUnique_unsigned_short_
mov ebx, eax
push edx
cmp ax, 0xffff
je 0x629651d8
movzx eax, ax
shl eax, 6
xor esi, esi
mov dword [ebp - 0x410], eax
mov eax, dword [ebp - 0x40c]
cmp word [eax + 0x753bc], si
jbe 0x629651c5
mov ecx, dword [ebp - 0x410]
mov edx, dword [ebp - 0x40c]
movzx edi, si
add ecx, dword [eax + 0x763f8]
mov eax, edi
shl eax, 5
mov byte [ebp - 0x12a], 0x15
mov dword [ebp - 0x130], 0
mov word [ebp - 0x12c], si
mov ax, word [edx + eax + 0x7541e]
mov dword [ebp - 0x134], 1
mov byte [ebp - 0x129], al
mov al, byte [ebp - 0x128]
and eax, 0xfffffff8
or eax, 1
mov byte [ebp - 0x128], al
lea eax, [ebp - 0x134]
mov dword [esp], eax
call method.OpenMPT::CPattern.WriteEffect_OpenMPT::EffectWriter_
shl edi, 5
push eax
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x410]
add ecx, dword [eax + 0x763f8]
mov eax, dword [eax + edi + 0x7541c]
cmp ax, 0xff
jbe 0x62965176
mov eax, 0xff
mov byte [ebp - 0x129], al
mov al, byte [ebp - 0x128]
and eax, 0xfffffff8
mov byte [ebp - 0x12a], 9
or eax, 1
mov dword [ebp - 0x130], 0
mov byte [ebp - 0x128], al
lea eax, [ebp - 0x134]
mov dword [esp], eax
mov word [ebp - 0x12c], si
mov dword [ebp - 0x134], 1
call method.OpenMPT::CPattern.WriteEffect_OpenMPT::EffectWriter_
inc esi
push edi
jmp 0x629650d1
cmp bx, word [ebp - 0x418]
jb 0x629651d8
lea eax, [ebx + 1]
mov word [ebp - 0x418], ax
mov eax, dword [ebp - 0x2f0]
mov edi, dword [ebp - 0x418]
bswap eax
add word [ebp - 0x41c], di
test eax, eax
je 0x62965217
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call fcn.62924a60
test al, al
push ecx
je 0x62965217
lea ecx, [ebp - 0x388]
call method.std::_Rb_tree_unsigned_short__std::pair_unsigned_short_const__unsigned_short___std::_Select1st_std::pair_unsigned_short_const__unsigned_short_____std::less_unsigned_short___std::allocator_std::pair_unsigned_short_const__unsigned_short_____._Rb_tre
inc dword [ebp - 0x428]
jmp 0x629638f6
lea ecx, [ebp - 0x388]
call method.std::_Rb_tree_unsigned_short__std::pair_unsigned_short_const__unsigned_short___std::_Select1st_std::pair_unsigned_short_const__unsigned_short_____std::less_unsigned_short___std::allocator_std::pair_unsigned_short_const__unsigned_short_____._Rb_tre
jmp 0x62965234
lea ecx, [ebp - 0x388]
call method.std::_Rb_tree_unsigned_short__std::pair_unsigned_short_const__unsigned_short___std::_Select1st_std::pair_unsigned_short_const__unsigned_short_____std::less_unsigned_short___std::allocator_std::pair_unsigned_short_const__unsigned_short_____._Rb_tre
jmp 0x62965449
mov eax, dword [ebp - 0x40c]
mov dword [esp], 0
lea ecx, [eax + 0x76408]
call method.OpenMPT::ModSequenceSet.SetSequence_unsigned_char_
cmp byte [ebp - 0x413], 0
push edx
jne 0x629652c4
mov esi, 1
mov eax, dword [ebp - 0x40c]
cmp word [eax + 0x753c0], si
jb 0x629652b5
movzx eax, si
mov edi, dword [ebp - 0x40c]
lea edi, [edi + eax*4]
mov ebx, dword [edi + 0xdbd1c]
test ebx, ebx
je 0x629652a8
mov eax, dword [ebx + 0x58]
call fcn.62a3218c
mov eax, dword [ebx + 0x44]
call fcn.62a3218c
mov eax, dword [ebx + 0x30]
call fcn.62a3218c
mov dword [esp + 4], 0x22c
mov dword [esp], ebx
call sym.operator_delete_void__unsigned_int_
mov dword [edi + 0xdbd1c], 0
inc esi
jmp 0x6296525b
mov eax, dword [ebp - 0x40c]
mov word [eax + 0x753c0], 0
cmp byte [ebp - 0x414], 0
je 0x62965309
mov dword [esp], str.Synthesized_MED_instruments_are_not_supported.
lea ecx, [ebp - 0x134]
call fcn.62a64718
push eax
lea eax, [ebp - 0x134]
mov dword [esp + 4], eax
mov dword [esp], 2
mov ecx, dword [ebp - 0x40c]
call sym.__ZNK7OpenMPT10CSoundFile8AddToLogENS_8LogLevelERKNSt7__cxx1112basic_stringIcN3mpt14mpt_libopenmpt20encoding_char_traitsILNS5_
lea ecx, [ebp - 0x134]
push eax
push eax
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::_M_dispose__
mov al, byte [ebp - 0x3fb]
mov ebx, str.OctaMED_v5__MMD2_
cmp al, 2
je 0x6296534f
ja 0x62965325
mov ebx, str.OctaMED_v4__MMD1_
test al, al
jne 0x6296534f
jmp 0x62965335
mov ebx, 0x62b19f15
cmp al, 3
jne 0x6296534f
mov ebx, str.OctaMED_Soundstudio__MMD3_
jmp 0x6296534f
mov eax, dword [ebp - 0x40c]
mov ebx, str.OctaMED_v2.10__MMD0_
cmp word [eax + 0x753bc], 4
ja 0x6296534f
mov ebx, str.MED_v2__MMD0_
mov dword [esp], str.OctaMED__MMD_
lea ecx, [ebp - 0x134]
call fcn.62a64718
lea esi, [ebp - 0x324]
push eax
lea eax, [ebp - 0x134]
mov ecx, esi
mov dword [esp], eax
lea edi, [ebp - 0x2a0]
call fcn.62a63538
lea ecx, [ebp - 0x134]
push eax
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::_M_dispose__
lea eax, [ebp - 0x3fb]
mov dword [esp], esi
mov dword [esp + 4], eax
mov ecx, edi
call fcn.629c76a0
mov eax, dword [ebp - 0x40c]
push ecx
push ecx
mov dword [esp], edi
lea ecx, [eax + 0x13cff0]
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::operator_std::__cxx11::basic_string_char__mpt::mpt_libopenmpt::encodi
mov ecx, edi
push eax
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::_M_dispose__
mov ecx, esi
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::_M_dispose__
mov dword [esp], 0x62b19fe4
lea ecx, [ebp - 0x134]
call fcn.62a64718
push eax
mov eax, dword [ebp - 0x40c]
mov edi, ebx
lea ecx, [eax + 0x13d008]
lea eax, [ebp - 0x134]
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::operator_std::__cxx11::basic_string_char__mpt::mpt_libopenmpt::encodi
lea ecx, [ebp - 0x134]
push edx
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::_M_dispose__
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, ecx
mov edi, dword [ebp - 0x40c]
not eax
dec eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
lea ecx, [edi + 0x13d020]
mov eax, dword [edi + 0x13d024]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym.__ZNSt7__cxx1112basic_stringIcN3mpt14mpt_libopenmpt20encoding_char_traitsILNS2_15common_encodingE0ES4_EESaIcEE10_M_replaceEjjP
mov eax, dword [ebp - 0x40c]
sub esp, 0x10
mov dword [eax + 0x13d068], 0x1c
jmp 0x62965450
mov byte [ebp - 0x411], 0
mov eax, dword [ebp - 0x3f8]
test eax, eax
je 0x62965462
mov dword [esp], eax
call sym.operator_delete_void_
lea ecx, [ebp - 0x3ec]
call fcn.62925d04
jmp 0x62965559
mov al, byte [ebp - 0x411]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8