Function at 0x14004f980
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 [0x14030b930]
xor rax, rsp
mov qword [rsp + 0x780], rax
mov rdi, rdx
cmp byte [rcx + 0x28], 0
jne 0x14004f9b8
xor al, al
jmp 0x14004fd8c
lea r8, [rsp + 0x60]
lea rdx, str.SELECT__FROM_Win32_DiskDrive
call fcn.1400527d0
test al, al
je 0x14004fd8a
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 0x14004fd8a
mov r14d, r15d
nop dword [rax + rax]
cmp r14d, dword [rsp + 0x30]
jae 0x14004fd8a
lea rcx, [rsp + 0x80]
call fcn.14004fdd0
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.140052040
test al, al
je 0x14004fb82
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140053cb0
nop
mov rax, qword [rax]
test rax, rax
je 0x14004fa7d
mov rdx, qword [rax]
jmp 0x14004fa80
mov rdx, r15
lea rcx, [rsp + 0x100]
call fcn.14000957c
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14004fa9a
mov rdx, qword [rax]
test rdx, rdx
jne 0x14004faa4
mov eax, r15d
jmp 0x14004faba
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004fab0
mov r8d, eax
lea rcx, [rsp + 0x88]
call fcn.140002a88
mov rdx, qword [rsp + 0x118]
cmp rdx, 8
jb 0x14004fb12
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fb0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fdb5
call fcn.140004104
mov qword [rsp + 0x110], r15
mov qword [rsp + 0x118], 7
mov word [rsp + 0x100], r15w
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14004fb82
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14004fb7d
test rbx, rbx
je 0x14004fb7d
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004fb5e
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14004fb70
call fcn.1400758a4
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140004104
mov qword [rsp + 0x50], r15
lea r9, [rsp + 0x38]
lea r8, str.Name
mov rdx, qword [rsi]
call fcn.140052040
test al, al
je 0x14004fcc2
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140053cb0
nop
mov rax, qword [rax]
test rax, rax
je 0x14004fbbb
mov rdx, qword [rax]
jmp 0x14004fbbe
mov rdx, r15
lea rcx, [rsp + 0x120]
call fcn.14000957c
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14004fbd8
mov rdx, qword [rax]
test rdx, rdx
jne 0x14004fbe2
mov eax, r15d
jmp 0x14004fbfa
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004fbf0
mov r8d, eax
lea rcx, [rsp + 0xb8]
call fcn.140002a88
mov rdx, qword [rsp + 0x138]
cmp rdx, 8
jb 0x14004fc52
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fc4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fdbb
call fcn.140004104
mov qword [rsp + 0x130], r15
mov qword [rsp + 0x138], 7
mov word [rsp + 0x120], r15w
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14004fcc2
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14004fcbd
test rbx, rbx
je 0x14004fcbd
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004fc9e
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14004fcb0
call fcn.1400758a4
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140004104
mov qword [rsp + 0x58], r15
lea r9, [rsp + 0x38]
lea r8, str.Index
mov rdx, qword [rsi]
call fcn.140052040
test al, al
je 0x14004fd2b
cmp word [rsp + 0x38], 0x17
jne 0x14004fce8
mov ebx, dword [rsp + 0x40]
jmp 0x14004fd24
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 0x14004fdc1
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 0x14004fd55
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140053870
add qword [rdi + 8], 0x78
jmp 0x14004fd69
lea r8, [rsp + 0x80]
mov rdx, rax
mov rcx, rdi
call fcn.140053620
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rsp + 0x80]
call fcn.14002c0e0
inc r14d
jmp 0x14004fa10
mov al, 1
mov rcx, qword [rsp + 0x780]
xor rcx, rsp
call fcn.140212a70
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.14021b87c
nop
call fcn.14021b87c
nop
mov ecx, eax
call fcn.140213cf0
int3