Function at 0x1401371b0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x20a
xor ebx, ebx
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x226
call sub.msvcrt.dll_memset
mov eax, dword [0x140165d4c]
or r14, 0xffffffffffffffff
mov dword [rsp + 0x50], eax
movzx eax, word [0x140165d50]
mov word [rsp + 0x54], ax
test rdi, rdi
jne 0x140137243
lea r8, str.pwszDrive
mov edx, 0x817
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.140087b08
test rsi, rsi
jne 0x140137260
lea r8, str.pVolumeInfo___NULL
mov edx, 0x818
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.140087b08
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movzx ecx, word [rdi]
movups xmmword [rsp + 0x40], xmm0
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x140137289
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x140137289
lea r8, str._Volume_s
jmp 0x1401372dd
mov word [rsp + 0x50], cx
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x50]
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
jne 0x1401372cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140137424
lea r8, str._GLOBALROOT_s
lea rdi, [rbp + 0x190]
mov r9, rdi
lea rcx, [rsp + 0x60]
mov edx, VarUI4FromDisp
call fcn.140010188
mov r8d, 3
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14013738c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x140137424
test byte [rcx + 0x1c], 4
je 0x140137424
cmp byte [rcx + 0x19], 2
jb 0x140137424
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x69]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], ebx
lea r8, [0x140165de8]
call fcn.140005d40
jmp 0x140137424
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x40]
mov r9d, 0x10
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r9d
mov edx, 0x9023c
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x44], 0x60
mov dword [rsp + 0x48], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140137424
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
mov r9d, eax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x140137424
test byte [rcx + 0x1c], 4
je 0x140137424
cmp byte [rcx + 0x19], 2
jb 0x140137424
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165de8]
mov edx, 0x69
call fcn.140004c3c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14014bb60
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret