Function at 0x470ee0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x464
push ebx
push 0x43c
lea eax, [esp + 0x30]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x24], ebx
call fcn.00484630
push ebx
push 0x43c
lea eax, [esp + 0x40]
push 1
push eax
call fcn.0048a775
add esp, 0x1c
cmp eax, 0x43c
jne 0x4716cf
lea edx, [esp + 0x464]
lea ecx, [esp + 6]
call fcn.004716f0
mov bl, al
mov byte [esp + 5], bl
cmp bl, 6
je 0x4716cf
test bl, bl
jne 0x470f5f
mov cl, byte [esp + 0x3e2]
mov eax, 0x7f
cmp cl, 0x81
movzx edx, cl
cmove edx, eax
mov byte [esp + 0x3e2], dl
jmp 0x470f66
mov dl, byte [esp + 0x3e2]
mov cl, byte [esp + 6]
test cl, cl
je 0x4716cf
mov al, dl
dec al
cmp al, 0x7f
ja 0x4716cf
cmp cl, 0x20
seta byte [esp + 7]
jbe 0x470f94
mov dword [0x551eac], 0x20
jmp 0x470f9c
movzx eax, cl
mov dword [0x551eac], eax
push esi
movzx eax, dl
lea esi, [esp + 0x3e8]
mov word [0x551e9e], ax
lea edx, [esp + 0x44]
movzx eax, byte [esp + 0x3e7]
mov ecx, 0x20
push edi
mov edi, 0x551d96
mov word [0x551ea0], ax
mov dword [0x551ea2], 0x6007d
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x55120f
mov esi, 0x1f
cmp bl, 5
je 0x470ff9
movups xmm0, xmmword [edx]
mov eax, dword [edx + 0x10]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov ax, word [edx + 0x14]
mov word [ecx + 0x14], ax
add edx, 0x1e
add ecx, 0x17
sub esi, 1
jne 0x470fe0
movups xmm0, xmmword [esp + 0x34]
mov eax, dword [esp + 0x44]
mov esi, 0x551d96
mov dword [0x5511f3], eax
mov ebx, 0x80
movups xmmword [0x5511e3], xmm0
xor eax, eax
cmp byte [esp + 0xd], 2
movzx edi, ax
mov al, byte [esi]
jne 0x471035
shr al, 1
mov byte [esi], al
movzx ecx, al
mov eax, edi
cmp cx, di
mov edx, ecx
cmovbe edx, eax
inc esi
movzx ecx, dx
mov eax, ecx
sub ebx, 1
jne 0x471025
lea eax, [ecx + 1]
push ebp
movzx ebp, ax
xor eax, eax
cmp byte [esp + 0x11], 2
mov dword [esp + 0x34], ebp
je 0x4711e1
xor ecx, ecx
mov dword [esp + 0x20], eax
cmp cx, bp
jae 0x4714c5
movzx edi, ax
mov ebx, 0x40
push 1
push 0xa010
mov dword [esp + 0x20], edi
call fcn.00489078
add esp, 8
mov dword [edi*4 + 0x551ee0], eax
test eax, eax
je 0x4716b4
mov esi, ebx
mov word [edi*2 + 0x550fe0], bx
xor ebp, ebp
mov dword [esp + 0x1c], esi
nop
xor ebx, ebx
cmp dword [0x551eac], ebx
jle 0x471154
xor eax, eax
push dword [esp + 0x24]
add eax, ebp
push 4
push 1
lea esi, [eax + eax*4]
add esi, dword [edi*4 + 0x551ee0]
lea eax, [esp + 0x20]
push eax
call fcn.0048a775
mov eax, dword [esp + 0x24]
add esp, 0x10
mov cl, al
and cl, 0xf
movzx edx, cl
shl dx, 8
movzx ecx, ah
or dx, cx
movzx edi, dx
xor edx, edx
nop dword [eax]
movsx ecx, dx
cmp di, word [ecx*2 + 0x4bf210]
jae 0x471116
inc edx
cmp dx, 0x60
jl 0x471100
jmp 0x47111e
inc dl
mov byte [esi], dl
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x16]
and al, 0xf0
mov edi, dword [esp + 0x18]
inc ebx
shr cl, 4
or al, cl
mov byte [esi + 1], al
mov al, byte [esp + 0x16]
and al, 0xf
mov byte [esi + 3], al
mov al, byte [esp + 0x17]
mov byte [esi + 4], al
movsx eax, bx
cmp eax, dword [0x551eac]
jl 0x4710c0
mov esi, dword [esp + 0x1c]
cmp byte [esp + 0x13], 0
je 0x471178
movzx eax, byte [esp + 0x12]
sub eax, dword [0x551eac]
push 1
shl eax, 2
push eax
push dword [esp + 0x2c]
call fcn.0048a035
add esp, 0xc
add ebp, 0x20
sub esi, 1
mov dword [esp + 0x1c], esi
jne 0x4710b0
mov edx, dword [edi*4 + 0x551ee0]
test edx, edx
je 0x4711c6
movsx eax, word [edi*2 + 0x550fe0]
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 5
test ecx, ecx
je 0x4711b2
cmp byte [eax + edx], 0
jne 0x4711c6
inc eax
cmp eax, ecx
jb 0x4711a7
push edx
call fcn.00489083
add esp, 4
mov dword [edi*4 + 0x551ee0], 0
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x34]
inc eax
mov dword [esp + 0x20], eax
cmp ax, bp
jae 0x471385
jmp 0x471074
xor esi, esi
cmp ax, bp
jae 0x47121f
lea ebx, [esi + 0x40]
nop dword [eax + eax]
push 1
push 0xa010
movzx edi, si
call fcn.00489078
add esp, 8
mov dword [edi*4 + 0x551ee0], eax
test eax, eax
je 0x4716b4
inc esi
mov word [edi*2 + 0x550fe0], bx
cmp si, bp
jb 0x4711f0
movzx ebx, bp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0
lea eax, [ebx + ebx]
mov dword [esp + 0x28], eax
test eax, eax
je 0x471332
xor eax, eax
nop
mov ecx, eax
mov dword [esp + 0x1c], 0x40
and eax, 1
shr ecx, 1
mov dword [esp + 0x18], ecx
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x20], eax
nop dword [eax]
mov ebx, eax
mov ebp, 4
nop word [eax + eax]
push dword [esp + 0x24]
mov esi, dword [ecx*4 + 0x551ee0]
lea eax, [esp + 0x18]
push 4
push 1
push eax
add esi, ebx
call fcn.0048a775
mov eax, dword [esp + 0x24]
add esp, 0x10
mov cl, al
and cl, 0xf
movzx edx, cl
shl dx, 8
movzx ecx, ah
or dx, cx
movzx edi, dx
xor edx, edx
nop dword [eax]
movsx ecx, dx
cmp di, word [ecx*2 + 0x4bf210]
jae 0x4712c6
inc edx
cmp dx, 0x60
jl 0x4712b0
jmp 0x4712ce
inc dl
mov byte [esi], dl
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x16]
and al, 0xf0
shr cl, 4
add ebx, 5
or al, cl
mov ecx, dword [esp + 0x18]
mov byte [esi + 1], al
mov al, byte [esp + 0x16]
and al, 0xf
mov byte [esi + 3], al
mov al, byte [esp + 0x17]
mov byte [esi + 4], al
sub ebp, 1
jne 0x471270
mov eax, dword [esp + 0x20]
add eax, 0xa0
sub dword [esp + 0x1c], 1
mov dword [esp + 0x20], eax
jne 0x471260
mov edx, dword [esp + 0x30]
inc edx
movzx eax, dx
mov dword [esp + 0x30], edx
cmp eax, dword [esp + 0x28]
jb 0x471240
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
xor eax, eax
cmp ax, bp
jae 0x4714c5
mov esi, 0x551ee0
mov edi, 0x550fe0
mov edx, dword [esi]
test edx, edx
je 0x47137a
movsx eax, word [edi]
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 5
test ecx, ecx
je 0x47136b
nop dword [eax]
cmp byte [eax + edx], 0
jne 0x47137a
inc eax
cmp eax, ecx
jb 0x471360
push edx
call fcn.00489083
add esp, 4
mov dword [esi], 0
add edi, 2
add esi, 4
sub ebx, 1
jne 0x471347
mov edi, 0x551ee0
movzx ebp, bp
nop dword [eax]
cmp dword [edi], 0
je 0x4714b9
xor esi, esi
lea ebx, [esi + 0x40]
nop
xor edx, edx
cmp dword [0x551eac], edx
jle 0x4714ad
xor eax, eax
add eax, esi
lea eax, [eax + eax*4]
add eax, dword [edi]
mov cl, byte [eax + 3]
cmp cl, 0xc
jne 0x4713d2
cmp byte [eax + 4], 0x40
jbe 0x471449
mov byte [eax + 4], 0x40
jmp 0x471449
cmp cl, 1
jne 0x4713e3
cmp byte [eax + 4], 0
jne 0x471449
mov byte [eax + 3], 0
jmp 0x471449
cmp cl, 2
jne 0x4713f4
cmp byte [eax + 4], 0
jne 0x471449
mov byte [eax + 3], 0
jmp 0x471449
cmp cl, 5
jne 0x471405
cmp byte [eax + 4], 0
jne 0x471449
mov byte [eax + 3], 3
jmp 0x471449
cmp cl, 6
jne 0x471416
cmp byte [eax + 4], 0
jne 0x471449
mov byte [eax + 3], 4
jmp 0x471449
cmp cl, 0xa
jne 0x471427
cmp byte [eax + 4], 0
jne 0x471449
mov byte [eax + 3], 0
jmp 0x471449
cmp cl, 0xe
jne 0x471449
mov cl, byte [eax + 4]
cmp cl, 0x10
je 0x471443
cmp cl, 0x20
je 0x471443
cmp cl, 0xa0
je 0x471443
cmp cl, 0xb0
jne 0x471449
mov word [eax + 3], 0
mov cl, byte [esp + 0x11]
cmp cl, 4
je 0x471482
cmp cl, 5
je 0x471482
cmp cl, 1
je 0x471461
cmp cl, 2
jne 0x47149d
mov cl, byte [eax + 3]
cmp cl, 0xe
jne 0x471471
mov word [eax + 3], 0
xor cl, cl
cmp cl, 0xf
jne 0x47149d
cmp byte [eax + 4], 0x1f
jbe 0x47149d
mov byte [eax + 4], 0x1f
jmp 0x47149d
mov cl, byte [eax + 3]
cmp cl, 0xd
jne 0x47148e
mov byte [eax + 4], 0
cmp cl, 0xf
jne 0x47149d
cmp byte [eax + 4], 0
jne 0x47149d
mov byte [eax + 3], 0
inc edx
movsx eax, dx
cmp eax, dword [0x551eac]
jl 0x4713b0
add esi, 0x20
sub ebx, 1
jne 0x4713a0
add edi, 4
sub ebp, 1
jne 0x471390
xor ebp, ebp
movzx ebx, bp
mov edi, ebx
movzx eax, bp
shl edi, 4
sub edi, ebx
cmp word [esp + edi*2 + 0x62], 0
je 0x471680
movsx esi, ax
cmp dword [esi*4 + 0x550bc4], 0
jne 0x4716b4
push 0xe5c
push 1
call fcn.00489078
add esp, 8
test eax, eax
je 0x4716b4
lea ecx, [eax + 0x100]
mov edx, 0x10
mov byte [ecx + 2], 0x80
lea ecx, [ecx + 0xd8]
mov byte [ecx - 0xd8], 0x40
sub edx, 1
jne 0x471513
mov dword [esi*4 + 0x550bc4], eax
mov ecx, dword [ebx*4 + 0x550bc4]
call fcn.004357a0
mov esi, dword [ebx*4 + 0x550bc4]
add esi, 0xdc
cmp byte [esp + 0x11], 5
je 0x47156f
imul ecx, ebx, 0x17
add ecx, 0x55120f
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x10], eax
mov ax, word [ecx + 0x14]
mov word [esi + 0x14], ax
jmp 0x47157e
movzx eax, byte [esp + edi*2 + 0x64]
neg eax
sar eax, 1
and al, 0xf
mov byte [esp + edi*2 + 0x64], al
movzx eax, word [esp + edi*2 + 0x62]
movzx ebx, al
shr eax, 8
shl ebx, 8
or ebx, eax
add ebx, ebx
mov dword [esi + 0x28], ebx
mov al, byte [esp + edi*2 + 0x64]
shl al, 4
mov byte [esi + 0x18], al
mov al, byte [esp + edi*2 + 0x65]
mov byte [esi + 0x24], al
movzx eax, word [esp + edi*2 + 0x66]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov dword [esp + 0x28], ecx
lea edx, [ecx + ecx]
mov dword [esi + 0x2c], edx
movzx eax, word [esp + edi*2 + 0x68]
movzx ecx, al
shl ecx, 8
shr eax, 8
or ecx, eax
mov dword [esp + 0x2c], edx
add ecx, ecx
mov dword [esi + 0x30], ecx
cmp ecx, 2
jbe 0x4715f5
mov edi, edx
lea eax, [ecx + edi]
cmp eax, ebx
jbe 0x4715f5
mov edi, dword [esp + 0x28]
lea eax, [ecx + edi]
cmp eax, ebx
ja 0x4715f5
mov dword [esi + 0x2c], edi
mov edx, edi
lea eax, [ecx + edx]
cmp eax, ebx
jbe 0x47161b
cmp edx, ebx
jb 0x471614
xor ecx, ecx
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
xor edx, edx
jmp 0x47161b
mov ecx, ebx
sub ecx, edx
mov dword [esi + 0x30], ecx
lea eax, [ecx + edx]
cmp eax, 2
jle 0x471627
or byte [esi + 0x25], 1
lea eax, [ebx + 0x1f]
push eax
call fcn.004896c5
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x4716ad
push dword [esp + 0x24]
add eax, 0xf
push dword [esi + 0x28]
mov dword [esi + 0x1c], eax
push 1
push eax
call fcn.0048a775
mov ecx, dword [esi + 0x28]
add esp, 0x10
cmp eax, ecx
jge 0x47166c
sub ecx, eax
push ecx
mov ecx, dword [esi + 0x1c]
add ecx, eax
push 0
push ecx
call fcn.00484630
add esp, 0xc
test byte [esi + 0x25], 3
jne 0x471680
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
inc ebp
cmp bp, 0x1f
jb 0x4714c7
cmp byte [esp + 0x13], 0
je 0x4716a0
push str.Warning:_Module_contains__32_channels._The_extra_channels_will_be_discarded_
call dword [0x54e480]
add esp, 4
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x464
ret
mov dword [esi + 0x1c], 0
push str.Not_enough_memory_
call dword [0x54e480]
add esp, 4
xor al, al
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x464
ret
push str.Error:_This_file_is_either_not_a_module__or_is_not_supported.
call dword [0x54e480]
add esp, 4
xor al, al
pop ebx
add esp, 0x464
ret