Function at 0x14012d118
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [0x1400483e0]
mov r13, r8
mov rsi, rdx
mov qword [rsp + 0x30], rdx
lea ebp, [rbx + 1]
call fcn.140129990
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov r14d, ebx
mov word [rsp + 0x40], bx
call sub.msvcrt.dll_memset
mov r12d, ebx
mov r15d, ebx
test rsi, rsi
jne 0x14012d1be
lea r9d, [rsi + 0x57]
mov ebp, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
lea edx, [rsi + 0x1c]
lea rax, [0x140047358]
jmp 0x14012d58d
test rdi, rdi
jne 0x14012d1fc
lea r9d, [rdi + 0x57]
mov ebp, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
lea edx, [rdi + 0x1d]
lea rax, [0x1400466c0]
jmp 0x14012d58d
test r13, r13
jne 0x14012d23b
lea r9d, [r13 + 0x57]
mov ebp, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
lea edx, [r13 + 0x1e]
lea rax, [0x1400483c8]
jmp 0x14012d58d
mov qword [rsi], rbx
lea rdx, [0x14000f240]
mov r8d, 4
mov rcx, rdi
mov qword [r13], rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x14012d2a3
lea rcx, [0x14000f240]
mov rdx, rdi
call fcn.14012a154
mov r15, rax
test rax, rax
jne 0x14012d2ed
lea r9d, [rax + 0xe]
mov ebp, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
lea edx, [r15 + 0x1f]
jmp 0x14012d2e1
mov rcx, rdi
call fcn.140129d40
mov r15, rax
test rax, rax
jne 0x14012d2ed
lea r9d, [rax + 0xe]
mov ebp, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
lea edx, [r15 + 0x20]
lea rax, [0x140048440]
jmp 0x14012d58d
or rsi, 0xffffffffffffffff
mov rdi, rsi
inc rdi
cmp word [r15 + rdi*2], bx
jne 0x14012d2f4
add edi, 2
lea ecx, [rdi + rdi]
call fcn.1401296bc
mov r14, rax
test rax, rax
jne 0x14012d34b
lea r9d, [rax + 0xe]
mov ebp, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
lea edx, [r14 + 0x21]
lea rax, [0x140048428]
jmp 0x14012d58d
mov r8d, edi
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumePathNameW]
test eax, eax
jne 0x14012d3aa
mov ebp, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x22
mov r9d, eax
lea rax, [0x1400484a0]
mov rcx, qword [0x140154018]
jmp 0x14012d58d
mov rax, rsi
inc rax
cmp word [r14 + rax*2], bx
jne 0x14012d3ad
cmp word [r14 + rax*2 - 2], 0x5c
je 0x14012d448
lea r8, [0x14000ca50]
mov rdx, rdi
mov rcx, r14
call fcn.14007ece8
test eax, eax
jns 0x14012d448
mov ecx, eax
mov ebp, ebx
call fcn.140129a10
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
lea r8, [0x14000ca50]
mov rdx, rdi
mov rcx, r14
call fcn.14007ece8
mov rcx, qword [0x140154018]
lea r8, [0x140048598]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea rax, [0x140048460]
mov edx, 0x23
mov qword [rsp + 0x20], rax
call fcn.14011834c
jmp 0x14012d5b3
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14012d4a5
mov ebp, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x24
mov r9d, eax
lea rax, [0x140048510]
jmp 0x14012d39e
lea rcx, [rsp + 0x40]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], bx
jne 0x14012d4ad
cmp word [rsp + rax*2 + 0x3e], 0x5c
jne 0x14012d4d3
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x14012d542
mov word [rsp + rax + 0x40], bx
mov rax, rsi
inc rax
cmp word [r14 + rax*2], bx
jne 0x14012d4d6
cmp word [r14 + rax*2 - 2], 0x5c
jne 0x14012d4fc
mov rax, rsi
inc rax
cmp word [r14 + rax*2], bx
jne 0x14012d4ec
mov word [r14 + rax*2 - 2], bx
lea rcx, [rsp + 0x40]
call fcn.140129d40
mov r12, rax
test rax, rax
jne 0x14012d548
lea r9d, [rax + 0xe]
mov ebp, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
lea edx, [r12 + 0x25]
lea rax, [0x1400484f8]
jmp 0x14012d58d
call fcn.14005e088
int3
inc rsi
cmp word [r14 + rsi*2], bx
jne 0x14012d548
lea rcx, [r15 + rsi*2]
call fcn.140129d40
test rax, rax
jne 0x14012d5a4
lea r9d, [rax + 0xe]
mov ebp, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x14012d5b3
test byte [rcx + 0x1c], 8
je 0x14012d5b3
lea edx, [r9 + 0x18]
lea rax, [0x140048580]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140048598]
mov qword [rsp + 0x20], rax
call fcn.14011834c
jmp 0x14012d5b3
mov qword [r13], rax
mov rax, qword [rsp + 0x30]
mov qword [rax], r12
mov r12, rbx
mov rcx, r12
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
lea rcx, [0x1400483e0]
call fcn.1401299d0
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, ebp
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14005dc70
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret