Function at 0x1004b6bc0
Capabilities:
Terminate process

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov r13, rcx
mov ecx, 0x1001
mov r12, rdx
mov r14, r8
mov qword [rbp - 0x38], 0
mov dword [rbp - 0x3c], 0
mov qword [rbp - 0x30], 0
call sym.vim.exe_alloc
mov qword [rbp - 0x38], rax
mov rdx, rax
test rax, rax
je 0x1004b70f8
mov r8d, 0x1000
mov rcx, r13
call sym.vim.exe_expand_env
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call sub.msys_2.0.dll_strlen
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x3c]
xor edx, edx
mov dword [rbp - 0x40], eax
lea rax, [rbp - 0x40]
lea rcx, [0x1006a8131]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x30], rbx
call sym.vim.exe_modify_fname
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1004b70f8
movsxd rdx, dword [rbp - 0x40]
lea rsi, [rbp - 0x20]
call sym.vim.exe_vim_strnsave
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x38], rax
call sym.vim.exe_vim_free
mov rcx, qword [rbp - 0x38]
mov rdx, rsi
call sub.msys_2.0.dll_stat
test eax, eax
js 0x1004b7135
test r12, r12
je 0x1004b6cdc
mov ecx, 0x1001
call sym.vim.exe_alloc
mov r13, rax
test rax, rax
je 0x1004b7178
mov rdx, rax
mov rcx, r12
mov r8d, 0x1000
mov r12, r13
call sym.vim.exe_expand_env
lea rdx, [rbp + 0x60]
mov rcx, r13
call sub.msys_2.0.dll_stat
test eax, eax
js 0x1004b7138
mov eax, dword [rbp - 0x10]
mov edx, eax
and edx, 0xf000
cmp edx, 0x4000
je 0x1004b7050
and eax, 0xd000
cmp eax, 0x8000
jne 0x1004b7103
mov rcx, qword [rbp - 0x38]
mov r8, r14
mov r9, rsi
mov rdx, r12
xor r13d, r13d
call fcn.1004b6390
mov r14d, eax
cmp r14d, 0xffffffff
je 0x1004b6e37
lea rcx, [rbp - 0x28]
mov qword [rbp + 0x60], 0xffffffffffffffff
mov qword [rbp - 0x28], 0xffffffffffffffff
call sub.msys_2.0.dll_pipe
test eax, eax
js 0x1004b711c
lea rcx, [rbp + 0x60]
call sub.msys_2.0.dll_pipe
test eax, eax
js 0x1004b711c
movsxd rax, r14d
mov rsi, qword [0x100709b28]
lea rbx, [rax*8]
sub rbx, rax
call sub.msys_2.0.dll_fork
shl rbx, 3
add rsi, rbx
mov dword [rsi + 0x18], eax
cmp eax, 0xffffffff
je 0x1004b6fd0
test eax, eax
je 0x1004b6e70
mov rsi, qword [0x100709b28]
mov ecx, dword [rbp - 0x24]
lea rdx, [0x1006a7e89]
call sub.msys_2.0.dll_fdopen
add rsi, rbx
mov qword [rsi + 0x30], rax
test rax, rax
je 0x1004b72f9
mov rsi, qword [0x100709b28]
mov ecx, dword [rbp + 0x60]
lea rdx, [0x1006a82a6]
call sub.msys_2.0.dll_fdopen
add rsi, rbx
mov qword [rsi + 0x28], rax
test rax, rax
je 0x1004b7352
mov ecx, dword [rbp - 0x28]
call sub.msys_2.0.dll_close
mov ecx, dword [rbp + 0x64]
call sub.msys_2.0.dll_close
mov ecx, r14d
call fcn.1004b4b00
cmp eax, 0xffffffff
je 0x1004b6f97
mov rax, qword [sym.vim.exe_p_csverbose]
mov eax, dword [rax]
test eax, eax
je 0x1004b6e37
call sym.vim.exe_msg_clr_eos
mov rax, qword [0x100709b28]
lea rcx, str.Added_cscope_database__s
mov rbx, qword [rax + rbx]
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, rax
mov rax, qword [sym.vim.exe_highlight_attr]
mov r8, rbx
mov ecx, dword [rax + 0x38]
call sym.vim.exe_smsg_attr
mov rcx, qword [rbp - 0x38]
call sym.vim.exe_vim_free
mov rcx, r13
call sym.vim.exe_vim_free
mov rcx, r12
call sym.vim.exe_vim_free
xor eax, eax
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, dword [rbp - 0x28]
xor edx, edx
call sub.msys_2.0.dll_dup2
cmp eax, 0xffffffff
je 0x1004b7279
mov ecx, dword [rbp + 0x64]
mov edx, 1
call sub.msys_2.0.dll_dup2
cmp eax, 0xffffffff
je 0x1004b72a0
mov ecx, dword [rbp + 0x64]
mov edx, 2
call sub.msys_2.0.dll_dup2
cmp eax, 0xffffffff
je 0x1004b732b
mov ecx, dword [rbp - 0x24]
call sub.msys_2.0.dll_close
mov ecx, dword [rbp + 0x60]
call sub.msys_2.0.dll_close
mov ecx, 0x1001
call sym.vim.exe_alloc
mov r15, rax
test rax, rax
je 0x1004b6f97
mov rdx, rax
mov rax, qword [sym.vim.exe_p_csprg]
mov r8d, 0x1000
mov rcx, qword [rax]
call sym.vim.exe_expand_env
mov rcx, r15
call sub.msys_2.0.dll_strlen
mov rdx, qword [0x100709b28]
mov rsi, rax
add rdx, rbx
mov rcx, qword [rdx]
mov qword [rbp - 0x48], rdx
call sub.msys_2.0.dll_strlen
mov rdx, qword [rbp - 0x48]
lea esi, [rsi + rax + 0x20]
mov rdi, qword [rdx + 8]
test rdi, rdi
je 0x1004b6f63
mov ecx, 0x1001
call sym.vim.exe_alloc
mov rdi, rax
test rax, rax
je 0x1004b71b7
mov rax, qword [0x100709b28]
mov rdx, rdi
mov r8d, 0x1000
mov rcx, qword [rax + rbx + 8]
call sym.vim.exe_expand_env
mov rcx, rdi
call sub.msys_2.0.dll_strlen
mov rdx, qword [0x100709b28]
add esi, eax
add rdx, rbx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1004b6f73
call sub.msys_2.0.dll_strlen
add esi, eax
movsxd rcx, esi
call sym.vim.exe_alloc
mov rsi, rax
test rax, rax
jne 0x1004b71c4
mov rcx, r15
call sym.vim.exe_vim_free
mov rcx, rdi
call sym.vim.exe_vim_free
mov edx, 1
mov ecx, r14d
call fcn.1004b48c0
nop dword [rax]
mov rcx, r13
call sym.vim.exe_vim_free
mov rcx, qword [rbp - 0x38]
call sym.vim.exe_vim_free
mov rcx, r12
call sym.vim.exe_vim_free
mov eax, 0xffffffff
jmp 0x1004b6e52
lea rcx, str.E622:_Could_not_fork_for_cscope
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sym.vim.exe_emsg
mov ecx, dword [rbp - 0x28]
cmp ecx, 0xffffffff
jne 0x1004b7040
mov ecx, dword [rbp - 0x24]
cmp ecx, 0xffffffff
jne 0x1004b7028
mov ecx, dword [rbp + 0x60]
cmp ecx, 0xffffffff
jne 0x1004b7010
mov ecx, dword [rbp + 0x64]
cmp ecx, 0xffffffff
je 0x1004b6f97
call sub.msys_2.0.dll_close
jmp 0x1004b6f97
call sub.msys_2.0.dll_close
mov ecx, dword [rbp + 0x64]
cmp ecx, 0xffffffff
je 0x1004b6f97
jmp 0x1004b7004
call sub.msys_2.0.dll_close
mov ecx, dword [rbp + 0x60]
cmp ecx, 0xffffffff
je 0x1004b6ffc
jmp 0x1004b7010
call sub.msys_2.0.dll_close
mov ecx, dword [rbp - 0x24]
cmp ecx, 0xffffffff
je 0x1004b6ff4
jmp 0x1004b7028
mov rcx, qword [rbp - 0x38]
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 0xc]
call sym.vim.exe_alloc
mov r13, rax
test rax, rax
je 0x1004b6fa8
mov rbx, qword [rbp - 0x38]
jmp 0x1004b7084
mov byte [rax], 0
mov rbx, qword [rbp - 0x38]
cmp byte [rbx], 0
je 0x1004b70e0
mov rcx, rbx
call sub.msys_2.0.dll_strlen
lea rax, [rbx + rax - 1]
cmp byte [rax], 0x2f
je 0x1004b7078
cmp byte [rbx], 0
je 0x1004b70e0
lea r9, str.cscope.out
mov r8, rbx
lea rdx, [0x1006a7d84]
mov rcx, r13
call sub.msys_2.0.dll_sprintf
mov rdx, rsi
mov rcx, r13
call sub.msys_2.0.dll_stat
test eax, eax
js 0x1004b7180
mov r8, r14
mov r9, rsi
mov rdx, r12
mov rcx, r13
call fcn.1004b6390
mov r14d, eax
jmp 0x1004b6d1b
lea r8, str.cscope.out
lea rdx, [0x1006a8158]
mov rcx, r13
call sub.msys_2.0.dll_sprintf
jmp 0x1004b70b4
xor r12d, r12d
xor r13d, r13d
jmp 0x1004b6fa8
mov rax, qword [sym.vim.exe_p_csverbose]
mov edx, dword [rax]
test edx, edx
jne 0x1006626c5
xor r13d, r13d
jmp 0x1004b6fa8
lea rcx, str.E566:_Could_not_create_cscope_pipes
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sym.vim.exe_emsg
jmp 0x1004b6fe4
xor r12d, r12d
mov rax, qword [sym.vim.exe_p_csverbose]
xor r13d, r13d
mov r8d, dword [rax]
test r8d, r8d
je 0x1004b6fa8
mov r14, qword [rbp - 0x38]
call sub.msys_2.0.dll___errno
lea rcx, str.E563:_stat__s__error:__d
mov ebx, dword [rax]
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, r14
mov rcx, rax
mov r8d, ebx
call sym.vim.exe_semsg
jmp 0x1004b6fa8
xor r12d, r12d
jmp 0x1004b6fa8
mov rax, qword [sym.vim.exe_p_csverbose]
mov ecx, dword [rax]
test ecx, ecx
je 0x1004b6fa8
call sub.msys_2.0.dll___errno
lea rcx, str.E563:_stat__s__error:__d
mov ebx, dword [rax]
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, r13
mov rcx, rax
mov r8d, ebx
call sym.vim.exe_semsg
jmp 0x1004b6fa8
mov rcx, r15
call sym.vim.exe_vim_free
jmp 0x1004b6f97
mov rax, qword [0x100709b28]
mov r8, r15
lea rdx, str.exec__s__dl__f__s
mov rcx, rsi
mov r9, qword [rax + rbx]
call sub.msys_2.0.dll_sprintf
add rbx, qword [0x100709b28]
cmp qword [rbx + 8], 0
je 0x1004b720c
mov rcx, rsi
call sub.msys_2.0.dll_strlen
mov dword [rsi + rax], 0x502d20
mov rdx, qword [rbx + 8]
lea rcx, [rsi + rax + 3]
call sub.msys_2.0.dll_strcpy
cmp qword [rbx + 0x10], 0
je 0x1004b722f
mov rcx, rsi
call sub.msys_2.0.dll_strlen
mov word [rsi + rax], 0x20
mov rdx, qword [rbx + 0x10]
lea rcx, [rsi + rax + 1]
call sub.msys_2.0.dll_strcpy
mov rcx, r15
call sym.vim.exe_vim_free
mov rcx, rdi
call sym.vim.exe_vim_free
call sub.msys_2.0.dll_setsid
mov r9, rsi
mov qword [rsp + 0x20], 0
lea r8, [0x1006a823e]
lea rdx, [0x1006a8241]
lea rcx, str._bin_sh
call sub.msys_2.0.dll_execl
add eax, 1
je 0x1004b72c7
mov ecx, 0x7f
call sub.msys_2.0.dll_exit
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rdx, str.cs_create_connection_1
lea rcx, [0x1006a81f7]
mov r8, rax
call sym.vim.exe_semsg
jmp 0x1004b6e83
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rdx, str.cs_create_connection_2
lea rcx, [0x1006a81f7]
mov r8, rax
call sym.vim.exe_semsg
jmp 0x1004b6e99
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rcx, str.cs_create_connection_exec_failed
mov rbx, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, rbx
lea rcx, [0x1006a81f7]
mov rdx, rax
call sym.vim.exe_semsg
jmp 0x1004b726f
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rcx, str.cs_create_connection:_fdopen_for_to_fp_failed
mov rsi, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, rsi
lea rcx, [0x1006a81f7]
mov rdx, rax
call sym.vim.exe_semsg
jmp 0x1004b6db2
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rdx, str.cs_create_connection_3
lea rcx, [0x1006a81f7]
mov r8, rax
call sym.vim.exe_semsg
jmp 0x1004b6eaf
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rcx, str.cs_create_connection:_fdopen_for_fr_fp_failed
mov rsi, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, rsi
lea rcx, [0x1006a81f7]
mov rdx, rax
call sym.vim.exe_semsg
jmp 0x1004b6dd8
mov r13, qword [rbp - 0x38]
lea rcx, str.E564:__s_is_not_a_directory_or_a_valid_cscope_database
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
mov rdx, r13
xor r13d, r13d
call sym.vim.exe_semsg
nop
jmp 0x1004b6fa8