Function at 0x140002a00
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
mov r15, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rbp - 0x49], r14d
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov dword [rbp - 0x49], 1
mov qword [rbp - 0x35], r14
mov dword [rbp - 0x39], r14d
mov qword [rbp + 0x7f], r14
mov dword [rbp + 0x77], r14d
mov r13d, r14d
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x140002a69
mov rcx, qword [rdx]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140002ac5
lea r8d, [rax + 0x12]
lea rdx, str.CreateFile_failed
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r14
mov qword [rbp - 9], r14
lea rcx, [rbp - 9]
call fcn.14000ad50
lea rcx, [rbp - 9]
call entry0
jmp 0x140002d0a
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp - 0x39]
mov edx, 0x2d1400
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140002b0f
mov r8d, 0x33
lea rdx, str.DeviceIoControl_IOCTL_STORAGE_QUERY_PROPERTY_failed
jmp 0x140002a9e
mov edi, dword [rbp + 0x83]
mov ecx, edi
call fcn.14008264c
mov r13, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.14007e440
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
mov r9d, 0xc
lea r8, [rbp - 0x39]
mov edx, 0x2d1400
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140002b00
mov eax, dword [r13 + 0x18]
test eax, eax
je 0x140002d0a
lea rdi, [rax + r13]
mov qword [rbp - 0x29], r14
mov edx, 0xf
mov qword [rbp - 0x11], rdx
mov qword [rbp - 0x19], r14
mov byte [rbp - 0x29], 0
mov ecx, r14d
mov rax, r14
nop word [rax + rax]
cmp byte [rax + rdi], 0
je 0x140002ba1
inc ecx
inc rax
cmp rax, 0x14
jne 0x140002b90
movsxd r14, ecx
test ecx, ecx
jle 0x140002c12
xor ebx, ebx
nop word [rax + rax]
movzx r9d, byte [rbx + rdi]
lea eax, [r9 - 0x30]
cmp al, 9
jbe 0x140002bcd
lea eax, [r9 - 0x41]
cmp al, 0x19
jbe 0x140002bcd
lea eax, [r9 - 0x61]
cmp al, 0x19
ja 0x140002c0a
mov rcx, qword [rbp - 0x19]
cmp rcx, rdx
jae 0x140002bf6
lea rax, [rcx + 1]
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x29]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x29]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002c06
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x29]
call fcn.14002f360
mov rdx, qword [rbp - 0x11]
inc rbx
cmp rbx, r14
jl 0x140002bb0
mov r8d, 0x20
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp - 9]
call fcn.14000c490
nop
lea r9, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae r9, qword [rbp - 9]
lea r8, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae r8, qword [rbp - 0x29]
add r8, qword [rbp - 0x19]
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x41]
call fcn.1400619c0
lea rax, [rbp - 9]
cmp rsi, rax
je 0x140002c81
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
mov r8, qword [rbp + 7]
mov rcx, rsi
call fcn.14000ad50
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140002cc1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cbc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d41
call fcn.14007bbb4
xor eax, eax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 7
mov word [rbp - 9], ax
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x140002d0a
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d3b
call fcn.14007bbb4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call fcn.140082638
nop
mov rcx, r15
call fcn.14000a970
mov rax, rsi
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140082148
nop
call fcn.140082148
int3