Function at 0x14000b590
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x108
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa0], rcx
mov qword [rbp - 0x40], 0
cmp qword [rbp + 0xa0], 0
jne 0x14000b5de
lea r8, str.path___NULL
lea rax, str.encryption_Initialize
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_return_if_fail_warning]
call rax
jmp 0x14000b9c1
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov dword [rbp + 0x6c], 0
mov qword [rbp + 0x60], 0
mov dword [rbp + 0x5c], 0
mov rax, qword [rbp + 0xa0]
lea rdx, [0x1400161ad]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14000b6ec
call sym.error_type_quark
lea r8, str.File_not_found
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_error_new_literal]
call rax
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x40], rax
cmp qword [rbp + 0x78], 0
je 0x14000b680
mov rax, qword [rbp + 0x78]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x78], 0
mov rax, qword [rbp - 0x40]
mov ebx, dword [rax + 4]
mov rax, qword [rbp - 0x40]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_quark_to_string]
call rax
mov rdx, qword [rbp - 0x40]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x97
lea r9, str.C:_msys64_home_poco_encryption.vala.c
lea r8, str.file__s:_line__d:_uncaught_error:__s___s___d_
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_log]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
jmp 0x14000b9c1
mov edx, 1
mov ecx, 8
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_malloc0_n]
call rax
mov qword [rbp + 0x40], rax
mov rax, qword [0x14001a1f0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [0x14001a1f0], 0
mov rax, qword [rbp + 0x40]
mov qword [0x14001a1f0], rax
mov dword [0x14001a1f8], 8
mov eax, dword [0x14001a1f8]
mov dword [0x14001a1fc], eax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
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 + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x2c], 4
mov eax, dword [rbp + 0x2c]
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x20], rax
mov eax, dword [rbp + 0x2c]
movsxd rdx, eax
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x70]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov edx, dword [rbp + 0x2c]
mov rax, qword [rbp + 0x70]
mov rcx, rax
call sym.program_ToInt32
mov dword [rbp + 0x6c], eax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x18], rax
mov eax, 0xfffffff8
sub eax, dword [rbp + 0x6c]
mov edx, eax
mov rax, qword [rbp + 0x18]
mov r8d, 2
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 + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x60], rax
mov dword [rbp + 0xc], 4
mov eax, dword [rbp + 0xc]
mov dword [rbp + 8], eax
mov rax, qword [rbp + 0x78]
mov qword [rbp], rax
mov eax, dword [rbp + 0xc]
movsxd rdx, eax
mov rcx, qword [rbp]
mov rax, qword [rbp + 0x60]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov edx, dword [rbp + 0xc]
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sym.program_ToInt32
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x78]
mov qword [rbp - 8], rax
mov eax, 0xfffffff8
sub eax, dword [rbp + 0x6c]
sub eax, dword [rbp + 0x5c]
lea edx, [rax - 8]
mov rax, qword [rbp - 8]
mov r8d, 2
mov rcx, rax
call sym.fseek
mov rax, qword [rbp + 0x78]
mov qword [rbp - 0x10], rax
mov rax, qword [0x14001a1f0]
mov qword [rbp - 0x18], rax
mov eax, dword [0x14001a1f8]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp + 0x78]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.fflush
mov rax, qword [rbp + 0x60]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x60], 0
mov rax, qword [rbp + 0x70]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x70], 0
cmp qword [rbp + 0x78], 0
je 0x14000b917
mov rax, qword [rbp + 0x78]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x78], 0
mov edx, 1
mov ecx, 8
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_malloc0_n]
call rax
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov byte [rax], 0x46
mov rax, qword [rbp - 0x30]
add rax, 1
mov byte [rax], 0x45
mov rax, qword [rbp - 0x30]
add rax, 2
mov byte [rax], 0xc3
mov rax, qword [rbp - 0x30]
add rax, 3
mov byte [rax], 0xf7
mov rax, qword [rbp - 0x30]
add rax, 4
mov byte [rax], 0xbf
mov rax, qword [rbp - 0x30]
add rax, 5
mov byte [rax], 0x93
mov rax, qword [rbp - 0x30]
add rax, 6
mov byte [rax], 0xee
mov rax, qword [rbp - 0x30]
add rax, 7
mov byte [rax], 0xa0
mov rax, qword [0x14001a200]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [0x14001a200], 0
mov rax, qword [rbp - 0x30]
mov qword [0x14001a200], rax
mov dword [0x14001a208], 8
mov eax, dword [0x14001a208]
mov dword [0x14001a20c], eax
add rsp, 0x108
pop rbx
pop rbp
ret