Function at 0x14004fd90
Capabilities:
Reference wmi statements

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x790
mov rax, qword [0x14030c918]
xor rax, rsp
mov qword [rsp + 0x780], rax
mov rdi, rdx
cmp byte [rcx + 0x28], 0
jne 0x14004fdc8
xor al, al
jmp 0x14005019c
lea r8, [rsp + 0x60]
lea rdx, str.SELECT__FROM_Win32_DiskDrive
call fcn.140052be0
test al, al
je 0x14005019a
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x140]
lea edx, [r15 - 1]
mov r8d, MsiSourceListClearAllW
call qword [rax + 0x20]
test eax, eax
js 0x14005019a
mov r14d, r15d
nop dword [rax + rax]
cmp r14d, dword [rsp + 0x30]
jae 0x14005019a
lea rcx, [rsp + 0x80]
call fcn.1400501e0
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov eax, r14d
lea rsi, [rsp + 0x140]
lea rsi, [rsi + rax*8]
lea r9, [rsp + 0x38]
lea r8, str.Model
mov rdx, qword [rsi]
call fcn.140052450
test al, al
je 0x14004ff92
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.1400540c0
nop
mov rax, qword [rax]
test rax, rax
je 0x14004fe8d
mov rdx, qword [rax]
jmp 0x14004fe90
mov rdx, r15
lea rcx, [rsp + 0x100]
call fcn.140009744
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14004feaa
mov rdx, qword [rax]
test rdx, rdx
jne 0x14004feb4
mov eax, r15d
jmp 0x14004feca
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004fec0
mov r8d, eax
lea rcx, [rsp + 0x88]
call fcn.140002aa8
mov rdx, qword [rsp + 0x118]
cmp rdx, 8
jb 0x14004ff22
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ff1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400501c5
call fcn.14000410c
mov qword [rsp + 0x110], r15
mov qword [rsp + 0x118], 7
mov word [rsp + 0x100], r15w
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14004ff92
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14004ff8d
test rbx, rbx
je 0x14004ff8d
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004ff6e
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14004ff80
call fcn.140075f74
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.14000410c
mov qword [rsp + 0x50], r15
lea r9, [rsp + 0x38]
lea r8, str.Name
mov rdx, qword [rsi]
call fcn.140052450
test al, al
je 0x1400500d2
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1400540c0
nop
mov rax, qword [rax]
test rax, rax
je 0x14004ffcb
mov rdx, qword [rax]
jmp 0x14004ffce
mov rdx, r15
lea rcx, [rsp + 0x120]
call fcn.140009744
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14004ffe8
mov rdx, qword [rax]
test rdx, rdx
jne 0x14004fff2
mov eax, r15d
jmp 0x14005000a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140050000
mov r8d, eax
lea rcx, [rsp + 0xb8]
call fcn.140002aa8
mov rdx, qword [rsp + 0x138]
cmp rdx, 8
jb 0x140050062
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005005d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400501cb
call fcn.14000410c
mov qword [rsp + 0x130], r15
mov qword [rsp + 0x138], 7
mov word [rsp + 0x120], r15w
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400500d2
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400500cd
test rbx, rbx
je 0x1400500cd
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400500ae
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400500c0
call fcn.140075f74
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.14000410c
mov qword [rsp + 0x58], r15
lea r9, [rsp + 0x38]
lea r8, str.Index
mov rdx, qword [rsi]
call fcn.140052450
test al, al
je 0x14005013b
cmp word [rsp + 0x38], 0x17
jne 0x1400500f8
mov ebx, dword [rsp + 0x40]
jmp 0x140050134
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 0x17
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x1400501d1
mov ebx, dword [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [rsp + 0xc4], ebx
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x140050165
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140053c80
add qword [rdi + 8], 0x78
jmp 0x140050179
lea r8, [rsp + 0x80]
mov rdx, rax
mov rcx, rdi
call fcn.140053a30
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rsp + 0x80]
call fcn.14002bf80
inc r14d
jmp 0x14004fe20
mov al, 1
mov rcx, qword [rsp + 0x780]
xor rcx, rsp
call fcn.140212f90
lea r11, [rsp + 0x790]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.14021bfcc
nop
call fcn.14021bfcc
nop
mov ecx, eax
call fcn.140214220
int3