Function at 0x1004ebf80
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
cmp qword [rsp + 0x118], 0
mov qword [rsp + 0xf0], rcx
mov r12, rdx
mov ebx, r8d
mov dword [rsp + 0x108], r9d
mov dword [rsp + 0x3c], 0
je 0x1004ebfcd
mov rcx, qword [rsp + 0x118]
call sub.msys_2.0.dll_strlen
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0xf0]
sub ebx, 1
call sym.vim.exe_skipwhite
mov qword [rsp + 0x48], rax
mov rdi, rax
movzx eax, byte [rax]
test ebx, ebx
jle 0x1004ec548
test al, al
je 0x1004ec548
mov r14d, 1
lea r15, [0x1006c823e]
jmp 0x1004ec0bf
cmp al, 0x24
je 0x1004ec128
cmp al, 0x7e
jne 0x1004ec026
test r14b, 1
jne 0x1004ec128
lea r13d, [rbx - 1]
mov rax, qword [rsp + 0x48]
movzx edx, byte [rax]
cmp dl, 0x5c
je 0x1004ec330
cmp dl, 0x20
sete cl
cmp dl, 0x2c
sete dl
xor r14d, r14d
or edx, ecx
mov ecx, dword [rsp + 0x110]
test ecx, ecx
sete r14b
and r14d, edx
mov rdx, r12
lea rdi, [rax + 1]
lea r12, [rdx + 1]
mov ebx, r13d
cmp qword [rsp + 0x118], 0
mov qword [rsp + 0x48], rdi
movzx eax, byte [rax]
mov byte [rdx], al
je 0x1004ec0ac
movsxd r8, dword [rsp + 0x3c]
mov rcx, rdi
sub rcx, r8
cmp rcx, qword [rsp + 0xf0]
jb 0x1004ec0ac
mov rdx, qword [rsp + 0x118]
call sub.msys_2.0.dll_strncmp
test eax, eax
mov eax, 1
cmove r14d, eax
movzx eax, byte [rdi]
test ebx, ebx
jle 0x1004ec548
test al, al
je 0x1004ec548
cmp al, 0x60
jne 0x1004ec010
cmp byte [rdi + 1], 0x3d
lea r13d, [rbx - 1]
jne 0x1004ec02a
lea rax, [rdi + 2]
xor edx, edx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call sym.vim.exe_skip_expr
mov rsi, qword [rsp + 0x48]
cmp byte [rsi], 0x60
jne 0x1004ec0fd
add rsi, 1
mov qword [rsp + 0x48], rsi
movsxd rax, ebx
sub rsi, rdi
mov rdx, rdi
mov rcx, r12
cmp rsi, rax
cmova rsi, rax
mov r8, rsi
add r12, rsi
sub ebx, esi
call sym.vim.exe_vim_strncpy
mov rdi, qword [rsp + 0x48]
jmp 0x1004ec0ac
mov dword [rsp + 0x44], 0
cmp byte [rdi], 0x7e
je 0x1004ec378
cmp byte [rdi + 1], 0x7b
lea rsi, [rdi + 1]
lea r13d, [rbx - 1]
je 0x1004ec260
test r13d, r13d
je 0x1004ec550
lea eax, [rbx - 2]
lea rbp, [rdi + rax + 2]
mov rdi, r12
jmp 0x1004ec17f
call sym.vim.exe_vim_isIDc
test eax, eax
je 0x1004ec2b0
movsb byte [rdi], byte [rsi]
cmp rsi, rbp
je 0x1004ec2b0
movzx ecx, byte [rsi]
test cl, cl
jne 0x1004ec168
mov rax, qword [rsp + 0x48]
cmp byte [rax + 1], 0x7b
je 0x1004ec245
nop dword [rax]
mov byte [rdi], 0
mov rcx, r12
call sub.msys_2.0.dll_getenv
mov rdi, rax
test rax, rax
je 0x1004ec400
cmp byte [rax], 0
je 0x1004ec400
mov eax, dword [rsp + 0x108]
test eax, eax
jne 0x1004ec418
mov rcx, rdi
call sub.msys_2.0.dll_strlen
mov rcx, rsi
mov rbp, rax
call sub.msys_2.0.dll_strlen
lea rdx, [rbp + rax + 1]
movsxd rax, ebx
cmp rdx, rax
jae 0x1004ec309
lea r8, [rbp + 1]
sub ebx, ebp
movsxd rbp, ebp
mov rdx, rdi
mov rcx, r12
add rbp, r12
call sub.msys_2.0.dll_memcpy
mov rdx, rbp
mov rcx, r12
call sym.vim.exe_after_pathsep
test eax, eax
jne 0x1004ec468
mov r10d, dword [rsp + 0x44]
mov qword [rsp + 0x48], rsi
test r10d, r10d
jne 0x1004ec450
mov rdi, rsi
mov r12, rbp
jmp 0x1004ec0ac
lea r13d, [rbx - 1]
test rdi, rdi
jne 0x1004ec300
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x1004ec02a
xor ebp, ebp
jmp 0x1004ec31e
mov ecx, 0x7b
call sym.vim.exe_vim_isIDc
test eax, eax
jne 0x1004ec14b
lea rsi, [rdi + 2]
test r13d, r13d
je 0x1004ec550
lea eax, [rbx - 2]
lea rdx, [rdi + rax + 3]
mov rdi, r12
jmp 0x1004ec2a4
cmp al, 0x7d
je 0x1004ec2b0
add rsi, 1
add rdi, 1
mov byte [rdi - 1], al
cmp rsi, rdx
je 0x1004ec2b0
movzx eax, byte [rsi]
test al, al
jne 0x1004ec290
nop dword [rax + rax]
mov rax, qword [rsp + 0x48]
cmp byte [rax + 1], 0x7b
jne 0x1004ec198
cmp byte [rsi], 0x7d
jne 0x1004ec245
add rsi, 1
jmp 0x1004ec198
lea rcx, [r12 + 1]
call sub.msys_2.0.dll_getpwnam
test rax, rax
je 0x1004ec507
mov rdi, qword [rax + 0x28]
test rdi, rdi
je 0x1004ec507
mov edx, dword [rsp + 0x108]
test edx, edx
jne 0x1004ec3af
nop dword [rax]
cmp byte [rdi], 0
jne 0x1004ec1c7
mov r9d, dword [rsp + 0x44]
test r9d, r9d
je 0x1004ec026
mov rbp, rdi
lea r13d, [rbx - 1]
mov rcx, rbp
call sym.vim.exe_vim_free
jmp 0x1004ec02a
cmp byte [rax + 1], 0
jne 0x1004ec340
xor r14d, r14d
jmp 0x1004ec05c
lea rcx, [rax + 1]
lea rdx, [r12 + 1]
mov qword [rsp + 0x48], rcx
movzx eax, byte [rax]
mov byte [r12], al
test r13d, r13d
jne 0x1004ec55d
mov byte [rdx], 0
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, byte [rdi + 1]
test cl, cl
jne 0x1004ec490
mov rax, qword [sym.vim.exe_homedir]
mov rdi, qword [rax]
mov rax, qword [rsp + 0x48]
lea rsi, [rax + 1]
mov ebp, dword [rsp + 0x108]
test ebp, ebp
je 0x1004ec238
test rdi, rdi
je 0x1004ec238
mov rdx, r15
mov rcx, rdi
call sub.msys_2.0.dll_strpbrk
test rax, rax
je 0x1004ec300
mov rdx, r15
mov rcx, rdi
call sym.vim.exe_vim_strsave_escaped
mov rbp, rax
test rax, rax
je 0x1004ec300
mov r11d, dword [rsp + 0x44]
test r11d, r11d
jne 0x1004ec430
mov dword [rsp + 0x44], 1
cmp byte [rbp], 0
je 0x1004ec31a
mov rdi, rbp
jmp 0x1004ec1c7
lea rdx, [rsp + 0x44]
mov rcx, r12
call fcn.1004ebc60
mov rdi, rax
jmp 0x1004ec397
mov rdx, r15
mov rcx, rdi
call sub.msys_2.0.dll_strpbrk
test rax, rax
jne 0x1004ec3c3
jmp 0x1004ec1c7
mov rcx, rdi
call sym.vim.exe_vim_free
mov dword [rsp + 0x44], 1
cmp byte [rbp], 0
jne 0x1004ec3f6
jmp 0x1004ec31a
mov rcx, rdi
mov r12, rbp
call sym.vim.exe_vim_free
mov rdi, qword [rsp + 0x48]
jmp 0x1004ec0ac
movzx ecx, byte [rsi]
call sym.vim.exe_vim_ispathsep
mov r10d, dword [rsp + 0x44]
cmp eax, 1
sbb rsi, 0xffffffffffffffff
mov qword [rsp + 0x48], rsi
test r10d, r10d
je 0x1004ec228
jmp 0x1004ec450
call sym.vim.exe_vim_ispathsep
test eax, eax
jne 0x1004ec384
mov rax, qword [rsp + 0x48]
lea rcx, str.___t_n
movzx edx, byte [rax + 1]
call sym.vim.exe_vim_strchr
test rax, rax
jne 0x1004ec384
mov rsi, qword [rsp + 0x48]
cmp ebx, 1
je 0x1004ec558
lea ebp, [rbx - 1]
mov rdi, r12
add rbp, rsi
jmp 0x1004ec4f2
movzx ecx, al
call sym.vim.exe_vim_isfilec
test eax, eax
je 0x1004ec4f9
movzx ecx, byte [rsi]
call sym.vim.exe_vim_ispathsep
test eax, eax
jne 0x1004ec4f9
movsb byte [rdi], byte [rsi]
cmp rsi, rbp
je 0x1004ec4f9
movzx eax, byte [rsi]
test al, al
jne 0x1004ec4d4
mov byte [rdi], 0
cmp byte [r12], 0
jne 0x1004ec2cd
lea r13, [rsp + 0x50]
mov rcx, r13
call sym.vim.exe_ExpandInit
xor r8d, r8d
mov rdx, r12
mov rcx, r13
mov dword [rsp + 0x20], 2
mov r9d, 0x50
mov dword [rsp + 0x58], 2
call sym.vim.exe_ExpandOne
mov dword [rsp + 0x44], 1
mov rdi, rax
jmp 0x1004ec397
mov rdx, r12
jmp 0x1004ec35e
mov rdi, r12
jmp 0x1004ec2b0
mov rdi, r12
jmp 0x1004ec4f9
xor r14d, r14d
mov rax, rcx
sub r13d, 1
jmp 0x1004ec05f