Function at 0x140031a40
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x3b8]
sub rsp, 0x4a0
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rbp + 0x390], rax
and qword [rbp + 0x158], 0
mov r12d, 0x104
mov dil, r8b
mov qword [rbp + 0x168], r12
mov sil, dl
mov r14, rcx
mov ebx, 1
lea rcx, [rsp + 0x50]
mov r8d, r12d
mov byte [rbp + 0x160], bl
xor edx, edx
call sub.msvcrt.dll_memset
and qword [rbp + 0x378], 0
lea rcx, [rbp + 0x170]
mov r8d, r12d
mov byte [rbp + 0x380], bl
xor edx, edx
mov qword [rbp + 0x388], r12
call sub.msvcrt.dll_memset
mov al, byte [rbp + 0x160]
lea rcx, [rsp + 0x50]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, r12
call fcn.14000ca40
test eax, eax
js 0x140031c75
mov al, byte [rbp + 0x380]
lea rcx, [rbp + 0x170]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, r12
call fcn.14000ca40
test eax, eax
js 0x140031c75
mov rax, qword [rbp + 0x378]
lea rdx, [rbp + 0x170]
mov r8d, dword [rbp + 0x388]
test rax, rax
mov rcx, r14
cmovne rdx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
je 0x140031c75
mov rax, qword [rbp + 0x378]
lea rcx, [rbp + 0x170]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
test eax, eax
je 0x140031c73
cmp eax, 4
je 0x140031c73
mov rax, qword [rbp + 0x158]
lea rdx, [rsp + 0x50]
test rax, rax
lea rcx, [rbp + 0x170]
cmovne rdx, rax
mov rax, qword [rbp + 0x378]
test rax, rax
cmovne rcx, rax
mov eax, dword [rbp + 0x168]
mov dword [rsp + 0x38], eax
xor r9d, r9d
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
je 0x140031c75
mov rax, qword [rbp + 0x158]
lea rcx, [rsp + 0x50]
test rax, rax
lea rdx, str.NTFS
cmovne rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140031c75
test dil, dil
je 0x140031c44
mov rax, qword [rbp + 0x158]
lea rcx, [rsp + 0x50]
test rax, rax
lea rdx, str.REFS
cmovne rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140031c75
test sil, sil
je 0x140031c73
mov rax, qword [rbp + 0x158]
lea rcx, [rsp + 0x50]
test rax, rax
lea rdx, str.CSVFS
cmovne rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140031c75
xor ebx, ebx
mov rcx, qword [rbp + 0x378]
and qword [rbp + 0x378], 0
test rcx, rcx
je 0x140031c95
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x158]
and qword [rbp + 0x158], 0
test rcx, rcx
je 0x140031cb5
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140018f80
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret