Function at 0x1002a560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075140
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x10093940]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x78], esi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov byte [ebp - 0x20], 0
movq qword [ebp - 0x1f], xmm0
mov dword [ebp - 0x17], 0
mov byte [ebp - 0x13], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0xe
push 1
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.1001a290
cmp eax, 0xe
jae 0x1002a5fe
push str.Unexpected_end_of_file_at_header__n
lea ecx, [esi + 0x1bc]
call fcn.10018f70
mov byte [ebp - 0x69], 0
jmp 0x1002ac45
lea ecx, [ebp - 0x20]
mov edx, str.MThd
mov esi, 4
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1002a625
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1002a610
xor eax, eax
jmp 0x1002a64c
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1002a647
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1002a647
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1002a647
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1002a647
xor eax, eax
jmp 0x1002a64c
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002a65a
push str.:_Invalid_format__MThd_signature_is_not_found__n
jmp 0x1002a9a1
movzx edx, byte [ebp - 0x18]
movzx eax, byte [ebp - 0x17]
movzx ecx, byte [ebp - 0x16]
mov esi, dword [ebp - 0x90]
shl edx, 8
add edx, eax
shl ecx, 8
movzx eax, byte [ebp - 0x15]
add ecx, eax
movzx eax, byte [ebp - 0x13]
mov dword [ebp - 0x74], ecx
movzx ecx, byte [ebp - 0x14]
shl ecx, 8
add ecx, eax
cmp edx, 2
mov eax, 1
mov dword [ebp - 0x80], ecx
cmova edx, eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x84], eax
cmp esi, eax
je 0x1002a70e
nop
mov eax, dword [esi]
test eax, eax
je 0x1002a6f7
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0x1000
jb 0x1002a6d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ac70
mov eax, edx
push ecx
push eax
call fcn.10049b55
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
add esi, 0xc
cmp esi, dword [ebp - 0x84]
jne 0x1002a6b0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x74]
lea ecx, [ebp - 0x90]
call fcn.1002b560
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10022d40
mov eax, dword [ebp - 0x80]
mov edx, 0xf4240
mov esi, dword [ebp - 0x78]
mov ecx, 2
mul edx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x24], edx
mul ecx
mov dword [ebp - 0x2c], 0
xor ecx, ecx
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
movups xmmword [esi + 0x118], xmm0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x84], ecx
movups xmmword [esi + 0x128], xmm0
cmp dword [ebp - 0x74], ecx
jbe 0x1002a8d1
mov dword [ebp - 0x70], ecx
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x1002a7e5
cmp dword [edi + 0x1c], eax
je 0x1002aa33
mov esi, dword [edi + 0x20]
xor ecx, ecx
mov edx, dword [edi + 0x24]
cmp edx, esi
jae 0x1002a7f8
mov eax, dword [edi + 0x1c]
mov al, byte [edx + eax]
mov byte [ebp + ecx - 0x20], al
inc ecx
lea eax, [edx + 1]
mov dword [edi + 0x24], eax
cmp ecx, 8
jb 0x1002a7c6
jmp 0x1002a7f8
push eax
push 8
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.10059dd5
add esp, 0x10
mov ecx, eax
cmp ecx, 8
jb 0x1002aa33
lea eax, [ebp - 0x20]
cmp dword [eax], 0x6b72544d
jne 0x1002aa33
movzx esi, byte [ebp - 0x1c]
movzx eax, byte [ebp - 0x1b]
mov ecx, dword [ebp - 0x70]
add ecx, dword [ebp - 0x90]
shl esi, 8
add esi, eax
mov dword [ebp - 0xa0], ecx
movzx eax, byte [ebp - 0x1a]
mov edx, dword [ecx + 4]
shl esi, 8
add esi, eax
mov dword [ebp - 0x80], edx
movzx eax, byte [ebp - 0x19]
shl esi, 8
add esi, eax
mov eax, dword [ecx]
sub edx, eax
mov dword [ebp - 0x94], esi
cmp esi, edx
jae 0x1002a856
add eax, esi
jmp 0x1002a88e
jbe 0x1002a891
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp esi, eax
jbe 0x1002a86d
lea eax, [ebp - 0x69]
push eax
push esi
call fcn.10021a30
jmp 0x1002a891
sub esi, edx
push esi
push 0
push dword [ebp - 0x80]
call fcn.1004baa0
mov eax, dword [ebp - 0x80]
add esp, 0xc
mov ecx, dword [ebp - 0xa0]
add eax, esi
mov esi, dword [ebp - 0x94]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x70]
push esi
push 1
push dword [eax + ecx]
mov ecx, edi
call fcn.1001a290
cmp eax, esi
jb 0x1002a99c
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x7c]
inc edx
add dword [ebp - 0x70], 0xc
add ecx, eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x84], edx
cmp edx, dword [ebp - 0x74]
jb 0x1002a7b1
xor edx, edx
xor esi, esi
xor eax, eax
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x74], 2
jb 0x1002a924
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x90]
add ecx, 4
lea edx, [edx - 2]
shr edx, 1
inc edx
lea eax, [edx + edx]
mov dword [ebp - 0x94], eax
nop dword [eax + eax]
mov eax, dword [ecx]
lea ecx, [ecx + 0x18]
sub eax, dword [ecx - 0x1c]
add esi, eax
mov eax, dword [ecx - 0xc]
sub eax, dword [ecx - 0x10]
add dword [ebp - 0x70], eax
sub edx, 1
jne 0x1002a900
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x74]
jae 0x1002a93f
mov ecx, dword [ebp - 0x90]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
mov ecx, dword [ebp - 0x7c]
add ecx, eax
lea eax, [esi + edx]
add ecx, eax
jne 0x1002aaf0
push str.:_Empty_track_data
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.1001f690
mov edi, dword [ebp - 0x78]
mov esi, eax
add edi, 0x1bc
add esp, 0xc
cmp edi, esi
je 0x1002aab9
mov ecx, edi
call fcn.10002f20
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x1002aab9
push str.:_Unexpected_file_ending_while_getting_raw_track_data__n
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.1001f690
mov esi, dword [ebp - 0x78]
mov edi, eax
add esi, 0x1bc
add esp, 0xc
cmp esi, edi
je 0x1002aa22
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x1002a9f0
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1002a9e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ac70
mov eax, edx
push ecx
push eax
call fcn.10049b55
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x50]
call fcn.10002f20
mov byte [ebp - 0x69], 0
jmp 0x1002ac45
push str.:_Invalid_format__MTrk_signature_is_not_found__n
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.1001f690
mov esi, dword [ebp - 0x78]
mov edi, eax
add esi, 0x1bc
add esp, 0xc
cmp esi, edi
je 0x1002aab9
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x1002aa87
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1002aa7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ac70
mov eax, edx
push ecx
push eax
call fcn.10049b55
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x1002ac28
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ac1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ac70
jmp 0x1002ac1e
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x90]
push eax
mov ecx, esi
call fcn.10024be0
test al, al
jne 0x1002ac2e
push str.:_MIDI_data_parsing_error_has_occouped__n
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.1001f690
add esp, 0xc
cmp dword [esi + 0x1b8], 0xf
lea edx, [esi + 0x1a4]
mov byte [ebp - 4], 2
jbe 0x1002ab34
mov edx, dword [esi + 0x1a4]
push dword [esi + 0x1b4]
mov ecx, eax
push edx
call fcn.10003d90
add esi, 0x1bc
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x68]
movq qword [ebp - 0x9c], xmm1
movq qword [ebp - 0x58], xmm1
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x68], xmm0
cmp esi, eax
je 0x1002abdd
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x1002abbc
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1002aba6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ac70
mov eax, edx
push ecx
push eax
call fcn.10049b55
movups xmm0, xmmword [ebp - 0x30]
add esp, 8
movq xmm1, qword [ebp - 0x9c]
mov dword [esi + 0x10], 0
mov ecx, 0xf
mov dword [esi + 0x14], 0xf
movups xmmword [esi], xmm0
mov byte [ebp - 0x68], 0
movq qword [esi + 0x10], xmm1
jmp 0x1002abe0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x1002ac0d
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ac03
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ac70
push ecx
push edx
call fcn.10049b55
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x1002ac28
mov edx, dword [ebp - 0x50]
inc ecx
jmp 0x1002aac9
push ecx
push edx
call fcn.10049b55
add esp, 8
mov byte [ebp - 0x69], 0
jmp 0x1002ac45
mov eax, dword [ebp - 0x98]
mov dword [esi + 0x10], eax
mov dword [esi + 0x174], 0xffffffff
mov byte [ebp - 0x69], 1
lea ecx, [ebp - 0x90]
call fcn.10022ff0
mov al, byte [ebp - 0x69]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049b12
mov esp, ebp
pop ebp
ret 4
call fcn.10057ede
int3