Function at 0x140137814
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov r13, rdx
mov esi, r15d
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x18], r15
mov rbx, rcx
mov dword [rbp - 0x20], r15d
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140137876
test byte [rcx + 0x1c], 0x20
je 0x140137876
cmp byte [rcx + 0x19], 4
jb 0x140137876
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x17]
lea r8, [0x140157940]
call fcn.140004968
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r12d, eax
test eax, eax
jne 0x14013789c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140137a7c
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401378a3
dec eax
mov rcx, rbx
cmp word [rbx + rax*2], 0x5c
je 0x1401378cb
lea r8, [rbp - 0x18]
lea rdx, [0x1401447d4]
call fcn.1400829d8
jmp 0x1401378d7
xor r8d, r8d
lea rdx, [rbp - 0x18]
call fcn.14008290c
mov r14, qword [rbp - 0x18]
mov ebx, eax
test eax, eax
js 0x140137a60
lea r9, [rbp + 0x58]
mov word [rbp + 0x50], r15w
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x140137920
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140137920
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140137a60
mov ecx, dword [rbp + 0x58]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
xor ebx, ebx
mov r15, rax
test rax, rax
jne 0x140137940
mov ebx, 0x8007000e
jmp 0x140137a60
mov r8d, dword [rbp + 0x58]
lea r9, [rbp - 0x20]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x140137971
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140137a57
inc rdi
cmp word [r15 + rdi*2], bx
jne 0x140137971
test edi, edi
je 0x1401379bf
lea eax, [rdi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x1401379a0
mov ebx, 0x8007000e
jmp 0x140137a57
mov r8, r15
mov rdx, rbx
mov rcx, rdi
call fcn.140039a84
mov ebx, eax
test eax, eax
js 0x140137a49
mov rsi, rdi
xor ebx, ebx
jmp 0x140137a16
mov ecx, 1
mov eax, ebx
test r12d, ecx
je 0x1401379d6
add ecx, ecx
inc eax
cmp eax, 0x1a
jb 0x1401379c6
jmp 0x140137a02
add ax, 0x41
mov word [rbp + 0x52], bx
lea r8, [rbp - 0x10]
mov word [rbp + 0x50], ax
lea rdx, [0x14015790c]
lea rcx, [rbp + 0x50]
call fcn.1400829d8
mov rsi, qword [rbp - 0x10]
mov ebx, eax
test eax, eax
js 0x140137a57
xor ebx, ebx
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
je 0x140137958
mov rcx, qword [0x14016f4d8]
test rcx, rcx
je 0x140137a28
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, [0x14016f4d8]
mov qword [0x14016f4d8], rbx
mov rdx, r13
mov rcx, rsi
call fcn.1400829d8
xor r12d, r12d
mov ebx, eax
mov edi, r12d
test rdi, rdi
je 0x140137a57
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r14, r14
je 0x140137a6e
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x140137a7c
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140137ab0
test byte [rcx + 0x1c], 0x20
je 0x140137ab0
cmp byte [rcx + 0x19], 4
jb 0x140137ab0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157940]
mov edx, 0x18
call fcn.140004968
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret