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

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x3c0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x3f0], rbx
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
lea rcx, [rsp + 0x170]
call fcn.140009e28
nop
mov byte [rsp + 0x168], r14b
lea r8d, [r14 + 0x13]
lea rdx, str.GetDriveInformation
lea rcx, [rsp + 0x170]
call fcn.140009a80
nop
call fcn.1400224d0
cmp dword [rax + 8], 4
jl 0x140033d9c
mov byte [rsp + 0x168], 1
lea rcx, [rsp + 0x168]
call fcn.140018570
mov rax, qword [rdi]
mov qword [rdi + 8], rax
mov qword [rsi], r14
mov ecx, 0x322
call fcn.14008ae18
mov rbx, rax
mov rdx, rax
mov ecx, 0x190
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov qword [rsp + 0x50], rbx
cmp r14w, word [rbx]
je 0x140033ff7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x140033fd8
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140033fd8
xor edx, edx
mov r8d, 0x220
lea rcx, [rsp + 0x190]
call fcn.14022ebc0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x198], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x190], rax
sub rcx, rax
mov qword [rsp + 0x1a0], rcx
mov rdx, rbx
lea rcx, [rsp + 0xb8]
call fcn.14000983c
nop
mov rax, qword [rsp + 0xc8]
cmp rax, 0x100
jbe 0x140033e94
cmp rax, 0xff
jb 0x140034028
mov qword [rsp + 0xc8], 0xff
lea rax, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rax, qword [rsp + 0xb8]
mov word [rax + 0x1fe], r14w
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rax, qword [rsp + 0x60]
add qword [rsi], rax
mov rcx, rbx
call fcn.140034030
cmp rax, 0xffffffffffffffff
je 0x140033f2e
xor ecx, ecx
mov qword [rsp + 0xf8], rcx
mov dword [rsp + 0x100], ecx
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rcx, [rsp + 0xf8]
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 0x140033f2e
mov eax, dword [rsp + 0xfc]
mov qword [rsp + 0x3a8], rax
mov rdx, qword [rdi + 8]
cmp qword [rdi + 0x10], rdx
je 0x140033fba
lea rax, [rsp + 0x190]
mov ecx, 4
nop dword [rax]
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 0x140033f50
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
add qword [rdi + 8], 0x220
jmp 0x140033fcb
lea r8, [rsp + 0x190]
mov rcx, rdi
call fcn.140034440
nop
lea rcx, [rsp + 0xb8]
call fcn.140009824
cmp r14w, word [rbx]
je 0x140033fe9
add rbx, 2
mov qword [rsp + 0x50], rbx
jmp 0x140033fd8
add rbx, 2
mov qword [rsp + 0x50], rbx
jmp 0x140033dc6
lea rcx, [rsp + 0x168]
call fcn.140019fe0
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140229da0
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3c0
pop r14
pop rdi
pop rsi
ret
call fcn.140017300
nop
int3