Function at 0x1004a68b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x80]
lea rdx, [0x1006a40a4]
lea rax, [rcx + 0x40]
mov r13, rcx
mov rcx, rax
mov qword [rbp - 0x58], rax
call sub.msys_2.0.dll_fopen
mov r14, rax
test rax, rax
je 0x100662058
xor eax, eax
mov ecx, 0x100
mov r9, r14
mov r8d, 0x800
lea r12, [0x100708fa0]
mov edx, 1
mov rdi, r12
rep stosq qword [rdi], rax
mov rcx, r12
call sub.msys_2.0.dll_fread
mov dword [0x1007097a0], eax
test byte [r14 + 0x10], 0x40
jne 0x10066202c
mov rcx, r14
call fcn.10065e4f0
movabs rax, 0xffffffff00000000
mov qword [0x1007097a4], rax
call fcn.1004a5e00
test eax, eax
je 0x1004a6ab0
movsxd rsi, dword [0x1007097a4]
mov eax, dword [0x1007097a8]
sub eax, esi
cmp eax, 0xa
jle 0x10066207c
add rsi, r12
mov ecx, 0xb
lea rdi, str.__PS_Adobe_
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x10066207c
mov ecx, 0xb
call fcn.1004a63b0
mov ecx, eax
cmp eax, 0xffffffff
je 0x1004a6ab0
call fcn.1004a6420
mov edx, eax
cmp eax, 0xffffffff
je 0x1004a6ab0
mov r8d, dword [0x1007097a8]
mov r9d, dword [0x1007097a4]
mov ecx, r8d
add eax, r9d
sub ecx, eax
cmp ecx, 8
jle 0x1006620a0
movsxd rsi, eax
mov ecx, 9
lea rdi, str.Resource_
add rsi, r12
repe cmpsb byte [rsi], byte [rdi]
seta r14b
sbb r14b, 0
movsx eax, r14b
mov dword [rbp - 0x44], eax
test eax, eax
jne 0x1006620a0
lea eax, [rdx + r9 + 9]
sub r8d, eax
cmp r8d, 6
jle 0x1004a6c38
cdqe
mov ecx, 7
lea rdi, str.ProcSet
add rax, r12
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
jne 0x1004a6acb
mov dword [r13 + 0x1044], 0
mov byte [r13 + 0x1048], 0
mov byte [r13 + 0x1148], 0
mov dword [rbp - 0x4c], 0
mov dword [rbp - 0x48], 0
nop dword [rax + rax]
call fcn.1004a5e00
test eax, eax
je 0x1004a6a84
movsxd rsi, dword [0x1007097a4]
mov r14d, dword [0x1007097a8]
sub r14d, esi
cmp r14d, 1
jle 0x1004a6a84
add rsi, r12
cmp byte [rsi], 0x25
je 0x1004a6b08
mov esi, dword [rbp - 0x48]
mov edi, dword [rbp - 0x4c]
xor esi, 1
xor edi, 1
or esi, edi
jne 0x10066200e
nop dword [rax + rax]
mov dword [rbp - 0x44], 1
jmp 0x1004a6ab7
mov dword [rbp - 0x44], 0
mov eax, dword [rbp - 0x44]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp r8d, 7
je 0x1004a6c47
mov ecx, 8
lea rdi, str.Encoding
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
jne 0x1004a6c47
mov dword [r13 + 0x1044], 1
jmp 0x1004a6a35
movzx ebx, byte [rsi + 1]
sub ebx, 0x25
jne 0x1004a6a84
mov r15d, 8
lea rdi, str.__Title:
lea rdx, str.__Title:
cmp r14d, r15d
jl 0x1004a6b3d
movsxd r8, r15d
mov rcx, rsi
call sub.msys_2.0.dll_strncmp
test eax, eax
je 0x1004a6b68
add ebx, 1
add rdi, 0x10
cmp ebx, 3
je 0x1004a6c10
mov r15d, dword [rdi + 8]
mov rdx, qword [rdi]
cmp r14d, r15d
jl 0x1004a6b3d
movsxd r8, r15d
mov rcx, rsi
call sub.msys_2.0.dll_strncmp
test eax, eax
jne 0x1004a6b3d
movsxd rbx, ebx
lea rax, str.__Title:
mov ecx, r15d
shl rbx, 4
mov ebx, dword [rax + rbx + 0xc]
call fcn.1004a6420
cmp eax, 0xffffffff
je 0x1004a6a84
add eax, dword [0x1007097a4]
mov r8d, dword [0x1007097a8]
movsxd rdx, eax
add rdx, r12
sub r8d, eax
cmp ebx, 2
je 0x1004a6be0
cmp ebx, 3
je 0x1004a6a84
cmp ebx, 1
jne 0x1004a6a58
lea rcx, [r13 + 0x1048]
movsxd r8, r8d
call sym.vim.exe_vim_strncpy
mov edx, dword [rbp - 0x4c]
test edx, edx
jne 0x1004a6aa0
mov dword [rbp - 0x48], 1
jmp 0x1004a6a58
lea rcx, [r13 + 0x1148]
movsxd r8, r8d
call sym.vim.exe_vim_strncpy
mov eax, dword [rbp - 0x48]
test eax, eax
jne 0x1004a6aa0
mov dword [rbp - 0x4c], 1
jmp 0x1004a6a58
xor ecx, ecx
call fcn.1004a63b0
mov ecx, eax
cmp eax, 0xffffffff
je 0x1004a6a84
call fcn.1004a6420
cmp eax, 0xffffffff
jne 0x1004a6a58
jmp 0x1004a6a84
cmp r8d, 3
jle 0x100661ff0
cdqe
add rax, r12
mov rsi, rax
mov ecx, 4
lea rdi, str.CMap
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x100661ff0
mov dword [r13 + 0x1044], 2
jmp 0x1004a6a35
lea rcx, str.E619:_file___s__is_not_a_supported_PostScript_resource_file
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rbp - 0x58]
mov rcx, rax
call sym.vim.exe_semsg
nop
jmp 0x1004a6ab7
lea rcx, str.E619:_file___s__is_not_a_supported_PostScript_resource_file
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rbp - 0x58]
mov rcx, rax
call sym.vim.exe_semsg
nop
jmp 0x1004a6ab7
lea rcx, str.E457:_Cant_read_PostScript_resource_file___s_
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rbp - 0x58]
mov rcx, rax
call sym.vim.exe_semsg
mov rcx, r14
call fcn.10065e4f0
mov dword [rbp - 0x44], 0
jmp 0x1004a6ab7
lea rcx, str.E624:_Cant_open_file___s_
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rbp - 0x58]
mov rcx, rax
call sym.vim.exe_semsg
mov dword [rbp - 0x44], 0
jmp 0x1004a6ab7
lea rcx, str.E618:_file___s__is_not_a_PostScript_resource_file
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rbp - 0x58]
mov rcx, rax
call sym.vim.exe_semsg
mov dword [rbp - 0x44], 0
jmp 0x1004a6ab7
lea rcx, str.E619:_file___s__is_not_a_supported_PostScript_resource_file
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rbp - 0x58]
mov rcx, rax
call sym.vim.exe_semsg
mov dword [rbp - 0x44], 0
jmp 0x1004a6ab7