Function at 0x18004c320
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 [0x1800f7050]
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 0x18004c398
xor eax, eax
jmp 0x18004c606
mov r9d, 2
xor r8d, r8d
lea rdx, [r8 - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18004c3c2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18004c606
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 0x18004c436
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18004c606
mov rax, qword [rsp + 0x88]
cmp rax, qword [str.APETAGEX]
je 0x18004c457
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18004c606
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 0x18004c48a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18004c606
lea eax, [rdi + 1]
mov r13d, eax
lea rdx, [0x1800fee28]
mov ecx, eax
call fcn.1800626b4
mov rsi, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x18004c4c1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8007000e
jmp 0x18004c606
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.1800644c0
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 0x18004c5f2
cmp dword [rsp + 0x40], edi
jne 0x18004c5f2
mov rax, qword [rsi]
cmp rax, qword [str.APETAGEX]
je 0x18004c51e
mov rcx, rsi
call fcn.1800626bc
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18004c606
mov r9d, dword [rsi + 0x10]
mov edx, ebp
test r9d, r9d
je 0x18004c5dc
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 0x18004c567
cmp qword [r8], r11
je 0x18004c579
lea eax, [rcx + r10]
lea r12d, [r12 + rax + 9]
inc edx
cmp edx, r9d
jae 0x18004c5dc
jmp 0x18004c540
lea rcx, [r8 + 9]
cmp edx, r9d
jae 0x18004c5dc
lea rax, [r14 + 0x38]
mov qword [rsp + 0x48], rax
lea rax, [r14 + 0x35c]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], ebp
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], ebp
test rcx, rcx
je 0x18004c5bb
mov r8d, r10d
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.180050fc0
jmp 0x18004c5c0
mov eax, 0x80070057
test eax, eax
sete bpl
mov rcx, rsi
call fcn.1800626bc
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x18004c606
mov rcx, rsi
call fcn.1800626bc
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18004c606
mov rcx, rsi
call fcn.1800626bc
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180062100
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