Function at 0x10027a30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074f40
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 edi, ecx
mov dword [ebp - 0x70], edi
mov esi, 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, esi
call fcn.1001a290
cmp eax, 0xe
jae 0x10027aca
push str.Unexpected_end_of_file_at_header__n
lea ecx, [edi + 0x1bc]
call fcn.10018f70
jmp 0x10028380
mov edx, str.CTMF
lea ecx, [ebp - 0x20]
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x10027af4
cmp al, byte [edx]
jne 0x10027af8
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10027af8
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10027af8
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10027af8
xor eax, eax
jmp 0x10027afd
sbb eax, eax
or eax, 1
test eax, eax
je 0x10027b98
push str.:_Invalid_format__CTMF_signature_is_not_found__n
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.1001f690
mov esi, dword [ebp - 0x70]
mov edi, eax
add esi, 0x1bc
add esp, 0xc
cmp esi, edi
je 0x10027b8b
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x10027b59
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x10027b4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100283b4
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
jmp 0x10028380
lea eax, [ebp - 0x1a]
mov dword [edi + 0xc], 1
push 2
push eax
call fcn.1002b290
mov edi, eax
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x78], edi
push 2
push eax
call fcn.1002b290
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x14]
push 2
push eax
mov dword [ebp - 0x94], edx
call fcn.1002b290
add esp, 0x18
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov ecx, esi
push 6
push 1
push eax
call fcn.1001a290
mov ecx, dword [esi + 0x18]
cmp eax, 6
jae 0x10027c38
test ecx, ecx
je 0x10027c04
push ecx
call fcn.10059bcc
add esp, 4
mov ecx, dword [ebp - 0x70]
push str.Unexpected_file_ending_on_attempt_to_read_CTMF_header_
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
lea ecx, [ecx + 0x1bc]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.10018f70
jmp 0x10028380
test ecx, ecx
jne 0x10027c56
cmp dword [esi + 0x1c], ecx
je 0x10027c63
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
add eax, 0x10
mov dword [esi + 0x24], eax
cmp eax, ecx
jbe 0x10027c63
mov dword [esi + 0x24], ecx
jmp 0x10027c63
push 1
push 0x10
push ecx
call fcn.1005a233
add esp, 0xc
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x10027c96
cmp dword [esi + 0x1c], eax
je 0x10027cbe
mov edi, dword [esi + 0x20]
xor ecx, ecx
mov edx, dword [esi + 0x24]
cmp edx, edi
jae 0x10027c91
mov eax, dword [esi + 0x1c]
mov al, byte [edx + eax]
mov byte [ebp + ecx - 0x20], al
inc ecx
lea eax, [edx + 1]
mov dword [esi + 0x24], eax
cmp ecx, 4
jb 0x10027c74
mov edi, dword [ebp - 0x78]
jmp 0x10027ca9
push eax
push 4
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.10059dd5
add esp, 0x10
mov ecx, eax
cmp ecx, 4
jae 0x10027cf2
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10027cbe
push eax
call fcn.10059bcc
add esp, 4
mov ecx, dword [ebp - 0x70]
push str.Unexpected_file_ending_on_attempt_to_read_CMF_instruments_block_header_
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
lea ecx, [ecx + 0x1bc]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.10018f70
jmp 0x10028380
lea eax, [ebp - 0x20]
push 2
push eax
call fcn.1002b290
mov ecx, eax
mov dword [ebp - 0x78], edx
mov eax, dword [esi + 0x18]
add esp, 8
mov dword [ebp - 0x74], ecx
test eax, eax
jne 0x10027d23
cmp dword [esi + 0x1c], eax
je 0x10027d32
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], edi
cmp edi, eax
jbe 0x10027d32
mov dword [esi + 0x24], eax
jmp 0x10027d32
push 0
push edi
push eax
call fcn.1005a233
mov ecx, dword [ebp - 0x74]
add esp, 0xc
mov edi, dword [ebp - 0x70]
add edi, 0xc4
mov dword [ebp - 0x24], ecx
mov eax, dword [edi + 8]
sub eax, dword [edi]
sar eax, 4
cmp ecx, eax
jbe 0x10027d64
cmp ecx, 0xfffffff
ja 0x100283af
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.10021830
mov ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x78], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x84], xmm0
jb 0x10027de3
ja 0x10027d7b
test ecx, ecx
je 0x10027de3
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
nop word [eax + eax]
push 0x10
push 1
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.1001a290
cmp eax, 0x10
jb 0x10027e01
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x10027db9
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [eax], xmm0
add dword [edi + 4], 0x10
jmp 0x10027dc5
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, edi
call fcn.10020410
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x80], eax
adc ecx, 0
mov dword [ebp - 0x24], ecx
cmp ecx, dword [ebp - 0x78]
jb 0x10027d90
ja 0x10027de3
cmp eax, dword [ebp - 0x74]
jb 0x10027d90
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x10027e45
cmp dword [esi + 0x1c], eax
je 0x10027e54
mov ecx, dword [ebp - 0x7c]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], ecx
cmp ecx, eax
jbe 0x10027e54
mov dword [esi + 0x24], eax
jmp 0x10027e54
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10027e11
push eax
call fcn.10059bcc
add esp, 4
mov ecx, dword [ebp - 0x70]
push str.Unexpected_file_ending_on_attempt_to_read_CMF_instruments_raw_data_
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
lea ecx, [ecx + 0x1bc]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.10018f70
jmp 0x10028380
mov ecx, dword [ebp - 0x7c]
push 0
push ecx
push eax
call fcn.1005a233
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x7c], eax
cmp edi, eax
je 0x10027ec2
mov eax, dword [edi]
test eax, eax
je 0x10027eae
mov ecx, dword [edi + 8]
sub ecx, eax
cmp ecx, 0x1000
jb 0x10027e90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100283b4
mov eax, edx
push ecx
push eax
call fcn.10049b55
mov dword [edi], 0
add esp, 8
mov dword [edi + 4], 0
mov dword [edi + 8], 0
add edi, 0xc
cmp edi, dword [ebp - 0x7c]
jne 0x10027e67
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 1
lea ecx, [ebp - 0x90]
call fcn.1002b560
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10027f24
mov edx, dword [ebp - 0x24]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10027f1a
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100283b4
push edx
push ecx
call fcn.10049b55
add esp, 8
mov ecx, dword [ebp - 0x94]
mov edx, 0xf4240
mov eax, ecx
mov dword [ebp - 0x30], 1
mul edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x24], edx
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x9c], 0
movups xmmword [eax + 0x118], xmm0
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], 0
movups xmm0, xmmword [ebp - 0xa0]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
movups xmmword [eax + 0x128], xmm0
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x10027faa
cmp dword [esi + 0x1c], eax
je 0x10027fa6
mov eax, dword [esi + 0x24]
jmp 0x10027fb3
xor eax, eax
jmp 0x10027fb3
push eax
call fcn.1005a957
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x10027fca
cmp dword [esi + 0x1c], eax
je 0x10027fd7
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], eax
jmp 0x10027fd7
push 2
push 0
push eax
call fcn.1005a233
add esp, 0xc
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x10027fec
cmp dword [esi + 0x1c], eax
je 0x10027fe8
mov edi, dword [esi + 0x24]
jmp 0x10027ff7
xor edi, edi
jmp 0x10027ff7
push eax
call fcn.1005a957
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x80]
sub edi, eax
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x24], edi
test ecx, ecx
jne 0x1002801a
cmp dword [esi + 0x1c], ecx
je 0x10028026
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x24], eax
cmp eax, ecx
jbe 0x10028026
mov dword [esi + 0x24], ecx
jmp 0x10028026
push 0
push eax
push ecx
call fcn.1005a233
add esp, 0xc
mov ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x7c], edx
sub edx, eax
cmp edi, edx
jae 0x10028047
add eax, edi
jmp 0x1002807c
jbe 0x1002807f
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp edi, eax
jbe 0x1002805e
lea eax, [ebp - 0x69]
push eax
push edi
call fcn.10021a30
jmp 0x1002807f
sub edi, edx
push edi
push 0
push dword [ebp - 0x7c]
call fcn.1004baa0
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov ecx, dword [ebp - 0x94]
add eax, edi
mov edi, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + ecx]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x94], eax
test ecx, ecx
jne 0x100280c2
cmp dword [esi + 0x1c], ecx
je 0x100280d1
test edi, edi
je 0x100280d1
mov edx, dword [esi + 0x24]
cmp edx, dword [esi + 0x20]
jae 0x100280d1
mov eax, dword [esi + 0x1c]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x94]
mov byte [ecx + edx], al
inc ecx
inc dword [esi + 0x24]
cmp ecx, edi
jb 0x100280a1
jmp 0x100280d1
push ecx
push edi
push 1
push eax
call fcn.10059dd5
add esp, 0x10
mov ecx, eax
cmp ecx, edi
jb 0x100282e7
mov edx, dword [ebp - 0x78]
add edx, ecx
mov ecx, dword [ebp - 0x74]
add ecx, 0xc
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ecx
cmp ecx, 0xc
jb 0x10027f95
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
add edx, ecx
jne 0x10028186
push str.:_Empty_track_data
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.1001f690
mov edi, dword [ebp - 0x70]
mov esi, eax
add edi, 0x1bc
add esp, 0xc
cmp edi, esi
je 0x1002814f
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
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x10028380
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10028376
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100283b9
jmp 0x10028376
mov edi, dword [ebp - 0x70]
lea eax, [ebp - 0x90]
push eax
mov ecx, edi
call fcn.10024be0
test al, al
jne 0x100282de
push str.:_MIDI_data_parsing_error_has_occouped__n
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.1001f690
add esp, 0xc
cmp dword [edi + 0x1b8], 0xf
lea edx, [edi + 0x1a4]
mov byte [ebp - 4], 2
jbe 0x100281ca
mov edx, dword [edi + 0x1a4]
push dword [edi + 0x1b4]
mov ecx, eax
push edx
call fcn.10003d90
lea esi, [edi + 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 - 0x98], xmm1
movq qword [ebp - 0x58], xmm1
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x68], xmm0
cmp esi, eax
je 0x10028273
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x10028252
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1002823c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100283be
mov eax, edx
push ecx
push eax
call fcn.10049b55
movups xmm0, xmmword [ebp - 0x48]
add esp, 8
movq xmm1, qword [ebp - 0x98]
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 0x10028276
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x100282a7
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002829d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100283be
push ecx
push edx
call fcn.10049b55
add esp, 8
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x10028380
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10028376
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100283be
jmp 0x10028376
mov byte [ebp - 0x69], 1
jmp 0x10028384
push str.:_Unexpected_file_ending_while_getting_raw_track_data__n
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.1001f690
mov esi, dword [ebp - 0x70]
mov edi, eax
add esi, 0x1bc
add esp, 0xc
cmp esi, edi
je 0x1002814f
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x1002833f
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x10028335
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100283b9
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
jmp 0x1002814f
push ecx
push edx
call fcn.10049b55
add esp, 8
mov byte [ebp - 0x69], 0
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.10005eb0
call fcn.10057ede
call fcn.10057ede
call fcn.10057ede
int3