Function at 0x1005b2d10
Capabilities:
Query environment variable

Disassembly:
push rbp
push r12
push rbx
mov rbp, rsp
sub rsp, 0x50
mov r12d, ecx
call sym.vim.exe_check_options
mov rax, qword [0x10070df88]
cmp byte [rax], 0
je 0x1005b3010
mov rax, qword [0x10070deb0]
xor edx, edx
mov r8, qword [0x10070dfe8]
cmp byte [rax], 0
mov rax, qword [sym.vim.exe_scroll_region]
setne dl
mov dword [rax], edx
test r12d, r12d
je 0x1005b2ef8
mov rdx, qword [0x10070df18]
cmp byte [rdx], 0
je 0x1005b2f48
mov rax, qword [0x10070df38]
cmp byte [rax], 0
je 0x1005b2f7e
mov rcx, qword [0x10070df30]
cmp byte [rcx], 0
je 0x1005b2f7e
mov rcx, qword [0x10070df58]
cmp byte [rcx], 0
je 0x1005b2fa6
mov rcx, qword [0x10070df50]
cmp byte [rcx], 0
je 0x1005b2fa6
mov rcx, qword [0x10070df40]
cmp byte [rcx], 0
je 0x1005b2fce
mov r9, qword [0x10070df48]
cmp byte [r9], 0
je 0x1005b2fce
mov r9, qword [0x10070dee8]
cmp byte [r9], 0
jne 0x1005b2dea
mov r9, qword [sym.vim.exe_empty_option]
mov r9, qword [r9]
mov qword [0x10070dee0], r9
cmp byte [rdx], 0
jne 0x1005b2e0b
mov rdx, qword [0x10070df30]
mov qword [0x10070df20], rax
mov qword [0x10070df28], rax
mov qword [0x10070df18], rdx
cmp byte [rax], 0
jne 0x1005b2e3c
mov rax, qword [0x10070df18]
mov qword [0x10070df30], rax
mov rax, qword [0x10070df20]
cmp byte [rax], 0
jne 0x1005b3090
mov rax, qword [0x10070df28]
mov qword [0x10070df38], rax
cmp byte [rcx], 0
jne 0x1005b2e6d
mov rax, qword [0x10070df18]
mov qword [0x10070df48], rax
mov rax, qword [0x10070df20]
cmp byte [rax], 0
jne 0x1005b3080
mov rax, qword [0x10070df28]
mov qword [0x10070df40], rax
mov rax, qword [0x10070dff8]
cmp byte [rax], 0
je 0x1005b2ff0
mov rdx, qword [0x10070dff0]
cmp byte [rdx], 0
je 0x1005b2ff0
mov rdx, qword [0x10070e020]
cmp byte [rdx], 0
je 0x1005b2ea5
mov rdx, qword [0x10070e018]
cmp byte [rdx], 0
jne 0x1005b2ee0
mov rdx, qword [sym.vim.exe_empty_option]
mov rdx, qword [rdx]
mov qword [0x10070e020], rdx
mov qword [0x10070e018], rdx
cmp byte [rax], 0
jne 0x1005b2ee0
cmp byte [rdx], 0
jne 0x1005b2ee0
mov rcx, r8
call sym.vim.exe_free_one_termoption
mov r8, qword [0x10070dfe8]
nop word cs:[rax + rax]
mov rax, qword [0x10070e000]
xor edx, edx
cmp byte [rax], 0
mov rax, qword [sym.vim.exe_p_wiv]
setne dl
mov dword [rax], edx
mov dword [0x10070f304], 1
mov rcx, r8
call fcn.10065e3c0
mov rbx, qword [sym.vim.exe_t_colors]
lea rcx, str.COLORS
mov dword [rbx], eax
call sub.msys_2.0.dll_getenv
mov r12, rax
test rax, rax
je 0x1005b2f3c
call sub.msys_2.0.dll___locale_ctype_ptr
movzx edx, byte [r12]
test byte [rdx + rax + 1], 4
jne 0x1005b3030
add rsp, 0x50
pop rbx
pop r12
pop rbp
ret
mov rax, qword [sym.vim.exe_empty_option]
mov rdx, qword [rax]
mov rax, qword [0x10070df38]
mov qword [0x10070e010], rdx
mov qword [0x10070df28], rdx
mov qword [0x10070df20], rdx
mov qword [0x10070df18], rdx
cmp byte [rax], 0
jne 0x1005b2d7b
mov rax, qword [sym.vim.exe_empty_option]
mov rcx, qword [0x10070df58]
mov rax, qword [rax]
mov qword [0x10070df30], rax
mov qword [0x10070df38], rax
cmp byte [rcx], 0
jne 0x1005b2d9b
mov rcx, qword [sym.vim.exe_empty_option]
mov rcx, qword [rcx]
mov qword [0x10070df50], rcx
mov qword [0x10070df58], rcx
mov rcx, qword [0x10070df40]
cmp byte [rcx], 0
jne 0x1005b2dbb
mov rcx, qword [sym.vim.exe_empty_option]
mov rcx, qword [rcx]
mov qword [0x10070df48], rcx
mov qword [0x10070df40], rcx
jmp 0x1005b2dcc
mov rax, qword [sym.vim.exe_empty_option]
mov rax, qword [rax]
mov qword [0x10070dff8], rax
mov qword [0x10070dff0], rax
jmp 0x1005b2e8d
lea rcx, str.E437:_terminal_capability__cm__required
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sym.vim.exe_emsg
jmp 0x1005b2d33
mov rcx, r12
call fcn.10065e3c0
cmp dword [rbx], eax
je 0x1005b2f3c
mov dword [rbx], eax
cmp eax, 1
jg 0x1005b30a0
mov byte [rbp - 0x20], 0
lea rbx, [rbp - 0x20]
mov dword [rsp + 0x20], 0
mov r9d, 1
mov r8, rbx
mov edx, 0xffffffff
lea rcx, str.t_Co
call sym.vim.exe_set_string_option_direct
jmp 0x1005b2f3c
mov qword [0x10070df40], rax
jmp 0x1005b2e6d
mov qword [0x10070df38], rax
jmp 0x1005b2e3c
mov dword [rsp + 0x20], eax
lea rbx, [rbp - 0x20]
mov r8d, 0x14
xor edx, edx
lea r9, [0x1006be443]
mov rcx, rbx
call sub.msys_2.0.dll___sprintf_chk
jmp 0x1005b304f