Function at 0x140028c90
Capabilities:
Get storage device properties

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3780]
mov eax, 0x3880
call fcn.140038d50
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x38b8], rbx
mov qword [rsp + 0x38c0], rsi
mov qword [rsp + 0x38c8], rdi
mov rax, qword [0x14007bec0]
xor rax, rsp
mov qword [rbp + 0x3770], rax
mov r12, rcx
xor r13d, r13d
mov edi, r13d
mov ebx, r13d
lea r14, [0x140084c90]
lea r15, [0x140084890]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x101
lea rcx, [rbp - 0x70]
call fcn.140037b90
mov r8d, ebx
lea rdx, str..PhysicalDrive_d
lea rcx, [rbp - 0x70]
call fcn.140036508
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 0x14002903d
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 + 0x1060]
call fcn.140037b90
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x1060]
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 0x14002902e
xor edx, edx
mov r8d, 0x3e7
lea rcx, [rbp + 0xa1]
call fcn.140037b90
xor edx, edx
mov r8d, 0x3e7
lea rcx, [rbp + 0x491]
call fcn.140037b90
xor edx, edx
mov r8d, 0x3e7
lea rcx, [rbp + 0x881]
call fcn.140037b90
xor edx, edx
mov r8d, 0x3e7
lea rcx, [rbp + 0xc71]
call fcn.140037b90
mov byte [rbp + 0x880], 0
mov edx, dword [rbp + 0x106c]
test edx, edx
jle 0x140028e3a
lea r9, [rbp + 0x880]
xor r8d, r8d
lea rcx, [rbp + 0x1060]
call fcn.140028ad0
mov byte [rbp + 0x490], 0
mov edx, dword [rbp + 0x1070]
test edx, edx
jle 0x140028e61
lea r9, [rbp + 0x490]
xor r8d, r8d
lea rcx, [rbp + 0x1060]
call fcn.140028ad0
mov byte [rbp + 0xc70], 0
mov edx, dword [rbp + 0x1074]
test edx, edx
jle 0x140028e88
lea r9, [rbp + 0xc70]
xor r8d, r8d
lea rcx, [rbp + 0x1060]
call fcn.140028ad0
xor al, al
mov byte [rbp + 0xa0], al
mov edx, dword [rbp + 0x1078]
test edx, edx
jle 0x140028eba
lea r9, [rbp + 0xa0]
mov r8d, 1
lea rcx, [rbp + 0x1060]
call fcn.140028ad0
movzx eax, byte [rbp + 0xa0]
cmp byte [0x140084c90], 0
jne 0x140028fe1
movsx ecx, al
call fcn.140036964
test eax, eax
jne 0x140028ee7
movsx ecx, byte [rbp + 0xb3]
call fcn.140036964
test eax, eax
je 0x140028fe1
mov rcx, r13
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0xa0]
mov byte [rcx + r14], al
inc rcx
test al, al
jne 0x140028ef0
mov rcx, r13
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x490]
mov byte [rcx + r15], al
inc rcx
test al, al
jne 0x140028f10
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 0x140029049
cmp rcx, rdx
jbe 0x140028f70
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140002880
mov rdx, qword [rsp + 0x78]
jmp 0x140028f7e
test rcx, rcx
jne 0x140028f7e
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], al
test rdi, rdi
setne al
test al, al
je 0x140028fbc
lea rcx, [rsp + 0x60]
cmp rdx, 0x10
cmovae rcx, qword [rsp + 0x60]
mov r8, rdi
mov rdx, r14
call fcn.140033fc0
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.1400291e0
nop
cmp qword [rsp + 0x78], 0x10
jb 0x140028fdc
mov rcx, qword [rsp + 0x60]
call fcn.140033ccc
mov edi, 1
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x1060]
call fcn.140037b90
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x1060]
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 0x140029034
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x10
jge 0x140029056
jmp 0x140028d00
lea rcx, str.string_too_long
call fcn.14003356c
int3
mov eax, edi
mov rcx, qword [rbp + 0x3770]
xor rcx, rsp
call fcn.140033cf0
lea r11, [rsp + 0x3880]
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