Function at 0x140135c34
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 [0x140173708]
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 [0x14016264c]
or r14, 0xffffffffffffffff
mov dword [rsp + 0x50], eax
movzx eax, word [0x140162650]
mov word [rsp + 0x54], ax
test rdi, rdi
jne 0x140135cc7
lea r8, str.pwszDrive
mov edx, 0x817
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.1400906e0
test rsi, rsi
jne 0x140135ce4
lea r8, str.pVolumeInfo___NULL
mov edx, 0x818
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.1400906e0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movzx ecx, word [rdi]
movups xmmword [rsp + 0x40], xmm0
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x140135d0d
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x140135d0d
lea r8, str._Volume_s
jmp 0x140135d67
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 0x140135d59
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x140135d4b
mov ebx, eax
jmp 0x140135eb6
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140135eb6
lea r8, str._GLOBALROOT_s
lea rdi, [rbp + 0x190]
mov r9, rdi
lea rcx, [rsp + 0x60]
mov edx, VarUI4FromDisp
call fcn.140014420
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 0x140135e1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x140135dc3
mov ebx, eax
jmp 0x140135dcc
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140135eb6
test byte [rcx + 0x1c], 4
je 0x140135eb6
cmp byte [rcx + 0x19], 2
jb 0x140135eb6
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x60]
mov edx, 0x68
mov dword [rsp + 0x20], ebx
lea r8, [0x1401626e8]
call fcn.1400151b8
jmp 0x140135eb6
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 0x140135eb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
test eax, eax
jg 0x140135e78
mov ebx, eax
jmp 0x140135e82
movzx ebx, r9w
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140135eb6
test byte [rcx + 0x1c], 4
je 0x140135eb6
cmp byte [rcx + 0x19], 2
jb 0x140135eb6
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401626e8]
mov edx, 0x69
call fcn.14000c354
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.140007410
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret