Function at 0x14002dd20
Capabilities:
Get disk size
Reference wmi statements

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov dword [rsp + 0x44], ecx
mov rbx, r8
lea rcx, str.LocalDiskInfoEnum_Start
mov qword [rsp + 0x48], rdx
mov r14, rdx
call fcn.1400408b0
lea r8, str.SW_HDD_03
mov edx, 0x10
mov rcx, rbx
call fcn.140005150
xor eax, eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x20], rax
lea ecx, [rax + 0x48]
call fcn.14005da5c
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
mov rcx, rax
call fcn.14005b210
lea rdx, str.ROOTcimv2
mov qword [rsp + 0x78], rax
mov rcx, rax
mov rbx, rax
call fcn.14005b2e0
lea rdx, str.SELECT__FROM_Win32_DiskDrive
mov rcx, rbx
call fcn.14005b4b0
mov r13, qword [rbp - 0x28]
xor esi, esi
mov r15d, esi
mov dword [rsp + 0x30], esi
cmp dword [rbx + 0x20], esi
jle 0x14002e2ea
mov r12d, esi
mov qword [rsp + 0x38], rsi
nop dword [rax + rax]
lea r8, [rsp + 0x40]
mov edx, r15d
lea rcx, [rsp + 0x78]
call fcn.14005bf80
cmp dword [rsp + 0x40], 1
jne 0x14002e2c5
mov rbx, qword [rsp + 0x78]
lea r9, [rbp - 0x70]
mov rcx, rbx
mov qword [rbp - 0x60], rsi
lea r8, str.Model
mov qword [rbp - 0x58], 7
mov edx, r15d
mov word [rbp - 0x70], si
call fcn.14005b860
test r15d, r15d
js 0x14002dec0
cmp r15d, dword [rbx + 0x20]
jge 0x14002dec0
mov rax, qword [rbx + 0x18]
cmp qword [r12 + rax], 0
je 0x14002dec0
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx + 0x18]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
lea rdx, str.Size
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rcx, qword [r12 + rax]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x14002dec0
cmp word [rsp + 0x60], 2
jb 0x14002dec0
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call fcn.140072824
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rsp + 0x58]
lea r8, [rbp - 0x70]
shr rax, 0x1e
lea rcx, [rbp + 0x50]
cmp qword [rbp - 0x58], 8
mov edx, 0x100
mov qword [rsp + 0x58], rax
cmovae r8, qword [rbp - 0x70]
mov dword [rbp + 0x494], eax
call fcn.140005150
lea r9, [rbp + 8]
mov qword [rbp + 0x18], rsi
lea r8, str.PNPDeviceID
mov qword [rbp + 0x20], 7
mov edx, r15d
mov word [rbp + 8], si
mov rcx, rbx
call fcn.14005b860
cmp qword [rbp + 0x20], 8
lea r8, [rbp + 8]
mov edx, 0x100
lea rcx, [rbp + 0x250]
cmovae r8, qword [rbp + 8]
call fcn.140005150
lea r9, [rbp - 0x18]
mov qword [rbp - 8], rsi
lea r8, str.DeviceID
mov qword [rbp], 7
mov edx, r15d
mov word [rbp - 0x18], si
mov rcx, rbx
call fcn.14005b860
cmp qword [rbp], 8
lea r8, [rbp - 0x18]
mov edx, 0x100
lea rcx, [rbp + 0x450]
cmovae r8, qword [rbp - 0x18]
call fcn.140005150
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 8]
call fcn.14002cfb0
lea r8, [rbp - 0x50]
mov dword [rbp + 0x490], eax
mov edx, r15d
mov qword [rbp - 0x40], rsi
lea rcx, [rsp + 0x78]
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], si
call fcn.14005c2a0
cmp qword [rbp - 0x40], 0
mov rbx, rsi
mov qword [rbp + 0x40], rbx
mov r14, rsi
mov qword [rbp + 0x38], rsi
mov rdi, rsi
mov qword [rbp + 0x48], rsi
jbe 0x14002e08c
xor edx, edx
nop dword [rax + rax]
xor eax, eax
lea r8, [rbp + 0x30]
cmp qword [rbp - 0x38], 8
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x50]
cmovae rax, qword [rbp - 0x50]
movzx eax, word [rax + rdx*2]
lea rdx, [rbp - 0x50]
cmovae rdx, qword [rbp - 0x50]
xor r9d, r9d
mov word [rbp - 0x80], ax
lea eax, [rsi + 1]
movzx eax, word [rdx + rax*2]
lea rdx, [rbp + 0x28]
mov word [rbp - 0x7e], ax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14002e079
mov rax, qword [rbp + 0x28]
shr rax, 0x1e
mov qword [rbp + 0x28], rax
mov dword [rbp - 0x74], eax
mov rax, qword [rbp + 0x30]
shr rax, 0x1e
mov qword [rbp + 0x30], rax
mov dword [rbp - 0x78], eax
cmp rdi, rbx
je 0x14002e061
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rbx], xmm0
add rbx, 0x10
mov qword [rbp + 0x40], rbx
jmp 0x14002e079
lea r8, [rbp - 0x80]
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.140037ed0
mov rdi, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x40]
add esi, 3
mov edx, esi
cmp rdx, qword [rbp - 0x40]
jb 0x14002dfe0
mov r14, qword [rbp + 0x38]
sub rbx, r14
sar rbx, 4
cmp ebx, 0x10
jle 0x14002e0a4
mov dword [rbp + 0x498], SafeArrayPutElement
jmp 0x14002e0ae
mov dword [rbp + 0x498], ebx
test ebx, ebx
jle 0x14002e114
mov rax, r14
lea r15, [rbp + 0x498]
neg rax
lea r12, [rbp + 0x49c]
add r15, rax
lea rbx, [r14 + 0xc]
add r12, rax
xor esi, esi
nop
mov eax, dword [rbx - 4]
lea rcx, [rbp + 0x49c]
mov dword [r15 + rbx], eax
mov edx, 3
mov eax, dword [rbx]
mov dword [r12 + rbx], eax
movsxd rax, esi
shl rax, 4
add rcx, rax
lea r8, [rax + r14]
call fcn.140005150
inc esi
lea rbx, [rbx + 0x10]
cmp esi, dword [rbp + 0x498]
jl 0x14002e0d0
mov r15d, dword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
cmp qword [rsp + 0x50], r13
je 0x14002e13a
mov rcx, r13
lea rdx, [rbp + 0x50]
mov r8d, 0x54c
call fcn.140062a50
add r13, 0x54c
mov qword [rbp - 0x28], r13
jmp 0x14002e157
lea r8, [rbp + 0x50]
mov rdx, r13
lea rcx, [rbp - 0x30]
call fcn.140037cb0
mov rax, qword [rbp - 0x20]
mov r13, qword [rbp - 0x28]
mov qword [rsp + 0x50], rax
test r14, r14
je 0x14002e193
sub rdi, r14
mov rax, r14
and rdi, 0xfffffffffffffff0
cmp rdi, 0x1000
jb 0x14002e188
mov r14, qword [r14 - 8]
add rdi, 0x27
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e650
mov rdx, rdi
mov rcx, r14
call fcn.14005da54
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14002e1d3
mov rcx, qword [rbp - 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e1ce
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e650
call fcn.14005da54
mov rdx, qword [rbp]
xor esi, esi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], si
cmp rdx, 8
jb 0x14002e225
mov rcx, qword [rbp - 0x18]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e220
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e650
call fcn.14005da54
mov rdx, qword [rbp + 0x20]
mov qword [rbp - 8], rsi
mov qword [rbp], 7
mov word [rbp - 0x18], si
cmp rdx, 8
jb 0x14002e275
mov rcx, qword [rbp + 8]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e270
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e650
call fcn.14005da54
mov rdx, qword [rbp - 0x58]
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], 7
mov word [rbp + 8], si
cmp rdx, 8
jb 0x14002e2c5
mov rcx, qword [rbp - 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e2c0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e650
call fcn.14005da54
mov rbx, qword [rsp + 0x78]
inc r15d
add r12, 8
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x38], r12
cmp r15d, dword [rbx + 0x20]
jl 0x14002de10
mov r14, qword [rsp + 0x48]
mov rsi, qword [rbp - 0x30]
movabs r15, 0x60a928060a928061
sub r13, rsi
mov rax, r15
imul r13
mov rdi, rdx
sar rdi, 9
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov qword [rsp + 0x38], rdi
cmp dword [rsp + 0x44], edi
jl 0x14002e5c5
xor eax, eax
mov r15d, eax
test rdi, rdi
je 0x14002e5a8
nop
imul r13, rax, 0x54c
mov edx, 0x100
add r14, r13
mov rcx, r14
lea rdi, [rsi + r13]
mov r8, rdi
call fcn.140005150
lea r8, [rdi + 0x200]
mov edx, 0x100
lea rcx, [r14 + 0x200]
call fcn.140005150
lea r8, [rdi + 0x400]
mov edx, 0x100
lea rcx, [r14 + 0x400]
call fcn.140005150
mov eax, dword [rdi + 0x444]
mov ecx, 2
mov dword [r14 + 0x444], eax
mov eax, dword [rdi + 0x440]
mov dword [r14 + 0x440], eax
mov eax, dword [rdi + 0x448]
add rdi, 0x44c
mov dword [r14 + 0x448], eax
lea rax, [r14 + 0x44c]
nop dword [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rdi]
lea rdi, [rdi + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rdi - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rdi - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rdi - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rdi - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rdi - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rdi - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rdi - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x14002e3c0
mov r8, r14
lea rcx, str.LocalDiskInfo__u__Model:__s
mov edx, r15d
call fcn.1400408b0
lea r8, [r14 + 0x200]
mov edx, r15d
lea rcx, str.LocalDiskInfo__u__PNPDeviceID:__s
call fcn.1400408b0
lea r8, [r14 + 0x400]
mov edx, r15d
lea rcx, str.LocalDiskInfo__u__DiskID:__s
call fcn.1400408b0
mov r8d, dword [r14 + 0x444]
lea rcx, str.LocalDiskInfo__u__TotalSize:__uG
mov edx, r15d
call fcn.1400408b0
mov r8d, dword [r14 + 0x440]
lea rcx, str.LocalDiskInfo__u__Type:__d
mov edx, r15d
call fcn.1400408b0
xor ecx, ecx
mov eax, 7
mov edi, ecx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rax
mov word [rbp - 0x70], cx
cmp dword [r14 + 0x448], ecx
jle 0x14002e52e
mov r12, qword [rsp + 0x48]
lea rsi, [r14 + 0x454]
nop dword [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x50]
mov r8d, 0x200
call fcn.140062890
movsxd rax, edi
lea r9, [r12 + 0x44c]
shl rax, 4
lea r8, str._s_Total__uG__Free__uG_
add rax, r13
lea rcx, [rbp + 0x50]
add r9, rax
mov edx, 0x100
mov eax, dword [rsi + 4]
mov dword [rsp + 0x28], eax
mov eax, dword [rsi]
mov dword [rsp + 0x20], eax
call fcn.140004aa0
lea rax, [rbp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14002e503
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140002d30
inc edi
add rsi, 0x10
cmp edi, dword [r14 + 0x448]
jl 0x14002e4b0
mov rax, qword [rbp - 0x58]
cmp rax, 8
lea r8, [rbp - 0x70]
mov edx, r15d
lea rcx, str.LocalDiskInfo__u__LogicalDisk:__s
cmovae r8, qword [rbp - 0x70]
call fcn.1400408b0
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14002e58a
mov rcx, qword [rbp - 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e585
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e656
call fcn.14005da54
mov rdi, qword [rsp + 0x38]
inc r15d
mov rsi, qword [rbp - 0x30]
mov eax, r15d
cmp rax, rdi
jae 0x14002e5a8
mov r14, qword [rsp + 0x48]
jmp 0x14002e330
lea rdx, str.SW_HDD_03
lea rcx, str.LocalDiskInfoEnum_End_SymptomCode:_s_r_n
call fcn.1400408b0
movabs r15, 0x60a928060a928061
mov rcx, rbx
call fcn.14005be60
test rsi, rsi
je 0x14002e61e
mov rcx, qword [rsp + 0x50]
mov rax, r15
sub rcx, rsi
imul rcx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, rsi
imul rdx, rdx, 0x54c
cmp rdx, 0x1000
jb 0x14002e616
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e64a
mov rcx, rsi
call fcn.14005da54
mov eax, edi
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.14005da30
mov rbx, qword [rsp + 0x6f0]
add rsp, 0x6b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140064eec
int3
call fcn.140064eec
int3
call fcn.140064eec
int3