Function at 0x140049cc0
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
lea rbp, [rsp - 0x11d0]
mov eax, 0x12d0
call fcn.1401eeab0
sub rsp, rax
mov rax, qword [0x1402cf910]
xor rax, rsp
mov qword [rbp + 0x11c0], rax
mov rbx, rcx
xor r14d, r14d
mov ecx, dword [rcx + 0xf8]
mov r15d, 1
mov qword [rsp + 0x50], r14
mov dword [0x1402d0d00], r15d
movzx eax, byte [rbx + 0xf0]
and al, r15b
mov byte [rsp + 0x57], 0xec
or al, 0xfa
mov dword [rbx + 0xf4], r14d
shl al, 4
mov byte [rsp + 0x56], al
test cl, 0x40
jne 0x140049e82
cmp dword [rbx + 0xc], 0x11
jne 0x140049e82
mov rcx, rbx
mov qword [rsp + 0x1300], rdi
call fcn.14004a480
test al, al
je 0x140049d5b
mov dword [rbx + 0x2b0], r15d
mov ecx, 0x1030
mov qword [rsp + 0x12f8], rsi
mov dword [rsp + 0x50], r14d
call fcn.1401fa840
mov rdi, rax
test rax, rax
je 0x140049e7e
lea rcx, [rax + 0xc]
xor edx, edx
mov r8d, 0x1024
call fcn.1401f0eb0
mov rcx, qword [rbx + 4]
lea rsi, [rdi + 8]
mov qword [rdi], 0x31
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], r14
mov r9d, 0x1030
mov qword [rsp + 0x30], rax
mov r8, rdi
mov dword [rsp + 0x28], 0x1030
mov edx, 0x2d1400
mov qword [rsp + 0x20], rdi
mov dword [rsi], 3
mov dword [rsi + 4], r15d
mov qword [rsi + 8], r15
mov dword [rsi + 0x10], 0x28
mov dword [rsi + 0x14], 0x1000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [rdi], 0x30
jne 0x140049e7e
cmp dword [rdi + 4], 0x30
jne 0x140049e7e
mov eax, dword [rsi + 0x10]
cmp eax, 0x28
jb 0x140049e7e
cmp dword [rsi + 0x14], 0x1000
jb 0x140049e7e
cmp word [rsi + rax], r14w
lea rdx, [rsi + rax]
je 0x140049e7e
cmp dword [rdx + 0x204], r14d
je 0x140049e7e
mov rcx, rbx
call fcn.140049470
mov rcx, rdi
call fcn.1401fa848
movzx eax, r15b
mov dword [rbx + 0xf4], 7
mov dword [0x1402d0d00], 0x78
mov rsi, qword [rsp + 0x12f8]
mov rdi, qword [rsp + 0x1300]
mov rcx, qword [rbp + 0x11c0]
xor rcx, rsp
call fcn.1401ee030
mov rbx, qword [rsp + 0x1308]
add rsp, 0x12d0
pop r15
pop r14
pop rbp
ret
xor al, al
jmp 0x140049e4a
test cl, 4
jne 0x140049ebd
mov byte [rsp + 0x28], r14b
lea r8, [rbp + 0x1c0]
mov r9d, 0x200
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x50]
mov dword [rbx + 0xf4], 3
mov rcx, rbx
call fcn.14004a1d0
test al, al
jne 0x14004a0b1
test byte [rbx + 0xf8], 2
jne 0x140049f83
movzx eax, byte [rbx + 0xf0]
lea r8, [rbp - 0x40]
and al, r15b
mov qword [rsp + 0x40], r14
or al, 0xfa
mov byte [rsp + 0x28], r14b
shl al, 4
lea rdx, [rsp + 0x40]
mov r9d, 0x200
mov byte [rsp + 0x46], al
mov rcx, rbx
mov dword [rbx + 0xf4], 2
mov byte [rsp + 0x47], 0xec
mov qword [rsp + 0x20], r14
call fcn.14004a1d0
test al, al
je 0x140049f83
mov byte [rsp + 0x28], r14b
lea r8, [rbp + 0x1c0]
mov r9d, 0x200
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x50]
mov dword [rbx + 0xf0], r14d
mov rcx, rbx
call fcn.14004a1d0
test al, al
jne 0x14004a0b1
mov byte [rsp + 0x28], r14b
lea r8, [rbp + 0x1c0]
mov r9d, 0x200
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x50]
mov dword [rbx + 0xf0], r15d
mov rcx, rbx
call fcn.14004a1d0
test al, al
jne 0x14004a0b1
mov dword [rbx + 0xf0], r14d
test byte [rbx + 0xf8], r15b
jne 0x140049fc6
mov byte [rsp + 0x28], r14b
lea r8, [rbp + 0x1c0]
mov r9d, 0x200
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x50]
mov dword [rbx + 0xf4], r15d
mov rcx, rbx
mov dword [rbx + 0xf0], r14d
call fcn.14004a1d0
test al, al
jne 0x14004a0b1
test byte [rbx + 0xf8], 0x40
jne 0x14004a03b
mov rcx, qword [rbx + 4]
lea r8, [rbp + 0x1c0]
xor eax, eax
mov dword [rbx + 0xf4], 8
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
mov r9d, 0x1000
mov word [rsp + 0x40], 0x6e6
mov byte [rsp + 0x43], r15b
mov dword [rsp + 0x48], eax
call fcn.140048dd0
cmp eax, r15d
jne 0x14004a03b
cmp byte [rbp + 0x1c0], r14b
je 0x14004a03b
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call fcn.140049470
movzx eax, r15b
mov dword [0x1402d0d00], 0x78
jmp 0x140049e5a
test byte [rbx + 0xf8], 0x10
jne 0x14004a076
mov byte [rsp + 0x28], r14b
lea r8, [rbp + 0x1c0]
mov r9d, 0x200
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x50]
mov dword [rbx + 0xf4], 5
mov rcx, rbx
call fcn.14004a1d0
test al, al
jne 0x14004a0b1
test byte [rbx + 0xf8], 0x20
jne 0x14004a0d3
mov byte [rsp + 0x28], r14b
lea r8, [rbp + 0x1c0]
mov r9d, 0x200
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x50]
mov dword [rbx + 0xf4], 6
mov rcx, rbx
call fcn.14004a1d0
test al, al
je 0x14004a0d3
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call fcn.1400495e0
movzx eax, r15b
mov dword [0x1402d0d00], 0x78
jmp 0x140049e5a
mov rcx, qword [rbx + 4]
lea r8, [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x38], r14
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], ax
mov r9d, 0x60
movups xmmword [rsp + 0x60], xmm0
mov eax, 0x38
mov edx, 0x4d014
mov word [rsp + 0x60], ax
lea rax, [rbp - 0x40]
movups xmmword [rbp - 0x80], xmm0
mov dword [0x1402d0d00], 0x78
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x48]
mov dword [rbp - 0x74], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
movups xmmword [rbp - 0x70], xmm0
mov dword [rsp + 0x28], 0x60
movups xmmword [rbp - 0x60], xmm0
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x63], 0xc000000
movsd xmm0, qword [rsp + 0x40]
mov word [rsp + 0x67], 0x120
mov dword [rsp + 0x6c], 0x200
mov dword [rsp + 0x70], 0x78
mov dword [rbp - 0x80], 0x3c
movsd qword [rbp - 0x7c], xmm0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004a19d
movzx eax, byte [rsp + 0x62]
test eax, eax
cmove eax, r15d
jmp 0x14004a1a2
mov eax, 0xffffffff
movups xmm0, xmmword [rbp - 0x64]
test eax, eax
movups xmm1, xmmword [rbp - 0x54]
setne al
movups xmmword [0x1402de1d8], xmm0
movups xmmword [0x1402de1e8], xmm1
jmp 0x140049e5a