Function at 0x1400a4040
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
movsxd rbx, eax
mov r15, rbx
lea rdi, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rax
mov ecx, ebx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1400a42a3
mov qword [rsp + 0x2b8], rbp
mov rbx, r14
movaps xmmword [rsp + 0x280], xmm6
mov rbp, r14
movsd xmm6, qword [0x140249088]
nop word [rax + rax]
cmp word [rbx], 0x5c
jne 0x1400a4276
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x224
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rdi, [rsp + 0x5c]
mov r8, rbx
mov ecx, 0x208
sub r8, rbp
mov rdx, rbp
sar r8, 1
rep stosb byte [rdi], al
lea r8, [r8*2 + 2]
lea rcx, [rsp + 0x5c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, 1
call qword [sym.imp.WS2_32.dll_htonl]
lea rcx, [rsp + 0x5c]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x44], eax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x3c]
lea r8, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [rsp + 0x30]
xorps xmm2, xmm2
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2sd xmm2, rax
mov eax, dword [rsp + 0x38]
cvtsi2sd xmm0, rax
mov eax, dword [rsp + 0x34]
cvtsi2sd xmm1, rax
mulsd xmm2, xmm0
mulsd xmm2, xmm1
mulsd xmm2, xmm6
cvttsd2si rcx, xmm2
call qword [sym.imp.WS2_32.dll_htonl]
xorps xmm2, xmm2
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x30]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2sd xmm2, rax
mov eax, dword [rsp + 0x3c]
cvtsi2sd xmm0, rax
mov eax, dword [rsp + 0x34]
cvtsi2sd xmm1, rax
mulsd xmm2, xmm0
mulsd xmm2, xmm1
mulsd xmm2, xmm6
cvttsd2si rcx, xmm2
call qword [sym.imp.WS2_32.dll_htonl]
mov rdx, qword [rsi + 8]
mov dword [rsp + 0x58], eax
cmp rdx, qword [rsi + 0x10]
je 0x1400a4265
lea rax, [rsp + 0x40]
mov ecx, 4
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x1400a41f4
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov eax, dword [rax + 0x20]
mov dword [rdx + 0x20], eax
add qword [rsi + 8], 0x224
jmp 0x1400a4272
lea r8, [rsp + 0x40]
mov rcx, rsi
call fcn.1400a46a0
lea rbp, [rbx + 4]
add rbx, 2
mov rcx, rbx
sub rcx, r14
sar rcx, 1
cmp rcx, r15
jl 0x1400a40d0
movaps xmm6, xmmword [rsp + 0x280]
mov eax, 1
mov rbp, qword [rsp + 0x2b8]
jmp 0x1400a42a5
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401d0310
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret