Function at 0x1401df480
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 [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
lea rdx, [0x14030cae0]
call fcn.14004a9e4
nop
lea rdx, [0x14030cae0]
lea rcx, [rdi + 0x20]
call fcn.14004a9e4
nop
xor r15d, r15d
mov byte [rdi + 0x40], r15b
lea r14, [rdi + 0x44]
mov dword [r14], r15d
cmp qword [rbx + 0x10], r15
je 0x1401df727
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.14004a36c
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 0x1401df574
lea rax, [rbp - 0x80]
cmp rdx, 8
cmovae rax, r8
cmp word [rax + rcx*2 - 2], 0x2f
je 0x1401df574
cmp rcx, rdx
jae 0x1401df560
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 0x1401df56c
mov r9d, r13d
lea rcx, [rbp - 0x80]
call fcn.14007bbe8
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.14016b760
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 0x1401df641
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
jne 0x1401df712
mov ebx, dword [rsp + 0x40]
inc ebx
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140174040
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 0x1401df712
mov rbx, qword [rsp + 0x48]
jmp 0x1401df6e2
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.14004a9e4
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 0x1401df698
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 0x1401df6ee
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r15w
jne 0x1401df6b9
inc rcx
mov edx, dword [rsp + 0x40]
cmp rdx, rcx
jb 0x1401df708
lea rbx, [rbx + rcx*2]
sub edx, ecx
mov dword [rsp + 0x40], edx
lea rcx, [rbp - 0x60]
call fcn.14004b500
cmp word [rbx], r15w
jne 0x1401df64b
jmp 0x1401df712
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.140061d90
lea rdx, [rbp - 0x40]
lea rcx, [rdi + 0x20]
call fcn.14007cf28
nop
lea rcx, [rbp - 0x60]
call fcn.14004b500
nop
lea rcx, [rsp + 0x48]
call fcn.140084ac8
nop
lea rcx, [rbp - 0x80]
call fcn.14004b500
nop
mov rax, rdi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1402ae860
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