Function at 0x1400085d1
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x120], rcx
mov qword [rbp + 0xf8], 0
mov qword [rbp + 0xf0], 0
mov dword [rbp + 0xec], 0
mov qword [rbp + 0xe0], 0
mov dword [rbp + 0xdc], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xc0], 0
mov qword [rbp - 0x40], 0
cmp qword [rbp + 0x120], 0
jne 0x14000867a
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 0x140008c9f
mov rax, qword [rbp + 0x120]
lea rdx, [0x14001baf9]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0x120], 0
jne 0x14000875f
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0x120]
mov rcx, rax
call sym.string_to_string
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
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 + 0xa0], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x98], rax
mov rdx, qword [rbp + 0x98]
mov rax, qword [rbp + 0xb0]
mov r8, rdx
lea rdx, [0x14001b303]
mov rcx, rax
call sym.fprintf
mov rax, qword [rbp + 0x98]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x98], 0
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
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 + 0x88], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0xf0], rax
mov dword [rbp + 0x84], 4
mov eax, dword [rbp + 0x84]
mov dword [rbp + 0x80], eax
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x78], rax
mov eax, dword [rbp + 0x84]
movsxd rdx, eax
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0xf0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov edx, dword [rbp + 0x84]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sym.program_ToInt32
mov dword [rbp + 0xec], eax
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x70], rax
mov eax, 0xfffffff8
sub eax, dword [rbp + 0xec]
mov edx, eax
mov rax, qword [rbp + 0x70]
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 + 0x68], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0xe0], rax
mov dword [rbp + 0x64], 4
mov eax, dword [rbp + 0x64]
mov dword [rbp + 0x60], eax
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x64]
movsxd rdx, eax
mov rcx, qword [rbp + 0x58]
mov rax, qword [rbp + 0xe0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov edx, dword [rbp + 0x64]
mov rax, qword [rbp + 0xe0]
mov rcx, rax
call sym.program_ToInt32
mov dword [rbp + 0xdc], eax
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x50], rax
mov eax, 0xfffffff8
sub eax, dword [rbp + 0xec]
sub eax, dword [rbp + 0xdc]
mov edx, eax
mov rax, qword [rbp + 0x50]
mov r8d, 2
mov rcx, rax
call sym.fseek
mov eax, dword [rbp + 0xdc]
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 + 0xd0], rax
mov eax, dword [rbp + 0xdc]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x38], rax
mov eax, dword [rbp + 0x44]
movsxd rdx, eax
mov rcx, qword [rbp + 0x38]
mov rax, qword [rbp + 0xd0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov rcx, rax
call sym.fflush
mov rax, qword [rbp + 0xd0]
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 + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0xc8]
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 + 0xc8]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp + 8]
mov qword [rbp + 0xc8], 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 + 0xc8]
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 0x140008a97
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 + 0xc0], rax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140008bbc
mov rax, qword [rbp + 0xc8]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xd0], 0
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xe0], 0
mov rax, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xf0], 0
cmp qword [rbp + 0xf8], 0
je 0x140008b4b
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xf8], 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], 0xb8f
lea r9, str.C:_msys64_home_poco_main_thread.vala.c
lea r8, [0x14001b070]
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 0x140008c9f
mov rax, qword [rbp + 0xc0]
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 + 0xc0], 0
je 0x140008bff
mov rax, qword [rbp + 0xc0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_variant_unref]
call rax
mov qword [rbp + 0xc0], 0
mov rax, qword [rbp + 0xc8]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xd0], 0
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xe0], 0
mov rax, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0xf0], 0
cmp qword [rbp + 0xf8], 0
je 0x140008c9b
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0xf8], 0
mov rax, qword [rbp - 0x30]
add rsp, 0x188
pop rbx
pop rbp
ret