Function at 0x1004e56d0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov r13, rcx
mov rbx, rdx
call sub.msys_2.0.dll_getenv
mov r12, rax
test rax, rax
je 0x1004e5704
cmp byte [rax], 0
jne 0x1004e57b8
mov ecx, 0xb
lea rdi, [0x1006ac256]
mov rsi, r13
repe cmpsb byte [rsi], byte [rdi]
seta r14b
sbb r14b, 0
movsx r14d, r14b
test r14d, r14d
je 0x1004e57d0
mov ecx, 4
lea rdi, [0x1006ac26b]
mov rsi, r13
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x1004e58e0
mov r13, qword [sym.vim.exe_p_hf]
mov rcx, qword [r13]
test rcx, rcx
je 0x1004e5778
mov edx, 0x24
call sym.vim.exe_vim_strchr
test rax, rax
jne 0x1004e5778
mov r15, qword [r13]
test r15, r15
jne 0x1004e590d
nop dword [rax]
mov rax, qword [sym.vim.exe_default_vim_dir]
mov r12, qword [rax]
cmp byte [r12], 0
je 0x1004e58e0
mov dword [rbx], 0
test r14d, r14d
je 0x1004e5848
mov rdx, r12
lea rcx, [0x1006ac26b]
call sym.vim.exe_vim_setenv
mov rax, qword [sym.vim.exe_didset_vim]
mov dword [rax], 1
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rdi, qword [sym.vim.exe_default_vimruntime_dir]
mov rax, qword [rdi]
cmp byte [rax], 0
je 0x1004e5870
mov r13, qword [sym.vim.exe_p_hf]
mov rcx, qword [r13]
test rcx, rcx
je 0x1004e58f0
mov edx, 0x24
call sym.vim.exe_vim_strchr
test rax, rax
je 0x1004e5900
mov r12, qword [rdi]
cmp byte [r12], 0
jne 0x1004e58f3
mov rsi, qword [sym.vim.exe_default_vim_dir]
mov rcx, qword [rsi]
cmp byte [rcx], 0
je 0x1004e58e0
call fcn.1004e2ce0
mov r12, rax
test rax, rax
je 0x1004e58c9
mov dword [rbx], 1
nop word [rax + rax]
mov rdx, r12
lea rcx, [0x1006ac256]
call sym.vim.exe_vim_setenv
mov rax, qword [sym.vim.exe_didset_vimruntime]
mov dword [rax], 1
jmp 0x1004e57b8
lea rcx, [0x1006ac26b]
call sub.msys_2.0.dll_getenv
test rax, rax
je 0x1004e58b0
cmp byte [rax], 0
je 0x1004e58b0
mov rcx, rax
call fcn.1004e2ce0
mov r12, rax
test rax, rax
jne 0x1004e583c
lea rcx, [0x1006ac26b]
call sub.msys_2.0.dll_getenv
mov r12, rax
test rax, rax
jne 0x1004e5848
nop word [rax + rax]
mov r13, qword [sym.vim.exe_p_hf]
mov rcx, qword [r13]
test rcx, rcx
jne 0x1004e57f7
jmp 0x1004e580a
mov r12, qword [rsi]
mov dword [rbx], 0
test r12, r12
jne 0x1004e5848
nop dword [rax + rax]
xor r12d, r12d
jmp 0x1004e57b8
mov r12, rax
mov dword [rbx], 0
jmp 0x1004e5848
mov r15, qword [r13]
test r15, r15
je 0x1004e580a
mov rcx, r15
call sym.vim.exe_gettail
mov r12, rax
cmp qword [r13], r15
je 0x1004e59d8
test r14d, r14d
jne 0x1004e5998
cmp r12, r15
ja 0x1004e5980
mov rdx, r12
mov rcx, r15
sub rdx, r15
call sym.vim.exe_vim_strnsave
mov r12, rax
test rax, rax
je 0x1004e5960
mov rcx, rax
call sym.vim.exe_mch_isdir
test eax, eax
je 0x1004e59c8
mov dword [rbx], 1
jmp 0x1004e5793
mov dword [rbx], 1
test r14d, r14d
jne 0x1004e5778
mov rdi, qword [sym.vim.exe_default_vimruntime_dir]
jmp 0x1004e580a
mov rdx, r12
mov rcx, r15
call sym.vim.exe_after_pathsep
cmp eax, 1
adc r12, 0xffffffffffffffff
jmp 0x1004e592c
mov rdx, r12
lea r8, str.runtime
mov rcx, r15
call fcn.1004e2c70
lea r8, str.vim82
mov rcx, r15
mov rdx, rax
call fcn.1004e2c70
mov r12, rax
jmp 0x1004e5927
mov rcx, r12
call sym.vim.exe_vim_free
jmp 0x1004e5966
lea r8, [0x1006ac26f]
mov rdx, rax
mov rcx, r15
call fcn.1004e2c70
mov r12, rax
jmp 0x1004e5922