Function at 0x14002b470
Capabilities:
Get disk information
Get disk information via ioctl
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x3a0
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x150], xmm0
movdqa xmm1, xmmword [0x1402d3570]
movdqu xmmword [rsp + 0x160], xmm1
mov word [rsp + 0x150], r14w
mov byte [rsp + 0x148], r14b
lea rdx, str.GetDriveInformation
lea rcx, [rsp + 0x150]
call fcn.140018440
nop
call fcn.1400210a0
cmp dword [rax + 8], 4
jl 0x14002b4f5
lea rcx, [rsp + 0x148]
call fcn.1400162a0
mov rax, qword [rdi]
cmp rax, qword [rdi + 8]
je 0x14002b502
mov qword [rdi + 8], rax
mov qword [rsi], r14
mov ecx, 0x322
call fcn.140003e80
mov rbx, rax
mov rdx, rax
mov ecx, 0x190
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp r14w, word [rbx]
je 0x14002b778
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x14002b75f
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14002b75f
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x188]
call fcn.140225130
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x178], rcx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x170], rax
sub rcx, rax
mov qword [rsp + 0x180], rcx
mov rdx, rbx
lea rcx, [rsp + 0x98]
call fcn.14000953c
nop
mov rax, qword [rsp + 0xa8]
cmp rax, 0x100
jbe 0x14002b5ee
cmp rax, 0xff
jb 0x14002b7a9
mov qword [rsp + 0xa8], 0xff
lea rax, [rsp + 0x98]
cmp qword [rsp + 0xb0], 8
cmovae rax, qword [rsp + 0x98]
mov word [rax + 0x1fe], r14w
lea rdx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 8
cmovae rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rax, qword [rsp + 0x48]
add qword [rsi], rax
mov rcx, rbx
call fcn.14002b7c0
cmp rax, 0xffffffffffffffff
je 0x14002b688
xor ecx, ecx
mov qword [rsp + 0x118], rcx
mov dword [rsp + 0x120], ecx
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rcx, [rsp + 0x118]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14002b688
mov eax, dword [rsp + 0x11c]
mov qword [rsp + 0x388], rax
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14002b70a
lea rax, [rsp + 0x170]
mov ecx, 4
nop
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rcx, 1
jne 0x14002b6a0
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
add qword [rdi + 8], 0x220
jmp 0x14002b71b
lea r8, [rsp + 0x170]
mov rcx, rdi
call fcn.14002bf50
nop
mov rdx, qword [rsp + 0xb0]
cmp rdx, 8
jb 0x14002b75f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b75a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b7af
call fcn.140004144
cmp r14w, word [rbx]
je 0x14002b76f
add rbx, 2
cmp r14w, word [rbx]
jne 0x14002b765
add rbx, 2
jmp 0x14002b520
lea rcx, [rsp + 0x148]
call fcn.140017c90
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1402202b0
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x3a0
pop r14
pop rdi
pop rsi
ret
call fcn.140015340
nop
call fcn.1402295a4
int3