Function at 0x100283d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074fae
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10093940]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5c], edi
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], 1
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov eax, dword [ecx]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 1
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], edx
cmp edx, eax
jbe 0x1002848c
mov dword [ebx], 0xff
mov dword [ebx + 4], 0x2f
jmp case.default.0x10028a48
mov edx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x60]
mov byte [ebp - 0x41], 0
mov dl, byte [edx]
mov dword [ecx], esi
lea esi, [ebx + 0x28]
mov byte [ebp - 0x43], dl
mov byte [ebp - 0x42], dl
cmp dl, 0xf0
je 0x10028d3c
cmp dl, 0xf7
je 0x10028d3c
cmp dl, 0xff
jne 0x10028973
mov eax, dword [ebp - 0x60]
mov dl, byte [eax]
inc eax
mov dword [ecx], eax
lea eax, [ebp - 0x41]
push eax
push dword [ebp + 0x10]
mov byte [ebp - 0x42], dl
push ecx
call fcn.1002b480
add esp, 0xc
mov dword [ebp - 0x60], eax
cmp byte [ebp - 0x41], 0
mov dword [ebp - 0x54], edx
je 0x10028967
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
lea ecx, [edx + eax]
cmp ecx, dword [ebp + 0x10]
ja 0x10028967
or eax, dword [ebp - 0x54]
jne 0x10028501
xor edx, edx
mov edi, dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
push edi
push edx
call fcn.100030b0
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x40]
mov ecx, esi
mov dword [ebp - 4], 1
add dword [eax], edi
cmp dword [ebp - 0x2c], 0xf
movzx eax, byte [ebp - 0x43]
cmova edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0xf
mov dword [ebx], eax
movzx eax, byte [ebp - 0x42]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
sub edx, eax
push edx
push eax
push dword [esi]
call fcn.100211a0
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x1002860b
mov ebx, dword [ebp - 0x5c]
cmp dword [ebx + 0xf8], 0
jne 0x100285be
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100030b0
lea esi, [ebx + 0xe8]
push eax
mov ecx, esi
call fcn.100045c0
lea ecx, [ebp - 0x28]
call fcn.10002f20
push 0
mov ecx, esi
call fcn.1002b070
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x100286e2
cmp dword [esi + 0x14], 0xf
jbe 0x100285ab
mov esi, dword [esi]
push esi
push str.Music_copyright:__s
push dword [eax + 0x1c]
call ecx
add esp, 0xc
jmp 0x100286e2
mov eax, dword [ebx + 8]
cmp dword [eax + 0x18], 0
je 0x100286e2
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100030b0
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1002b070
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov eax, dword [ebx + 8]
cmova ecx, dword [ebp - 0x28]
push ecx
push str.Extra_copyright_event:__s
push dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
call eax
jmp 0x100286d7
cmp eax, 3
jne 0x10028703
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov ebx, dword [ebp - 0x5c]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
cmp dword [ebx + 0xe0], 0
jne 0x10028676
call fcn.100030b0
lea esi, [ebx + 0xd0]
push eax
mov ecx, esi
call fcn.100045c0
lea ecx, [ebp - 0x28]
call fcn.10002f20
push 0
mov ecx, esi
call fcn.1002b070
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x100286e2
cmp dword [esi + 0x14], 0xf
jbe 0x10028666
mov esi, dword [esi]
push esi
push str.Music_title:__s
push dword [eax + 0x1c]
call ecx
add esp, 0xc
jmp 0x100286e2
call fcn.100030b0
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.1002b070
mov eax, dword [ebx + 0x104]
lea ecx, [ebp - 0x28]
push ecx
cmp eax, dword [ebx + 0x108]
je 0x100286ab
mov ecx, eax
call fcn.100030e0
add dword [ebx + 0x104], 0x18
jmp 0x100286b7
push eax
lea ecx, [ebx + 0x100]
call fcn.10020b20
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x100286da
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push str.Track_title:__s
push dword [ecx + 0x1c]
call edx
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.10002f20
cmp byte [ebp - 0x42], 0x2f
mov edi, dword [ebp - 0x48]
jne 0x100286f4
mov eax, dword [ebp - 0x50]
mov dword [eax], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10002f20
mov eax, edi
jmp 0x10028de8
cmp eax, 4
jne 0x10028751
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebx + 8]
cmp dword [eax + 0x18], 0
je 0x100286e2
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100030b0
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.1002b070
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov eax, dword [ebx + 8]
cmova ecx, dword [ebp - 0x28]
push ecx
push str.Instrument:__s
push dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
call eax
jmp 0x100286d7
cmp eax, 6
jne 0x100286e2
mov ecx, dword [ebp - 0x30]
xor edx, edx
test ecx, ecx
je 0x100287ab
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
cmp edi, 0xf
lea eax, [ebp - 0x40]
cmova eax, esi
cmp byte [eax + edx], 0x5a
jg 0x100287a3
cmp edi, 0xf
lea eax, [ebp - 0x40]
cmova eax, esi
cmp byte [eax + edx], 0x41
jl 0x100287a3
cmp edi, 0xf
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x40]
cmova eax, esi
cmova ecx, esi
mov al, byte [eax + edx]
add al, 0x20
mov byte [ecx + edx], al
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x40]
inc edx
cmp edx, ecx
jb 0x10028765
lea esi, [ebx + 0x28]
lea eax, [ebp - 0x40]
push 0x10077e70
push eax
call fcn.1001f5f0
add esp, 8
test al, al
je 0x100287c9
mov dword [ebx + 4], 0xe1
jmp 0x100287e5
lea eax, [ebp - 0x40]
push 0x10077e7c
push eax
call fcn.1001f5f0
add esp, 8
test al, al
je 0x10028805
mov dword [ebx + 4], 0xe2
mov eax, dword [esi]
mov edi, dword [ebp - 0x48]
cmp eax, dword [esi + 4]
je 0x100286f4
lea ecx, [ebp - 0x40]
mov dword [esi + 4], eax
call fcn.10002f20
mov eax, edi
jmp 0x10028de8
push 0xa
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.1002c450
push str.loopstart
push eax
call fcn.1001f5f0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.10002f20
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
test bl, bl
je 0x100288d6
mov edi, dword [ebp - 0x48]
push 0xffffffffffffffff
push 0xa
push eax
mov dword [edi], 0xff
mov dword [edi + 4], 0xe4
call fcn.1002c450
cmp dword [eax + 0x14], 0xf
jbe 0x1002885d
mov eax, dword [eax]
push eax
call fcn.1005b55b
add esp, 4
lea ecx, [ebp - 0x28]
mov bl, al
mov byte [ebp - 0x41], bl
call fcn.10002f20
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x10028881
mov dword [esi + 4], eax
mov ecx, eax
cmp ecx, dword [esi + 8]
je 0x1002888d
mov byte [ecx], bl
inc dword [esi + 4]
jmp 0x10028899
lea eax, [ebp - 0x41]
push eax
push ecx
mov ecx, esi
call fcn.100202f0
mov ebx, dword [ebp - 0x5c]
mov edx, dword [ebx + 8]
mov esi, dword [edx + 0x18]
test esi, esi
je 0x100286f4
mov ecx, dword [ebx + 0x174]
movzx eax, byte [ebp - 0x41]
push eax
lea eax, [ecx + 1]
push eax
push ecx
push str.Stack_Marker_Loop_Start_at__d_to__d_level_with__d_loops
push dword [edx + 0x1c]
call esi
add esp, 0x14
lea ecx, [ebp - 0x40]
call fcn.10002f20
mov eax, edi
jmp 0x10028de8
push 8
push 0
push eax
call fcn.1002c450
push str.loopend
push eax
call fcn.1001f5f0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.10002f20
test bl, bl
je 0x100286e2
mov edi, dword [ebp - 0x48]
mov dword [edi], 0xff
mov dword [edi + 4], 0xe5
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x1002891a
mov dword [esi + 4], eax
mov ebx, dword [ebp - 0x5c]
mov edx, dword [ebx + 8]
mov esi, dword [edx + 0x18]
test esi, esi
je 0x100286f4
mov ecx, dword [ebx + 0x174]
cmp dword [edi + 4], 0xe5
lea eax, [ecx - 1]
push eax
push ecx
mov ecx, str.Break
mov eax, 0x10077ed4
cmovne eax, ecx
push eax
push str.Stack_Marker_Loop__s_at__d_to__d_level
push dword [edx + 0x1c]
call esi
add esp, 0x14
lea ecx, [ebp - 0x40]
call fcn.10002f20
mov eax, edi
jmp 0x10028de8
push 0x45
push str.parseEvent:_Cant_read_Special_event___Unexpected_end_of_track_data._n
jmp 0x10028dd4
mov dh, dl
cmp dl, 0x80
jae 0x1002898b
mov eax, dword [ebp - 0x50]
mov dl, byte [eax]
mov eax, dword [ebp - 0x54]
or dl, 0x80
mov dword [ecx], eax
mov dh, dl
jmp 0x1002898e
mov eax, dword [ebp - 0x60]
cmp dh, 0xf3
jne 0x100289d3
inc eax
cmp eax, dword [ebp + 0x10]
jbe 0x100289a5
push 0x58
push str.parseEvent:_Cant_read_System_Command_Song_Select_event___Unexpected_end_of_track_data._n
jmp 0x10028dd4
movzx eax, dl
mov dword [ebx], eax
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x100289c5
mov al, byte [edx]
mov byte [ecx], al
inc dword [esi + 4]
jmp case.default.0x10028a48
push edx
push ecx
mov ecx, esi
call fcn.100202f0
jmp case.default.0x10028a48
cmp dh, 0xf2
jne 0x10028a17
add eax, 2
cmp eax, dword [ebp + 0x10]
jbe 0x100289ec
push 0x5d
push str.parseEvent:_Cant_read_System_Command_Position_Pointer_event___Unexpected_end_of_track_data._n
jmp 0x10028dd4
movzx eax, dl
mov dword [ebx], eax
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
je 0x10028a09
mov al, byte [edx]
mov byte [edi], al
inc dword [esi + 4]
jmp 0x100289aa
push edx
push edi
mov ecx, esi
call fcn.100202f0
mov ecx, dword [ebp - 0x4c]
jmp 0x100289aa
mov ebx, dword [ebp - 0x50]
mov dh, dl
movzx eax, dl
shr dh, 4
mov byte [ebp - 0x43], dh
mov dword [ebx], eax
and eax, 0xf
mov ebx, dword [ebp - 0x48]
mov dword [ebx + 8], eax
movzx eax, dh
mov dword [ebx], eax
add eax, 0xfffffff8
cmp eax, 6
ja case.default.0x10028a48
movzx eax, byte [eax + 0x10028e10]
jmp dword [eax*4 + 0x10028e08]
mov edx, dword [ecx]
lea eax, [edx + 2]
cmp eax, dword [ebp + 0x10]
jbe 0x10028a65
push 0x4c
push str.parseEvent:_Cant_read_regular_2_byte_event___Unexpected_end_of_track_data._n
jmp 0x10028dd4
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x10028a7e
mov al, byte [edx]
mov edx, dword [esi + 4]
mov byte [edx], al
inc dword [esi + 4]
jmp 0x10028a8a
push edx
push eax
mov ecx, esi
call fcn.100202f0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x10028aa2
mov al, byte [edx]
mov byte [ecx], al
inc dword [esi + 4]
jmp 0x10028aab
push edx
push ecx
mov ecx, esi
call fcn.100202f0
mov al, byte [ebp - 0x43]
cmp al, 9
jne 0x10028ac9
mov eax, dword [esi]
cmp byte [eax + 1], 0
jne case.default.0x10028a48
mov dword [ebx], 8
jmp case.default.0x10028a48
cmp al, 0xb
jne case.default.0x10028a48
cmp dword [edi + 0xc], 0
jne 0x10028b66
mov eax, dword [esi]
movzx ecx, byte [eax]
sub ecx, 0x6e
je 0x10028b35
sub ecx, 1
je 0x10028afa
sub ecx, 2
jne 0x10028b66
cmp dword [edi + 0x14], 2
jne 0x10028b66
mov byte [eax], 7
jmp 0x10028b66
mov ecx, dword [edi + 0x14]
cmp ecx, 3
jne 0x10028b19
mov dword [ebx], 0xff
mov dword [ebx + 4], 0xe2
cmp eax, dword [esi + 4]
je 0x10028b66
mov dword [esi + 4], eax
jmp 0x10028b66
cmp ecx, 2
je 0x10028b66
mov dword [ebx], 0xff
mov dword [ebx + 4], 0xe1
cmp eax, dword [esi + 4]
je 0x10028b66
mov dword [esi + 4], eax
jmp 0x10028b66
mov ecx, dword [edi + 0x14]
test ecx, ecx
jne 0x10028b5a
mov dword [ebx], 0xff
mov dword [ebx + 4], 0xe1
cmp eax, dword [esi + 4]
je 0x10028b51
mov dword [esi + 4], eax
mov dword [edi + 0x14], 3
jmp 0x10028b66
cmp ecx, 3
jne 0x10028b66
mov dword [edi + 0x14], 2
cmp dword [edi + 0xc], 4
jne case.default.0x10028a48
mov edx, dword [esi]
mov dword [ebp - 0x54], edx
movzx eax, byte [edx]
sub eax, 0x74
je 0x10028cb8
sub eax, 1
je 0x10028c5a
sub eax, 2
jne case.default.0x10028a48
mov dword [ebx], 0xff
mov dword [ebx + 4], 0xe7
mov eax, dword [esi + 8]
sub eax, edx
cmp eax, 1
jae 0x10028c03
mov edi, eax
mov ecx, 1
shr edi, 1
add edi, eax
cmp edi, ecx
cmovb edi, ecx
test edx, edx
je 0x10028bdc
push eax
push edx
call fcn.10049b55
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push edi
mov ecx, esi
call fcn.10024000
mov eax, dword [ebp - 0x54]
mov edx, dword [esi]
movzx ecx, byte [eax + 1]
mov eax, ecx
shl cx, 8
or cx, ax
lea eax, [edx + 1]
mov byte [edx], cl
mov dword [esi + 4], eax
jmp case.default.0x10028a48
mov edi, dword [esi + 4]
movzx ecx, byte [edx + 1]
sub edi, edx
cmp edi, 1
jae 0x10028c43
push edi
push ecx
push edx
call fcn.1004baa0
mov eax, dword [ebp - 0x54]
mov ebx, 1
sub ebx, edi
mov edi, dword [esi + 4]
push ebx
movzx eax, byte [eax + 1]
push eax
push edi
call fcn.1004baa0
lea eax, [edi + ebx]
add esp, 0x18
mov ebx, dword [ebp - 0x48]
mov dword [esi + 4], eax
jmp case.default.0x10028a48
mov ax, cx
shl cx, 8
or cx, ax
lea eax, [edx + 1]
mov byte [edx], cl
mov dword [esi + 4], eax
jmp case.default.0x10028a48
mov dword [ebx], 0xff
cmp byte [edx + 1], 0x40
sbb eax, eax
neg eax
add eax, 0xe5
mov dword [ebx + 4], eax
cmp edx, dword [esi + 4]
je 0x10028c78
mov dword [esi + 4], edx
mov edx, dword [edi + 8]
mov esi, dword [edx + 0x18]
test esi, esi
je case.default.0x10028a48
mov ecx, dword [edi + 0x174]
cmp dword [ebx + 4], 0xe5
lea eax, [ecx - 1]
push eax
push ecx
mov ecx, str.Break
mov eax, 0x10077ed4
cmovne eax, ecx
push eax
push str.Stack_XMI_Loop__s_at__d_to__d_level
push dword [edx + 0x1c]
call esi
add esp, 0x14
jmp case.default.0x10028a48
mov dword [ebx], 0xff
mov dword [ebx + 4], 0xe4
mov al, byte [edx + 1]
mov byte [edx], al
dec dword [ebx + 0x2c]
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x54], eax
test eax, eax
je case.default.0x10028a48
mov eax, dword [esi]
mov ecx, dword [edi + 0x174]
movzx eax, byte [eax]
push eax
lea eax, [ecx + 1]
push eax
push ecx
push str.Stack_XMI_Loop_Start_at__d_to__d_level_with__d_loops
push dword [edx + 0x1c]
call dword [ebp - 0x54]
add esp, 0x14
jmp case.default.0x10028a48
mov eax, dword [ecx]
lea edx, [eax + 1]
cmp edx, dword [ebp + 0x10]
jbe 0x10028d18
push 0x4c
push str.parseEvent:_Cant_read_regular_1_byte_event___Unexpected_end_of_track_data._n
jmp 0x10028dd4
mov dword [ecx], edx
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x10028d2e
mov al, byte [eax]
mov byte [ecx], al
inc dword [esi + 4]
jmp case.default.0x10028a48
push eax
push ecx
mov ecx, esi
call fcn.100202f0
jmp case.default.0x10028a48
lea edx, [ebp - 0x41]
push edx
push eax
push ecx
call fcn.1002b480
add esp, 0xc
mov dword [ebp - 0x50], eax
cmp byte [ebp - 0x41], 0
mov dword [ebp - 0x54], edx
je 0x10028dcd
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp + 0x10]
ja 0x10028dcd
mov dword [ebx], 0xf0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
cmp ecx, edx
je 0x10028d77
mov dword [esi + 4], ecx
mov edx, ecx
cmp edx, dword [esi + 8]
je 0x10028d86
mov cl, byte [ebp - 0x43]
mov byte [edx], cl
inc dword [esi + 4]
jmp 0x10028d95
lea eax, [ebp - 0x42]
mov ecx, esi
push eax
push edx
call fcn.100202f0
mov eax, dword [ebp - 0x4c]
mov edi, dword [eax]
mov ecx, dword [ebp - 0x50]
add ecx, edi
mov dword [ebp - 0x54], ecx
cmp edi, ecx
je 0x10028dc6
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x10028db4
mov al, byte [edi]
mov byte [ecx], al
inc dword [esi + 4]
jmp 0x10028dbd
push edi
push ecx
mov ecx, esi
call fcn.100202f0
inc edi
cmp edi, dword [ebp - 0x54]
jne 0x10028da3
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
add dword [eax], ecx
jmp case.default.0x10028a48
push 0x43
push str.parseEvent:_Cant_read_SysEx_event___Unexpected_end_of_track_data._n
lea ecx, [edi + 0x1a4]
call fcn.10003d90
mov dword [ebx + 0xc], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049b12
mov esp, ebp
pop ebp
ret 0x10