Function at 0x1800414c0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x18011c010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov esi, ecx
mov qword [rsp + 0x58], r9
mov ecx, 0x28
mov rdi, r8
mov ebp, edx
call sym.glib_2.0.dll_g_slice_alloc
xor r15d, r15d
mov r14, rax
test rax, rax
je 0x180041513
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x1c], r15
mov dword [rax + 0x24], r15d
mov r12d, 1
mov qword [rsp + 0xb0], rbx
mov dword [rax + 0x18], r12d
lea rdx, [rsp + 0x60]
lea rax, [0x180041480]
mov qword [rsp + 0xa8], r13
mov ecx, esi
mov qword [r14 + 0x10], rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64]
cmp eax, 0xffffffff
jne 0x180041588
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
test rdi, rdi
je 0x180041562
mov rcx, rdi
call sym.glib_2.0.dll_g_filename_display_name
mov r15, rax
call fcn.18002a6c0
call fcn.18002aa30
test eax, eax
jne 0x18004157c
lea r12, str.Failed_to_get_attributes_of_file__s_s_s_s:_fstat___failed:__s
jmp 0x1800416b8
lea rdx, str.Failed_to_get_attributes_of_file__s_s_s_s:_fstat___failed:__s
jmp 0x1800416a8
cmp qword [rsp + 0x78], r15
jne 0x1800415e1
movzx ecx, word [rsp + 0x66]
mov eax, 0xf000
and cx, ax
mov eax, 0x8000
cmp cx, ax
jne 0x1800415e1
mov qword [r14 + 8], r15
mov qword [r14], r15
mov rax, r14
mov r13, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1800989b0
add rsp, 0xb8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [r14], 0xffffffffffffffff
test ebp, ebp
mov rax, qword [rsp + 0x78]
mov ebx, 2
mov qword [r14 + 8], rax
mov ecx, esi
mov eax, 8
cmovne ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov qword [rsp + 0x28], r15
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], r15d
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [r14 + 0x20], rax
test rax, rax
je 0x180041668
mov edx, 4
mov qword [rsp + 0x20], r15
test ebp, ebp
mov rcx, rax
cmovne edx, r12d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [r14], rax
test rax, rax
jne 0x180041668
mov rcx, qword [r14 + 0x20]
mov qword [r14], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14 + 0x20], r15
cmp qword [r14], 0xffffffffffffffff
jne 0x1800415ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
test rdi, rdi
je 0x18004168a
mov rcx, rdi
call sym.glib_2.0.dll_g_filename_display_name
mov r15, rax
call fcn.18002a6c0
call fcn.18002aa30
test eax, eax
jne 0x1800416a1
lea r12, str.Failed_to_map__s_s_s_s:_mmap___failed:__s
jmp 0x1800416b8
lea rdx, str.Failed_to_map__s_s_s_s:_mmap___failed:__s
lea rcx, str.glib20
call qword [sym.imp.intl.dll_libintl_dgettext]
mov r12, rax
mov ecx, ebx
call sym.glib_2.0.dll_g_strerror
mov rbp, rax
lea r13, [0x1800eaba1]
test r15, r15
lea rax, [0x1800f27d4]
mov rsi, r13
mov rdi, r13
cmovne rsi, rax
mov ecx, ebx
lea rax, [0x1800f27d8]
cmovne rdi, r15
cmovne r13, rax
lea rax, [0x1800f24e0]
cmovne rax, r15
mov qword [rsp + 0x50], rax
call sym.glib_2.0.dll_g_file_error_from_errno
mov ebx, eax
call sym.glib_2.0.dll_g_file_error_quark
mov rcx, qword [rsp + 0x58]
mov edx, eax
mov rax, qword [rsp + 0x50]
mov r9, r12
mov qword [rsp + 0x40], rbp
mov r8d, ebx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call sym.glib_2.0.dll_g_set_error
test r15, r15
je 0x180041748
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, r14
mov ecx, 0x28
call sym.glib_2.0.dll_g_slice_free1
xor eax, eax
jmp 0x1800415b0