Function at 0x180028380
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x1070
call fcn.180099990
sub rsp, rax
mov rax, qword [0x18011c010]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rax, qword [rsp + 0x10d0]
xor esi, esi
xor r14d, r14d
mov qword [rsp + 0x38], r9
xor ebx, ebx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x30], rax
mov rdi, r9
mov rbp, r8
mov r15, rdx
mov r13, rcx
test rdx, rdx
je 0x180028741
mov rcx, rdx
mov qword [rsp + 0x1068], r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x18002851f
nop word [rax + rax]
mov r9, r15
lea rcx, [rsp + 0x50]
mov edx, 1
mov r8d, 0x1000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, 0xffffffffffffffff
sub rcx, rdi
mov r12d, dword [rax]
cmp r14, rcx
ja 0x18002867a
lea rbp, [rdi + r14]
cmp rbp, rbx
jb 0x1800284d6
test rsi, rsi
je 0x180028462
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x18002867a
add rbx, rbx
jmp 0x18002846f
lea rbx, [rdi + 1]
cmp rbx, 0x1000
jae 0x1800284b4
test rbx, rbx
jne 0x1800284b9
test rsi, rsi
je 0x180028482
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call sym.glib_2.0.dll_g_filename_display_name
mov r14, rax
call fcn.18002aa30
lea rdx, str.Could_not_allocate__lu_byte_to_read_file__s
test eax, eax
jne 0x18002857f
cmp ebx, 1
lea rdi, str.Could_not_allocate__lu_bytes_to_read_file__s
cmove rdi, rdx
jmp 0x180028599
mov ebx, 0x1000
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180028482
mov rsi, rax
cmp rbp, rbx
jae 0x180028445
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x180028610
test rsi, rsi
je 0x18002876e
lea rcx, [r14 + rsi]
mov r8, rdi
lea rdx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, r15
mov r14, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x180028400
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rbx, rbx
jne 0x18002853f
mov edx, 1
mov ecx, edx
call sym.glib_2.0.dll_g_malloc_n
mov rsi, rax
xor r14d, r14d
mov byte [r14 + rsi], 0
test rdi, rdi
je 0x18002854c
mov qword [rdi], r14
mov qword [rbp], rsi
mov eax, 1
mov r12, qword [rsp + 0x1068]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1800989b0
add rsp, 0x1070
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r9d, ebx
lea r8, str.Could_not_allocate__lu_bytes_to_read_file__s
lea rcx, str.glib20
call qword [sym.imp.intl.dll_libintl_dngettext]
mov rdi, rax
mov ebp, dword [0x18011e8ec]
test ebp, ebp
jne 0x1800285e1
mov rax, qword [0x18011ef58]
lea rcx, [0x18011ead0]
call qword [case.0x180005f92.0]
xor edx, edx
lea rcx, [0x1800eec08]
call fcn.1800502e0
mov ebp, eax
lea rcx, [0x18011ead0]
mov rax, qword [0x18011ef68]
call qword [case.0x180005f92.0]
mov dword [0x18011e8ec], ebp
mov qword [rsp + 0x28], r14
mov r9, rdi
mov dword [rsp + 0x20], ebx
mov r8d, recv
mov edx, ebp
mov rcx, qword [rsp + 0x30]
call sym.glib_2.0.dll_g_set_error
test r14, r14
je 0x180028723
mov rcx, r14
jmp 0x18002871d
mov rcx, r13
call sym.glib_2.0.dll_g_filename_display_name
mov r14, rax
call fcn.18002a6c0
call fcn.18002aa30
test eax, eax
jne 0x180028632
lea rbp, str.Error_reading_file__s:__s
jmp 0x180028649
lea rdx, str.Error_reading_file__s:__s
lea rcx, str.glib20
call qword [sym.imp.intl.dll_libintl_dgettext]
mov rbp, rax
mov ecx, r12d
call sym.glib_2.0.dll_g_strerror
mov ecx, r12d
mov rbx, rax
call sym.glib_2.0.dll_g_file_error_from_errno
mov edi, eax
call sym.glib_2.0.dll_g_file_error_quark
mov qword [rsp + 0x28], rbx
mov edx, eax
mov qword [rsp + 0x20], r14
mov r9, rbp
mov r8d, edi
jmp 0x1800285f5
mov rcx, r13
call sym.glib_2.0.dll_g_filename_display_name
mov rbp, rax
call fcn.18002a6c0
call fcn.18002aa30
test eax, eax
jne 0x18002869c
lea rbx, str.File__s_is_too_large
jmp 0x1800286b3
lea rdx, str.File__s_is_too_large
lea rcx, str.glib20
call qword [sym.imp.intl.dll_libintl_dgettext]
mov rbx, rax
mov edi, dword [0x18011e8ec]
test edi, edi
jne 0x1800286fb
mov rax, qword [0x18011ef58]
lea rcx, [0x18011ead0]
call qword [case.0x180005f92.0]
xor edx, edx
lea rcx, [0x1800eec08]
call fcn.1800502e0
mov edi, eax
lea rcx, [0x18011ead0]
mov rax, qword [0x18011ef68]
call qword [case.0x180005f92.0]
mov dword [0x18011e8ec], edi
mov rcx, qword [rsp + 0x30]
mov r9, rbx
mov r8d, 0x18
mov qword [rsp + 0x20], rbp
mov edx, edi
call sym.glib_2.0.dll_g_set_error
test rbp, rbp
je 0x180028723
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
je 0x180028731
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x180028555
lea rax, str.f___NULL
mov r8d, 0x2aa
lea r9, str.get_contents_stdio
mov qword [rsp + 0x20], rax
lea rdx, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgfileutils.c
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_assertion_message_expr
int3
lea rax, str.str___NULL
mov r8d, 0x2e5
lea r9, str.get_contents_stdio
mov qword [rsp + 0x20], rax
lea rdx, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgfileutils.c
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_assertion_message_expr
int3