Function at 0x21008f150
Capabilities:
Get disk information via ioctl
Get file attributes

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x2e8
lea rbp, [rsp + 0x80]
movzx eax, word [rcx + 0x1b2]
mov r12, rcx
mov r15d, edx
cmp ax, 0x102
ja 0x21008f188
cmp ax, 2
jne 0x21008f250
mov rax, qword [r12]
lea rdx, [method.fhandler_base.get_handle__]
mov rax, qword [rax + 0x280]
cmp rax, rdx
jne 0x21008f1f8
lea rax, [rbp - 0x1c]
mov rcx, qword [r12 + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov edx, 0x90018
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call sym.DeviceIoControl
test eax, eax
je 0x21008f237
mov eax, 1
lea rsp, [rbp + 0x268]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, r12
call rax
lea rdx, [rbp - 0x1c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rdx
mov edx, 0x90018
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
call sym.DeviceIoControl
test eax, eax
jne 0x21008f1db
test byte [0x210273880], 1
jne 0x21008f5a0
xor eax, eax
jmp 0x21008f1e0
test byte [rcx + 0x1b0], 0xf
jne 0x21008f188
mov eax, 0x2280
call fcn.21021b550
lea rbx, [method.fhandler_base.get_handle__]
sub rsp, rax
mov rax, qword [rcx]
lea r14, [rsp + 0x50]
mov rax, qword [rax + 0x280]
cmp rax, rbx
jne 0x21008f670
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
test eax, eax
js 0x21008f5f8
mov rax, qword [r12]
mov rax, qword [rax + 0x280]
cmp rax, rbx
jne 0x21008f680
lea rax, [r12 + 0x18]
lea rdi, [rbp - 0x1c]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov edx, 0x70050
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2280
mov rcx, qword [rax]
mov qword [rbp - 0x28], rdi
call sym.DeviceIoControl
test eax, eax
je 0x21008f630
mov eax, dword [r14 + 4]
lea rbx, [r14 + 0x30]
test eax, eax
je 0x21008f244
xor esi, esi
xor eax, eax
lea r13, [0x210273880]
jmp 0x21008f36c
mov rax, qword [r12 + 0x200]
test rax, rax
je 0x21008f5d0
sub edx, 1
cmp qword [rax + rdx*8 + 8], 0
je 0x21008f3f8
mov eax, 1
nop dword [rax]
add esi, 1
add rbx, 0x90
cmp dword [r14 + 4], esi
jbe 0x21008f1e0
mov edx, dword [rbx + 0x18]
test edx, edx
je 0x21008f358
mov rcx, qword [rbx + 8]
mov r9, qword [rbx + 0x10]
mov r8, qword [rbp - 0x18]
add r9, rcx
cmp r8, r9
jge 0x21008f358
mov edi, r15d
add rdi, r8
cmp rcx, rdi
jge 0x21008f358
cmp edx, 0xe
ja 0x21008f244
test byte [r13], 1
je 0x21008f330
mov qword [rsp + 0x38], r8
lea r8, str.BOOL_fhandler_dev_floppy::lock_partition_DWORD_
mov qword [rsp + 0x30], r9
lea r9, str._u__D___D_:__D___D
mov qword [rsp + 0x28], rcx
mov rcx, r13
mov dword [rsp + 0x20], edx
mov edx, 0x40
mov qword [rsp + 0x40], rdi
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov rax, qword [r12 + 0x200]
test rax, rax
je 0x21008f5d0
mov edx, dword [rbx + 0x18]
sub edx, 1
cmp qword [rax + rdx*8 + 8], 0
jne 0x21008f350
mov r9, qword [r12 + 0x110]
mov rax, qword gs:[8]
mov rax, qword [rax - 0x2938]
lea rdi, [0x21023a000]
lea rcx, [sym.__utf8_mbtowc]
lea rdx, [sym.__ascii_mbtowc]
test rax, rax
cmove rax, rdi
cmp qword [rax + 0xe8], rdx
je 0x21008f453
mov rax, qword gs:[8]
mov rax, qword [rax - 0x2938]
test rax, rax
cmove rax, rdi
mov rcx, qword [rax + 0xe8]
mov qword [rsp + 0x20], 0xffffffffffffffff
lea rdi, [rbp + 0x50]
mov r8d, 0x104
mov rdx, rdi
call sym._sys_mbstowcs_int_____reent__wchar_t__char_const__unsigned_long___mbstate_t___wchar_t__unsigned_long__char_const__unsigned_long_
xor edx, edx
mov rcx, rdi
call sym.msys_2.0.dll_wcschr
mov r8d, dword [rbx + 0x18]
lea rdx, [0x21028e428]
lea rcx, [rax - 2]
call sym.__small_swprintf_wchar_t__wchar_t_const__::_
mov rcx, rbp
mov rdx, rdi
mov qword [rbp - 0x30], rbp
call sym.RtlInitUnicodeString
mov eax, dword [r12 + 0x2c]
mov rcx, qword [rbp - 0x30]
lea r9, [rbp + 0x10]
lea r8, [rbp + 0x20]
mov dword [rbp + 0x20], 0x30
and eax, 0x40000
mov qword [rbp + 0x30], rcx
cmp eax, 1
mov qword [rbp + 0x28], 0
sbb eax, eax
mov qword [rbp + 0x40], 0
and eax, 2
mov qword [rbp + 0x48], 0
add eax, 0x40
mov dword [rbp + 0x38], eax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x28], 0
lea edx, [rax - 1]
mov dword [rsp + 0x20], 3
mov rax, qword [r12 + 0x200]
lea rcx, [rax + rdx*8 + 8]
mov edx, 0xc0000000
call sym.NtOpenFile
test eax, eax
js 0x21008f68a
mov edx, dword [rbx + 0x18]
mov rax, qword [r12 + 0x200]
xor r9d, r9d
xor r8d, r8d
sub edx, 1
mov rcx, qword [rax + rdx*8 + 8]
mov rax, qword [rbp - 0x28]
mov edx, 0x90018
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], 0
call sym.DeviceIoControl
test eax, eax
jne 0x21008f350
test byte [0x210273880], 1
je 0x21008f244
mov qword [rsp + 0x20], rdi
lea r9, str.DeviceIoControl___W__FSCTL_LOCK_VOLUME__failed___E
mov edx, 0x40
mov rcx, r13
lea r8, str.BOOL_fhandler_dev_floppy::lock_partition_DWORD_
call method.strace.prntf_unsigned_int__char_const__char_const__..._
xor eax, eax
jmp 0x21008f1e0
lea r9, str.DeviceIoControl__FSCTL_LOCK_VOLUME__failed___E
lea r8, str.BOOL_fhandler_dev_floppy::lock_partition_DWORD_
mov edx, 0x40
lea rcx, [0x210273880]
call method.strace.prntf_unsigned_int__char_const__char_const__..._
xor eax, eax
jmp 0x21008f1e0
mov r8d, pe_nt_image_headers64
mov edx, 1
xor ecx, ecx
call sym.ccalloc_abort
mov qword [r12 + 0x200], rax
mov dword [rax], 1
jmp 0x21008f3e6
test byte [0x210273880], 1
je 0x21008f244
mov dword [rsp + 0x20], eax
lea r9, str.NtQueryInformationFile_FilePositionInformation_:__y
lea r8, str.BOOL_fhandler_dev_floppy::lock_partition_DWORD_
mov edx, 0x40
lea rcx, [0x210273880]
call method.strace.prntf_unsigned_int__char_const__char_const__..._
xor eax, eax
jmp 0x21008f1e0
test byte [0x210273880], 1
je 0x21008f244
lea r9, str.DeviceIoControl_IOCTL_DISK_GET_DRIVE_LAYOUT_EX_:__E
mov edx, 0x40
mov dword [rbp - 0x28], eax
lea r8, str.BOOL_fhandler_dev_floppy::lock_partition_DWORD_
lea rcx, [0x210273880]
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov eax, dword [rbp - 0x28]
jmp 0x21008f1e0
call rax
jmp 0x21008f28d
mov rcx, r12
call rax
jmp 0x21008f2cc
test byte [0x210273880], 1
je 0x21008f244
mov dword [rsp + 0x28], eax
mov edx, 0x40
mov rcx, r13
lea r9, str.NtCreateFile__W_:__y
mov qword [rsp + 0x20], rdi
lea r8, str.BOOL_fhandler_dev_floppy::lock_partition_DWORD_
call method.strace.prntf_unsigned_int__char_const__char_const__..._
xor eax, eax
jmp 0x21008f1e0