Function at 0x140024c5c
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 [0x14006c080]
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.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
lea r8d, [rbx + 0x64]
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, r12d
lea rcx, [rbp + 0x3c0]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, r12d
lea rcx, [rbp + 0x7e0]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, r12d
lea rcx, [rbp - 0x60]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, r12d
lea rcx, [rbp + 0x9f0]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
test rdi, rdi
je 0x140024ef8
test rsi, rsi
je 0x140024ef8
mov r15d, 0x104
lea rcx, [rbp - 0x60]
mov edx, r15d
mov r8, rdi
call fcn.140003908
test eax, eax
js 0x140024f09
mov r8d, r12d
lea rcx, [rbp + 0x1b0]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, r15d
lea rdx, [rbp + 0x5d0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
je 0x140024f09
or rdi, 0xffffffffffffffff
lea r8, [rbp - 0x60]
mov rdx, r15
lea rcx, [rbp + 0x3c0]
call fcn.140003908
test eax, eax
js 0x140024f09
lea r8, [rbp + 0x9f0]
mov rdx, r15
lea rcx, [rbp + 0x7e0]
call fcn.140003908
test eax, eax
js 0x140024f09
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x3c0]
call fcn.140024b64
test eax, eax
je 0x140024e60
mov r8d, r15d
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x3c0]
call fcn.140024be4
test eax, eax
je 0x140024e60
lea rcx, [rbp + 0x7e0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x140024de0
lea rcx, [rbp + 0x9f0]
mov rdx, r15
test rax, rax
je 0x140024e19
lea rax, [rbp + 0x7e0]
lea r9, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
call fcn.140009ce4
jmp 0x140024e25
lea r8, [rbp + 0x1b0]
call fcn.140003908
test eax, eax
js 0x140024f09
mov r8, r12
lea rcx, [rbp + 0x1b0]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, r15d
lea rdx, [rbp + 0x5d0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140024d67
mov r8d, r15d
lea rdx, [rbp + 0x5d0]
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
je 0x140024f09
mov r8d, 0x32
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x140024f09
test r14, r14
je 0x140024ec2
lea r8, [rbp + 0x7e0]
mov rdx, r15
mov rcx, r14
call fcn.140003908
test eax, eax
js 0x140024f09
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, rsi
call fcn.140003908
test eax, eax
js 0x140024f09
inc rdi
cmp word [rsi + rdi*2], bx
jne 0x140024ed6
test edi, edi
je 0x140024ef1
lea eax, [rdi - 1]
cmp word [rsi + rax*2], 0x5c
jne 0x140024ef1
mov word [rsi + rax*2], bx
mov ebx, 1
jmp 0x140024f09
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0xc00]
xor rcx, rsp
call fcn.1400582e0
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