Function at 0x18001b950
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
mov eax, 0x2d30
call fcn.180098880
sub rsp, rax
mov rax, qword [0x1800c34c8]
xor rax, rsp
mov qword [rsp + 0x2d20], rax
xor r12d, r12d
mov rbp, rcx
lea r13d, [r12 + 2]
mov ebx, r12d
lea rdx, str..PhysicalDrive_d
lea rcx, [rsp + 0x410]
mov r8d, ebx
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x410]
lea r8d, [r9 + 3]
xor edx, edx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18001bd36
xor eax, eax
lea rcx, [rsp + 0x610]
xor edx, edx
mov qword [rsp + 0x48], rax
mov r8d, 0x2710
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], eax
call fcn.18003bb80
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x610]
lea r8, [rsp + 0x48]
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov edx, 0x2d1400
mov rcx, rsi
mov dword [rsp + 0x28], 0x2710
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18001bd19
xor edx, edx
lea rcx, [rsp + 0x391]
lea r8d, [rdx + 0x7f]
call fcn.18003bb80
xor edx, edx
lea rcx, [rsp + 0x291]
lea r8d, [rdx + 0x7f]
call fcn.18003bb80
xor edx, edx
lea rcx, [rsp + 0x211]
lea r8d, [rdx + 0x7f]
call fcn.18003bb80
xor edx, edx
lea rcx, [rsp + 0x311]
lea r8d, [rdx + 0x7f]
call fcn.18003bb80
mov edx, dword [rsp + 0x61c]
mov byte [rsp + 0x210], r12b
test edx, edx
jle 0x18001baca
lea r9, [rsp + 0x210]
lea rcx, [rsp + 0x610]
xor r8d, r8d
call fcn.18001b780
mov edx, dword [rsp + 0x620]
mov byte [rsp + 0x290], r12b
test edx, edx
jle 0x18001baf5
lea r9, [rsp + 0x290]
lea rcx, [rsp + 0x610]
xor r8d, r8d
call fcn.18001b780
mov edx, dword [rsp + 0x624]
mov byte [rsp + 0x310], r12b
test edx, edx
jle 0x18001bb20
lea r9, [rsp + 0x310]
lea rcx, [rsp + 0x610]
xor r8d, r8d
call fcn.18001b780
mov rax, qword [rsp + 0x628]
mov byte [rsp + 0x390], r12b
test eax, eax
jle 0x18001bb51
lea r9, [rsp + 0x390]
lea rcx, [rsp + 0x610]
mov r8d, 1
mov edx, eax
call fcn.18001b780
xor eax, eax
lea rcx, [rsp + 0x88]
xor edx, edx
mov r8d, 0x80
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x208], r12d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
call fcn.18003bb80
lea rcx, [rsp + 0x108]
xor edx, edx
mov r8d, 0x80
call fcn.18003bb80
lea rcx, [rsp + 0x188]
xor edx, edx
mov r8d, 0x80
call fcn.18003bb80
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x210]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x18001bbe8
mov rcx, r12
movzx eax, byte [rsp + rcx + 0x210]
inc rcx
mov byte [rsp + rcx + 0x87], al
test al, al
jne 0x18001bbd2
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x290]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x18001bc2f
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x88]
lea rdx, [rsp + 0x290]
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x18001bc20
mov rcx, r12
movzx eax, byte [rsp + rcx + 0x310]
inc rcx
mov byte [rsp + rcx + 0x187], al
test al, al
jne 0x18001bc32
mov rcx, r12
nop dword [rax + rax]
movzx eax, byte [rsp + rcx + 0x390]
inc rcx
mov byte [rsp + rcx + 0x107], al
test al, al
jne 0x18001bc50
lea rdx, [rsp + 0x108]
mov rcx, rbp
call fcn.18001bf20
lea rdx, [rsp + 0x88]
mov rcx, rbp
call fcn.18001bf20
lea rdx, [rsp + 0x188]
mov rcx, rbp
call fcn.18001bf20
lea rcx, [rsp + 0x610]
xor edx, edx
mov r8d, 0x2710
call fcn.18003bb80
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x610]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x700a0
mov rcx, rsi
mov dword [rsp + 0x28], 0x2710
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18001bd36
mov rax, qword [rsp + 0x628]
cmp dword [rsp + 0x618], 0xc
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov eax, r12d
mov rcx, rbp
cmove eax, r13d
mov dword [rsp + 0x208], eax
call fcn.18001c490
jmp 0x18001bd2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._nDeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
mov edx, eax
call fcn.18004cbd0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x10
jl 0x18001b991
xor eax, eax
mov rcx, qword [rsp + 0x2d20]
xor rcx, rsp
call fcn.18003c690
lea r11, [rsp + 0x2d30]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret