Function at 0x140008a70
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov rdi, qword [0x1400f6e30]
lea rsi, str.....
mov rax, qword [rdi]
mov qword [rsp + 0x98], rax
xor eax, eax
cmp byte [rdx + 0xd], 0
mov r14, rcx
mov rbx, rdx
je 0x140007e7b
movzx r9d, byte [rdx + 0xc]
lea rsi, [rsp + 0x90]
lea r8, [0x1400abcd3]
mov edx, 8
mov rcx, rsi
call fcn.140085d40
cmp byte [rbx + 0xb], 0
lea rdi, str.....
je 0x140007ea9
lea rdi, [rsp + 0x88]
movzx r9d, byte [rbx + 0xa]
mov edx, 8
lea r8, [0x1400abcd3]
mov rcx, rdi
call fcn.140085d40
cmp byte [rbx + 9], 0
lea rbp, str.....
je 0x140007ed7
lea rbp, [rsp + 0x80]
movzx r9d, byte [rbx + 8]
mov edx, 8
lea r8, [0x1400abcd3]
mov rcx, rbp
call fcn.140085d40
cmp byte [rbx + 7], 0
lea r12, str.....
je 0x140007f02
lea r12, [rsp + 0x78]
movzx r9d, byte [rbx + 6]
mov edx, 8
lea r8, [0x1400abcd3]
mov rcx, r12
call fcn.140085d40
cmp byte [rbx + 5], 0
lea r13, str.....
je 0x140007f2d
lea r13, [rsp + 0x70]
movzx r9d, byte [rbx + 4]
mov edx, 8
lea r8, [0x1400abcd3]
mov rcx, r13
call fcn.140085d40
cmp byte [rbx + 3], 0
lea r15, str.....
je 0x140007f58
lea r15, [rsp + 0x68]
movzx r9d, byte [rbx + 2]
mov edx, 8
lea r8, [0x1400abcd3]
mov rcx, r15
call fcn.140085d40
cmp byte [rbx + 1], 0
lea r8, str.....
je 0x140007f89
movzx r9d, byte [rbx]
lea rcx, [rsp + 0x60]
mov edx, 8
lea r8, [0x1400abcd3]
mov qword [rsp + 0x58], rcx
call fcn.140085d40
mov r8, qword [rsp + 0x58]
lea rax, [0x1400abd17]
mov qword [rsp + 0x40], rsi
mov r9, r15
mov rdx, r14
mov qword [rsp + 0x48], rax
lea rcx, str._sERR_s__SC_s__LL_s__LM_s__LH_s__DEV_s__STS_s_s
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
call fcn.140002a70
mov rsi, qword [0x1400f6e30]
mov rax, qword [rsp + 0x98]
sub rax, qword [rsi]
jne 0x140007fe8
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140082d70
nop
nop
push r15
mov eax, 0x102f8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140083e60
sub rsp, rax
movups xmmword [rsp + 0x102e0], xmm6
mov rsi, qword [0x1400f6e30]
mov rax, qword [rsi]
mov qword [rsp + 0x102d8], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rcx, qword [rax - 0x18]
add rcx, rdi
mov rax, qword [rcx + 0x10]
cmp byte [rax], 0x2d
je 0x140008080
mov rdi, qword [0x1400f6e30]
mov rax, qword [rsp + 0x102d8]
sub rax, qword [rdi]
jne 0x140008a44
movups xmm6, xmmword [rsp + 0x102e0]
mov edx, 0x16
add rsp, 0x102f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140022610
cmp byte [rax + 1], 0
jne 0x140008039
mov rbp, qword [fcn.1400928f0]
xor esi, esi
lea rbx, [rsp + 0x2d0]
jmp 0x1400080ae
add esi, eax
cmp esi, 0xffff
jg 0x1400082f0
xor ecx, ecx
call rbp
mov r8d, 0x10000
mov edx, 1
mov rcx, rbx
mov r9, rax
call sub.msvcrt.dll_fread
test eax, eax
jg 0x1400080a0
test esi, esi
je 0x140008346
lea rax, [rsp + 0x220]
movsxd rsi, esi
lea rdx, str._REPORT_IOCTL:_DeviceF_D_____Command__A_Z___A_Z_____InputParameter__0_9______returned_____0_9____errno__0_9____r_n_______r_n_____A_Z___A_Z____DATA_START______EnDis_abled_status_cached_by_OS___
mov rcx, rax
mov qword [rsp + 0xb0], rax
mov byte [rsp + rsi + 0x2d0], 0
call fcn.1400580f0
movzx eax, byte [rsp + 0x2d0]
mov dword [rsp + 0x170], 1
test al, al
je 0x140008a10
mov dword [rsp + 0x158], 0xffffffff
xor r12d, r12d
movabs r15, 0xfffbffffdffffffe
lea rsi, [rsp + 0x2a0]
nop dword [rax]
sub eax, 0x20
cmp al, 0x32
ja 0x1400083e0
bt r15, rax
jb 0x1400083e0
mov rcx, qword [rsp + 0xb0]
lea r9, [rsp + 0x1c0]
mov r8d, 0xc
mov rdx, rbx
call fcn.1400577c0
test al, al
je 0x1400083e0
movsxd rdx, dword [rsp + 0x1d0]
test edx, edx
js 0x140008430
mov eax, dword [rsp + 0x1d4]
mov ecx, 0x27
mov r9, rsi
sub eax, edx
cdqe
cmp rax, rcx
cmova rax, rcx
add rdx, rbx
mov rcx, rdx
mov r8d, eax
cmp eax, 8
jae 0x140008898
xor edx, edx
test r8b, 4
je 0x1400081c9
mov edx, dword [rcx]
mov dword [r9], edx
mov edx, 4
test r8b, 2
je 0x1400081dd
movzx r10d, word [rcx + rdx]
mov word [r9 + rdx], r10w
add rdx, 2
and r8d, 1
je 0x1400081eb
movzx ecx, byte [rcx + rdx]
mov byte [r9 + rdx], cl
mov byte [rsp + rax + 0x2a0], 0
xor r13d, r13d
lea r14, str.SMART_ENABLE
nop dword [rax]
mov rdx, qword [r14 + r13*8]
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140008370
add r13, 1
cmp r13, 0xf
jne 0x140008200
mov eax, r12d
lea r12, str.Unknown_ATA_command_name
and eax, 0xfffffffd
mov esi, dword [rsp + 0x158]
lea ebp, [rsi + 1]
test eax, eax
je 0x140008240
lea r12, str.Missing_REPORT_IOCTL_result
mov dword [rdi + 0x308], ebp
mov r13d, dword [rsp + 0x170]
mov dword [rdi + 0x30c], 0
mov byte [rdi + 0x310], 0
test ebp, ebp
je 0x140008294
xor ebx, ebx
nop dword [rax]
lea rsi, [rbx + rbx*2]
shl rsi, 3
mov rcx, qword [rdi + rsi + 0x18]
test rcx, rcx
je 0x140008288
call fcn.140092f40
mov qword [rdi + rsi + 0x18], 0
add rbx, 1
cmp dword [rdi + 0x308], ebx
jg 0x140008268
mov rax, qword [rdi]
mov byte [rdi + 0x310], 0
lea r9, str._stdin_
lea r8, str._s__d_:_Syntax_error:__s
mov qword [rdi + 0x308], 0
mov edx, 5
add rdi, qword [rax - 0x18]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r13d
mov rcx, rdi
call fcn.140022760
mov rcx, qword [rsp + 0xb0]
mov byte [rsp + 0x158], al
call fcn.140057350
movzx eax, byte [rsp + 0x158]
jmp 0x140008312
mov rax, qword [rdi]
lea r9, str._stdin_
mov edx, 5
lea r8, str._s:_Buffer_overflow
add rdi, qword [rax - 0x18]
mov rcx, rdi
call fcn.140022760
mov rdi, qword [0x1400f6e30]
mov rdx, qword [rsp + 0x102d8]
sub rdx, qword [rdi]
jne 0x140008a44
movups xmm6, xmmword [rsp + 0x102e0]
add rsp, 0x102f8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdi]
lea r9, str._stdin_
mov edx, 2
lea r8, str._s:_Unexpected_EOF
add rdi, qword [rax - 0x18]
mov rcx, rdi
call fcn.140022760
jmp 0x140008312
mov ebp, eax
movsxd rax, dword [rsp + 0x1f8]
test eax, eax
js 0x1400088c0
cmp r12d, 1
jne 0x1400089a8
movsxd rdx, dword [rsp + 0x158]
lea rdx, [rdx + rdx*2]
lea r12, [rdi + rdx*8]
cmp dword [r12 + 8], r13d
jne 0x140008999
lea rcx, [rbx + rax]
call sub.msvcrt.dll_atoi
mov dword [r12 + 0x10], eax
movsxd rax, dword [rsp + 0x208]
test eax, eax
js 0x1400083cc
lea rcx, [rbx + rax]
call sub.msvcrt.dll_atoi
mov ebp, eax
mov dword [r12 + 0x14], ebp
mov r12d, 2
nop word [rax + rax]
lea rbp, [rsp + 0x170]
mov rcx, rbx
mov rdx, rbp
call fcn.1400079f0
mov rbx, rax
movzx eax, byte [rax]
test al, al
jne 0x140008140
and r12d, 0xfffffffd
jne 0x140008999
cmp dword [rsp + 0x158], 0xffffffff
jne 0x140008a1b
mov r13d, dword [rsp + 0x170]
lea r12, str.No_information_found
jmp 0x140008294
movsxd rdx, dword [rsp + 0x210]
test edx, edx
js 0x140008920
mov eax, dword [rsp + 0x214]
mov ecx, 0x27
mov r8, rsi
sub eax, edx
cdqe
cmp rax, rcx
cmova rax, rcx
add rdx, rbx
mov rcx, rdx
mov r9d, eax
cmp eax, 8
jae 0x14000893b
xor edx, edx
test r9b, 4
je 0x14000847e
mov edx, dword [rcx]
mov dword [r8], edx
mov edx, 4
test r9b, 2
je 0x140008492
movzx r10d, word [rcx + rdx]
mov word [r8 + rdx], r10w
add rdx, 2
and r9d, 1
je 0x1400084a0
movzx ecx, byte [rcx + rdx]
mov byte [r8 + rdx], cl
mov byte [rsp + rax + 0x2a0], 0
xor ebp, ebp
lea r14, str.SMART_ENABLE
mov rdx, qword [r14 + rbp*8]
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140008982
add rbp, 1
cmp rbp, 0xf
jne 0x1400084b1
mov dword [rsp + 0x15c], 0xffffffff
mov eax, 2
cmp eax, r12d
jne 0x1400089fe
movsxd rcx, dword [rsp + 0x158]
lea rdx, [rcx + rcx*2]
mov qword [rsp + 0x168], rcx
mov ecx, dword [rsp + 0x15c]
cmp dword [rdi + rdx*8 + 8], ecx
jne 0x1400089ef
lea rbp, [rsp + 0x170]
mov rcx, rbx
mov r13d, 0xf
mov rdx, rbp
call fcn.1400079f0
mov ecx, 0x200
mov rbx, rax
call sub.msvcrt.dll_malloc
movdqu xmm6, xmmword [0x1400adc00]
mov qword [rsp + 0x160], rax
mov r14, rax
add rax, 0x200
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x178]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x174]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x17c]
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x1bc]
mov qword [rsp + 0x148], rax
lea rax, [rsp + 0x1b8]
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x1b4]
mov qword [rsp + 0x138], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x1ac]
mov qword [rsp + 0x128], rax
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0x1a4]
mov qword [rsp + 0x118], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x110], rax
lea rax, [rsp + 0x19c]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0x198]
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x194]
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x190]
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x18c]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x188]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x184]
mov qword [rsp + 0xd8], rax
nop dword [rax]
mov rax, qword [rsp + 0xc8]
lea rdx, str._3u__3u:__2x__2x__2x__2x__2x__2x__2x__2x__2x__2x__2x__2x__2x__2x__2x__2x_n
mov rcx, rbx
mov dword [rsp + 0x17c], 0xffffffff
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xd0]
mov r9, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
call fcn.1400934c0
cmp eax, 0x12
jne 0x140008963
cmp dword [rsp + 0x17c], 0x37
jle 0x140008963
lea eax, [r13 - 0xf]
cmp dword [rsp + 0x174], eax
jne 0x140008963
cmp dword [rsp + 0x178], r13d
jne 0x140008963
mov rcx, rbx
mov rdx, rbp
add r14, 0x10
add r13d, 0x10
movdqu xmm0, xmmword [rsp + 0x180]
movdqu xmm1, xmm0
punpcklwd xmm0, xmmword [rsp + 0x190]
punpckhwd xmm1, xmmword [rsp + 0x190]
movdqu xmm2, xmm0
punpcklwd xmm0, xmm1
punpckhwd xmm2, xmm1
movdqu xmm1, xmmword [rsp + 0x1a0]
punpcklwd xmm0, xmm2
movdqu xmm2, xmm1
pand xmm0, xmm6
punpcklwd xmm1, xmmword [rsp + 0x1b0]
punpckhwd xmm2, xmmword [rsp + 0x1b0]
movdqu xmm3, xmm1
punpckhwd xmm3, xmm2
punpcklwd xmm1, xmm2
punpcklwd xmm1, xmm3
pand xmm1, xmm6
packuswb xmm0, xmm1
movups xmmword [r14 - 0x10], xmm0
call fcn.1400079f0
mov rbx, rax
cmp qword [rsp + 0x150], r14
jne 0x140008688
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x160]
lea rax, [rax + rax*2]
mov qword [rdi + rax*8 + 0x18], rcx
xor eax, eax
cmp dword [rsp + 0x15c], 0xd
cmovne r12d, eax
jmp 0x1400083e8
mov r11d, eax
xor ecx, ecx
and r11d, 0xfffffff8
mov r9d, ecx
add ecx, 8
mov r10, qword [rdx + r9]
mov qword [rsi + r9], r10
cmp ecx, r11d
jb 0x1400088a1
lea r9, [rsi + rcx]
add rcx, rdx
jmp 0x1400081b7
movsxd rax, dword [rsp + 0x158]
lea ebp, [rax + 1]
and r12d, 0xfffffffd
jne 0x140008239
cmp eax, 0x1e
jg 0x1400089ba
lea rax, [rax + rax*2]
movsxd rdx, dword [rsp + 0x1e8]
lea r14, [rdi + rax*8]
mov dword [r14 + 0x20], r13d
test edx, edx
js 0x140008902
lea rcx, [rbx + rdx]
call sub.msvcrt.dll_atoi
mov r12d, eax
mov dword [r14 + 0x24], r12d
mov r12d, 1
mov dword [rsp + 0x158], ebp
lea rbp, [rsp + 0x170]
jmp 0x1400083e8
mov edx, dword [rsp + 0x218]
test edx, edx
jle 0x1400083e0
mov byte [rdi + 0x311], 1
jmp 0x1400083e0
mov r11d, eax
xor ecx, ecx
and r11d, 0xfffffff8
mov r8d, ecx
add ecx, 8
mov r10, qword [rdx + r8]
mov qword [rsi + r8], r10
cmp ecx, r11d
jb 0x140008944
lea r8, [rsi + rcx]
add rcx, rdx
jmp 0x14000846c
mov rcx, qword [rsp + 0x160]
call fcn.140092f40
mov eax, r12d
lea r12, str.Incomplete_sector_hex_dump
and eax, 0xfffffffd
jmp 0x14000822b
xor eax, eax
cmp ebp, 0xd
mov dword [rsp + 0x15c], ebp
setne al
add eax, 1
jmp 0x1400084df
mov eax, dword [rsp + 0x158]
lea ebp, [rax + 1]
jmp 0x140008239
mov eax, r12d
lea r12, str.Missing_REPORT_IOCTL_start
and eax, 0xfffffffd
jmp 0x14000822b
mov eax, dword [rsp + 0x158]
mov byte [rdi + 0x310], 0
lea r12, str.Too_many_ATA_commands
mov dword [rdi + 0x30c], 0
mov r13d, dword [rsp + 0x170]
add eax, 2
mov dword [rdi + 0x308], eax
jmp 0x140008263
and eax, 0xfffffffd
lea r12, str.Unexpected_DATA_START
jmp 0x14000822b
mov eax, r12d
lea r12, str.Unexpected_DATA_START
and eax, 0xfffffffd
jmp 0x14000822b
mov r13d, 1
jmp 0x140008421
mov eax, dword [rsp + 0x158]
mov byte [rdi + 0x310], 0
add eax, 1
mov dword [rdi + 0x308], eax
xor eax, eax
mov dword [rdi + 0x30c], eax
mov eax, 1
jmp 0x1400082d2
call fcn.140082d70
mov rcx, qword [rsp + 0xb0]
mov rbx, rax
call fcn.140057350
mov rcx, rbx
call fcn.1400848e0
nop
nop word cs:[rax + rax]
nop dword [rax]
mov r10, qword [rcx]
add rcx, qword [r10 - 0x30]
jmp 0x140007ff0