Function at 0x180061150
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 [0x18010f050]
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 0x1800611c8
xor eax, eax
jmp 0x180061436
mov r9d, 2
xor r8d, r8d
lea rdx, [r8 - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1800611f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180061436
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 0x180061266
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180061436
mov rax, qword [rsp + 0x88]
cmp rax, qword [str.APETAGEX]
je 0x180061287
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180061436
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 0x1800612ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180061436
lea eax, [rdi + 1]
mov r13d, eax
lea rdx, [0x1801171e8]
mov ecx, eax
call fcn.180077024
mov rsi, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x1800612f1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8007000e
jmp 0x180061436
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.1800795c0
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 0x180061422
cmp dword [rsp + 0x40], edi
jne 0x180061422
mov rax, qword [rsi]
cmp rax, qword [str.APETAGEX]
je 0x18006134e
mov rcx, rsi
call fcn.18007702c
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180061436
mov r9d, dword [rsi + 0x10]
mov edx, ebp
test r9d, r9d
je 0x18006140c
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 0x180061397
cmp qword [r8], r11
je 0x1800613a9
lea eax, [rcx + r10]
lea r12d, [r12 + rax + 9]
inc edx
cmp edx, r9d
jae 0x18006140c
jmp 0x180061370
lea rcx, [r8 + 9]
cmp edx, r9d
jae 0x18006140c
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 0x1800613eb
mov r8d, r10d
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.180065ec0
jmp 0x1800613f0
mov eax, 0x80070057
test eax, eax
sete bpl
mov rcx, rsi
call fcn.18007702c
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x180061436
mov rcx, rsi
call fcn.18007702c
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180061436
mov rcx, rsi
call fcn.18007702c
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180076a70
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