Function at 0x14001156c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov dword [rbp + 0xd8], edx
mov qword [rbp + 0xe0], r8
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0x98], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x38], 0
cmp qword [rbp + 0xd0], 0
jne 0x1400115f8
lea r8, str.filepath___NULL
lea rax, str.encryption_Fast
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_return_if_fail_warning]
call rax
jmp 0x14001199b
mov rax, qword [rbp + 0xd0]
lea rdx, [0x14001cef7]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x14001174e
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 - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov ebx, dword [rax]
call sym.error_type_quark
cmp ebx, eax
jne 0x1400116be
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_propagate_error]
call rax
cmp qword [rbp + 0xa8], 0
je 0x14001199a
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xa8], 0
jmp 0x14001199a
cmp qword [rbp + 0xa8], 0
je 0x1400116e2
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xa8], 0
mov rax, qword [rbp - 0x38]
mov ebx, dword [rax + 4]
mov rax, qword [rbp - 0x38]
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 - 0x38]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x1ab
lea r9, str.C:_msys64_home_poco_encryption_treyfer_gio.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 - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
jmp 0x14001199b
mov eax, dword [rbp + 0xd8]
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 + 0x80], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0xa0], rax
mov eax, dword [rbp + 0xd8]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x7c]
mov dword [rbp + 0x78], eax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x70], rax
mov eax, dword [rbp + 0x7c]
movsxd rdx, eax
mov rcx, qword [rbp + 0x70]
mov rax, qword [rbp + 0xa0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0xa0], 0
je 0x1400117e6
mov rax, qword [rbp + 0x98]
movsxd rdx, eax
mov rax, qword [rbp + 0xa0]
mov rcx, rax
call sym._vala_array_dup13
jmp 0x1400117ed
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x98]
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x68]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x64]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x60], eax
mov rax, qword [0x140021280]
mov qword [rbp + 0x58], rax
mov eax, dword [0x140021288]
mov dword [rbp + 0x54], eax
mov rax, qword [0x140021280]
mov qword [rbp + 0x48], rax
mov eax, dword [0x140021288]
mov dword [rbp + 0x44], eax
cmp qword [rbp + 0x58], 0
je 0x140011852
mov eax, dword [rbp + 0x44]
movsxd rdx, eax
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sym._vala_array_dup14
jmp 0x140011856
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x38], rax
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x28], rax
mov eax, dword [rbp + 0x34]
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x30], eax
mov rax, qword [0x140021270]
mov qword [rbp + 0x28], rax
mov eax, dword [0x140021278]
mov dword [rbp + 0x24], eax
mov r9d, dword [rbp + 0x24]
mov r8, qword [rbp + 0x28]
lea rdx, [rbp - 0x1c]
lea rax, [rbp - 0x18]
lea rcx, [rbp - 0x2c]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call sym.encryption_OFB128
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x60], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x30], eax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.rewind
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp + 8], rax
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
movsxd rdx, eax
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 8]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0xa8]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fflush
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp - 0x18], 0
mov rax, qword [rbp + 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xa0], 0
cmp qword [rbp + 0xa8], 0
je 0x14001199b
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xa8], 0
jmp 0x14001199b
nop
add rsp, 0x138
pop rbx
pop rbp
ret