Function at 0x14005a480
Capabilities:
Reference wmi statements

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x850
mov qword [rax - 0x6e8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14035d8c0]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov r14, rdx
cmp byte [rcx + 0x28], 0
jne 0x14005a4c8
xor al, al
jmp 0x14005aa79
lea r8, [rsp + 0x120]
lea rdx, str.SELECT__FROM_Win32_DiskDrive
call fcn.14005d530
test al, al
je 0x14005aa77
xor r15d, r15d
mov dword [rsp + 0x34], r15d
mov rcx, qword [rsp + 0x120]
mov rax, qword [rcx]
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x200]
lea edx, [r15 - 1]
mov r8d, MsiSourceListClearAllW
call qword [rax + 0x20]
test eax, eax
js 0x14005aa77
mov esi, r15d
mov dword [rsp + 0x30], r15d
lea r12, vtable.srl::Value.0
lea r13, vtable.srl::Exists.0
lea rbx, vtable.srl::Name.0
cmp esi, dword [rsp + 0x34]
jae 0x14005aa77
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x78]
call fcn.140015830
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x80], rbx
lea rcx, [rsp + 0x88]
call fcn.140015830
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x90], rbx
lea rcx, [rsp + 0x98]
call fcn.140015830
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa0], rbx
lea rcx, [rsp + 0xa8]
call fcn.140015830
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xb8], r13
mov byte [rsp + 0xc0], 0
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xc8], r13
mov byte [rsp + 0xd0], 0
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xd8], r13
mov byte [rsp + 0xe0], 0
lea rcx, [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov eax, esi
lea rdi, [rsp + 0x200]
lea rdi, [rdi + rax*8]
lea r9, [rsp + 0x48]
lea r8, str.Model
mov rdx, qword [rdi]
call fcn.14005ce40
test al, al
je 0x14005a7a0
mov qword [rsp + 0x38], r15
cmp word [rsp + 0x48], 8
jne 0x14005a64c
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14005eee0
jmp 0x14005a6a8
lea rcx, [rsp + 0x148]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x148]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [rsp + 0xf0], eax
test eax, eax
js 0x14005aaa6
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x38]
call fcn.14005eee0
nop
lea rcx, [rsp + 0x148]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14005a6b7
mov rdx, qword [rax]
jmp 0x14005a6ba
mov rdx, r15
lea rcx, [rsp + 0x1c0]
call fcn.140009bd0
mov rdx, rax
mov qword [rsp + 0x198], rax
mov qword [rsp + 0x128], rax
cmp qword [rax + 0x18], 8
jb 0x14005a6ec
mov rdx, qword [rax]
mov qword [rsp + 0x128], rdx
test rdx, rdx
jne 0x14005a6f6
mov eax, r15d
jmp 0x14005a70a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14005a700
mov dword [rsp + 0x60], eax
mov r8d, eax
lea rcx, [rsp + 0x78]
call fcn.140002a7c
nop
lea rcx, [rsp + 0x1c0]
call fcn.140009bb8
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005a7a0
mov qword [rsp + 0x130], rcx
mov eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
sub eax, 1
mov dword [rsp + 0xf8], eax
jne 0x14005a797
mov rbx, qword [rsp + 0x130]
test rbx, rbx
je 0x14005a797
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005a770
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005a78a
mov qword [rsp + 0x1a0], rcx
call fcn.14008ba90
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.1400045a8
mov qword [rsp + 0x38], r15
mov esi, dword [rsp + 0x30]
lea r9, [rsp + 0x48]
lea r8, str.Name
mov rdx, qword [rdi]
call fcn.14005ce40
test al, al
je 0x14005a933
mov qword [rsp + 0x40], r15
cmp word [rsp + 0x48], 8
jne 0x14005a7da
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14005eee0
jmp 0x14005a836
lea rcx, [rsp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [rsp + 0x100], eax
test eax, eax
js 0x14005aaae
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x40]
call fcn.14005eee0
nop
lea rcx, [rsp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14005a845
mov rdx, qword [rax]
jmp 0x14005a848
mov rdx, r15
lea rcx, [rsp + 0x1e0]
call fcn.140009bd0
mov rdx, rax
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x138], rax
cmp qword [rax + 0x18], 8
jb 0x14005a87a
mov rdx, qword [rax]
mov qword [rsp + 0x138], rdx
test rdx, rdx
jne 0x14005a884
mov eax, r15d
jmp 0x14005a89a
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14005a890
mov dword [rsp + 0x64], eax
mov r8d, eax
lea rcx, [rsp + 0xa8]
call fcn.140002a7c
nop
lea rcx, [rsp + 0x1e0]
call fcn.140009bb8
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005a933
mov qword [rsp + 0x140], rcx
mov eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
sub eax, 1
mov dword [rsp + 0x108], eax
jne 0x14005a92a
mov rbx, qword [rsp + 0x140]
test rbx, rbx
je 0x14005a92a
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005a903
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005a91d
mov qword [rsp + 0x1b0], rcx
call fcn.14008ba90
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.1400045a8
mov qword [rsp + 0x40], r15
mov esi, dword [rsp + 0x30]
lea r9, [rsp + 0x48]
lea r8, str.Index
mov rdx, qword [rdi]
call fcn.14005ce40
test al, al
je 0x14005a9be
cmp word [rsp + 0x48], 0x17
jne 0x14005a95d
mov ebx, dword [rsp + 0x50]
mov dword [rsp + 0x68], ebx
jmp 0x14005a9b7
lea rcx, [rsp + 0x178]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 0x17
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x178]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [rsp + 0x110], eax
test eax, eax
js 0x14005aab6
mov ebx, dword [rsp + 0x180]
mov dword [rsp + 0x118], ebx
lea rcx, [rsp + 0x178]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0xb4], ebx
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [r14 + 8]
cmp qword [r14 + 0x10], rax
je 0x14005a9ed
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14005eb20
add qword [r14 + 8], 0x78
jmp 0x14005a9fe
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, r14
call fcn.14005e890
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov qword [rsp + 0xd8], r13
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xc8], r13
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xb8], r12
lea rcx, [rsp + 0xa0]
call fcn.140054820
lea rcx, [rsp + 0x90]
call fcn.140054820
lea rcx, [rsp + 0x80]
call fcn.140054820
lea rcx, [rsp + 0x70]
call fcn.140054820
nop
inc esi
mov dword [rsp + 0x30], esi
jmp 0x14005a534
mov al, 1
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14022aa20
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, eax
call fcn.14022bdc0
nop
mov ecx, eax
call fcn.14022bdc0
nop
mov ecx, eax
call fcn.14022bdc0
int3