Function at 0x140010c33
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov qword [rbp - 0x38], 0
cmp qword [rbp + 0xf0], 0
jne 0x140010c81
lea r8, [0x14001ce00]
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 0x140011245
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xc0], 0
mov dword [rbp + 0xbc], 0
mov qword [rbp + 0xb0], 0
mov dword [rbp + 0xac], 0
mov rax, qword [rbp + 0xf0]
lea rdx, [0x14001ce0d]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x98], 0
jne 0x140010dcc
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 - 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x38], rax
cmp qword [rbp + 0xc8], 0
je 0x140010d4d
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp - 0x38]
mov ebx, dword [rax]
call sym.error_type_quark
cmp ebx, eax
je 0x14001108e
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], 0x9d
lea r9, str.C:_msys64_home_poco_encryption_treyfer_gio.vala.c
lea r8, str.file__s:_line__d:_unexpected_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 0x140011245
mov edx, 1
mov ecx, 0x10
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_malloc0_n]
call rax
mov qword [rbp + 0x90], rax
mov rax, qword [0x140021270]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [0x140021270], 0
mov rax, qword [rbp + 0x90]
mov qword [0x140021270], rax
mov dword [0x140021278], 0x10
mov eax, dword [0x140021278]
mov dword [0x14002127c], eax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
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 + 0x80], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0xc0], rax
mov dword [rbp + 0x7c], 4
mov eax, dword [rbp + 0x7c]
mov dword [rbp + 0x78], eax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x7c]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
movsxd rdx, eax
mov rcx, qword [rbp + 0x70]
mov rax, qword [rbp + 0x68]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x7c]
mov dword [rbp + 0x54], eax
mov edx, dword [rbp + 0x54]
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sym.program_ToInt32
mov dword [rbp + 0xbc], eax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x48], rax
mov eax, 0xfffffff8
sub eax, dword [rbp + 0xbc]
mov edx, eax
mov rax, qword [rbp + 0x48]
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 + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xb0], rax
mov dword [rbp + 0x3c], 4
mov eax, dword [rbp + 0x3c]
mov dword [rbp + 0x38], eax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x3c]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
movsxd rdx, eax
mov rcx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x28]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x18], rax
mov eax, dword [rbp + 0x3c]
mov dword [rbp + 0x14], eax
mov edx, dword [rbp + 0x14]
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.program_ToInt32
mov dword [rbp + 0xac], eax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 8], rax
mov eax, 0xfffffff8
sub eax, dword [rbp + 0xbc]
sub eax, dword [rbp + 0xac]
lea edx, [rax - 0x10]
mov rax, qword [rbp + 8]
mov r8d, 2
mov rcx, rax
call sym.fseek
mov rax, qword [rbp + 0xc8]
mov qword [rbp], rax
mov rax, qword [0x140021270]
mov qword [rbp - 8], rax
mov eax, dword [0x140021278]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rcx, qword [rbp]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp + 0xc8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.fflush
mov rax, qword [rbp + 0xb0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xb0], 0
mov rax, qword [rbp + 0xc0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xc0], 0
cmp qword [rbp + 0xc8], 0
je 0x1400110cd
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xc8], 0
jmp 0x1400110cd
nop
lea rax, [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
lea r8, str.Provide_self_path_via____self__option_n
lea rdx, [0x14001ceaf]
mov rcx, rax
call sym.fprintf_1
jmp 0x1400110ce
nop
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140011143
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], 0xd6
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 0x140011245
mov edx, 1
mov ecx, 0x10
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 [rbp - 0x30]
add rax, 8
mov byte [rax], 0x4a
mov rax, qword [rbp - 0x30]
add rax, 9
mov byte [rax], 0xa
mov rax, qword [rbp - 0x30]
add rax, 0xa
mov byte [rax], 0x42
mov rax, qword [rbp - 0x30]
add rax, 0xb
mov byte [rax], 0x54
mov rax, qword [rbp - 0x30]
add rax, 0xc
mov byte [rax], 0x65
mov rax, qword [rbp - 0x30]
add rax, 0xd
mov byte [rax], 0xe9
mov rax, qword [rbp - 0x30]
add rax, 0xe
mov byte [rax], 0x58
mov rax, qword [rbp - 0x30]
add rax, 0xf
mov byte [rax], 0x5b
mov rax, qword [0x140021280]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [0x140021280], 0
mov rax, qword [rbp - 0x30]
mov qword [0x140021280], rax
mov dword [0x140021288], 0x10
mov eax, dword [0x140021288]
mov dword [0x14002128c], eax
add rsp, 0x158
pop rbx
pop rbp
ret