Function at 0x1005b4690
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x888
lea rbp, [rsp + 0x80]
mov rax, qword [sym.vim.exe_silent_mode]
mov eax, dword [rax]
mov r14, rcx
mov dword [rbp - 0x38], eax
test eax, eax
jne 0x1005b516e
mov ecx, 8
lea rdi, str.builtin_
mov rsi, r14
mov rax, qword [sym.vim.exe_p_tbi]
repe cmpsb byte [rsi], byte [rdi]
mov dword [0x10070f31c], 0
mov eax, dword [rax]
seta bl
sbb bl, 0
movsx ebx, bl
test ebx, ebx
je 0x1005b49cb
test eax, eax
sete bl
setne byte [rbp - 0x31]
movzx ebx, bl
mov dword [rbp - 0x3c], 0
xor esi, esi
xor r12d, r12d
mov dword [rbp - 0x40], 0
cmp ebx, 1
je 0x1005b4b3a
nop
cmp ebx, 2
jne 0x1005b49e0
cmp byte [rbp - 0x31], 0
je 0x1005b49e0
test esi, esi
jne 0x1005b4f31
mov rcx, r14
call fcn.1005b1270
cmp qword [rax + 8], 0
jne 0x1005b5535
call sub.msys_2.0.dll___getreent
mov r8d, 2
mov edx, 1
lea rcx, [0x1006be5cb]
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
test r12, r12
je 0x1005b47a4
call sub.msys_2.0.dll___getreent
mov rcx, r12
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputs
call sub.msys_2.0.dll___getreent
mov r8d, 2
mov edx, 1
lea rcx, [0x1006be5cb]
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
call sub.msys_2.0.dll___getreent
mov ecx, 0x27
lea r13, [0x1006be5fe]
lea r15, str.____builtin_
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
call sub.msys_2.0.dll___getreent
mov rcx, r14
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputs
lea rcx, str._not_known._Available_builtin_terminals_are:
call sub.msys_intl_8.dll_libintl_gettext
mov r14, rax
call sub.msys_2.0.dll___getreent
mov rcx, r14
lea r14, [0x100683980]
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputs
call sub.msys_2.0.dll___getreent
mov r8d, 2
mov edx, 1
lea rcx, [0x1006be5cb]
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov rsi, qword [str.amiga]
test rsi, rsi
jne 0x1005b483d
jmp 0x1005b48b6
mov rsi, qword [r14 + 0x18]
add r14, 0x10
test rsi, rsi
je 0x1005b48b6
mov r11d, dword [r14]
test r11d, r11d
jne 0x1005b4830
mov ecx, 4
mov rdi, r13
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x1005b4830
call sub.msys_2.0.dll___getreent
mov r8d, 0xc
mov rcx, r15
add r14, 0x10
mov r9, qword [rax + 0x18]
mov edx, 1
call sub.msys_2.0.dll_fwrite
mov rsi, qword [r14 - 8]
call sub.msys_2.0.dll___getreent
mov rdx, qword [rax + 0x18]
mov rcx, rsi
call sub.msys_2.0.dll_fputs
call sub.msys_2.0.dll___getreent
mov r8d, 2
mov edx, 1
lea rcx, [0x1006be5cb]
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov rsi, qword [r14 + 8]
test rsi, rsi
jne 0x1005b483d
mov rsi, qword [sym.vim.exe_p_ch]
xor r14d, r14d
lea rdi, [0x1006be5cb]
cmp qword [rsi], 1
jle 0x1005b48fc
nop dword [rax]
call sub.msys_2.0.dll___getreent
mov r8d, 2
mov edx, 1
mov rcx, rdi
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov rax, r14
add r14, 1
add rax, 2
cmp qword [rsi], rax
jg 0x1005b48d0
mov rax, qword [sym.vim.exe_starting]
cmp dword [rax], 2
jne 0x1005b54ed
lea rcx, str.defaulting_to_
call sub.msys_intl_8.dll_libintl_gettext
mov r14, rax
call sub.msys_2.0.dll___getreent
mov rcx, r14
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputs
call sub.msys_2.0.dll___getreent
mov r8d, 4
mov edx, 1
lea rcx, str.ansi
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
call sub.msys_2.0.dll___getreent
mov edx, 1
mov r8d, 3
lea rcx, [0x1006be61f]
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov rax, qword [sym.vim.exe_emsg_silent]
mov edx, dword [rax]
mov rax, qword [sym.vim.exe_in_assert_fails]
or edx, dword [rax]
je 0x1005b50c1
mov dword [rsp + 0x20], 0
mov r9d, 1
lea r8, str.ansi
mov edx, 0xffffffff
lea rcx, [0x1006be623]
lea r14, str.ansi
call sym.vim.exe_set_string_option_direct
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fflush
call sym.vim.exe_out_flush
call sym.vim.exe_clear_termoptions
jmp 0x1005b49fc
mov byte [rbp - 0x31], 1
add r14, 8
jmp 0x1005b4703
mov rcx, r14
call fcn.1005b1270
cmp qword [rax + 8], 0
je 0x1005b4f21
call sym.vim.exe_out_flush
test esi, esi
je 0x1005b49c4
mov rcx, r14
mov edi, 1
call fcn.1005b1270
mov r10d, dword [0x10070f31c]
mov rsi, rax
test r10d, r10d
jne 0x1005b4a30
lea rdx, str.8bit
mov rcx, r14
xor edi, edi
call sub.msys_2.0.dll_strstr
test rax, rax
setne dil
cmp qword [rsi + 8], 0
je 0x1005b4b20
movsxd rdx, dword [rsi + 0x10]
lea r15, [rsi + 0x10]
cmp edx, 0x101
je 0x1005b4b20
lea rsi, [sym.vim.exe_term_strings]
test edx, edx
jne 0x1005b4a99
jmp 0x1005b4b20
mov rax, qword [rsi + rdx*8]
test rax, rax
je 0x1005b4e30
mov rcx, qword [sym.vim.exe_empty_option]
cmp rax, qword [rcx]
je 0x1005b4e30
movsxd rdx, dword [r15 + 0x10]
add r15, 0x10
test edx, edx
je 0x1005b4b20
cmp edx, 0x101
je 0x1005b4b20
test edx, edx
jns 0x1005b4a60
neg edx
mov ecx, dword [0x10070e978]
mov byte [rbp], dl
mov eax, dword [r15]
neg eax
shr eax, 8
mov byte [rbp + 1], al
mov r8d, eax
test ecx, ecx
jle 0x1005b4af0
mov rax, qword [0x10070e980]
sub ecx, 1
lea rcx, [rcx + rcx*2]
lea rcx, [rax + rcx*8 + 0x18]
jmp 0x1005b4ad9
add rax, 0x18
cmp rcx, rax
je 0x1005b4af0
cmp dl, byte [rax]
jne 0x1005b4ad0
cmp r8b, byte [rax + 1]
jne 0x1005b4ad0
cmp qword [rax + 8], 0
jne 0x1005b4a7d
nop word [rax + rax]
mov rdx, qword [r15 + 8]
mov rcx, rbp
test rdx, rdx
je 0x1005b4f17
cmp byte [rdx], 0
je 0x1005b4f17
mov r8d, edi
add r15, 0x10
call fcn.1005b15c0
movsxd rdx, dword [r15]
test edx, edx
jne 0x1005b4a8d
cmp ebx, 2
je 0x1005b4f31
mov esi, 1
add ebx, 1
cmp ebx, 1
jne 0x1005b4720
mov rdx, r14
mov rcx, rbp
call sub.msys_ncursesw6.dll_tgetent
mov edi, eax
test eax, eax
jle 0x1005b508d
test esi, esi
je 0x1005b54aa
lea r15, [rbp - 0x28]
mov dword [rbp - 0x48], ebx
mov esi, 1
lea rax, [0x10070e160]
lea r8, [0x1006be58d]
lea rcx, [0x1006be590]
mov rbx, r15
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x850], r14
mov r15, r8
mov r14, rcx
mov r13, qword [sym.vim.exe_empty_option]
lea r12, [0x1006be7f0]
lea rdi, [sym.vim.exe_term_strings]
jmp 0x1005b4bbb
test r15, r15
je 0x1005b4bf8
mov rax, qword [r12 + 0x18]
movsxd rsi, dword [r12]
mov r14, r15
add r12, 0x10
mov r15, rax
mov rax, qword [rdi + rsi*8]
test rax, rax
je 0x1005b4bca
cmp rax, qword [r13]
jne 0x1005b4ba3
mov rdx, rbx
mov rcx, r14
call sub.msys_ncursesw6.dll_tgetstr
mov ecx, 0
mov edx, 0xffffffff
cmp rax, 0xffffffffffffffff
cmove rax, rcx
mov rcx, r14
mov qword [rdi + rsi*8], rax
call sym.vim.exe_set_term_option_sctx_idx
test r15, r15
jne 0x1005b4ba8
mov rax, qword [0x10070df80]
mov r15, rbx
mov r14, qword [rbp + 0x850]
mov ebx, dword [rbp - 0x48]
test rax, rax
je 0x1005b5361
mov rdx, qword [sym.vim.exe_empty_option]
cmp rax, qword [rdx]
je 0x1005b5361
mov rax, qword [0x10070e000]
test rax, rax
je 0x1005b5411
mov rdx, qword [sym.vim.exe_empty_option]
cmp rax, qword [rdx]
je 0x1005b5411
mov rax, qword [0x10070e008]
test rax, rax
je 0x1005b53ea
mov rdx, qword [sym.vim.exe_empty_option]
cmp rax, qword [rdx]
je 0x1005b53ea
mov rax, qword [0x10070ded8]
test rax, rax
je 0x1005b53c3
mov rdx, qword [sym.vim.exe_empty_option]
cmp rax, qword [rdx]
je 0x1005b53c3
mov rax, qword [0x10070ded0]
test rax, rax
je 0x1005b539c
mov rdx, qword [sym.vim.exe_empty_option]
cmp rax, qword [rdx]
je 0x1005b539c
mov rax, qword [0x10070dec8]
test rax, rax
je 0x1005b533a
mov rdx, qword [sym.vim.exe_empty_option]
cmp rax, qword [rdx]
je 0x1005b533a
mov ecx, dword [0x10070e978]
lea rdi, [0x1006bed90]
lea r12, [0x1006be593]
lea r13, [0x1006be596]
test ecx, ecx
jle 0x1005b4d43
nop dword [rax]
mov rax, qword [0x10070e980]
sub ecx, 1
movzx edx, byte [r13]
lea rcx, [rcx + rcx*2]
lea rcx, [rax + rcx*8 + 0x18]
jmp 0x1005b4d11
add rax, 0x18
cmp rcx, rax
je 0x1005b4d43
cmp byte [rax], dl
jne 0x1005b4d08
movzx esi, byte [r13 + 1]
cmp byte [rax + 1], sil
jne 0x1005b4d08
cmp qword [rax + 8], 0
je 0x1005b4d43
test r12, r12
je 0x1005b4d81
mov rax, qword [rdi]
mov ecx, dword [0x10070e978]
mov r13, r12
add rdi, 8
mov r12, rax
test ecx, ecx
jg 0x1005b4ce8
mov rdx, r15
mov rcx, r13
call sub.msys_ncursesw6.dll_tgetstr
mov rdx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1005b4d27
movzx eax, byte [rdx]
cmp al, 8
jne 0x1005b52fc
cmp byte [r13], 0x6b
je 0x1005b5501
xor r8d, r8d
mov rcx, r13
call fcn.1005b15c0
test r12, r12
jne 0x1005b4d2c
mov edi, dword [rbp - 0x3c]
test edi, edi
je 0x1005b54b4
mov esi, dword [rbp - 0x40]
test esi, esi
je 0x1005b5496
mov rax, qword [0x10070dfe8]
test rax, rax
je 0x1005b5438
mov rdx, qword [sym.vim.exe_empty_option]
cmp rax, qword [rdx]
je 0x1005b5438
mov rdx, r15
lea rcx, [0x1006be5c2]
xor esi, esi
call sub.msys_ncursesw6.dll_tgetstr
mov rdx, qword [sym.imp.msys_ncursesw6.dll_BC]
lea rcx, [0x1006be5c5]
cmp rax, 0xffffffffffffffff
cmove rax, rsi
mov qword [rdx], rax
mov rdx, r15
call sub.msys_ncursesw6.dll_tgetstr
mov rdx, qword [sym.imp.msys_ncursesw6.dll_UP]
lea rcx, [0x1006be5c8]
cmp rax, 0xffffffffffffffff
cmove rax, rsi
mov qword [rdx], rax
mov rdx, r15
call sub.msys_ncursesw6.dll_tgetstr
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1005b4b29
movzx edx, byte [rax]
mov rax, qword [sym.imp.msys_ncursesw6.dll_PC]
mov byte [rax], dl
jmp 0x1005b4b29
mov rcx, qword [r15 + 8]
test edi, edi
je 0x1005b4e3d
cmp byte [rcx], 0x1b
je 0x1005b4e60
mov qword [rsi + rdx*8], rcx
lea rcx, [rsi + rdx*8]
call sym.vim.exe_get_term_opt_idx
mov edx, eax
xor ecx, ecx
call sym.vim.exe_set_term_option_sctx_idx
jmp 0x1005b4a7d
movzx eax, byte [rcx + 1]
lea r8d, [rax - 0x5b]
and r8d, 0xfd
je 0x1005b4e75
cmp al, 0x4f
jne 0x1005b4e3d
call sym.vim.exe_vim_strsave
mov edx, 0xffffffff
mov r9, rax
test rax, rax
je 0x1005b4e4c
movzx eax, byte [rax]
test al, al
je 0x1005b4f00
mov ecx, ebx
mov qword [rbp - 0x48], r9
mov rbx, r9
mov qword [rbp - 0x50], r12
mov r13d, ecx
jmp 0x1005b4ea6
mov eax, edx
test al, al
je 0x1005b4ef5
movzx edx, byte [rbx + 1]
add rbx, 1
cmp al, 0x1b
jne 0x1005b4ea0
cmp dl, 0x5b
je 0x1005b5392
cmp dl, 0x5d
je 0x1005b5388
mov eax, edx
cmp dl, 0x4f
jne 0x1005b4ea2
mov eax, 0xffffff8f
mov byte [rbx - 1], al
lea r12, [rbx + 1]
mov rcx, r12
call sub.msys_2.0.dll_strlen
mov rdx, r12
mov rcx, rbx
lea r8, [rax + 1]
call sub.msys_2.0.dll_memmove
movzx eax, byte [rbx]
test al, al
jne 0x1005b4ea6
mov r9, qword [rbp - 0x48]
mov r12, qword [rbp - 0x50]
mov ebx, r13d
movsxd rax, dword [r15]
mov qword [rsi + rax*8], r9
lea rcx, [rsi + rax*8]
call sym.vim.exe_set_term_option_alloced
mov edx, eax
jmp 0x1005b4e4c
call sym.vim.exe_del_termcode
jmp 0x1005b4a7d
test ebx, ebx
je 0x1005b4b2e
test esi, esi
je 0x1005b474e
mov ecx, 7
lea rdi, str.pcterm
mov rsi, r14
repe cmpsb byte [rsi], byte [rdi]
lea rdx, [0x1006be59e]
seta al
sbb al, 0
test al, al
je 0x1005b4f5c
mov rax, qword [sym.vim.exe_empty_option]
mov rdx, qword [rax]
mov qword [0x10070dfe0], rdx
call sym.vim.exe_get_stty
mov edx, dword [0x10070e978]
test edx, edx
jle 0x1005b54d2
mov rax, qword [0x10070e980]
sub edx, 1
lea rdx, [rdx + rdx*2]
lea rcx, [rax + rdx*8 + 0x18]
mov rdx, rax
jmp 0x1005b4f9d
add rdx, 0x18
cmp rcx, rdx
je 0x1005b50ec
cmp byte [rdx], 0x6b
jne 0x1005b4f90
cmp byte [rdx + 1], 0x62
jne 0x1005b4f90
cmp byte [rax], 0x6b
mov rdx, qword [rdx + 8]
jne 0x1005b50f0
cmp byte [rax + 1], 0x44
jne 0x1005b50f0
mov rbx, qword [rax + 8]
test rdx, rdx
je 0x1005b511d
movzx eax, byte [rdx]
test al, al
je 0x1005b511d
test rbx, rbx
je 0x1005b514b
cmp byte [rbx], 0
je 0x1005b5148
mov rcx, r14
call sym.vim.exe_vim_is_xterm
mov rdx, qword [sym.vim.exe_term_is_xterm]
xor ecx, ecx
mov dword [rdx], eax
call sym.vim.exe_init_term_props
mov rcx, r14
call sym.vim.exe_use_xterm_like_mouse
test eax, eax
je 0x1005b51a0
call sym.vim.exe_use_xterm_mouse
test eax, eax
je 0x1005b5311
call sym.vim.exe_check_mouse_termcode
mov rcx, r14
call sym.vim.exe_use_xterm_like_mouse
test eax, eax
je 0x1005b51d4
mov r9d, 0x62fd
xor r8d, r8d
mov rcx, rbp
mov byte [rbp + 2], 0
lea rdx, [0x1006be637]
mov word [rbp], r9w
call fcn.1005b15c0
xor r8d, r8d
mov rcx, rbp
mov byte [rbp + 1], 0x63
lea rdx, [0x1006be63b]
call fcn.1005b15c0
mov dword [0x10070f318], 1
mov dword [0x10070f314], 1
mov dword [0x10070f304], 1
jmp 0x1005b51d4
lea rdx, str.dumb
mov rcx, rbp
call sub.msys_ncursesw6.dll_tgetent
test edi, edi
je 0x1005b518c
lea rcx, str.E557:_Cannot_open_termcap_file
call sub.msys_intl_8.dll_libintl_gettext
mov r12, rax
test r12, r12
jne 0x1005b4b2e
jmp 0x1005b4b4f
call sym.vim.exe_screen_start
call sym.vim.exe_out_flush
call sym.vim.exe_is_not_a_term
test eax, eax
jne 0x1005b4984
mov edx, 1
mov ecx, 0x7d7
call sym.vim.exe_ui_delay
jmp 0x1005b4984
xor edx, edx
jmp 0x1005b50f9
add rax, 0x18
cmp rax, rcx
je 0x1005b510b
cmp byte [rax], 0x6b
je 0x1005b4fb5
add rax, 0x18
cmp rax, rcx
jne 0x1005b50f9
test rdx, rdx
je 0x1005b54d2
movzx eax, byte [rdx]
xor ebx, ebx
test al, al
jne 0x1005b514b
xor r8d, r8d
lea rdx, [0x1006be5a2]
lea rcx, [0x1006be62f]
call fcn.1005b15c0
test rbx, rbx
je 0x1005b5153
cmp byte [rbx], 0
lea rdx, [0x1006be5a2]
jne 0x1005b4fe9
movzx eax, byte [rdx]
cmp al, 0x7f
je 0x1005b4fe9
xor r8d, r8d
lea rdx, [0x1006be632]
lea rcx, [0x1006be634]
call fcn.1005b15c0
jmp 0x1005b4fe9
mov dword [rbp - 0x38], 1
mov eax, dword [rbp - 0x38]
add rsp, 0x888
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.E558:_Terminal_entry_not_found_in_terminfo
call sub.msys_intl_8.dll_libintl_gettext
mov r12, rax
jmp 0x1005b50b3
lea r8, [0x1006be5a4]
xor r9d, r9d
xor edx, edx
lea rcx, str.ttym
call sym.vim.exe_set_option_value
lea rcx, str.ttym
call sym.vim.exe_reset_option_was_set
mov rcx, r14
call sym.vim.exe_use_xterm_like_mouse
test eax, eax
jne 0x1005b5033
mov rcx, r14
call sym.vim.exe_vim_is_fastterm
test eax, eax
je 0x1005b51ed
mov rax, qword [sym.vim.exe_p_tf]
mov dword [rax], 1
mov ecx, 1
call sym.vim.exe_ttest
mov rbx, qword [sym.vim.exe_full_screen]
mov dword [rbx], 1
call sym.vim.exe_set_term_defaults
mov rax, qword [sym.vim.exe_starting]
mov dword [0x100686670], 0
cmp dword [rax], 2
je 0x1005b5233
mov eax, dword [rbx]
test eax, eax
jne 0x1005b531d
call sym.vim.exe_setmouse
call sym.vim.exe_maketitle
mov ecx, dword [rbp - 0x3c]
test ecx, ecx
jle 0x1005b52e9
mov edx, dword [rbp - 0x40]
test edx, edx
jle 0x1005b52e9
mov edx, dword [rbp - 0x3c]
mov ecx, dword [rbp - 0x40]
xor r8d, r8d
call sym.vim.exe_set_shellsize
mov rax, qword [sym.vim.exe_starting]
cmp dword [rax], 2
je 0x1005b52d8
mov rax, qword [sym.vim.exe_scroll_region]
mov eax, dword [rax]
test eax, eax
jne 0x1005b54c8
call sym.vim.exe_check_map_keycodes
mov rax, qword [sym.vim.exe_firstbuf]
mov rdi, rbp
mov rsi, qword [sym.vim.exe_curbuf]
mov rbx, qword [rax]
test rbx, rbx
je 0x1005b52d8
nop word [rax + rax]
mov rax, qword [rsi]
cmp qword [rax + 8], 0
je 0x1005b52cf
mov rdx, rbx
mov rcx, rdi
call sym.vim.exe_aucmd_prepbuf
mov rax, qword [rsi]
mov ecx, 0x5a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call sym.vim.exe_apply_autocmds
mov rcx, rdi
call sym.vim.exe_aucmd_restbuf
mov rbx, qword [rbx + 0x68]
test rbx, rbx
jne 0x1005b5298
call sym.vim.exe_may_req_termresponse
mov dword [rbp - 0x38], 1
jmp 0x1005b5175
mov dword [rbp - 0x3c], 0x18
mov dword [rbp - 0x40], 0x50
jmp 0x1005b5249
test al, al
jne 0x1005b4d71
mov rcx, r13
call sym.vim.exe_del_termcode
jmp 0x1005b4d27
lea r8, str.xterm
jmp 0x1005b51a7
mov rax, qword [sym.vim.exe_termcap_active]
mov r8d, dword [rax]
test r8d, r8d
jne 0x1005b5229
call fcn.1005b2320
jmp 0x1005b5229
lea rcx, [0x1006be5bf]
call sub.msys_ncursesw6.dll_tgetflag
test eax, eax
jle 0x1005b4cc5
lea rax, [0x1006be5b1]
mov qword [0x10070dec8], rax
jmp 0x1005b4cc5
lea rcx, [0x1006be5ae]
call sub.msys_ncursesw6.dll_tgetflag
test eax, eax
jle 0x1005b4c25
lea rax, [0x1006be5b1]
mov qword [0x10070df80], rax
jmp 0x1005b4c25
mov eax, 0xffffff9d
jmp 0x1005b4ed0
mov eax, 0xffffff9b
jmp 0x1005b4ed0
lea rcx, [0x1006be5bc]
call sub.msys_ncursesw6.dll_tgetflag
test eax, eax
jle 0x1005b4ca5
lea rax, [0x1006be5b1]
mov qword [0x10070ded0], rax
jmp 0x1005b4ca5
lea rcx, [0x1006be5b9]
call sub.msys_ncursesw6.dll_tgetflag
test eax, eax
jle 0x1005b4c85
lea rax, [0x1006be5b1]
mov qword [0x10070ded8], rax
jmp 0x1005b4c85
lea rcx, [0x1006be5b6]
call sub.msys_ncursesw6.dll_tgetflag
test eax, eax
jle 0x1005b4c65
lea rax, [0x1006be5b1]
mov qword [0x10070e008], rax
jmp 0x1005b4c65
lea rcx, [0x1006be5b3]
call sub.msys_ncursesw6.dll_tgetflag
test eax, eax
jle 0x1005b4c45
lea rax, [0x1006be5b1]
mov qword [0x10070e000], rax
jmp 0x1005b4c45
lea rcx, [0x1006be596]
call sub.msys_ncursesw6.dll_tgetnum
mov rdx, qword [sym.vim.exe_t_colors]
mov dword [rdx], eax
cmp eax, 1
jg 0x1005b5511
mov byte [rbp - 0x20], 0
lea rsi, [rbp - 0x20]
mov dword [rsp + 0x20], 0
mov r9d, 1
mov r8, rsi
mov edx, 0xffffffff
lea rcx, str.t_Co
call sym.vim.exe_set_string_option_direct
mov edx, 0xffffffff
lea rcx, [0x1006be596]
call sym.vim.exe_set_term_option_sctx_idx
jmp 0x1005b4db7
lea rcx, [0x1006be49b]
call sub.msys_ncursesw6.dll_tgetnum
mov dword [rbp - 0x40], eax
jmp 0x1005b4d97
call sym.vim.exe_clear_termoptions
jmp 0x1005b4b57
lea rcx, [0x1006be49e]
call sub.msys_ncursesw6.dll_tgetnum
mov dword [rbp - 0x3c], eax
jmp 0x1005b4d8c
call sym.vim.exe_scroll_region_reset
jmp 0x1005b5274
xor r8d, r8d
lea rdx, [0x1006be5a2]
lea rcx, [0x1006be62f]
call fcn.1005b15c0
jmp 0x1005b5153
call sym.vim.exe_screen_start
mov ecx, 1
call sym.vim.exe_wait_return
jmp 0x1005b5175
cmp byte [r13 + 1], 0x6c
jne 0x1005b4d71
jmp 0x1005b4d27
mov dword [rsp + 0x20], eax
lea rsi, [rbp - 0x20]
mov r8d, 0x14
xor edx, edx
lea r9, [0x1006be443]
mov rcx, rsi
call sub.msys_2.0.dll___sprintf_chk
jmp 0x1005b545e
call sym.vim.exe_out_flush
jmp 0x1005b49c4