Function at 0x140164d70
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor r12d, r12d
mov r14, r8
mov rsi, rdx
mov r15, rcx
test rdx, rdx
jne 0x140164dcb
lea r8, [0x140011120]
lea rcx, [0x140016ab0]
mov edx, 0x2ab
call fcn.1400a8be8
test r14, r14
jne 0x140164de8
lea r8, [0x140011138]
lea rcx, [0x140016ab0]
mov edx, 0x2ac
call fcn.1400a8be8
mov eax, dword [rbp - 0x74]
lea rcx, [rbp - 0x70]
mov ebx, r12d
and eax, 0xfffffffe
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], 0x18
and eax, 0xfffffffb
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x78], r12d
or eax, 2
mov word [rbp - 0x70], r12w
mov qword [rsp + 0x40], r12
mov dword [rbp - 0x74], eax
or rax, 0xffffffffffffffff
mov rdi, rax
mov rdx, rax
inc rdx
cmp word [rsi + rdx*2], r12w
jne 0x140164e27
lea r8, [rsp + 0x40]
mov rcx, rsi
call fcn.14010de80
lea rcx, [rbp - 0x40]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x40]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140164ec9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x1400171c0]
lea r8, [0x14000f360]
movzx ebx, ax
lea rdx, [0x14000fa50]
lea rcx, [rsp + 0x48]
or ebx, 0x80070000
test eax, eax
mov dword [rsp + 0x60], reloc.ADVAPI32.dll_TraceEvent
cmovle ebx, eax
lea rax, [0x14017f718]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x48], rax
lea rax, [0x140016a40]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x14016504d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_free]
lea r11, [rbp - 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [r11 + r8*2], r12w
jne 0x140164edc
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x70]
call fcn.140105ff4
mov r11d, dword [rbp - 0x78]
lea edi, [r11 - 1]
cmp edi, r11d
jb 0x140164f19
lea r8, [0x14000f9a8]
lea rcx, [0x14000f9f8]
mov edx, 0x561
call fcn.1400a8be8
mov rax, qword [rbp - 0x80]
mov ecx, edi
mov edi, 0x5c
cmp word [rax + rcx*2], di
je 0x140164f42
lea r8, [0x140011148]
lea rcx, [0x140016ab0]
mov edx, 0x2c3
call fcn.1400a8be8
lea rcx, [rsp + 0x70]
mov edx, edi
xor r8d, r8d
call fcn.140105be0
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x140164f89
test byte [rcx + 0x1c], 8
je 0x140164f89
cmp byte [rcx + 0x19], 4
jb 0x140164f89
mov r9, qword [rbp - 0x80]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400172d8]
mov edx, 0x32
call fcn.14001ec40
mov rcx, qword [rbp - 0x80]
mov r8d, 3
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140165014
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140165014
mov r8, qword [rbp - 0x80]
lea rax, [0x14017f718]
lea rdx, [0x140011180]
mov qword [rsp + 0x48], rax
lea rax, [0x140016a40]
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x60], reloc.ADVAPI32.dll_TraceEvent
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x58], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
jmp 0x14016504d
mov qword [r14], rdi
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x14016504d
test byte [rcx + 0x1c], 8
je 0x14016504d
cmp byte [rcx + 0x19], 4
jb 0x14016504d
mov r9, qword [rbp - 0x80]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400172d8]
mov edx, 0x33
mov qword [rsp + 0x20], rdi
call fcn.140028b0c
test ebx, ebx
jns 0x14016506f
cmp rdi, 0xffffffffffffffff
je 0x14016506f
lea r8, [0x1400111b8]
lea rcx, [0x140016ab0]
mov edx, 0x2de
call fcn.1400a8be8
lea rcx, [rsp + 0x70]
call fcn.140105bb4
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret