Function at 0x140116e48
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x30
xor ebp, ebp
lea r9, [rax + 0x10]
xor r8d, r8d
mov dword [rax + 0x10], ebp
xor edx, edx
mov dword [rax + 0x18], ebp
mov esi, ebp
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
lea r15, [0x14017a048]
lea r13, [0x140167690]
test eax, eax
jne 0x140116ef9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140116ea9
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x800700ea
jne 0x140116fc7
mov eax, dword [rsp + 0x68]
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
ja 0x140116fc0
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140116eec
mov ebx, 0x8007000e
jmp 0x140116f83
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140116ff9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140116f38
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x140116f6f
test byte [rcx + 0x1c], 1
je 0x140116f6f
cmp byte [rcx + 0x19], 2
jb 0x140116f6f
mov rcx, qword [rcx + 0x10]
mov edx, 0x39
mov r9, rdi
mov dword [rsp + 0x20], ebx
mov r8, r13
call fcn.140011330
mov rcx, qword [0x14017a048]
test rsi, rsi
je 0x140116f8a
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x140116fac
test byte [rcx + 0x1c], 1
je 0x140116fac
cmp byte [rcx + 0x19], 4
jb 0x140116fac
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, r13
call fcn.140006b98
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret
mov ebx, 0x80070216
jmp 0x140116f83
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x140116fac
test byte [rcx + 0x1c], 1
je 0x140116f8a
cmp byte [rcx + 0x19], 2
jb 0x140116f8a
mov rcx, qword [rcx + 0x10]
mov edx, 0x38
mov r9, rdi
mov dword [rsp + 0x20], ebx
mov r8, r13
call fcn.140011330
jmp 0x140116f83
mov rdi, rsi
mov ebx, ebp
cmp word [rsi], bp
je 0x140116f68
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x140117033
test byte [rcx + 0x1c], 1
je 0x140117033
cmp byte [rcx + 0x19], 4
jb 0x140117033
mov rcx, qword [rcx + 0x10]
mov edx, 0x3a
mov r9, rdi
mov r8, r13
call fcn.1400112c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x140117065
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bp
jne 0x14011704a
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], bp
jne 0x140117007
jmp 0x140116f74
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140117080
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x140116f74
test byte [rcx + 0x1c], 1
je 0x140116f74
cmp byte [rcx + 0x19], 2
jb 0x140116f74
mov rcx, qword [rcx + 0x10]
mov edx, 0x3b
mov r9, rdi
mov dword [rsp + 0x20], ebx
mov r8, r13
call fcn.140011330
jmp 0x140116f74