Function at 0x140005ab7
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 + 0xc8], 0
mov qword [rbp + 0xc0], 0
mov dword [rbp + 0xbc], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp - 0x40], 0
cmp qword [rbp + 0xf0], 0
jne 0x140005b4b
lea r8, str.path___NULL
lea rax, str.program_Initialize
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 0x140006067
mov rax, qword [rbp + 0xf0]
lea rdx, [0x140013496]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xf0], 0
jne 0x140005c24
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sym.string_to_string
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
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 + 0x80], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x78], rax
mov rdx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x90]
mov r8, rdx
lea rdx, [0x140013162]
mov rcx, rax
call sym.fprintf
mov rax, qword [rbp + 0x78]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x78], 0
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
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 + 0x68], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0xc0], rax
mov dword [rbp + 0x64], 4
mov eax, dword [rbp + 0x64]
mov dword [rbp + 0x60], eax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x64]
movsxd rdx, eax
mov rcx, qword [rbp + 0x58]
mov rax, qword [rbp + 0xc0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov edx, dword [rbp + 0x64]
mov rax, qword [rbp + 0xc0]
mov rcx, rax
call sym.program_ToInt32
mov dword [rbp + 0xbc], eax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x50], rax
mov eax, 0xfffffffc
sub eax, dword [rbp + 0xbc]
mov edx, eax
mov rax, qword [rbp + 0x50]
mov r8d, 2
mov rcx, rax
call sym.fseek
mov eax, dword [rbp + 0xbc]
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 + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0xb0], rax
mov eax, dword [rbp + 0xbc]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x38], rax
mov eax, dword [rbp + 0x44]
movsxd rdx, eax
mov rcx, qword [rbp + 0x38]
mov rax, qword [rbp + 0xb0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov rcx, rax
call sym.fflush
mov rax, qword [rbp + 0xb0]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_strdup]
call rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov r8d, 0
mov edx, 0x7d
mov rcx, rax
call sym.string_index_of_char
lea ebx, [rax + 1]
mov rax, qword [rbp + 0x18]
mov r8d, 0
mov edx, 0x7b
mov rcx, rax
call sym.string_index_of_char
mov edx, eax
mov rax, qword [rbp + 0x20]
mov r8d, ebx
mov rcx, rax
call sym.string_slice
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0xa8]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xa8], 0
mov rax, qword [rbp + 8]
mov qword [rbp + 0xa8], rax
lea rax, str.asv
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_variant_type_new]
call rax
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_variant_parse]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
cmp qword [rbp - 8], 0
je 0x140005e9b
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_variant_type_free]
call rax
mov qword [rbp - 8], 0
mov rax, qword [rbp - 0x20]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140005fa2
mov rax, qword [rbp + 0xa8]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xa8], 0
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 0x140005f31
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xc8], 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], 0x73f
lea r9, str.C:_msys64_home_poco_main.vala.c
lea r8, [0x1400130c0]
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
mov eax, 0
jmp 0x140006067
mov rax, qword [rbp + 0xa0]
mov rcx, rax
call sym.settings_from_variant
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x30], rax
cmp qword [rbp + 0xa0], 0
je 0x140005fe5
mov rax, qword [rbp + 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_variant_unref]
call rax
mov qword [rbp + 0xa0], 0
mov rax, qword [rbp + 0xa8]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xa8], 0
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 0x140006063
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp - 0x30]
add rsp, 0x158
pop rbx
pop rbp
ret