Function at 0x1004bcce0
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x160
mov r13, rcx
mov ecx, 0x1001
mov r12, rdx
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov r14, r8
mov qword [rsp + 0x48], 0
call sym.vim.exe_alloc
mov qword [rsp + 0x40], rax
mov rdx, rax
test rax, rax
je 0x1004bd288
mov r8d, 0x1000
mov rcx, r13
call sym.vim.exe_expand_env
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call sub.msys_2.0.dll_strlen
lea rcx, [0x1006c47bd]
lea r9, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x34]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rbx
call sym.vim.exe_modify_fname
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1004bd288
movsxd rdx, dword [rsp + 0x34]
lea rsi, [rsp + 0x60]
call sym.vim.exe_vim_strnsave
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
call sym.vim.exe_vim_free
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call sub.msys_2.0.dll_stat
test eax, eax
js 0x1004bd32e
test r12, r12
je 0x1004bce05
mov ecx, 0x1001
call sym.vim.exe_alloc
mov r13, rax
test rax, rax
je 0x1004bd372
mov rdx, rax
mov rcx, r12
mov r8d, 0x1000
mov r12, r13
call sym.vim.exe_expand_env
lea rdx, [rsp + 0xe0]
mov rcx, r13
call sub.msys_2.0.dll_stat
test eax, eax
js 0x1004bd331
mov eax, dword [rsp + 0x70]
mov edx, eax
and edx, 0xf000
cmp edx, 0x4000
je 0x1004bd1d0
and eax, 0xd000
cmp eax, 0x8000
jne 0x1004bd2b2
mov rcx, qword [rsp + 0x40]
mov r8, r14
mov r9, rsi
mov rdx, r12
xor r13d, r13d
call fcn.1004bc530
mov r14d, eax
cmp r14d, 0xffffffff
je 0x1004bd142
mov qword [rsp + 0x58], 0xffffffffffffffff
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xe0], 0xffffffffffffffff
call sub.msys_2.0.dll_pipe
test eax, eax
js 0x1004bd2ca
lea rcx, [rsp + 0xe0]
call sub.msys_2.0.dll_pipe
test eax, eax
js 0x1004bd2ca
movsxd rax, r14d
mov rsi, qword [0x100722de8]
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 0x1004bd3b3
mov rsi, qword [0x100722de8]
add rsi, rbx
mov ecx, dword [rsi + 0x18]
test ecx, ecx
jne 0x1004bd0c8
mov ecx, dword [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x3c], 0
call sub.msys_2.0.dll_dup2
cmp eax, 0xffffffff
je 0x1004bd43f
mov ecx, dword [rsp + 0xe4]
mov edx, 1
call sub.msys_2.0.dll_dup2
cmp eax, 0xffffffff
je 0x1004bd466
mov ecx, dword [rsp + 0xe4]
mov edx, 2
call sub.msys_2.0.dll_dup2
cmp eax, 0xffffffff
je 0x1004bd418
mov ecx, dword [rsp + 0x5c]
call sub.msys_2.0.dll_close
mov ecx, dword [rsp + 0xe0]
call sub.msys_2.0.dll_close
mov ecx, 0x1001
call sym.vim.exe_alloc
mov r13, rax
test rax, rax
je 0x1004bd180
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, r13
call sub.msys_2.0.dll_strlen
mov r12, qword [0x100722de8]
mov rsi, rax
add r12, rbx
mov rcx, qword [r12]
call sub.msys_2.0.dll_strlen
mov r14, qword [r12 + 8]
lea esi, [rsi + rax + 0x20]
test r14, r14
je 0x1004bcfda
mov ecx, 0x1001
call sym.vim.exe_alloc
mov r14, rax
test rax, rax
je 0x1004bd16e
mov rax, qword [0x100722de8]
mov r8d, 0x1000
mov rdx, r14
mov rcx, qword [rax + rbx + 8]
call sym.vim.exe_expand_env
mov rcx, r14
call sub.msys_2.0.dll_strlen
mov r12, qword [0x100722de8]
add esi, eax
add r12, rbx
mov rcx, qword [r12 + 0x10]
test rcx, rcx
je 0x1004bcfeb
call sub.msys_2.0.dll_strlen
add esi, eax
movsxd rcx, esi
call sym.vim.exe_alloc
mov r12, rax
test rax, rax
je 0x1004bd3fe
mov rax, qword [0x100722de8]
mov r8, r13
lea rdx, str._s__dl__f__s
mov rcx, r12
mov r9, qword [rax + rbx]
call sub.msys_2.0.dll_sprintf
add rbx, qword [0x100722de8]
cmp qword [rbx + 8], 0
je 0x1004bd048
mov rcx, r12
call sub.msys_2.0.dll_strlen
mov dword [r12 + rax], 0x502d20
mov rdx, qword [rbx + 8]
lea rcx, [r12 + rax + 3]
call sub.msys_2.0.dll_strcpy
cmp qword [rbx + 0x10], 0
je 0x1004bd06f
mov rcx, r12
call sub.msys_2.0.dll_strlen
mov edx, 0x20
mov word [r12 + rax], dx
mov rdx, qword [rbx + 0x10]
lea rcx, [r12 + rax + 1]
call sub.msys_2.0.dll_strcpy
mov rcx, r13
call sym.vim.exe_vim_free
mov rcx, r14
call sym.vim.exe_vim_free
call sub.msys_2.0.dll_setsid
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x3c]
mov rcx, r12
call sym.vim.exe_build_argv_from_string
test eax, eax
je 0x1004bd180
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
mov rdx, rax
call sub.msys_2.0.dll_execvp
cmp eax, 0xffffffff
je 0x1004bd4bf
mov ecx, 0x7f
call sub.msys_2.0.dll_exit
nop dword [rax]
mov ecx, dword [rsp + 0x5c]
lea rdx, [0x1006c4583]
call sub.msys_2.0.dll_fdopen
mov qword [rsi + 0x30], rax
test rax, rax
je 0x1004bd48d
mov rsi, qword [0x100722de8]
mov ecx, dword [rsp + 0xe0]
lea rdx, [0x1006c487e]
call sub.msys_2.0.dll_fdopen
add rsi, rbx
mov qword [rsi + 0x28], rax
test rax, rax
je 0x1004bd3cc
mov ecx, dword [rsp + 0x58]
call sub.msys_2.0.dll_close
mov ecx, dword [rsp + 0xe4]
call sub.msys_2.0.dll_close
mov ecx, r14d
call fcn.1004bac40
cmp eax, 0xffffffff
je 0x1004bd31c
mov rax, qword [sym.vim.exe_p_csverbose]
mov eax, dword [rax]
test eax, eax
jne 0x1004bd190
mov rcx, qword [rsp + 0x40]
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, 0x160
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rcx, r13
call sym.vim.exe_vim_free
nop word cs:[rax + rax]
mov ecx, 1
call sub.msys_2.0.dll_exit
nop word [rax + rax]
call sym.vim.exe_msg_clr_eos
mov rax, qword [0x100722de8]
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 + 0x44]
call sym.vim.exe_smsg_attr
jmp 0x1004bd142
mov rcx, qword [rsp + 0x40]
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 0xc]
call sym.vim.exe_alloc
mov r13, rax
test rax, rax
je 0x1004bd28e
mov rbx, qword [rsp + 0x40]
jmp 0x1004bd20d
mov byte [rax], 0
mov rbx, qword [rsp + 0x40]
cmp byte [rbx], 0
je 0x1004bd270
mov rcx, rbx
call sub.msys_2.0.dll_strlen
lea rax, [rbx + rax - 1]
cmp byte [rax], 0x2f
je 0x1004bd200
cmp byte [rbx], 0
je 0x1004bd270
lea r9, str.cscope.out
mov r8, rbx
lea rdx, [0x1006c4504]
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 0x1004bd37a
mov r8, r14
mov r9, rsi
mov rdx, r12
mov rcx, r13
call fcn.1004bc530
mov r14d, eax
jmp 0x1004bce46
lea r8, str.cscope.out
lea rdx, [0x1006c47cb]
mov rcx, r13
call sub.msys_2.0.dll_sprintf
jmp 0x1004bd23d
xor r12d, r12d
xor r13d, r13d
mov rcx, r13
call sym.vim.exe_vim_free
mov rcx, qword [rsp + 0x40]
call sym.vim.exe_vim_free
mov rcx, r12
call sym.vim.exe_vim_free
mov eax, 0xffffffff
jmp 0x1004bd15e
mov rax, qword [sym.vim.exe_p_csverbose]
mov r8d, dword [rax]
test r8d, r8d
jne 0x10067709c
xor r13d, r13d
jmp 0x1004bd28e
mov rcx, qword [sym.vim.exe_e_could_not_create_cscope_pipes]
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sym.vim.exe_emsg
mov ecx, dword [rsp + 0x58]
cmp ecx, 0xffffffff
je 0x1004bd2ec
call sub.msys_2.0.dll_close
mov ecx, dword [rsp + 0x5c]
cmp ecx, 0xffffffff
je 0x1004bd2fa
call sub.msys_2.0.dll_close
mov ecx, dword [rsp + 0xe0]
cmp ecx, 0xffffffff
je 0x1004bd30b
call sub.msys_2.0.dll_close
mov ecx, dword [rsp + 0xe4]
cmp ecx, 0xffffffff
je 0x1004bd31c
call sub.msys_2.0.dll_close
mov edx, 1
mov ecx, r14d
call fcn.1004baa10
jmp 0x1004bd28e
xor r12d, r12d
mov rax, qword [sym.vim.exe_p_csverbose]
xor r13d, r13d
mov r10d, dword [rax]
test r10d, r10d
je 0x1004bd28e
mov r14, qword [rsp + 0x40]
call sub.msys_2.0.dll___errno
mov rcx, qword [sym.vim.exe_e_stat_str_error_nr]
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 0x1004bd28e
xor r12d, r12d
jmp 0x1004bd28e
mov rax, qword [sym.vim.exe_p_csverbose]
mov r9d, dword [rax]
test r9d, r9d
je 0x1004bd28e
call sub.msys_2.0.dll___errno
mov rcx, qword [sym.vim.exe_e_stat_str_error_nr]
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 0x1004bd28e
mov rcx, qword [sym.vim.exe_e_could_not_fork_for_cscope]
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sym.vim.exe_emsg
jmp 0x1004bd2de
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, [0x1006c47e6]
mov rdx, rax
call sym.vim.exe_semsg
jmp 0x1004bd10f
mov rcx, r13
call sym.vim.exe_vim_free
mov rcx, r14
call sym.vim.exe_vim_free
mov ecx, 1
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_3
lea rcx, [0x1006c47e6]
mov r8, rax
call sym.vim.exe_semsg
jmp 0x1004bcf27
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, [0x1006c47e6]
mov r8, rax
call sym.vim.exe_semsg
jmp 0x1004bcef3
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, [0x1006c47e6]
mov r8, rax
call sym.vim.exe_semsg
jmp 0x1004bcf0d
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, [0x1006c47e6]
mov rdx, rax
call sym.vim.exe_semsg
jmp 0x1004bd0e5
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, [0x1006c47e6]
mov rdx, rax
call sym.vim.exe_semsg
jmp 0x1004bd0b7
mov rcx, qword [sym.vim.exe_e_str_is_not_directory_or_valid_cscope_database]
mov r13, qword [rsp + 0x40]
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, r13
xor r13d, r13d
mov rcx, rax
call sym.vim.exe_semsg
nop
jmp 0x1004bd28e