Function at 0x140055d20
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x2c90]
mov eax, 0x2d90
call fcn.140012230
sub rsp, rax
xor ebx, ebx
mov esi, ebx
lea rdx, str.SmaBS15QuDNQZ56R49NQrLM9_1
lea rcx, [rsp + 0x70]
call fcn.140057130
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14004a420
cmp qword [rax + 0x18], 8
jb 0x140055d76
mov rax, qword [rax]
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x380]
call fcn.140003f10
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140055dca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055dc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400560a0
call fcn.140011ab0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], bx
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140055e19
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055e14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005609a
call fcn.140011ab0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005607b
mov dword [rbp + 0x2cb0], ebx
mov qword [rsp + 0x44], rbx
mov dword [rsp + 0x40], ebx
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x580]
call fcn.1400141d0
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x2cb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x580]
mov qword [rsp + 0x20], rax
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x40]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea r14, [0x140000000]
test eax, eax
je 0x140055f97
xor edx, edx
mov r8d, 0x3e8
lea rcx, [rbp - 0x70]
call fcn.1400141d0
lea r9, [0x1400b4380]
xor r8d, r8d
mov edx, dword [rbp + 0x58c]
lea rcx, [rbp + 0x580]
call fcn.1400560b0
lea r15, [0x1400b4780]
mov r9, r15
xor r8d, r8d
mov edx, dword [rbp + 0x590]
lea rcx, [rbp + 0x580]
call fcn.1400560b0
lea r9, [rbp - 0x70]
mov r8d, 1
mov edx, dword [rbp + 0x598]
lea rcx, [rbp + 0x580]
call fcn.1400560b0
mov rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rcx + r15]
mov byte [rcx + r14 + 0xb4b80], al
lea rcx, [rcx + 1]
test al, al
jne 0x140055f30
cmp byte [0x1400b3d70], al
jne 0x140055f87
movzx ecx, byte [rbp - 0x70]
call fcn.140022a10
test eax, eax
jne 0x140055f67
movzx ecx, byte [rbp - 0x5d]
call fcn.140022a10
test eax, eax
je 0x140055f87
mov rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0x70]
mov byte [rcx + r14 + 0xb3d70], al
lea rcx, [rcx + 1]
test al, al
jne 0x140055f70
jmp 0x140055f9d
cmp byte [0x1400b4b80], 0
je 0x140055f9d
mov esi, 1
jmp 0x140055f9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov r8d, 0x2710
lea rcx, [rbp + 0x580]
call fcn.1400141d0
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x2cb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rbp + 0x580]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d0c10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14005606c
xor edx, edx
mov r8d, 0x3e8
lea rcx, [rbp - 0x70]
call fcn.1400141d0
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x590]
mov byte [rbp + rcx - 0x70], al
lea rcx, [rcx + 1]
test al, al
jne 0x140056010
cmp byte [0x1400b3d70], al
jne 0x140056072
movsx ecx, byte [rbp - 0x70]
call fcn.140022a10
test eax, eax
jne 0x140056050
movsx ecx, byte [rbp - 0x5d]
call fcn.140022a10
test eax, eax
je 0x140056072
nop word [rax + rax]
movzx eax, byte [rbp + rbx - 0x70]
mov byte [rbx + r14 + 0xb3d70], al
lea rbx, [rbx + 1]
test al, al
jne 0x140056050
mov esi, 1
jmp 0x140056072
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea r11, [rsp + 0x2d90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14001828c
nop
call fcn.14001828c
nop
int3