Function at 0x1004acf20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rdx, [0x1006c0f15]
lea rax, [rcx + 0x40]
mov rsi, rcx
mov rcx, rax
mov qword [rsp + 0x28], rax
call sub.msys_2.0.dll_fopen
mov r12, rax
test rax, rax
je 0x100676a0a
xor eax, eax
mov ecx, 0x100
mov r9, r12
mov r8d, 0x800
lea rbp, [0x100722040]
mov edx, 1
mov rdi, rbp
rep stosq qword [rdi], rax
mov rcx, rbp
call sub.msys_2.0.dll_fread
mov dword [0x100722840], eax
test byte [r12 + 0x10], 0x40
jne 0x1006769e0
mov rcx, r12
call fcn.100672bf0
movabs rax, 0xffffffff00000000
mov qword [0x100722844], rax
call fcn.1004ac4f0
test eax, eax
je 0x1004ad100
movsxd rcx, dword [0x100722844]
mov eax, dword [0x100722848]
sub eax, ecx
cmp eax, 0xa
jle 0x1006769be
add rcx, rbp
mov r8d, 0xb
lea rdx, str.__PS_Adobe_
call sub.msys_2.0.dll_strncmp
test eax, eax
jne 0x1006769be
mov ecx, 0xb
call fcn.1004aca70
mov ecx, eax
cmp eax, 0xffffffff
je 0x1004ad100
call fcn.1004acae0
mov ebx, eax
cmp eax, 0xffffffff
je 0x1004ad100
mov r14d, dword [0x100722848]
mov edi, dword [0x100722844]
mov edx, r14d
lea eax, [rax + rdi]
sub edx, eax
cmp edx, 8
jle 0x100676a2c
cdqe
mov r8d, 9
lea rdx, str.Resource_
lea rcx, [rbp + rax]
call sub.msys_2.0.dll_strncmp
mov r12d, eax
test eax, eax
jne 0x100676a2c
lea eax, [rbx + rdi + 9]
mov ebx, r14d
sub ebx, eax
cmp ebx, 6
jle 0x1004ad2a0
cdqe
mov r8d, 7
lea rdx, str.ProcSet
lea r14, [rbp + rax]
mov rcx, r14
call sub.msys_2.0.dll_strncmp
test eax, eax
jne 0x1004ad245
mov dword [rsi + 0x1044], eax
mov byte [rsi + 0x1048], 0
mov byte [rsi + 0x1148], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
nop
call fcn.1004ac4f0
test eax, eax
je 0x1004ad0d8
movsxd rdi, dword [0x100722844]
mov r14d, dword [0x100722848]
sub r14d, edi
cmp r14d, 1
jle 0x1004ad0d8
add rdi, rbp
cmp byte [rdi], 0x25
je 0x1004ad120
mov edi, dword [rsp + 0x24]
mov r14d, dword [rsp + 0x20]
xor edi, 1
xor r14d, 1
or edi, r14d
jne 0x10067699f
nop dword [rax]
mov r12d, 1
jmp 0x1004ad103
xor r12d, r12d
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx ebx, byte [rdi + 1]
sub ebx, 0x25
jne 0x1004ad0d8
mov r15d, 8
lea r13, str.__Title:
lea rdx, str.__Title:
cmp r14d, r15d
jl 0x1004ad151
movsxd r8, r15d
mov rcx, rdi
call sub.msys_2.0.dll_strncmp
test eax, eax
je 0x1004ad17d
add ebx, 1
add r13, 0x10
cmp ebx, 3
je 0x1004ad220
mov r15d, dword [r13 + 8]
mov rdx, qword [r13]
cmp r14d, r15d
jl 0x1004ad151
movsxd r8, r15d
mov rcx, rdi
call sub.msys_2.0.dll_strncmp
test eax, eax
jne 0x1004ad151
movsxd rbx, ebx
lea rax, str.__Title:
mov ecx, r15d
shl rbx, 4
mov ebx, dword [rax + rbx + 0xc]
call fcn.1004acae0
cmp eax, 0xffffffff
je 0x1004ad0d8
add eax, dword [0x100722844]
mov r8d, dword [0x100722848]
movsxd rdx, eax
add rdx, rbp
sub r8d, eax
cmp ebx, 2
je 0x1004ad1f8
cmp ebx, 3
je 0x1004ad0d8
cmp ebx, 1
jne 0x1004ad0b0
lea rcx, [rsi + 0x1048]
movsxd r8, r8d
call sym.vim.exe_vim_strncpy
mov edx, dword [rsp + 0x24]
test edx, edx
jne 0x1004ad0f8
mov dword [rsp + 0x20], 1
jmp 0x1004ad0b0
lea rcx, [rsi + 0x1148]
movsxd r8, r8d
call sym.vim.exe_vim_strncpy
mov eax, dword [rsp + 0x20]
test eax, eax
jne 0x1004ad0f8
mov dword [rsp + 0x24], 1
jmp 0x1004ad0b0
xor ecx, ecx
call fcn.1004aca70
mov ecx, eax
cmp eax, 0xffffffff
je 0x1004ad0d8
call fcn.1004acae0
cmp eax, 0xffffffff
jne 0x1004ad0b0
jmp 0x1004ad0d8
cmp ebx, 7
je 0x1004ad270
mov r8d, 8
lea rdx, str.Encoding
mov rcx, r14
call sub.msys_2.0.dll_strncmp
mov r8d, eax
mov eax, 1
test r8d, r8d
je 0x1004ad08b
mov r8d, 4
lea rdx, str.CMap
mov rcx, r14
call sub.msys_2.0.dll_strncmp
test eax, eax
jne 0x100676980
mov eax, 2
jmp 0x1004ad08b
cmp ebx, 3
jle 0x100676980
cdqe
lea r14, [rbp + rax]
jmp 0x1004ad270
mov rcx, qword [sym.vim.exe_e_file_str_is_not_supported_postscript_resource_file]
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call sym.vim.exe_semsg
nop
jmp 0x1004ad103
mov rcx, qword [sym.vim.exe_e_file_str_is_not_supported_postscript_resource_file]
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call sym.vim.exe_semsg
nop
jmp 0x1004ad103
mov rcx, qword [sym.vim.exe_e_file_str_is_not_postscript_resource_file]
xor r12d, r12d
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call sym.vim.exe_semsg
nop
jmp 0x1004ad103
mov rcx, qword [sym.vim.exe_e_cant_read_postscript_resource_file_str]
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call sym.vim.exe_semsg
mov rcx, r12
xor r12d, r12d
call fcn.100672bf0
nop
jmp 0x1004ad103
mov rcx, qword [sym.vim.exe_e_cant_open_file_str_3]
xor r12d, r12d
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call sym.vim.exe_semsg
nop
jmp 0x1004ad103
mov rcx, qword [sym.vim.exe_e_file_str_is_not_supported_postscript_resource_file]
xor r12d, r12d
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call sym.vim.exe_semsg
nop
jmp 0x1004ad103