Function at 0x1400bebb0
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.1400b7f10
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 0x1400bf520
mov r8d, dword [rsp + 0xc0]
cmp r8d, 0x2a
jbe 0x1400bf517
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.1400be730
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 0x1400bf45f
nop
nop
cmp qword [r12], rbx
jne 0x1400bf4be
cmp dword [r12 + 0xc], 0x454c4946
mov eax, dword [rsp + 0xc0]
lea r14, [r12 + 0xc]
lea r12, [rax + r12 + 0xc]
jne 0x1400bf351
test byte [r14 + 0x16], 1
je 0x1400bf33e
cmp dword [rsp + 0x44], 0
jne 0x1400bed2f
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x1400bed27
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x44], 1
jmp 0x1400bed2f
mov dword [rsp + 0x40], 1
movzx edi, word [r14 + 0x14]
add rdi, r14
cmp rdi, r14
jb 0x1400bf378
lea rbx, [rdi + 0x10]
cmp rbx, r12
ja 0x1400bf36e
mov eax, dword [rdi]
cmp eax, 0xffffffff
je 0x1400bf364
cmp dword [rdi + 4], 0x10
jb 0x1400bf31f
cmp byte [rdi + 9], 0
jne 0x1400bf2fe
sub eax, 0x10
je 0x1400bf23f
sub eax, 0x10
je 0x1400bedea
cmp eax, 0x60
jne 0x1400bf2fe
test byte [r14 + 0x16], 2
jne 0x1400bf2fe
test byte [rdi + 8], 1
je 0x1400bedc5
lea rax, [rdi + 0x48]
cmp rax, r12
ja 0x1400bf2fe
cmp qword [rbx], 0
jne 0x1400bf2fe
mov rax, qword [rdi + 0x30]
or r13d, 2
cmp r13d, 3
mov qword [r15], rax
je 0x1400bf479
jmp 0x1400bf2fe
lea rax, [rdi + 0x16]
cmp rax, r12
ja 0x1400bf2fe
mov eax, dword [rbx]
or r13d, 2
cmp r13d, 3
mov qword [r15], rax
je 0x1400bf479
jmp 0x1400bf2fe
movzx edx, byte [rdi + 8]
lea rcx, str.attribute_list__02x_n
call fcn.1400b1c70
test ebp, ebp
jne 0x1400bf2fe
test byte [r14 + 0x16], 2
jne 0x1400bf2fe
test byte [rdi + 8], 1
je 0x1400bf1a0
movzx r8d, word [rdi + 0xc]
mov edx, dword [rdi + 4]
lea rcx, str.len__u_flags__04x_n
call fcn.1400b1c70
test word [rdi + 0xc], 0xc001
jne 0x1400bf2fe
lea rax, [rdi + 0x48]
cmp rax, r12
ja 0x1400bf2fe
cmp qword [rbx], 0
jne 0x1400bf2fe
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 0x1400bf2dc
movzx ebx, byte [rdx]
test ebx, ebx
je 0x1400bf2e5
mov eax, ebx
sar ebx, 4
and eax, 0xf
cmp eax, 8
jg 0x1400bf2ee
cmp ebx, 8
jg 0x1400bf2f7
movsxd r8, eax
lea rsi, [r8 + rcx]
cmp rsi, rbp
ja 0x1400bf2a9
mov rdx, rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], 0
call fcn.140193220
test ebx, ebx
mov qword [rsp + 0x50], 0
je 0x1400bf2ba
movsxd r8, ebx
lea rax, [r8 + rsi]
cmp rax, rbp
ja 0x1400bf2cb
test byte [rax - 1], 0x80
je 0x1400beef8
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x50], 0xffffffffffffffff
call fcn.140193220
jmp 0x1400bef05
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.140193220
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.1400b1c70
mov edx, dword [rsp + 0xbc]
mov rcx, qword [rsp + 0x130]
imul rdx, rbx
xor r8d, r8d
call fcn.1400ca3d0
test eax, eax
je 0x1400bf16f
mov ecx, dword [rsp + 0xc0]
call fcn.1400be730
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 0x1400bf101
lea rsi, [rbx + rbp]
mov rbx, rbp
lea rax, [rbx + 0x1a]
cmp rax, rsi
ja 0x1400bf153
cmp word [rbx + 4], 0x1a
jb 0x1400bf0cf
cmp dword [rbx], 0xffffffff
je 0x1400bf137
mov rdx, qword [rsp + 0x138]
lea rcx, str.this_frn__016I64x_n
call fcn.1400b1c70
mov edx, dword [rbx]
lea rcx, str.al_type__u_n
call fcn.1400b1c70
movzx edx, word [rbx + 4]
lea rcx, str.al_rl__u_n
call fcn.1400b1c70
movzx edx, byte [rbx + 6]
lea rcx, str.al_nl__u_n
call fcn.1400b1c70
movzx edx, byte [rbx + 7]
lea rcx, str.al_o2n__u_n
call fcn.1400b1c70
mov rdx, qword [rbx + 8]
lea rcx, str.al_svcn__I64u_n
call fcn.1400b1c70
mov rdx, qword [rbx + 0x10]
lea rcx, str.al_bfrn__016I64x_n
call fcn.1400b1c70
movzx edx, word [rbx + 0x18]
lea rcx, str.al_aid__u_n
call fcn.1400b1c70
cmp dword [rbx], 0x80
jne 0x1400bf052
cmp qword [rbx + 8], 0
je 0x1400bf086
movzx ecx, word [rbx + 4]
lea rax, [rcx + rcx*2]
prefetcht1 byte [rbx + rax*2]
add rbx, rcx
cmp rbx, rbp
jae 0x1400befa0
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400be790
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
mov rdx, qword [rbx + 0x10]
mov rsi, qword [rsp + 0x138]
cmp rsi, rdx
je 0x1400bf15b
lea rcx, str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.1400b1c70
mov rax, qword [rbx + 0x10]
mov rcx, rbp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x148], 1
call fcn.1400be790
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
movzx r8d, word [rbx + 4]
lea rdx, str.bad_al_len__u_n
mov ecx, 0xffff0000
call fcn.1400b1ca0
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400be790
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.read_size__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b1ca0
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400be790
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400be790
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
mov rsi, qword [rsp + 0x138]
mov rcx, rbp
call fcn.1400be790
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
mov r8d, dword [rsp + 0xbc]
lea rdx, str.bad_file_pos__I64u_n
mov ecx, 0xffff0000
imul r8, rbx
call fcn.1400b1ca0
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
lea rax, [rdi + 0x16]
cmp rax, r12
ja 0x1400bf2fe
movzx ebx, word [rdi + 0x14]
add rbx, rdi
cmp rbx, rdi
jb 0x1400bf2fe
nop
lea rax, [rbx + 0x1a]
cmp rax, r12
ja 0x1400bf2fe
movzx ecx, word [rbx + 4]
cmp cx, 0x1a
jb 0x1400bf2fe
mov eax, dword [rbx]
cmp eax, 0xffffffff
je 0x1400bf2fe
cmp eax, 0x80
jne 0x1400bf1f4
cmp qword [rbx + 8], 0
je 0x1400bf20c
movzx ecx, cx
lea rax, [rcx + rcx*2]
prefetcht1 byte [rbx + rax*2]
add rbx, rcx
cmp rbx, rdi
jae 0x1400bf1c0
jmp 0x1400bf2fe
mov rdx, qword [rbx + 0x10]
cmp rsi, rdx
je 0x1400bf2fe
lea rcx, str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.1400b1c70
mov rax, qword [rbx + 0x10]
mov ebp, 1
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x148], ebp
jmp 0x1400bf2fe
xor eax, eax
cmp byte [rdi + 8], al
sete al
test al, 1
je 0x1400bf2fe
lea rax, [rdi + 0x16]
cmp rax, r12
ja 0x1400bf2fe
movzx ecx, word [rdi + 0x14]
add rcx, rdi
lea rax, [rcx + 0x24]
cmp rax, r12
ja 0x1400bf2fe
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 0x1400bf49e
cmp r13d, 3
je 0x1400bf479
jmp 0x1400bf2fe
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
mov rsi, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
mov ebp, dword [rsp + 0x148]
jmp 0x1400bf2fe
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 0x1400bed40
mov rdi, qword [rsp + 0x130]
jmp 0x1400bf380
mov r8d, dword [rdi + 4]
lea rdx, str.bad_attribute_len__u_n
mov ecx, 0xffff0000
call fcn.1400b1ca0
mov rdi, qword [rsp + 0x130]
jmp 0x1400bf380
lea rdx, str.get_fd:_not_inuse_n
mov ecx, 0xffff0000
call fcn.1400b1ca0
jmp 0x1400bf380
lea rdx, str.get_fd:_not_a_file_record_n
mov ecx, 0xffff0000
call fcn.1400b1ca0
jmp 0x1400bf380
mov rdi, qword [rsp + 0x130]
jmp 0x1400bf380
mov rdi, qword [rsp + 0x130]
jmp 0x1400bf380
mov rdi, qword [rsp + 0x130]
cmp dword [rsp + 0x44], 0
je 0x1400bf3c2
cmp dword [rsp + 0x40], 0
jne 0x1400bf3c2
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.1400b1ca0
mov rsi, rbx
mov qword [rsp + 0x138], rbx
mov dword [rsp + 0x40], 1
jmp 0x1400bf404
test ebp, ebp
je 0x1400bf4a5
cmp dword [rsp + 0x48], 0
jne 0x1400bf4a5
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.1400b1ca0
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 0x1400becd0
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.1400b1ca0
cmp dword [0x1401f3720], 0
je 0x1400bf4dd
mov r8, qword [r15]
lea rcx, str.got_ntfs_file_record__I64x__I64u__d_n
mov r9d, r13d
mov rdx, rsi
call fcn.1400b1c70
mov r12, qword [rsp + 0x58]
jmp 0x1400bf4e2
or dword [r15 + 0x20], 0x10
jmp 0x1400bf479
lea rdx, str.couldnt_get_fd_from__016I64x__x_n
mov r9d, r13d
mov r8, rsi
mov ecx, 0xffff0000
call fcn.1400b1ca0
jmp 0x1400bf479
cmp dword [0x1401f3720], 0
je 0x1400bf4e2
lea rdx, str.FRN_not_in_use__I64x_n
mov r8, rsi
mov ecx, 0xffff0000
call fcn.1400b1ca0
jmp 0x1400bf479
mov r12, qword [rsp + 0x58]
mov rcx, r12
call fcn.1400be790
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 0x1400bf530
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.1400b1ca0
add rsp, 0x108
pop r15
pop rdi
pop rsi
pop rbx
ret