Function at 0x14001c460
Capabilities:
Get storage device properties

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3770]
mov eax, 0x3870
call fcn.14002b1d0
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x38a8], rbx
mov qword [rsp + 0x38b0], rsi
mov qword [rsp + 0x38b8], rdi
mov rax, qword [0x140065ec0]
xor rax, rsp
mov qword [rbp + 0x3760], rax
mov r12, rcx
xor r13d, r13d
mov edi, r13d
mov ebx, r13d
lea r14, [0x14006ea90]
lea r15, [0x14006e690]
nop dword [rax + rax]
mov r8d, ebx
lea rdx, str..PhysicalDrive_d
lea rcx, [rbp - 0x70]
call fcn.140029ad4
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001c7fd
mov dword [rsp + 0x40], r13d
xor eax, eax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x50], r13
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x1050]
call fcn.14002a2d0
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x1050]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14001c7ee
xor edx, edx
mov r8d, 0x3e7
lea rcx, [rbp + 0x91]
call fcn.14002a2d0
xor edx, edx
mov r8d, 0x3e7
lea rcx, [rbp + 0x481]
call fcn.14002a2d0
xor edx, edx
mov r8d, 0x3e7
lea rcx, [rbp + 0x871]
call fcn.14002a2d0
xor edx, edx
mov r8d, 0x3e7
lea rcx, [rbp + 0xc61]
call fcn.14002a2d0
mov byte [rbp + 0x870], 0
mov edx, dword [rbp + 0x105c]
test edx, edx
jle 0x14001c5f9
lea r9, [rbp + 0x870]
xor r8d, r8d
lea rcx, [rbp + 0x1050]
call fcn.14001c2a0
mov byte [rbp + 0x480], 0
mov edx, dword [rbp + 0x1060]
test edx, edx
jle 0x14001c620
lea r9, [rbp + 0x480]
xor r8d, r8d
lea rcx, [rbp + 0x1050]
call fcn.14001c2a0
mov byte [rbp + 0xc60], 0
mov edx, dword [rbp + 0x1064]
test edx, edx
jle 0x14001c647
lea r9, [rbp + 0xc60]
xor r8d, r8d
lea rcx, [rbp + 0x1050]
call fcn.14001c2a0
xor al, al
mov byte [rbp + 0x90], al
mov edx, dword [rbp + 0x1068]
test edx, edx
jle 0x14001c679
lea r9, [rbp + 0x90]
mov r8d, 1
lea rcx, [rbp + 0x1050]
call fcn.14001c2a0
movzx eax, byte [rbp + 0x90]
cmp byte [0x14006ea90], 0
jne 0x14001c7a1
movsx ecx, al
call fcn.14002a17c
test eax, eax
jne 0x14001c6a6
movsx ecx, byte [rbp + 0xa3]
call fcn.14002a17c
test eax, eax
je 0x14001c7a1
mov rcx, r13
nop dword [rax]
movzx eax, byte [rbp + rcx + 0x90]
mov byte [rcx + r14], al
inc rcx
test al, al
jne 0x14001c6b0
mov rcx, r13
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x480]
mov byte [rcx + r15], al
inc rcx
test al, al
jne 0x14001c6d0
mov edx, 0xf
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], al
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp rcx, 0xfffffffffffffffe
ja 0x14001c809
cmp rcx, rdx
jbe 0x14001c730
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140002880
mov rdx, qword [rsp + 0x78]
jmp 0x14001c73e
test rcx, rcx
jne 0x14001c73e
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], al
test rdi, rdi
setne al
test al, al
je 0x14001c77c
lea rcx, [rsp + 0x60]
cmp rdx, 0x10
cmovae rcx, qword [rsp + 0x60]
mov r8, rdi
mov rdx, r14
call fcn.140027770
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
mov byte [rdi + rax], 0
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.14001c9a0
nop
cmp qword [rsp + 0x78], 0x10
jb 0x14001c79c
mov rcx, qword [rsp + 0x60]
call fcn.14002747c
mov edi, 1
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x1050]
call fcn.14002a2d0
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x1050]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x700a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x14001c7f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x10
jge 0x14001c816
jmp 0x14001c4d0
lea rcx, str.string_too_long
call fcn.140026d14
int3
mov eax, edi
mov rcx, qword [rbp + 0x3760]
xor rcx, rsp
call fcn.1400274a0
lea r11, [rsp + 0x3870]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret