Function at 0x21008e080
Capabilities:
Get file attributes

Disassembly:
push rbp
push r13
push r12
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov eax, dword [rcx + 0x1e0]
add rax, 0xf
shr rax, 4
mov r12, rcx
mov rbx, rdx
shl rax, 4
call fcn.21021b550
sub rsp, rax
lea r13, [rsp + 0x40]
cmp r8d, 2
je 0x21008e1f0
cmp r8d, 1
je 0x21008e258
test rdx, rdx
js 0x21008e210
test r8d, r8d
jne 0x21008e210
mov rdx, 0xffffffffffffffff
cmp qword [r12 + 0x1f8], rbx
jl 0x21008e210
mov eax, dword [r12 + 0x1ec]
cmp dword [r12 + 0x1e8], eax
jb 0x21008e180
lea rsi, [method.fhandler_base.get_handle__]
mov rax, rbx
mov ecx, dword [r12 + 0x1e0]
mov qword [r12 + 0x1e8], 0
cqo
idiv rcx
mov rbx, rax
mov rax, qword [r12]
mov qword [rbp - 0x10], rdx
imul rbx, rcx
mov rax, qword [rax + 0x280]
cmp rax, rsi
jne 0x21008e248
mov rcx, qword [r12 + 0x18]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call sym.SetFilePointerEx
test eax, eax
je 0x21008e397
and byte [r12 + 0x208], 0xfe
mov rax, qword [rbp - 0x10]
test rax, rax
jne 0x21008e1c0
add rax, rbx
mov rsp, rbp
pop rbx
pop rsi
pop r12
pop r13
pop rbp
ret
cmp rdx, 0xffffffffffffffff
je 0x21008e2d0
mov r8d, eax
mov rcx, rdx
sub rcx, r8
cmp rbx, rcx
jl 0x21008e102
cmp rdx, rbx
jl 0x21008e102
add eax, ebx
sub eax, edx
mov dword [r12 + 0x1e8], eax
mov rax, rbx
jmp 0x21008e174
mov rax, qword [r12]
lea r8, [rbp - 0x10]
mov rdx, r13
mov rcx, r12
call qword [rax + 0x270]
mov rax, qword [rbp - 0x10]
cmp rax, 0xffffffffffffffff
jne 0x21008e171
mov rax, 0xffffffffffffffff
jmp 0x21008e174
add rbx, qword [rcx + 0x1f8]
mov rdx, 0xffffffffffffffff
test rbx, rbx
jns 0x21008e0e2
nop word [rax + rax]
test byte [0x210273880], 1
jne 0x21008e357
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 rax, 0xffffffffffffffff
jmp 0x21008e174
mov rcx, r12
call rax
mov rcx, qword [rax]
jmp 0x21008e149
mov rax, qword [rcx]
lea rsi, [method.fhandler_base.get_handle__]
mov qword [rbp - 0x18], 0
mov rax, qword [rax + 0x280]
cmp rax, rsi
jne 0x21008e340
lea rax, [rcx + 0x18]
mov dword [rsp + 0x20], 0xe
mov rcx, qword [rax]
lea rdx, [rbp - 0x10]
lea r8, [rbp - 0x18]
mov r9d, 8
call sym.NtQueryInformationFile
mov rdx, qword [rbp - 0x18]
mov ecx, dword [r12 + 0x1ec]
sub ecx, dword [r12 + 0x1e8]
mov rax, rdx
sub rax, rcx
test rbx, rbx
je 0x21008e174
add rbx, rax
jmp 0x21008e1fe
mov rax, qword [r12]
lea rsi, [method.fhandler_base.get_handle__]
mov qword [rbp - 0x18], 0
mov rax, qword [rax + 0x280]
cmp rax, rsi
jne 0x21008e350
lea rax, [r12 + 0x18]
mov dword [rsp + 0x20], 0xe
mov rcx, qword [rax]
lea rdx, [rbp - 0x10]
lea r8, [rbp - 0x18]
mov r9d, 8
call sym.NtQueryInformationFile
mov rdx, qword [rbp - 0x18]
mov r8d, dword [r12 + 0x1ec]
mov rcx, rdx
mov rax, r8
sub rcx, r8
cmp rcx, rbx
jg 0x21008e109
cmp rbx, rdx
jg 0x21008e109
jmp 0x21008e1a5
call rax
jmp 0x21008e27e
mov rcx, r12
call rax
jmp 0x21008e2f4
lea rax, str.virtual_off_t_fhandler_dev_floppy::lseek_off_t__int_
mov dword [rsp + 0x30], 0x16
lea r9, [0x21028e071]
mov edx, 0x40
mov dword [rsp + 0x28], 0x29c
lea r8, [0x21028e088]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21008e21d
call sym.GetLastError
mov edx, 0x2b5
lea rcx, str._usr_src_MSYS2_packages_msys2_runtime_src_msys2_runtime_winsup_cygwin_fhandler_floppy.cc
mov r8d, eax
call sym.seterrno_from_win_error_char_const__int__unsigned_int_
mov rax, 0xffffffffffffffff
jmp 0x21008e174