Function at 0x2100ecbe0
Capabilities:
Get common file path

Disassembly:
push rbp
mov eax, 0x2078
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
call fcn.21021b550
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp - 0x44], r8d
movzx eax, byte [rdx]
mov rbx, rcx
mov r12, rdx
cmp al, 9
jne 0x2100ecc26
nop word [rax + rax]
movzx eax, byte [r12 + 1]
add r12, 1
cmp al, 9
je 0x2100ecc18
cmp al, 0x20
je 0x2100ecc18
test al, al
mov qword [rbp - 0x30], r12
sete dl
cmp al, 0x23
sete al
or dl, al
jne 0x2100ecf60
movzx eax, byte [r12]
mov rdi, r12
test al, 0xdf
jne 0x2100ecc5c
jmp 0x2100ecc60
movzx eax, byte [rdi + 1]
add rdi, 1
test al, 0xdf
je 0x2100ecc60
cmp al, 9
jne 0x2100ecc50
mov byte [rdi], 0
mov r15, r12
lea r14, str.040
jmp 0x2100ecc92
mov byte [rax], 0x20
lea r13, [rax + 4]
lea r15, [rax + 1]
mov rcx, r13
call sym.msys_2.0.dll_strlen
mov rdx, r13
mov rcx, r15
lea r8, [rax + 1]
call sym.msys_2.0.dll_memmove
mov rdx, r14
mov rcx, r15
call sym.msys_2.0.dll_strstr
test rax, rax
jne 0x2100ecc70
movsx ecx, byte [r12]
mov r13d, ecx
call sym.msys_2.0.dll_isalpha
test eax, eax
je 0x2100eccbf
cmp byte [r12 + 1], 0x3a
je 0x2100ecf7d
movzx eax, byte [rdi + 1]
lea r13, [rdi + 1]
cmp al, 9
jne 0x2100eccdd
nop dword [rax + rax]
movzx eax, byte [r13 + 1]
add r13, 1
cmp al, 9
je 0x2100eccd0
cmp al, 0x20
je 0x2100eccd0
mov qword [rbp - 0x30], r13
test al, al
je 0x2100ecf60
movzx eax, byte [r13]
mov rdi, r13
test al, 0xdf
jne 0x2100ecd0c
jmp 0x2100ecd10
movzx eax, byte [rdi + 1]
add rdi, 1
test al, 0xdf
je 0x2100ecd10
cmp al, 9
jne 0x2100ecd00
mov rsi, r13
jmp 0x2100ecd3a
mov byte [rax], 0x20
lea r15, [rax + 4]
lea rsi, [rax + 1]
mov rcx, r15
call sym.msys_2.0.dll_strlen
mov rdx, r15
mov rcx, rsi
lea r8, [rax + 1]
call sym.msys_2.0.dll_memmove
mov rdx, r14
mov rcx, rsi
call sym.msys_2.0.dll_strstr
test rax, rax
jne 0x2100ecd18
cmp byte [rdi], 0
je 0x2100ecfb0
movzx eax, byte [rdi + 1]
mov byte [rdi], 0
lea r14, [rdi + 1]
cmp al, 9
je 0x2100ecd70
cmp al, 0x20
jne 0x2100ecd81
nop word cs:[rax + rax]
movzx eax, byte [r14 + 1]
add r14, 1
cmp al, 0x20
je 0x2100ecd70
cmp al, 9
je 0x2100ecd70
mov qword [rbp - 0x30], r14
test al, al
je 0x2100ecf60
movzx eax, byte [r14]
mov rdx, r14
test al, 0xdf
jne 0x2100ecdac
jmp 0x2100ecdb0
movzx eax, byte [rdx + 1]
add rdx, 1
test al, 0xdf
je 0x2100ecdb0
cmp al, 9
jne 0x2100ecda0
mov byte [rdx], 0
lea rax, [rdx + 1]
movzx edx, byte [rdx + 1]
cmp dl, 9
jne 0x2100ecdcd
movzx edx, byte [rax + 1]
add rax, 1
cmp dl, 9
je 0x2100ecdc0
cmp dl, 0x20
je 0x2100ecdc0
mov qword [rbp - 0x30], rax
test dl, dl
jne 0x2100ecde9
jmp 0x2100ecf60
cmp dl, 9
je 0x2100ecdf1
add rax, 1
movzx edx, byte [rax]
test dl, 0xdf
jne 0x2100ecde0
mov byte [rax], 0
lea rdi, str.cygdrive
mov rcx, r14
mov rdx, rdi
mov dword [rbp - 0x34], 8
call sym.msys_2.0.dll_strcmp
test eax, eax
jne 0x2100ece18
mov dword [rbp - 0x34], 0x4008
lea rsi, str.usertemp
mov rcx, r14
mov rdx, rsi
call sym.msys_2.0.dll_strcmp
test eax, eax
jne 0x2100ece35
or dword [rbp - 0x34], 0x10000
lea rdx, [rbp - 0x34]
lea rcx, [rbp - 0x30]
xor r8d, r8d
call sym.fstab_read_flags
mov r15d, eax
test al, al
je 0x2100ecf60
mov r11d, dword [rbp - 0x34]
test r11d, 0x100000
jne 0x2100ed016
cmp byte [rbp - 0x44], 0
je 0x2100ece6b
and dword [rbp - 0x34], 0xfffffff7
mov rdx, rdi
mov rcx, r14
call sym.msys_2.0.dll_strcmp
test eax, eax
je 0x2100ecfde
mov rdx, rsi
mov rcx, r14
call sym.msys_2.0.dll_strcmp
test eax, eax
jne 0x2100ed0c8
lea rbx, [rbp - 0x20]
mov ecx, 0x1000
mov rdx, rbx
call sym.GetTempPathW
test eax, eax
je 0x2100ecf66
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
lea rcx, [rbp - 0x28]
mov eax, dword [rax - 0x2cc8]
mov dword [rbp - 0x28], eax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov eax, dword [rax - 0x2cc4]
mov dword [rbp - 0x24], eax
call method.tmp_pathbuf.c_get__
mov dword [rsp + 0x20], 1
mov r8, rbx
mov r9, 0xffffffffffffffff
mov edx, 0x1000
mov rcx, rax
mov r12, rax
call sym._sys_wcstombs_char__unsigned_long__wchar_t_const__unsigned_long__bool_
mov r9d, dword [rbp - 0x34]
mov r8, r13
mov rdx, r12
mov rax, qword [0x21025fe40]
or r9d, 0x200000
lea rcx, [rax + 0x10]
mov dword [rbp - 0x34], r9d
call method.mount_info.add_item_char_const__char_const__unsigned_int_
test eax, eax
jne 0x2100ed11b
mov edx, dword [rbp - 0x28]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov dword [rax - 0x2cc8], edx
mov edx, dword [rbp - 0x24]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov dword [rax - 0x2cc4], edx
jmp 0x2100ecf66
mov r15d, 1
mov eax, r15d
lea rsp, [rbp + 0x1ff8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movzx r13d, r13b
lea rax, [0x2102aa240]
movzx eax, byte [rax + r13]
lea r13, [rdi + 1]
mov byte [r12], al
movzx eax, byte [rdi + 1]
cmp al, 9
jne 0x2100eccdd
jmp 0x2100eccd0
mov rax, qword [0x21025fe40]
mov r9d, 0x6008
lea rcx, [rax + 0x10]
mov r8, r13
mov rdx, r12
call method.mount_info.add_item_char_const__char_const__unsigned_int_
test eax, eax
je 0x2100ecf60
call sym.msys_2.0.dll___errno
cmp dword [rax], 0x18
setne r15b
jmp 0x2100ecf66
mov eax, dword [rbp - 0x34]
lea r12, [rbx + 0x8504]
mov r8d, 1
mov rcx, r13
mov rdx, r12
or eax, 0x20
mov dword [rbx + 0x8610], eax
call sym.slashify_char_const__char__bool_
mov rcx, r12
call sym.msys_2.0.dll_strlen
mov qword [rbx + 0x8608], rax
jmp 0x2100ecf66
lea r9, [rbp - 0x20]
mov eax, 0x1000
mov dword [rbp - 0x48], r11d
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov qword [rbp], 0
mov dword [rbp - 0x28], 0
call fcn.21021b550
sub rsp, rax
mov rdx, r12
lea rax, [rsp + 0x30]
mov rcx, rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r8, rcx
mov qword [rbp - 0x50], rcx
mov rcx, rbx
call method.mount_info.conv_to_win32_path_char_const__char__device__unsigned_int_
test eax, eax
jne 0x2100ed0dc
mov rcx, qword [rbp - 0x50]
call sym.msys_2.0.dll_strlen
mov r11d, dword [rbp - 0x48]
cmp rax, 0x103
ja 0x2100ed0dc
and r11d, 0xfffffff7
cmp r11d, 0x100000
jne 0x2100ed0b3
mov eax, dword [rbp - 0x28]
and eax, 0xffecffff
or eax, 0x100000
mov dword [rbp - 0x34], eax
cmp byte [rbp + 6], 0
jne 0x2100ed105
cmp byte [rbp + 7], 0
jne 0x2100ed0fa
mov r12, qword [rbp - 0x50]
jmp 0x2100ece61
mov rax, qword [0x21025fe40]
mov r9d, dword [rbp - 0x34]
lea rcx, [rax + 0x10]
jmp 0x2100ecfc1
cmp byte [rbp + 6], 0
jne 0x2100ed110
cmp byte [rbp + 7], 0
je 0x2100ecf66
mov rcx, qword [rbp - 0x10]
call sym.cfree
jmp 0x2100ecf66
mov rcx, qword [rbp - 0x10]
call sym.cfree
jmp 0x2100ed0bf
mov rcx, qword [rbp - 0x20]
call sym.cfree
jmp 0x2100ed0b9
mov rcx, qword [rbp - 0x20]
call sym.cfree
jmp 0x2100ed0e2
call sym.msys_2.0.dll___errno
cmp dword [rax], 0x18
jne 0x2100ecf2e
mov edx, dword [rbp - 0x28]
xor r15d, r15d
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov dword [rax - 0x2cc8], edx
mov edx, dword [rbp - 0x24]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 8]
mov dword [rax - 0x2cc4], edx
jmp 0x2100ecf66