Function at 0x140053c40
Capabilities:
Get storage device properties

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, r8
mov r14d, edx
mov rdi, rcx
xor r13d, r13d
mov esi, r13d
movdqa xmm0, xmmword [0x1400ac8a0]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r13w
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r13w
lea r9, [rbp - 0x29]
lea r8, str.DeviceID
mov rcx, qword [rcx]
call fcn.140053520
test al, al
jne 0x140053cb6
xor bl, bl
jmp 0x140053e9d
lea r9, [rbp - 0x59]
lea r8, str.InterfaceType
mov edx, r14d
mov rcx, qword [rdi]
call fcn.140053520
test al, al
jne 0x140053cd7
xor bl, bl
jmp 0x140053e9d
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
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]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140053d16
xor bl, bl
jmp 0x140053e86
mov qword [rbp - 0x35], r13
mov dword [rbp - 0x39], r13d
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x61]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x28
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp - 0x39]
mov edx, 0x2d1400
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140053d60
xor bl, bl
jmp 0x140053e81
mov ecx, dword [rbp - 0x61]
call fcn.140060764
mov rsi, rax
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x61]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x61]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 0xc
lea r8, [rbp - 0x39]
mov edx, 0x2d1400
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140053da8
xor bl, bl
jmp 0x140053e81
movzx eax, byte [rsi + 0xa]
cmp al, 1
jne 0x140053dba
mov dword [rbx], 4
movzx eax, byte [rsi + 0xa]
test al, al
jne 0x140053e7f
mov eax, dword [rsi + 0x1c]
add eax, 0xfffffff2
cmp eax, 1
ja 0x140053dd8
mov dword [rbx], 3
jmp 0x140053e7f
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rcx, qword [rbp - 0x59]
mov qword [rsp + 0x20], 3
lea r9, [0x1400abb88]
xor r8d, r8d
mov rdx, qword [rbp - 0x49]
call fcn.140001c80
cmp rax, 0xffffffffffffffff
je 0x140053e10
mov dword [rbx], 2
jmp 0x140053e7f
lea rcx, [rbp - 0x59]
mov rdi, qword [rbp - 0x59]
mov r14, qword [rbp - 0x41]
cmp r14, 8
cmovae rcx, rdi
mov qword [rsp + 0x20], 3
lea r9, [0x1400abb90]
xor r8d, r8d
mov rdx, qword [rbp - 0x49]
call fcn.140001c80
cmp rax, 0xffffffffffffffff
jne 0x140053e79
lea rcx, [rbp - 0x59]
cmp r14, 8
cmovae rcx, rdi
mov qword [rsp + 0x20], 4
lea r9, str.SCSI
xor r8d, r8d
mov rdx, qword [rbp - 0x49]
call fcn.140001c80
cmp rax, 0xffffffffffffffff
jne 0x140053e79
mov dword [rbx], r13d
jmp 0x140053e7f
mov dword [rbx], 1
mov bl, 1
test r15, r15
je 0x140053e8f
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140053e9d
mov rcx, rsi
call fcn.140060750
nop
mov r14, qword [rbp - 0x41]
cmp r14, 8
jb 0x140053edc
lea rdx, [r14*2 + 2]
mov rdi, qword [rbp - 0x59]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140053ed4
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053f51
mov rcx, rdi
call fcn.140055724
movdqa xmm0, xmmword [0x1400ac8a0]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r13w
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140053f2a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053f25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053f4b
call fcn.140055724
movzx eax, bl
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140055700
add rsp, 0xd0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14005c4ec
nop
call fcn.14005c4ec
nop
int3