Function at 0x14000585a
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xd0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x14], 0
mov qword [rbp - 0x20], 0
cmp qword [rbp + 0x10], 0
jne 0x1400058bc
lea r8, [0x140014293]
lea rax, str.program_GetNoteBytes
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_return_if_fail_warning]
call rax
mov eax, 0
jmp 0x140005b01
mov rax, qword [rbp + 0x10]
lea rdx, [0x1400142a0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 8], rax
cmp qword [rbp + 0x10], 0
jne 0x140005971
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.string_to_string
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov r9d, 0
lea r8, str._was_not_found_n
mov rdx, rax
lea rax, str.File
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_strconcat]
call rax
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x48], rax
mov rdx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x30]
mov r8, rdx
lea rdx, [0x14001416f]
mov rcx, rax
call sym.fprintf
mov rax, qword [rbp - 0x48]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp - 0x48], 0
mov rax, qword [rbp - 8]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
mov r8d, 2
mov edx, 0xfffffffc
mov rcx, rax
call sym.fseek
mov edx, 1
mov ecx, 4
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_malloc0_n]
call rax
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x5c], 4
mov eax, dword [rbp - 0x5c]
mov dword [rbp - 0x60], eax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x68], rax
mov eax, dword [rbp - 0x5c]
movsxd rdx, eax
mov rcx, qword [rbp - 0x68]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov edx, dword [rbp - 0x5c]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.program_ToInt32
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x70], rax
mov eax, 0xfffffffc
sub eax, dword [rbp - 0x14]
mov edx, eax
mov rax, qword [rbp - 0x70]
mov r8d, 2
mov rcx, rax
call sym.fseek
mov eax, dword [rbp - 0x14]
cdqe
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_malloc0_n]
call rax
mov qword [rbp - 0x78], rax
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x20], rax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp - 0x7c]
mov dword [rbp - 0x80], eax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x88], rax
mov eax, dword [rbp - 0x7c]
movsxd rdx, eax
mov rcx, qword [rbp - 0x88]
mov rax, qword [rbp - 0x20]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp - 8]
mov qword [rbp - 0x90], rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
call sym.fflush
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x98], rax
mov eax, dword [rbp - 0x7c]
mov dword [rbp - 0x9c], eax
cmp qword [rbp + 0x18], 0
je 0x140005ab9
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp - 0x9c]
mov dword [rax], edx
mov rax, qword [rbp - 0x98]
mov qword [rbp - 0xa8], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp - 0x10], 0
cmp qword [rbp - 8], 0
je 0x140005afa
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
mov qword [rbp - 8], 0
mov rax, qword [rbp - 0xa8]
add rsp, 0xd0
pop rbp
ret