Function at 0x1400cfed0
Capabilities:
Get volume information via ioctl
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r15
sub rsp, 0x108
mov rdi, rcx
mov rcx, r8
mov r15, r8
mov rsi, rdx
call fcn.1400bf870
lea rax, [rsp + 0x4c]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov edx, 0x90064
mov rcx, rdi
mov dword [rsp + 0x28], WSAAsyncSelect
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400d0840
mov r8d, dword [rsp + 0xc0]
cmp r8d, 0x2a
jbe 0x1400d0837
mov qword [rsp + 0x140], rbp
mov qword [rsp + 0x100], r12
mov qword [rsp + 0xf8], r13
mov qword [rsp + 0xf0], r14
lea r14d, [r8 + 0xf]
mov dword [rsp + 0x44], ebx
mov ecx, r14d
mov ebp, ebx
mov dword [rsp + 0x148], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x48], ebx
mov r13d, ebx
mov dword [rsp + 0x60], r14d
call fcn.1400cf4d0
mov qword [rsp + 0x38], rbp
mov r12, rax
mov qword [rsp + 0x58], rax
movabs rax, 0xffffffffffff
mov rbx, rsi
lea r8, [rsp + 0x68]
mov r9d, 8
and rbx, rax
lea rax, [rsp + 0x4c]
mov edx, 0x90068
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400d077f
nop
nop
cmp qword [r12], rbx
jne 0x1400d07de
cmp dword [r12 + 0xc], 0x454c4946
mov eax, dword [rsp + 0xc0]
lea r14, [r12 + 0xc]
lea r12, [rax + r12 + 0xc]
jne 0x1400d0671
test byte [r14 + 0x16], 1
je 0x1400d065e
cmp dword [rsp + 0x44], 0
jne 0x1400d004f
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x1400d0047
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x44], 1
jmp 0x1400d004f
mov dword [rsp + 0x40], 1
movzx edi, word [r14 + 0x14]
add rdi, r14
cmp rdi, r14
jb 0x1400d0698
lea rbx, [rdi + 0x10]
cmp rbx, r12
ja 0x1400d068e
mov eax, dword [rdi]
cmp eax, 0xffffffff
je 0x1400d0684
cmp dword [rdi + 4], 0x10
jb 0x1400d063f
cmp byte [rdi + 9], 0
jne 0x1400d061e
sub eax, 0x10
je 0x1400d055f
sub eax, 0x10
je 0x1400d010a
cmp eax, 0x60
jne 0x1400d061e
test byte [r14 + 0x16], 2
jne 0x1400d061e
test byte [rdi + 8], 1
je 0x1400d00e5
lea rax, [rdi + 0x48]
cmp rax, r12
ja 0x1400d061e
cmp qword [rbx], 0
jne 0x1400d061e
mov rax, qword [rdi + 0x30]
or r13d, 2
cmp r13d, 3
mov qword [r15], rax
je 0x1400d0799
jmp 0x1400d061e
lea rax, [rdi + 0x16]
cmp rax, r12
ja 0x1400d061e
mov eax, dword [rbx]
or r13d, 2
cmp r13d, 3
mov qword [r15], rax
je 0x1400d0799
jmp 0x1400d061e
movzx edx, byte [rdi + 8]
lea rcx, str.attribute_list__02x_n
call fcn.1400b3e90
test ebp, ebp
jne 0x1400d061e
test byte [r14 + 0x16], 2
jne 0x1400d061e
test byte [rdi + 8], 1
je 0x1400d04c0
movzx r8d, word [rdi + 0xc]
mov edx, dword [rdi + 4]
lea rcx, str.len__u_flags__04x_n
call fcn.1400b3e90
test word [rdi + 0xc], 0xc001
jne 0x1400d061e
lea rax, [rdi + 0x48]
cmp rax, r12
ja 0x1400d061e
cmp qword [rbx], 0
jne 0x1400d061e
movzx ecx, word [rdi + 0x20]
mov eax, dword [rdi + 4]
sub eax, ecx
lea rdx, [rdi + rcx]
movsxd rbp, eax
lea rcx, [rdx + 1]
add rbp, rdx
cmp rcx, rbp
ja 0x1400d05fc
movzx ebx, byte [rdx]
test ebx, ebx
je 0x1400d0605
mov eax, ebx
sar ebx, 4
and eax, 0xf
cmp eax, 8
jg 0x1400d060e
cmp ebx, 8
jg 0x1400d0617
movsxd r8, eax
lea rsi, [r8 + rcx]
cmp rsi, rbp
ja 0x1400d05c9
mov rdx, rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], 0
call fcn.1401a9000
test ebx, ebx
mov qword [rsp + 0x50], 0
je 0x1400d05da
movsxd r8, ebx
lea rax, [r8 + rsi]
cmp rax, rbp
ja 0x1400d05eb
test byte [rax - 1], 0x80
je 0x1400d0218
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x50], 0xffffffffffffffff
call fcn.1401a9000
jmp 0x1400d0225
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.1401a9000
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x50]
lea rcx, str.mapping_pair_cluster_offset:__I64d__cluster_count:__I64u_n
mov r8, rsi
mov rdx, rbx
call fcn.1400b3e90
mov edx, dword [rsp + 0xbc]
mov rcx, qword [rsp + 0x130]
imul rdx, rbx
xor r8d, r8d
call fcn.1400db900
test eax, eax
je 0x1400d048f
mov ecx, dword [rsp + 0xc0]
call fcn.1400cf4d0
mov ecx, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xbc]
imul rbx, rsi
cmp rbx, rcx
lea r9, [rsp + 0x88]
mov rdx, rax
cmova rbx, rcx
mov rcx, qword [rsp + 0x130]
mov rbp, rax
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d0421
lea rsi, [rbx + rbp]
mov rbx, rbp
lea rax, [rbx + 0x1a]
cmp rax, rsi
ja 0x1400d0473
cmp word [rbx + 4], 0x1a
jb 0x1400d03ef
cmp dword [rbx], 0xffffffff
je 0x1400d0457
mov rdx, qword [rsp + 0x138]
lea rcx, str.this_frn__016I64x_n
call fcn.1400b3e90
mov edx, dword [rbx]
lea rcx, str.al_type__u_n
call fcn.1400b3e90
movzx edx, word [rbx + 4]
lea rcx, str.al_rl__u_n
call fcn.1400b3e90
movzx edx, byte [rbx + 6]
lea rcx, str.al_nl__u_n
call fcn.1400b3e90
movzx edx, byte [rbx + 7]
lea rcx, str.al_o2n__u_n
call fcn.1400b3e90
mov rdx, qword [rbx + 8]
lea rcx, str.al_svcn__I64u_n
call fcn.1400b3e90
mov rdx, qword [rbx + 0x10]
lea rcx, str.al_bfrn__016I64x_n
call fcn.1400b3e90
movzx edx, word [rbx + 0x18]
lea rcx, str.al_aid__u_n
call fcn.1400b3e90
cmp dword [rbx], 0x80
jne 0x1400d0372
cmp qword [rbx + 8], 0
je 0x1400d03a6
movzx ecx, word [rbx + 4]
lea rax, [rcx + rcx*2]
prefetcht1 byte [rbx + rax*2]
add rbx, rcx
cmp rbx, rbp
jae 0x1400d02c0
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400cf530
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
mov rdx, qword [rbx + 0x10]
mov rsi, qword [rsp + 0x138]
cmp rsi, rdx
je 0x1400d047b
lea rcx, str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.1400b3e90
mov rax, qword [rbx + 0x10]
mov rcx, rbp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x148], 1
call fcn.1400cf530
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
movzx r8d, word [rbx + 4]
lea rdx, str.bad_al_len__u_n
mov ecx, 0xffff0000
call fcn.1400b3ec0
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400cf530
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.read_size__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3ec0
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400cf530
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400cf530
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400cf530
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
mov r8d, dword [rsp + 0xbc]
lea rdx, str.bad_file_pos__I64u_n
mov ecx, 0xffff0000
imul r8, rbx
call fcn.1400b3ec0
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
lea rax, [rdi + 0x16]
cmp rax, r12
ja 0x1400d061e
movzx ebx, word [rdi + 0x14]
add rbx, rdi
cmp rbx, rdi
jb 0x1400d061e
nop
lea rax, [rbx + 0x1a]
cmp rax, r12
ja 0x1400d061e
movzx ecx, word [rbx + 4]
cmp cx, 0x1a
jb 0x1400d061e
mov eax, dword [rbx]
cmp eax, 0xffffffff
je 0x1400d061e
cmp eax, 0x80
jne 0x1400d0514
cmp qword [rbx + 8], 0
je 0x1400d052c
movzx ecx, cx
lea rax, [rcx + rcx*2]
prefetcht1 byte [rbx + rax*2]
add rbx, rcx
cmp rbx, rdi
jae 0x1400d04e0
jmp 0x1400d061e
mov rdx, qword [rbx + 0x10]
cmp rsi, rdx
je 0x1400d061e
lea rcx, str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.1400b3e90
mov rax, qword [rbx + 0x10]
mov ebp, 1
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x148], ebp
jmp 0x1400d061e
xor eax, eax
cmp byte [rdi + 8], al
sete al
test al, 1
je 0x1400d061e
lea rax, [rdi + 0x16]
cmp rax, r12
ja 0x1400d061e
movzx ecx, word [rdi + 0x14]
add rcx, rdi
lea rax, [rcx + 0x24]
cmp rax, r12
ja 0x1400d061e
mov eax, dword [rcx + 0x20]
or r13d, 1
mov dword [r15 + 0x20], eax
mov rax, qword [rcx]
mov qword [r15 + 0x10], rax
mov rax, qword [rcx + 8]
mov qword [r15 + 8], rax
mov rax, qword [rcx + 0x18]
mov qword [r15 + 0x18], rax
test byte [r14 + 0x16], 2
jne 0x1400d07be
cmp r13d, 3
je 0x1400d0799
jmp 0x1400d061e
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
mov ebp, dword [rsp + 0x148]
jmp 0x1400d061e
mov ebp, dword [rsp + 0x148]
mov ecx, dword [rdi + 4]
lea rax, [rcx + rcx*2]
prefetcht1 byte [rdi + rax*2]
add rdi, rcx
cmp rdi, r14
jae 0x1400d0060
mov rdi, qword [rsp + 0x130]
jmp 0x1400d06a0
mov r8d, dword [rdi + 4]
lea rdx, str.bad_attribute_len__u_n
mov ecx, 0xffff0000
call fcn.1400b3ec0
mov rdi, qword [rsp + 0x130]
jmp 0x1400d06a0
lea rdx, str.get_fd:_not_inuse_n
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400d06a0
lea rdx, str.get_fd:_not_a_file_record_n
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400d06a0
mov rdi, qword [rsp + 0x130]
jmp 0x1400d06a0
mov rdi, qword [rsp + 0x130]
jmp 0x1400d06a0
mov rdi, qword [rsp + 0x130]
cmp dword [rsp + 0x44], 0
je 0x1400d06e2
cmp dword [rsp + 0x40], 0
jne 0x1400d06e2
mov rbx, qword [rsp + 0x80]
lea rdx, str.retry_with_base__016I64x_for__016I64x_n
mov r9, rsi
mov r8, rbx
mov ecx, 0xffff0000
call fcn.1400b3ec0
mov rsi, rbx
mov qword [rsp + 0x138], rbx
mov dword [rsp + 0x40], 1
jmp 0x1400d0724
test ebp, ebp
je 0x1400d07c5
cmp dword [rsp + 0x48], 0
jne 0x1400d07c5
mov rbx, qword [rsp + 0x78]
lea rdx, str.retry_with_type_data__016I64x_for__016I64x_n
mov r9, rsi
mov r8, rbx
mov ecx, 0xffff0000
call fcn.1400b3ec0
mov rsi, rbx
mov qword [rsp + 0x138], rbx
mov dword [rsp + 0x48], 1
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x38], 0
movabs rax, 0xffffffffffff
mov rbx, rsi
lea r8, [rsp + 0x68]
mov r9d, 8
and rbx, rax
lea rax, [rsp + 0x4c]
mov edx, 0x90068
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x60]
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400cfff0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.FSCTL_GET_NTFS_FILE_RECORD_failed__u_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3ec0
cmp dword [0x14020e0e0], 0
je 0x1400d07fd
mov r8, qword [r15]
lea rcx, str.got_ntfs_file_record__I64x__I64u__d_n
mov r9d, r13d
mov rdx, rsi
call fcn.1400b3e90
mov r12, qword [rsp + 0x58]
jmp 0x1400d0802
or dword [r15 + 0x20], 0x10
jmp 0x1400d0799
lea rdx, str.couldnt_get_fd_from__016I64x__x_n
mov r9d, r13d
mov r8, rsi
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400d0799
cmp dword [0x14020e0e0], 0
je 0x1400d0802
lea rdx, str.FRN_not_in_use__I64x_n
mov r8, rsi
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400d0799
mov r12, qword [rsp + 0x58]
mov rcx, r12
call fcn.1400cf530
mov r14, qword [rsp + 0xf0]
mov r13, qword [rsp + 0xf8]
mov r12, qword [rsp + 0x100]
mov rbp, qword [rsp + 0x140]
add rsp, 0x108
pop r15
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.bad_BytesPerFileRecordSegment__u_n
jmp 0x1400d0850
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.FSCTL_GET_NTFS_VOLUME_DATA_failed__u_n
mov r8d, eax
mov ecx, 0xffff0000
call fcn.1400b3ec0
add rsp, 0x108
pop r15
pop rdi
pop rsi
pop rbx
ret