Function at 0x2100d2740
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
movzx eax, word [r8 + 2]
mov r12, rcx
mov esi, edx
mov rbx, r8
cmp ax, 1
je 0x2100d2978
cmp ax, 2
je 0x2100d2920
test ax, ax
je 0x2100d27c0
test byte [0x210273880], 1
jne 0x2100d2a68
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov dword [rax], 0x16
call sym.msys_2.0.dll___errno
mov dword [rax], 0x16
mov eax, 0xffffffff
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
mov rdx, qword [rbx + 0x10]
add rax, qword [rbx + 8]
mov qword [rsp + 0x58], rax
test rdx, rdx
js 0x2100d2890
mov qword [rsp + 0x60], rdx
test rax, rax
js 0x2100d2ca0
test rdx, rdx
jne 0x2100d27f4
mov qword [rsp + 0x60], 0xffffffffffffffff
mov rax, qword [r12]
movzx edx, word [rbx]
mov rax, qword [rax + 0x280]
cmp dx, 3
je 0x2100d28d0
cmp esi, 9
je 0x2100d2ab0
xor edi, edi
lea r15, [method.fhandler_base.get_handle__]
cmp dx, 2
sete dil
cmp rax, r15
jne 0x2100d29c8
mov rcx, qword [r12 + 0x18]
lea rbp, [rsp + 0x60]
mov dword [rsp + 0x48], edi
xor edx, edx
lea rdi, [rsp + 0x58]
lea r13, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
call sym.NtLockFile
mov r14d, eax
cmp esi, 7
je 0x2100d2a1b
test r14d, r14d
js 0x2100d2d0f
xor eax, eax
jmp 0x2100d27a3
mov rcx, rdx
sub rax, rdx
neg rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
test rax, rax
jns 0x2100d27f4
sub rax, rdx
mov qword [rsp + 0x60], rax
test rax, rax
jle 0x2100d2cb1
mov qword [rsp + 0x58], 0
jmp 0x2100d27f4
lea rdx, [method.fhandler_base.get_handle__]
cmp rax, rdx
jne 0x2100d2cd8
mov rcx, qword [r12 + 0x18]
lea rdx, [rsp + 0x70]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x58]
call sym.NtUnlockFile
mov r14d, eax
cmp eax, 0xc000007e
je 0x2100d2888
test r14d, r14d
jns 0x2100d2888
jmp 0x2100d2d0f
mov rax, qword [rcx]
lea rdx, [method.fhandler_base.get_handle__]
mov rax, qword [rax + 0x280]
cmp rax, rdx
jne 0x2100d2d30
mov rcx, qword [rcx + 0x18]
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x70]
mov r9d, 0x18
lea r8, [rsp + 0x80]
call sym.NtQueryInformationFile
test eax, eax
js 0x2100d2d5d
mov rax, qword [rsp + 0x88]
jmp 0x2100d27c2
mov rax, qword [rcx]
lea rdx, [method.fhandler_base.get_handle__]
mov rax, qword [rax + 0x280]
cmp rax, rdx
jne 0x2100d2d80
mov rcx, qword [rcx + 0x18]
lea rdx, [rsp + 0x70]
mov r9d, 8
mov dword [rsp + 0x20], 0xe
lea r8, [rsp + 0x50]
call sym.NtQueryInformationFile
test eax, eax
js 0x2100d2daa
mov rax, qword [rsp + 0x50]
jmp 0x2100d27c2
mov rcx, r12
lea rbp, [rsp + 0x60]
lea r13, [rsp + 0x70]
call rax
mov dword [rsp + 0x48], edi
lea rdi, [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x40], 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
mov rcx, qword [rax]
call sym.NtLockFile
mov r14d, eax
cmp esi, 7
jne 0x2100d287f
test r14d, r14d
js 0x2100d2dd0
mov rax, qword [r12]
mov rax, qword [rax + 0x280]
cmp rax, r15
jne 0x2100d2e20
add r12, 0x18
mov dword [rsp + 0x20], 0
mov rcx, qword [r12]
mov r9, rbp
mov r8, rdi
mov rdx, r13
call sym.NtUnlockFile
mov eax, 3
mov word [rbx], ax
xor eax, eax
jmp 0x2100d27a3
mov dword [rsp + 0x30], 0x16
mov dword [rsp + 0x28], 0x787
lea rax, str.virtual_int_fhandler_disk_file::mand_lock_int__flock_
lea r9, [0x210296c87]
mov edx, 0x40
mov qword [rsp + 0x20], rax
lea r8, [0x210296ca0]
lea rcx, [0x210273880]
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100d2786
lea r15, [method.fhandler_base.get_handle__]
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
cmp rax, r15
jne 0x2100d2e00
lea rax, [r12 + 0x18]
mov rax, qword [rax]
lea r13, [rsp + 0x70]
lea rdi, [rsp + 0x58]
mov dword [rsp + 0x20], 0
lea rbp, [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xa0], rax
xor eax, eax
cmp dx, 2
lea r8, [rsp + 0xd0]
sete al
mov edx, 0x1f0003
xor r9d, r9d
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rbp
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xd0], 0x30
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
call sym.NtCreateEvent
cmp qword [rsp + 0x68], 0
je 0x2100d2c40
mov ecx, 0x58
call method.cygthread.operator_new_unsigned_long_
mov r15, rax
lea rax, str.blk_lock
mov qword [r15 + 0x28], rax
lea rax, [sym.blocking_lock_thr_void_]
mov rcx, r15
mov qword [r15 + 0x30], rax
lea rax, [rsp + 0xa0]
mov qword [r15 + 0x40], rax
mov rax, qword [rsp + 0x68]
mov dword [r15 + 0x38], 0
mov qword [r15 + 0x50], rax
call method.cygthread.create__
mov rcx, qword [rsp + 0x68]
xor edx, edx
mov r8d, 0xc
call sym.cygwait_void___LARGE_INTEGER__unsigned_int_
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call sym.NtClose
test ebx, ebx
jne 0x2100d2e2d
xor edx, edx
mov rcx, r15
mov r14d, dword [rsp + 0xc4]
call method.cygthread.detach_void_
jmp 0x2100d287f
mov rax, qword [r12]
cmp word [rbx], 2
sete bl
mov rax, qword [rax + 0x280]
movzx ebx, bl
cmp rax, r15
jne 0x2100d2e10
add r12, 0x18
mov dword [rsp + 0x48], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
mov rcx, qword [r12]
call sym.NtLockFile
mov r14d, eax
jmp 0x2100d287f
add rax, rdx
mov qword [rsp + 0x60], rax
test rax, rax
jg 0x2100d28bd
test byte [0x210273880], 1
je 0x2100d2786
mov dword [rsp + 0x30], 0x16
mov dword [rsp + 0x28], 0x798
jmp 0x2100d2a78
mov rcx, r12
call rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x70]
lea r9, [rsp + 0x60]
mov rcx, qword [rax]
lea r8, [rsp + 0x58]
call sym.NtUnlockFile
mov r14d, eax
cmp eax, 0xc000007e
jne 0x2100d287f
jmp 0x2100d2888
mov r8d, r14d
mov edx, 0x807
lea rcx, str._usr_src_MSYS2_packages_msys2_runtime_src_msys2_runtime_winsup_cygwin_flock.cc
call sym.seterrno_from_nt_status_char_const__int__int_
mov eax, 0xffffffff
jmp 0x2100d27a3
call rax
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x70]
mov r9d, 0x18
mov rcx, qword [rax]
lea r8, [rsp + 0x80]
call sym.NtQueryInformationFile
test eax, eax
jns 0x2100d2966
mov r8d, eax
mov edx, 0x781
lea rcx, str._usr_src_MSYS2_packages_msys2_runtime_src_msys2_runtime_winsup_cygwin_flock.cc
call sym.seterrno_from_nt_status_char_const__int__int_
or eax, 0xffffffff
jmp 0x2100d27a3
call rax
mov dword [rsp + 0x20], 0xe
lea rdx, [rsp + 0x70]
mov r9d, 8
mov rcx, qword [rax]
lea r8, [rsp + 0x50]
call sym.NtQueryInformationFile
test eax, eax
jns 0x2100d29bb
mov r8d, eax
mov edx, 0x777
lea rcx, str._usr_src_MSYS2_packages_msys2_runtime_src_msys2_runtime_winsup_cygwin_flock.cc
call sym.seterrno_from_nt_status_char_const__int__int_
or eax, 0xffffffff
jmp 0x2100d27a3
mov rax, qword [rsp + 0x58]
mov dword [rbx], 2
mov dword [rbx + 0x18], 0xffffffff
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x10], rax
xor eax, eax
jmp 0x2100d27a3
mov rcx, r12
call rax
movzx edx, word [rbx]
jmp 0x2100d2b01
mov rcx, r12
call rax
mov r12, rax
jmp 0x2100d2c62
mov rcx, r12
call rax
mov r12, rax
jmp 0x2100d2a3c
mov rcx, qword [r15 + 8]
call sym.CancelSynchronousIo
test eax, eax
je 0x2100d2eac
xor edx, edx
mov rcx, r15
call method.cygthread.detach_void_
cmp dword [rsp + 0xc4], 0
js 0x2100d2e74
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x280]
mov r9, rbp
mov r8, rdi
mov rdx, r13
mov dword [rsp + 0x20], 0
mov rcx, qword [rax]
call sym.NtUnlockFile
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 8]
sub rcx, 0x3200
call method._cygtls.call_signal_handler__
mov r8d, 4
mov edx, 0x7e6
lea rcx, str.virtual_int_fhandler_disk_file::mand_lock_int__flock_
call sym.__set_errno_char_const__int__int_
or eax, 0xffffffff
jmp 0x2100d27a3
mov rcx, r15
call method.cygthread.terminate_thread__
jmp 0x2100d2e44