Function at 0x21007e560
Capabilities:
Set file attributes

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x218
lea rbp, [rsp + 0x80]
mov r12, rdx
mov rsi, rcx
lea r13, [rbp + 0x40]
mov rcx, rdx
call sym.msys_2.0.dll_strlen
mov rdx, r12
mov rcx, r13
mov byte [rbp + 0x60], 0
lea r9, [0x210319880]
mov r8d, 0xa2
mov dword [rbp + 0x40], 0xffffffff
mov rbx, rax
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov dword [rbp + 0x58], 0
mov dword [rbp + 0x5c], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xf0], 0
mov dword [rbp + 0x160], 0
mov qword [rbp + 0x168], 0
mov qword [rbp + 0x170], 0
mov qword [rbp + 0x178], 0
mov qword [rbp + 0x180], 0
mov qword [rbp + 0x188], 0
call method.path_conv.check_char_const__unsigned_int__suffix_info_const_
mov r14d, dword [rbp + 0x160]
test r14d, r14d
jne 0x21007eca3
cmp dword [rbp + 0x40], 0xffffffff
jne 0x21007eb70
movzx eax, byte [r12 + rbx - 1]
cmp al, 0x2f
je 0x21007eb40
cmp al, 0x5c
je 0x21007eb40
xor edx, edx
mov rcx, r12
call sym.has_dot_last_component_char_const__bool_
test al, al
jne 0x21007eb40
lea rax, [rbx + 0x14]
and rax, 0xfffffffffffffff0
call fcn.21021b550
mov ecx, dword [rbp + 0x160]
sub rsp, rax
lea r15, [rsp + 0x40]
test ecx, ecx
je 0x21007e798
mov rax, qword [rsi]
lea rdx, [method.fhandler_base.get_stat_handle__]
mov rax, qword [rax + 0x2a0]
cmp rax, rdx
jne 0x21007eaa0
mov rax, qword [rsi + 0x130]
test rax, rax
je 0x21007e940
mov qword [rbp - 0x38], rax
xor edx, edx
mov rcx, r13
call method.path_conv.get_nt_native_path__UNICODE_STRING_
movzx ecx, word [rax]
mov rdx, rax
lea edi, [rcx + 0x18]
mov r8, rcx
lea rax, [rdi + 0xf]
and eax, 0x3fff0
call fcn.21021b550
sub rsp, rax
lea r12, [rbp - 0x30]
mov qword [rsp + 0x48], 0
mov rdx, qword [rdx + 8]
lea rbx, [rsp + 0x40]
mov dword [rsp + 0x50], ecx
lea rcx, [rsp + 0x54]
mov byte [rsp + 0x40], 0
call sym.msys_2.0.dll_memcpy
mov rcx, qword [rbp - 0x38]
mov r9d, edi
mov r8, rbx
mov dword [rsp + 0x20], 0xb
mov rdx, r12
call sym.NtSetInformationFile
test eax, eax
js 0x21007ebbb
mov eax, dword [rsi + 0x80]
and eax, 0x102
cmp eax, 0x102
je 0x21007e9a8
mov rcx, r13
xor r14d, r14d
call method.path_conv.path_conv__
mov eax, r14d
lea rsp, [rbp + 0x198]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [rsi + 0x1b0]
lea rbx, [rsi + 0x80]
test eax, eax
je 0x21007e850
lea edx, [rax - 0xc3]
cmp edx, 1
ja 0x21007e988
cmp eax, 0xc4
jne 0x21007e850
xor edx, edx
mov rcx, rbx
call method.path_conv.get_nt_native_path__UNICODE_STRING_
movzx edx, word [0x210298340]
movzx ecx, word [rax]
cmp dx, cx
jae 0x21007eab0
movzx r8d, dx
sub rcx, r8
add rcx, qword [rax + 8]
mov rax, rcx
mov word [rbp + 0x12], dx
lea rcx, [rbp + 0x10]
mov r8d, 1
mov word [rbp + 0x10], dx
lea rdx, [0x210298340]
mov qword [rbp + 0x18], rax
call sym.RtlEqualUnicodeString
test al, al
je 0x21007e85d
mov rdx, r12
mov rcx, r15
call sym.msys_2.0.dll_stpcpy
mov dword [rax], 0x6b6e6c2e
mov byte [rax + 4], 0
xor r9d, r9d
mov r8d, 2
mov rdx, r15
mov rcx, r13
call method.path_conv.check_char_const__unsigned_int__suffix_info_const_
jmp 0x21007e6b9
test byte [rsi + 0x11c], 4
jne 0x21007e7c7
mov eax, dword [rsi + 0x80]
cmp eax, 0xffffffff
je 0x21007e870
test al, 0x10
jne 0x21007e6b9
mov rcx, rbx
call method.path_conv.is_binary__
test al, al
je 0x21007e6b9
xor edx, edx
mov rcx, rbx
call method.path_conv.get_nt_native_path__UNICODE_STRING_
movzx edx, word [0x210298320]
movzx ecx, word [rax]
cmp dx, cx
jb 0x21007eaf0
mov rax, qword [rax + 8]
mov edx, ecx
lea rbx, [rbp + 0x10]
lea rdi, [0x210298320]
mov word [rbp + 0x12], dx
mov r8d, 1
mov word [rbp + 0x10], dx
mov rcx, rbx
mov rdx, rdi
mov qword [rbp + 0x18], rax
call sym.RtlEqualUnicodeString
test al, al
je 0x21007e6b9
xor edx, edx
mov rcx, r13
call method.path_conv.get_nt_native_path__UNICODE_STRING_
movzx edx, word [0x210298320]
movzx ecx, word [rax]
cmp dx, cx
jae 0x21007ebb0
movzx r8d, dx
sub rcx, r8
add rcx, qword [rax + 8]
mov rax, rcx
mov word [rbp + 0x12], dx
mov r8d, 1
mov rcx, rbx
mov word [rbp + 0x10], dx
mov rdx, rdi
mov qword [rbp + 0x18], rax
call sym.RtlEqualUnicodeString
test al, al
jne 0x21007e6b9
mov rdx, r12
mov rcx, r15
call sym.msys_2.0.dll_stpcpy
mov dword [rax], 0x6578652e
jmp 0x21007e829
mov rax, qword [rsi + 0x18]
mov qword [rbp - 0x38], rax
test rax, rax
jne 0x21007e6e7
test byte [0x210273880], 1
jne 0x21007ed36
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r14d, 0xffffffff
mov dword [rax], 0xd
call sym.msys_2.0.dll___errno
mov dword [rax], 0xd
jmp 0x21007ea8e
cmp byte [rsi + 0x1cd], 0
je 0x21007e7bc
cmp eax, 0x1e0078
je 0x21007e7bc
jmp 0x21007e7c7
xor edx, edx
mov rcx, r13
call method.path_conv.get_nt_native_path__UNICODE_STRING_
mov r8, rax
test rax, rax
je 0x21007ea00
mov edx, dword [0x2102d1cd0]
xor eax, eax
mov dword [rbp + 0x10], 0x30
lea r8, [rbp + 0x10]
mov qword [rbp + 0x18], 0
test edx, edx
mov qword [rbp + 0x38], 0
setne al
add eax, eax
or eax, dword [rbp + 0x44]
mov dword [rbp + 0x28], eax
lea rax, [rbp + 0xb8]
mov qword [rbp + 0x20], rax
mov rax, qword [0x2102d1cc8]
mov qword [rbp + 0x30], rax
mov dword [rsp + 0x28], 0x4000
lea rcx, [rbp - 0x38]
mov r9, r12
mov edx, 0x100
mov dword [rsp + 0x20], 7
call sym.NtOpenFile
test eax, eax
js 0x21007eac0
mov eax, dword [rsi + 0x80]
mov edx, pe_nt_image_headers64
mov rcx, qword [rbp - 0x38]
mov dword [rsp + 0x20], 4
mov r9d, 0x28
lea r8, [rbp - 0x20]
mov qword [rbp - 8], 0
and eax, 0xfffffefd
mov qword [rbp - 0x10], 0
cmove eax, edx
mov rdx, r12
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov dword [rbp], eax
call sym.NtSetInformationFile
test eax, eax
js 0x21007eb08
mov rcx, qword [rbp - 0x38]
call sym.NtClose
mov rcx, r13
call method.path_conv.path_conv__
jmp 0x21007e77a
mov rcx, rsi
call rax
jmp 0x21007e944
mov rax, qword [rax + 8]
mov edx, ecx
jmp 0x21007e7f2
test byte [0x210273880], 1
je 0x21007ea8e
mov dword [rsp + 0x20], eax
lea r9, str.Opening_for_removing_TEMPORARY_attrib_failed__status___y
lea r8, str.virtual_int_fhandler_disk_file::link_const_char_
mov edx, 0x40
lea rcx, [0x210273880]
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21007ea8e
movzx r8d, dx
sub rcx, r8
add rcx, qword [rax + 8]
mov rax, rcx
jmp 0x21007e8a3
test byte [0x210273880], 1
je 0x21007ea85
mov dword [rsp + 0x20], eax
lea r9, str.Removing_the_TEMPORARY_attrib_failed__status___y
lea r8, str.virtual_int_fhandler_disk_file::link_const_char_
mov edx, 0x40
lea rcx, [0x210273880]
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21007ea85
test byte [0x210273880], 1
jne 0x21007ebf0
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r14d, 0xffffffff
mov dword [rax], 2
call sym.msys_2.0.dll___errno
mov dword [rax], 2
jmp 0x21007ea8e
lea r12, [0x210273880]
test byte [0x210273880], 1
jne 0x21007ec30
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r14d, 0xffffffff
mov dword [rax], 0x11
call sym.msys_2.0.dll___errno
mov dword [rax], 0x11
jmp 0x21007ea8e
mov rax, qword [rax + 8]
mov edx, ecx
jmp 0x21007e8fe
cmp eax, 0xc0000010
je 0x21007ecc9
cmp eax, 0xc00000bb
je 0x21007ecc9
mov r8d, eax
mov edx, 0x4e8
lea rcx, str._usr_src_MSYS2_packages_msys2_runtime_src_msys2_runtime_winsup_cygwin_fhandler_disk_file.cc
mov r14d, 0xffffffff
call sym.seterrno_from_nt_status_char_const__int__int_
jmp 0x21007ea8e
lea rax, str.virtual_int_fhandler_disk_file::link_const_char_
mov dword [rsp + 0x30], 2
lea r9, [0x21028c231]
mov edx, 0x40
mov dword [rsp + 0x28], 0x4ad
lea r8, [0x21028c248]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21007eb4d
xor edx, edx
mov rcx, r13
call method.path_conv.get_nt_native_path__UNICODE_STRING_
lea r9, str.file__S_exists_
mov edx, 0x10
mov rcx, r12
mov qword [rsp + 0x20], rax
lea r8, str.virtual_int_fhandler_disk_file::link_const_char_
call method.strace.prntf_unsigned_int__char_const__char_const__..._
test byte [0x210273880], 1
je 0x21007eb84
mov dword [rsp + 0x30], 0x11
mov edx, 0x40
mov rcx, r12
lea rax, str.virtual_int_fhandler_disk_file::link_const_char_
mov dword [rsp + 0x28], 0x4a7
lea r9, [0x21028c231]
lea r8, [0x21028c248]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21007eb84
test byte [0x210273880], 1
jne 0x21007ecf9
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov dword [rax], r14d
call sym.msys_2.0.dll___errno
mov dword [rax], r14d
mov r14d, 0xffffffff
jmp 0x21007ea8e
test byte [0x210273880], 1
jne 0x21007ed76
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r14d, 0xffffffff
mov dword [rax], 1
call sym.msys_2.0.dll___errno
mov dword [rax], 1
jmp 0x21007ea8e
lea rax, str.virtual_int_fhandler_disk_file::link_const_char_
mov dword [rsp + 0x30], r14d
lea r9, [0x21028c231]
mov edx, 0x40
mov dword [rsp + 0x28], 0x4a0
lea r8, [0x21028c248]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21007ecac
lea rax, str.virtual_int_fhandler_disk_file::link_const_char_
mov dword [rsp + 0x30], 0xd
lea r9, [0x21028c231]
mov edx, 0x40
mov dword [rsp + 0x28], 0x4d4
lea r8, [0x21028c248]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21007e95e
lea rax, str.virtual_int_fhandler_disk_file::link_const_char_
mov dword [rsp + 0x30], 1
lea r9, [0x21028c231]
mov edx, 0x40
mov dword [rsp + 0x28], 0x4e6
lea r8, [0x21028c248]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21007ecd6