Function at 0x1400cfc60
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.1400bf9b0
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 0x1400d05d0
mov r8d, dword [rsp + 0xc0]
cmp r8d, 0x2a
jbe 0x1400d05c7
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.1400cf7e0
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 0x1400d050f
nop
nop
cmp qword [r12], rbx
jne 0x1400d056e
cmp dword [r12 + 0xc], 0x454c4946
mov eax, dword [rsp + 0xc0]
lea r14, [r12 + 0xc]
lea r12, [rax + r12 + 0xc]
jne 0x1400d0401
test byte [r14 + 0x16], 1
je 0x1400d03ee
cmp dword [rsp + 0x44], 0
jne 0x1400cfddf
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x1400cfdd7
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x44], 1
jmp 0x1400cfddf
mov dword [rsp + 0x40], 1
movzx edi, word [r14 + 0x14]
add rdi, r14
cmp rdi, r14
jb 0x1400d0428
lea rbx, [rdi + 0x10]
cmp rbx, r12
ja 0x1400d041e
mov eax, dword [rdi]
cmp eax, 0xffffffff
je 0x1400d0414
cmp dword [rdi + 4], 0x10
jb 0x1400d03cf
cmp byte [rdi + 9], 0
jne 0x1400d03ae
sub eax, 0x10
je 0x1400d02ef
sub eax, 0x10
je 0x1400cfe9a
cmp eax, 0x60
jne 0x1400d03ae
test byte [r14 + 0x16], 2
jne 0x1400d03ae
test byte [rdi + 8], 1
je 0x1400cfe75
lea rax, [rdi + 0x48]
cmp rax, r12
ja 0x1400d03ae
cmp qword [rbx], 0
jne 0x1400d03ae
mov rax, qword [rdi + 0x30]
or r13d, 2
cmp r13d, 3
mov qword [r15], rax
je 0x1400d0529
jmp 0x1400d03ae
lea rax, [rdi + 0x16]
cmp rax, r12
ja 0x1400d03ae
mov eax, dword [rbx]
or r13d, 2
cmp r13d, 3
mov qword [r15], rax
je 0x1400d0529
jmp 0x1400d03ae
movzx edx, byte [rdi + 8]
lea rcx, str.attribute_list__02x_n
call fcn.1400b3fb0
test ebp, ebp
jne 0x1400d03ae
test byte [r14 + 0x16], 2
jne 0x1400d03ae
test byte [rdi + 8], 1
je 0x1400d0250
movzx r8d, word [rdi + 0xc]
mov edx, dword [rdi + 4]
lea rcx, str.len__u_flags__04x_n
call fcn.1400b3fb0
test word [rdi + 0xc], 0xc001
jne 0x1400d03ae
lea rax, [rdi + 0x48]
cmp rax, r12
ja 0x1400d03ae
cmp qword [rbx], 0
jne 0x1400d03ae
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 0x1400d038c
movzx ebx, byte [rdx]
test ebx, ebx
je 0x1400d0395
mov eax, ebx
sar ebx, 4
and eax, 0xf
cmp eax, 8
jg 0x1400d039e
cmp ebx, 8
jg 0x1400d03a7
movsxd r8, eax
lea rsi, [r8 + rcx]
cmp rsi, rbp
ja 0x1400d0359
mov rdx, rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], 0
call fcn.1401a8fe0
test ebx, ebx
mov qword [rsp + 0x50], 0
je 0x1400d036a
movsxd r8, ebx
lea rax, [r8 + rsi]
cmp rax, rbp
ja 0x1400d037b
test byte [rax - 1], 0x80
je 0x1400cffa8
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x50], 0xffffffffffffffff
call fcn.1401a8fe0
jmp 0x1400cffb5
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.1401a8fe0
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.1400b3fb0
mov edx, dword [rsp + 0xbc]
mov rcx, qword [rsp + 0x130]
imul rdx, rbx
xor r8d, r8d
call fcn.1400db610
test eax, eax
je 0x1400d021f
mov ecx, dword [rsp + 0xc0]
call fcn.1400cf7e0
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 0x1400d01b1
lea rsi, [rbx + rbp]
mov rbx, rbp
lea rax, [rbx + 0x1a]
cmp rax, rsi
ja 0x1400d0203
cmp word [rbx + 4], 0x1a
jb 0x1400d017f
cmp dword [rbx], 0xffffffff
je 0x1400d01e7
mov rdx, qword [rsp + 0x138]
lea rcx, str.this_frn__016I64x_n
call fcn.1400b3fb0
mov edx, dword [rbx]
lea rcx, str.al_type__u_n
call fcn.1400b3fb0
movzx edx, word [rbx + 4]
lea rcx, str.al_rl__u_n
call fcn.1400b3fb0
movzx edx, byte [rbx + 6]
lea rcx, str.al_nl__u_n
call fcn.1400b3fb0
movzx edx, byte [rbx + 7]
lea rcx, str.al_o2n__u_n
call fcn.1400b3fb0
mov rdx, qword [rbx + 8]
lea rcx, str.al_svcn__I64u_n
call fcn.1400b3fb0
mov rdx, qword [rbx + 0x10]
lea rcx, str.al_bfrn__016I64x_n
call fcn.1400b3fb0
movzx edx, word [rbx + 0x18]
lea rcx, str.al_aid__u_n
call fcn.1400b3fb0
cmp dword [rbx], 0x80
jne 0x1400d0102
cmp qword [rbx + 8], 0
je 0x1400d0136
movzx ecx, word [rbx + 4]
lea rax, [rcx + rcx*2]
prefetcht1 byte [rbx + rax*2]
add rbx, rcx
cmp rbx, rbp
jae 0x1400d0050
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400cf840
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
mov rdx, qword [rbx + 0x10]
mov rsi, qword [rsp + 0x138]
cmp rsi, rdx
je 0x1400d020b
lea rcx, str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.1400b3fb0
mov rax, qword [rbx + 0x10]
mov rcx, rbp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x148], 1
call fcn.1400cf840
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
movzx r8d, word [rbx + 4]
lea rdx, str.bad_al_len__u_n
mov ecx, 0xffff0000
call fcn.1400b3fe0
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400cf840
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.read_size__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3fe0
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400cf840
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400cf840
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400cf840
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
mov r8d, dword [rsp + 0xbc]
lea rdx, str.bad_file_pos__I64u_n
mov ecx, 0xffff0000
imul r8, rbx
call fcn.1400b3fe0
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
lea rax, [rdi + 0x16]
cmp rax, r12
ja 0x1400d03ae
movzx ebx, word [rdi + 0x14]
add rbx, rdi
cmp rbx, rdi
jb 0x1400d03ae
nop
lea rax, [rbx + 0x1a]
cmp rax, r12
ja 0x1400d03ae
movzx ecx, word [rbx + 4]
cmp cx, 0x1a
jb 0x1400d03ae
mov eax, dword [rbx]
cmp eax, 0xffffffff
je 0x1400d03ae
cmp eax, 0x80
jne 0x1400d02a4
cmp qword [rbx + 8], 0
je 0x1400d02bc
movzx ecx, cx
lea rax, [rcx + rcx*2]
prefetcht1 byte [rbx + rax*2]
add rbx, rcx
cmp rbx, rdi
jae 0x1400d0270
jmp 0x1400d03ae
mov rdx, qword [rbx + 0x10]
cmp rsi, rdx
je 0x1400d03ae
lea rcx, str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.1400b3fb0
mov rax, qword [rbx + 0x10]
mov ebp, 1
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x148], ebp
jmp 0x1400d03ae
xor eax, eax
cmp byte [rdi + 8], al
sete al
test al, 1
je 0x1400d03ae
lea rax, [rdi + 0x16]
cmp rax, r12
ja 0x1400d03ae
movzx ecx, word [rdi + 0x14]
add rcx, rdi
lea rax, [rcx + 0x24]
cmp rax, r12
ja 0x1400d03ae
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 0x1400d054e
cmp r13d, 3
je 0x1400d0529
jmp 0x1400d03ae
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
mov ebp, dword [rsp + 0x148]
jmp 0x1400d03ae
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 0x1400cfdf0
mov rdi, qword [rsp + 0x130]
jmp 0x1400d0430
mov r8d, dword [rdi + 4]
lea rdx, str.bad_attribute_len__u_n
mov ecx, 0xffff0000
call fcn.1400b3fe0
mov rdi, qword [rsp + 0x130]
jmp 0x1400d0430
lea rdx, str.get_fd:_not_inuse_n
mov ecx, 0xffff0000
call fcn.1400b3fe0
jmp 0x1400d0430
lea rdx, str.get_fd:_not_a_file_record_n
mov ecx, 0xffff0000
call fcn.1400b3fe0
jmp 0x1400d0430
mov rdi, qword [rsp + 0x130]
jmp 0x1400d0430
mov rdi, qword [rsp + 0x130]
jmp 0x1400d0430
mov rdi, qword [rsp + 0x130]
cmp dword [rsp + 0x44], 0
je 0x1400d0472
cmp dword [rsp + 0x40], 0
jne 0x1400d0472
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.1400b3fe0
mov rsi, rbx
mov qword [rsp + 0x138], rbx
mov dword [rsp + 0x40], 1
jmp 0x1400d04b4
test ebp, ebp
je 0x1400d0555
cmp dword [rsp + 0x48], 0
jne 0x1400d0555
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.1400b3fe0
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 0x1400cfd80
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.1400b3fe0
cmp dword [0x14020e118], 0
je 0x1400d058d
mov r8, qword [r15]
lea rcx, str.got_ntfs_file_record__I64x__I64u__d_n
mov r9d, r13d
mov rdx, rsi
call fcn.1400b3fb0
mov r12, qword [rsp + 0x58]
jmp 0x1400d0592
or dword [r15 + 0x20], 0x10
jmp 0x1400d0529
lea rdx, str.couldnt_get_fd_from__016I64x__x_n
mov r9d, r13d
mov r8, rsi
mov ecx, 0xffff0000
call fcn.1400b3fe0
jmp 0x1400d0529
cmp dword [0x14020e118], 0
je 0x1400d0592
lea rdx, str.FRN_not_in_use__I64x_n
mov r8, rsi
mov ecx, 0xffff0000
call fcn.1400b3fe0
jmp 0x1400d0529
mov r12, qword [rsp + 0x58]
mov rcx, r12
call fcn.1400cf840
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 0x1400d05e0
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.1400b3fe0
add rsp, 0x108
pop r15
pop rdi
pop rsi
pop rbx
ret