Function at 0x140001530
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400890d8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
mov qword [rsp + 0x68], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov esi, 1
mov dword [rsp + 0x40], esi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.14003ee30
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x103
ja 0x1400017dd
lea rbx, [rsp + 0x70]
cmp word [rsp + 0x70], r15w
je 0x1400017dd
lea r12, [0x140079f10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x140001683
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x140001600
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14001fa30
or esi, 2
mov dword [rsp + 0x40], esi
cmp qword [rsp + 0x58], 0
je 0x140001683
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400016fb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor dil, dil
test sil, 2
je 0x1400016d5
and esi, 0xfffffffd
mov dword [rsp + 0x40], esi
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400016d5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000180b
call fcn.14003c8e0
test dil, dil
je 0x1400017b6
mov rax, r15
movzx ecx, word [rbx + rax*2]
inc rax
cmp cx, word [r12 + rax*2 - 2]
jne 0x14000170c
cmp rax, 4
jne 0x1400016e1
jmp 0x1400017b6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
jmp 0x140001686
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140001725
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14001fa30
nop
mov rdx, qword [r14 + 8]
cmp rdx, qword [r14 + 0x10]
je 0x14000176b
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x48], r15w
add qword [r14 + 8], 0x20
jmp 0x14000177d
lea r8, [rsp + 0x48]
mov rcx, r14
call fcn.14002a540
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400017b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001811
call fcn.14003c8e0
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x1400017c0
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x1400015d3
mov rax, r14
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14003c8c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14004dd00
int3
call fcn.14004dd00
int3