Function at 0x18001aaf0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xb0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, rdx
mov r14, rcx
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbp + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x18001ab68
xor eax, eax
jmp 0x18001add6
mov r9d, 2
xor r8d, r8d
lea rdx, [r8 - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18001ab92
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001add6
mov byte [rsp + 0x88], 0
xor eax, eax
mov qword [rsp + 0x89], rax
mov qword [rsp + 0x91], rax
mov qword [rsp + 0x99], rax
mov dword [rsp + 0xa1], eax
mov word [rsp + 0xa5], ax
mov byte [rsp + 0xa7], al
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r12d, 0x20
mov r8d, r12d
lea rdx, [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001ac06
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001add6
mov rax, qword [rsp + 0x88]
cmp rax, qword [str.APETAGEX]
je 0x18001ac27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001add6
mov edi, dword [rsp + 0x94]
lea edx, [rdi + 0x20]
neg rdx
mov r9d, 2
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18001ac5a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001add6
lea eax, [rdi + 1]
mov r13d, eax
lea rdx, [0x180106f48]
mov ecx, eax
call fcn.18006aaa4
mov rsi, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x18001ac91
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8007000e
jmp 0x18001add6
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.18006cf60
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001adc2
cmp dword [rsp + 0x40], edi
jne 0x18001adc2
mov rax, qword [rsi]
cmp rax, qword [str.APETAGEX]
je 0x18001acee
mov rcx, rsi
call fcn.18006aaac
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001add6
mov r9d, dword [rsi + 0x10]
mov edx, ebp
test r9d, r9d
je 0x18001adac
mov r11, qword [str.Cuesheet]
nop word [rax + rax]
mov eax, r12d
mov r10d, dword [rax + rsi]
lea r8, [rax + rsi + 8]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, 8
jne 0x18001ad37
cmp qword [r8], r11
je 0x18001ad49
lea eax, [rcx + r10]
lea r12d, [r12 + rax + 9]
inc edx
cmp edx, r9d
jae 0x18001adac
jmp 0x18001ad10
lea rcx, [r8 + 9]
cmp edx, r9d
jae 0x18001adac
lea rax, [r14 + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [r14 + 0x364]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], ebp
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], ebp
test rcx, rcx
je 0x18001ad8b
mov r8d, r10d
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.18001f970
jmp 0x18001ad90
mov eax, 0x80070057
test eax, eax
sete bpl
mov rcx, rsi
call fcn.18006aaac
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x18001add6
mov rcx, rsi
call fcn.18006aaac
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001add6
mov rcx, rsi
call fcn.18006aaac
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.18006a4f0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret