Function at 0x1401f079c
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
xor r15d, r15d
mov qword [rcx + 0x10], r15
lea r14d, [r15 + 7]
mov qword [rcx + 0x18], r14
mov word [rcx], r15w
lea rdx, [0x140344690]
call fcn.14004d5c4
nop
lea rsi, [rdi + 0x20]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r14
mov word [rsi], r15w
lea rdx, [0x140344690]
mov rcx, rsi
call fcn.14004d5c4
nop
mov byte [rdi + 0x40], r15b
lea r14, [rdi + 0x44]
mov dword [r14], r15d
cmp qword [rbx + 0x10], r15
je 0x1401f0a72
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.14004cf4c
nop
lea rax, [rbp - 0x80]
mov r8, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
cmovae rax, r8
mov rcx, qword [rbp - 0x70]
lea r13d, [r15 + 0x5c]
cmp word [rax + rcx*2 - 2], r13w
je 0x1401f08af
lea rax, [rbp - 0x80]
cmp rdx, 8
cmovae rax, r8
cmp word [rax + rcx*2 - 2], 0x2f
je 0x1401f08af
cmp rcx, rdx
jae 0x1401f089b
lea rax, [rcx + 1]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x80]
cmp rdx, 8
cmovae rax, r8
mov dword [rax + rcx*2], r13d
jmp 0x1401f08a7
mov r9d, r13d
lea rcx, [rbp - 0x80]
call fcn.14007f438
mov r8, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x80]
cmp rdx, 8
cmovae rcx, r8
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov byte [rdi + 0x40], al
mov edx, 0x105
lea rcx, [rsp + 0x48]
call fcn.1401776f4
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
lea r9, [rsp + 0x40]
mov r14d, 0x104
mov r8d, r14d
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1401f097c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
jne 0x1401f0a5d
mov ebx, dword [rsp + 0x40]
inc ebx
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401800fc
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
lea r8d, [rbx - 1]
lea r9, [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x1401f0a5d
mov rbx, qword [rsp + 0x48]
jmp 0x1401f0a2e
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r15w
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.14004d5c4
nop
lea rax, [rbp - 0x60]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x48]
cmp r8, 8
cmovae rax, rdx
mov rcx, qword [rbp - 0x50]
cmp word [rax + rcx*2 - 2], r13w
jne 0x1401f09e4
dec rcx
mov qword [rbp - 0x50], rcx
lea rax, [rbp - 0x60]
cmp r8, 8
cmovae rax, rdx
mov word [rax + rcx*2], r15w
mov r8, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
cmp r8, 8
cmovae rcx, rdx
mov r8d, r14d
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x1401f0a3a
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r15w
jne 0x1401f0a05
inc rcx
mov edx, dword [rsp + 0x40]
cmp rdx, rcx
jb 0x1401f0a53
lea rbx, [rbx + rcx*2]
sub edx, ecx
mov dword [rsp + 0x40], edx
lea rcx, [rbp - 0x60]
call fcn.14004e0f0
cmp word [rbx], r15w
jne 0x1401f0986
jmp 0x1401f0a5d
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.140064f70
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.14004d5c4
nop
lea rcx, [rbp - 0x60]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0x48]
call fcn.14008903c
nop
lea rcx, [rbp - 0x80]
call fcn.14004e0f0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1402dfdb0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret