Function at 0x14002c864
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc10]
sub rsp, 0xd10
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0xc00], rax
mov rsi, rdx
mov rdi, rcx
mov r12d, 0x208
lea rcx, [rbp + 0x5d0]
mov r8d, r12d
xor edx, edx
mov r14, r9
xor ebx, ebx
call sub.msvcrt.dll_memset
xor edx, edx
lea r8d, [rbx + 0x64]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov r8d, r12d
lea rcx, [rbp + 0x3c0]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, r12d
lea rcx, [rbp + 0x7e0]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, r12d
lea rcx, [rbp - 0x60]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, r12d
lea rcx, [rbp + 0x9f0]
xor edx, edx
call sub.msvcrt.dll_memset
test rdi, rdi
je 0x14002cb00
test rsi, rsi
je 0x14002cb00
mov r15d, 0x104
lea rcx, [rbp - 0x60]
mov edx, r15d
mov r8, rdi
call fcn.1400026c0
test eax, eax
js 0x14002cb11
mov r8d, r12d
lea rcx, [rbp + 0x1b0]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, r15d
lea rdx, [rbp + 0x5d0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
je 0x14002cb11
or rdi, 0xffffffffffffffff
lea r8, [rbp - 0x60]
mov rdx, r15
lea rcx, [rbp + 0x3c0]
call fcn.1400026c0
test eax, eax
js 0x14002cb11
lea r8, [rbp + 0x9f0]
mov rdx, r15
lea rcx, [rbp + 0x7e0]
call fcn.1400026c0
test eax, eax
js 0x14002cb11
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x3c0]
call fcn.14002c76c
test eax, eax
je 0x14002ca68
mov r8d, r15d
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x3c0]
call fcn.14002c7ec
test eax, eax
je 0x14002ca68
lea rcx, [rbp + 0x7e0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x14002c9e8
lea rcx, [rbp + 0x9f0]
mov rdx, r15
test rax, rax
je 0x14002ca21
lea rax, [rbp + 0x7e0]
lea r9, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
call fcn.14002ba4c
jmp 0x14002ca2d
lea r8, [rbp + 0x1b0]
call fcn.1400026c0
test eax, eax
js 0x14002cb11
mov r8, r12
lea rcx, [rbp + 0x1b0]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, r15d
lea rdx, [rbp + 0x5d0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14002c96f
mov r8d, r15d
lea rdx, [rbp + 0x5d0]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
je 0x14002cb11
mov r8d, 0x32
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x14002cb11
test r14, r14
je 0x14002caca
lea r8, [rbp + 0x7e0]
mov rdx, r15
mov rcx, r14
call fcn.1400026c0
test eax, eax
js 0x14002cb11
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, rsi
call fcn.1400026c0
test eax, eax
js 0x14002cb11
inc rdi
cmp word [rsi + rdi*2], bx
jne 0x14002cade
test edi, edi
je 0x14002caf9
lea eax, [rdi - 1]
cmp word [rsi + rax*2], 0x5c
jne 0x14002caf9
mov word [rsi + rax*2], bx
mov ebx, 1
jmp 0x14002cb11
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0xc00]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0xd10]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret