Function at 0x68982844
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
mov eax, 0x10c8
call fcn.689841b0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1060], rcx
mov qword [rbp + 0x1068], rdx
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x38], 0
mov dword [rbp + 0x1008], 0
mov dword [rbp + 0xff0], 0
mov qword [rbp + 0xfe8], 0
mov dword [rbp + 0xff8], 0
mov dword [rbp + 0xffc], 0
mov dword [rbp + 0x1000], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 0
mov dword [rbp + 0x1018], 0
mov dword [rbp + 0x1014], 0
mov dword [rbp + 0x101c], 0
mov rax, qword [rbp + 0x1068]
mov qword [rbp + 0x1020], rax
lea rax, [rbp - 0x50]
add rax, 0x38
mov qword [rbp + 0x1038], rax
mov rax, qword [rbp + 0x1038]
mov edx, dword [rax + 0x1008]
mov eax, 0x1000
sub eax, edx
mov dword [rbp + 0x1034], eax
mov rax, qword [rbp + 0x1038]
mov rax, qword [rax + 0x1000]
test rax, rax
je 0x68982976
mov rax, qword [rbp + 0x1038]
mov eax, dword [rax + 0x1008]
test eax, eax
je 0x68982976
mov rax, qword [rbp + 0x1038]
mov eax, dword [rax + 0x1008]
mov ecx, eax
mov rax, qword [rbp + 0x1038]
mov rdx, qword [rax + 0x1000]
mov rax, qword [rbp + 0x1038]
mov r8, rcx
mov rcx, rax
call sym.memmove
mov edx, dword [rbp + 0x1034]
mov rcx, qword [rbp + 0x1038]
mov rax, qword [rbp + 0x1038]
mov eax, dword [rax + 0x1008]
mov eax, eax
add rax, rcx
mov r9, qword [rbp + 0x1060]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov dword [rbp + 0x1030], eax
cmp dword [rbp + 0x1030], 0
jne 0x68982a0f
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x689829d0
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.g_object_unref
lea rdx, str.Premature_end_of_file_encountered
lea rcx, str.gdk_pixbuf
call sym.g_dgettext
mov rbx, rax
call sym.gdk_pixbuf_error_quark
mov edx, eax
mov rax, qword [rbp + 0x1068]
mov r9, rbx
mov r8d, 0
mov rcx, rax
call sym.g_set_error_literal
mov eax, 0
jmp 0x68982cfa
mov rax, qword [rbp + 0x1038]
mov edx, dword [rax + 0x1008]
mov eax, dword [rbp + 0x1030]
add edx, eax
mov rax, qword [rbp + 0x1038]
mov dword [rax + 0x1008], edx
mov rdx, qword [rbp + 0x1038]
mov rax, qword [rbp + 0x1038]
mov qword [rax + 0x1000], rdx
mov eax, dword [rbp + 0x1018]
test eax, eax
jne 0x68982a8c
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.pnm_read_header
mov dword [rbp + 0x102c], eax
cmp dword [rbp + 0x102c], 0xffffffff
jne 0x68982a75
mov eax, 0
jmp 0x68982cfa
cmp dword [rbp + 0x102c], 0
je 0x68982ce3
mov dword [rbp + 0x1018], 1
mov eax, dword [rbp + 0x1014]
test eax, eax
jne 0x68982cbe
mov eax, dword [rbp + 0x1008]
cmp eax, 6
seta dl
test dl, dl
jne 0x68982b92
mov edx, 1
mov ecx, eax
shl rdx, cl
mov rax, rdx
and eax, 0x54
test rax, rax
setne al
test al, al
je 0x68982b92
mov rax, qword [rbp + 0x1038]
mov eax, dword [rax + 0x1008]
test eax, eax
je 0x68982ce9
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_ascii_table]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x1038]
mov rax, qword [rax + 0x1000]
movzx eax, byte [rax]
movzx eax, al
add rax, rax
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
and eax, 0x100
test eax, eax
jne 0x68982b53
lea rdx, str.Raw_PNM_formats_require_exactly_one_whitespace_before_sample_data
lea rcx, str.gdk_pixbuf
call sym.g_dgettext
mov rbx, rax
call sym.gdk_pixbuf_error_quark
mov edx, eax
mov rax, qword [rbp + 0x1068]
mov r9, rbx
mov r8d, 0
mov rcx, rax
call sym.g_set_error_literal
mov eax, 0
jmp 0x68982cfa
mov rax, qword [rbp + 0x1038]
mov eax, dword [rax + 0x1008]
lea edx, [rax - 1]
mov rax, qword [rbp + 0x1038]
mov dword [rax + 0x1008], edx
mov rax, qword [rbp + 0x1038]
mov rax, qword [rax + 0x1000]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x1038]
mov qword [rax + 0x1000], rdx
jmp 0x68982bcf
mov rdx, qword [rbp + 0x1020]
mov rax, qword [rbp + 0x1038]
mov rcx, rax
call sym.pnm_skip_whitespace
mov dword [rbp + 0x102c], eax
cmp dword [rbp + 0x102c], 0xffffffff
jne 0x68982bc1
mov eax, 0
jmp 0x68982cfa
cmp dword [rbp + 0x102c], 0
je 0x68982cef
nop
mov dword [rbp + 0x1014], 1
mov dword [rbp + 0x100c], 0
mov dword [rbp + 0x1010], 0
mov eax, dword [rbp + 0xffc]
mov edx, eax
mov eax, dword [rbp + 0xff8]
mov dword [rsp + 0x20], edx
mov r9d, eax
mov r8d, 8
mov edx, 0
mov ecx, 0
call sym.gdk_pixbuf_new
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
test rax, rax
jne 0x68982c63
lea rdx, str.Cannot_allocate_memory_for_loading_PNM_image
lea rcx, str.gdk_pixbuf
call sym.g_dgettext
mov rbx, rax
call sym.gdk_pixbuf_error_quark
mov edx, eax
mov rax, qword [rbp + 0x1068]
mov r9, rbx
mov r8d, 1
mov rcx, rax
call sym.g_set_error_literal
mov eax, 0
jmp 0x68982cfa
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x2c]
mov dword [rbp + 0x1004], eax
mov rax, qword [rbp - 0x30]
mov rax, qword [rax + 0x30]
mov qword [rbp - 0x28], rax
jmp 0x68982cbe
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.pnm_read_scanline
mov dword [rbp + 0x102c], eax
cmp dword [rbp + 0x102c], 0
je 0x68982cd0
cmp dword [rbp + 0x102c], 0xffffffff
jne 0x68982cbe
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x68982cb7
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.g_object_unref
mov eax, 0
jmp 0x68982cfa
mov edx, dword [rbp + 0x100c]
mov eax, dword [rbp + 0xffc]
cmp edx, eax
jb 0x68982c7e
jmp 0x68982cd1
nop
mov edx, dword [rbp + 0x100c]
mov eax, dword [rbp + 0xffc]
cmp edx, eax
jae 0x68982cf5
jmp 0x68982cf0
nop
jmp 0x68982909
nop
jmp 0x68982909
nop
jmp 0x68982909
nop
mov rax, qword [rbp - 0x30]
add rsp, 0x10c8
pop rbx
pop rbp
ret