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

Disassembly:
push rbp
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], rcx
mov dword [rbp + 0xc8], edx
mov qword [rbp + 0xd0], r8
mov qword [rbp + 0x98], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x88], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x38], 0
cmp qword [rbp + 0xc0], 0
jne 0x140009a35
lea r8, str.filepath___NULL
lea rax, str.decryption_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 0x140009db8
mov rax, qword [rbp + 0xc0]
lea rdx, [0x140013e2f]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
jne 0x140009b85
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 0x140009af5
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_propagate_error]
call rax
cmp qword [rbp + 0x98], 0
je 0x140009db7
mov rax, qword [rbp + 0x98]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x98], 0
jmp 0x140009db7
cmp qword [rbp + 0x98], 0
je 0x140009b19
mov rax, qword [rbp + 0x98]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x98], 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], 0x156
lea r9, str.C:_msys64_home_poco_decryption.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 0x140009db8
mov eax, dword [rbp + 0xc8]
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 + 0x70], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x90], rax
mov eax, dword [rbp + 0xc8]
mov dword [rbp + 0x6c], eax
mov eax, dword [rbp + 0x6c]
mov dword [rbp + 0x68], eax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x60], rax
mov eax, dword [rbp + 0x6c]
movsxd rdx, eax
mov rcx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x90]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x90], 0
je 0x140009c17
mov rax, qword [rbp + 0x88]
movsxd rdx, eax
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym._vala_array_dup6
jmp 0x140009c1e
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x88]
mov dword [rbp + 0x54], eax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x54]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x50], eax
mov rax, qword [0x140017180]
mov qword [rbp + 0x48], rax
mov eax, dword [0x140017188]
mov dword [rbp + 0x44], eax
cmp qword [rbp + 0x48], 0
je 0x140009c6f
mov eax, dword [rbp + 0x44]
movsxd rdx, eax
mov rax, qword [rbp + 0x48]
mov rcx, rax
call sym._vala_array_dup7
jmp 0x140009c73
mov rax, qword [rbp + 0x48]
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 [0x140017170]
mov qword [rbp + 0x28], rax
mov eax, dword [0x140017178]
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.decryption_OFB_Encrypt
mov eax, dword [rbp - 0x1c]
mov dword [rbp + 0x50], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x30], eax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.rewind
mov rax, qword [rbp + 0x98]
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 + 0x98]
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 + 0x90]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x90], 0
cmp qword [rbp + 0x98], 0
je 0x140009db8
mov rax, qword [rbp + 0x98]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x98], 0
jmp 0x140009db8
nop
add rsp, 0x128
pop rbx
pop rbp
ret