Function at 0x21008e3f0
Capabilities:
Check if file exists

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
lea rdi, [method.fhandler_base.get_handle__]
mov rax, qword [rcx]
cmp word [rcx + 0x1b2], 2
mov rsi, rdx
lea rbp, [rsp + 0x4c]
lea r12, [rsp + 0x50]
mov rbx, rcx
mov dword [rsp + 0x4c], 0
mov rdx, qword [rax + 0x280]
je 0x21008e59e
cmp rdx, rdi
jne 0x21008e540
lea rbp, [rsp + 0x4c]
lea r12, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rbp
mov edx, 0x700a0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], r12
call sym.DeviceIoControl
test eax, eax
je 0x21008e582
mov rax, qword [rbx]
mov rax, qword [rax + 0x280]
cmp rax, rdi
jne 0x21008e6f0
mov qword [rsp + 0x30], rbp
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x150]
mov dword [rsp + 0x28], 0x100
mov edx, 0x70048
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], rax
call sym.DeviceIoControl
test eax, eax
je 0x21008e733
mov eax, dword [rsp + 0x64]
lea r12, [0x210273880]
test byte [0x210273880], 1
jne 0x21008e7d0
mov dword [rbx + 0x1e0], eax
mov rax, qword [rsp + 0x160]
mov qword [rbx + 0x1f8], rax
test rsi, rsi
je 0x21008e527
mov eax, dword [rsp + 0x5c]
mov byte [rsi], al
mov eax, dword [rsp + 0x60]
mov byte [rsi + 1], al
mov eax, dword [rsp + 0x50]
mov word [rsi + 2], ax
mov rax, qword [rsp + 0x158]
sar rax, 9
mov qword [rsi + 8], rax
xor r8d, r8d
mov eax, r8d
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call rdx
lea rbp, [rsp + 0x4c]
lea r12, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov edx, 0x700a0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], r12
mov rcx, qword [rax]
call sym.DeviceIoControl
test eax, eax
jne 0x21008e47e
call sym.GetLastError
mov edx, 0x3a
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, qword [rbx]
mov rax, qword [rax + 0x280]
cmp rax, rdi
jne 0x21008e8b0
mov qword [rsp + 0x30], rbp
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov edx, 0x70000
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], r12
call sym.DeviceIoControl
test eax, eax
je 0x21008e8eb
cmp word [rbx + 0x1b2], 2
je 0x21008e75a
mov rax, qword [rbx]
mov rax, qword [rax + 0x280]
cmp rax, rdi
jne 0x21008e9c0
mov qword [rsp + 0x30], rbp
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x150]
mov dword [rsp + 0x28], 0x100
mov edx, 0x74004
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], rax
call sym.DeviceIoControl
test eax, eax
je 0x21008ea03
movzx eax, byte [0x210273880]
mov edx, dword [rsp + 0x64]
lea r12, [0x210273880]
test al, 1
jne 0x21008e910
mov dword [rbx + 0x1e0], edx
mov rdx, qword [rsp + 0x158]
mov qword [rbx + 0x1f8], rdx
test rsi, rsi
je 0x21008e9b6
mov eax, dword [rsp + 0x5c]
mov byte [rsi], al
mov eax, dword [rsp + 0x60]
mov byte [rsi + 1], al
mov eax, dword [rsp + 0x50]
mov word [rsi + 2], ax
mov rax, qword [rsp + 0x150]
sar rax, 9
mov qword [rsi + 8], rax
movzx eax, byte [0x210273880]
and eax, 1
xor r8d, r8d
test al, al
je 0x21008e52a
lea r12, [0x210273880]
mov rax, qword [rbx + 0x1f8]
lea r8, str.int_fhandler_dev_floppy::get_drive_info_hd_geometry_
mov edx, 0x40
mov rcx, r12
lea r9, str.drive_size:__D
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
xor r8d, r8d
jmp 0x21008e52a
mov rcx, rbx
call rax
lea rdx, [rsp + 0x150]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov edx, 0x70048
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x100
mov rcx, qword [rax]
call sym.DeviceIoControl
test eax, eax
jne 0x21008e4d0
call sym.GetLastError
mov edx, 0x53
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_
cmp word [rbx + 0x1b2], 2
jne 0x21008e5f3
movzx eax, byte [0x210273880]
mov edx, dword [rsp + 0x64]
and eax, 1
je 0x21008ea30
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], edx
lea r12, [0x210273880]
mov edx, 0x40
lea r9, str.disk_geometry:___D_cyl___u_trk___u_sec___u_bps_
lea r8, str.int_fhandler_dev_floppy::get_drive_info_hd_geometry_
mov rcx, r12
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov edx, dword [rsp + 0x64]
movzx eax, byte [0x210273880]
mov dword [rbx + 0x1e0], edx
and eax, 1
jmp 0x21008ea36
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x60]
mov edx, 0x40
mov rcx, r12
lea r9, str.disk_geometry:___D_cyl___u_trk___u_sec___u_bps_
lea r8, str.int_fhandler_dev_floppy::get_drive_info_hd_geometry_
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov eax, dword [rsp + 0x64]
mov dword [rbx + 0x1e0], eax
test byte [0x210273880], 1
je 0x21008e4ee
mov rax, qword [rsp + 0x160]
mov edx, 0x40
mov rcx, r12
lea r9, str.partition_info:_offset__D__length__D
lea r8, str.int_fhandler_dev_floppy::get_drive_info_hd_geometry_
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
movzx eax, byte [0x210273880]
mov rdx, qword [rsp + 0x160]
and eax, 1
mov qword [rbx + 0x1f8], rdx
test rsi, rsi
je 0x21008e6ac
mov edx, dword [rsp + 0x5c]
mov byte [rsi], dl
mov edx, dword [rsp + 0x60]
mov byte [rsi + 1], dl
mov edx, dword [rsp + 0x50]
mov word [rsi + 2], dx
mov rdx, qword [rsp + 0x158]
sar rdx, 9
mov qword [rsi + 8], rdx
test al, al
jne 0x21008e6be
jmp 0x21008e527
mov rcx, rbx
call rax
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov edx, 0x70000
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], r12
mov rcx, qword [rax]
call sym.DeviceIoControl
test eax, eax
jne 0x21008e5e5
call sym.GetLastError
mov edx, 0x47
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 r8d, 0xffffffff
jmp 0x21008e52a
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], edx
mov rcx, r12
mov edx, 0x40
lea r9, str.disk_geometry:___D_cyl___u_trk___u_sec___u_bps_
lea r8, str.int_fhandler_dev_floppy::get_drive_info_hd_geometry_
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov eax, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x158]
mov dword [rbx + 0x1e0], eax
movzx eax, byte [0x210273880]
test al, 1
je 0x21008e66d
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x28], rdx
mov rcx, r12
lea r9, str.partition_info:_offset__D__length__D
lea r8, str.int_fhandler_dev_floppy::get_drive_info_hd_geometry_
mov edx, 0x40
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov rax, qword [rsp + 0x158]
mov qword [rbx + 0x1f8], rax
test rsi, rsi
jne 0x21008e67d
movzx eax, byte [0x210273880]
and eax, 1
jmp 0x21008e6ac
mov rcx, rbx
call rax
lea rdx, [rsp + 0x150]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov edx, 0x74004
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x100
mov rcx, qword [rax]
call sym.DeviceIoControl
test eax, eax
jne 0x21008e645
call sym.GetLastError
mov edx, 0x5f
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_
movzx eax, byte [0x210273880]
mov edx, dword [rsp + 0x64]
and eax, 1
jne 0x21008e76e
mov dword [rbx + 0x1e0], edx
mov ecx, dword [rsp + 0x5c]
mov r10d, dword [rsp + 0x60]
mov r9, rcx
imul rcx, qword [rsp + 0x50]
imul rcx, r10
imul rdx, rcx
mov qword [rbx + 0x1f8], rdx
test rsi, rsi
je 0x21008e6ac
mov edx, dword [rsp + 0x50]
mov byte [rsi], r9b
mov byte [rsi + 1], r10b
mov word [rsi + 2], dx
mov qword [rsi + 8], 0
jmp 0x21008e6ac