Function at 0x14005a860
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 0x14005a8a8
xor al, al
jmp 0x14005ae59
lea r8, [rsp + 0x120]
lea rdx, str.SELECT__FROM_Win32_DiskDrive
call fcn.14005dc90
test al, al
je 0x14005ae57
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 0x14005ae57
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 0x14005ae57
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.14005d5a0
test al, al
je 0x14005ab80
mov qword [rsp + 0x38], r15
cmp word [rsp + 0x48], 8
jne 0x14005aa2c
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14005f640
jmp 0x14005aa88
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 0x14005ae86
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x38]
call fcn.14005f640
nop
lea rcx, [rsp + 0x148]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14005aa97
mov rdx, qword [rax]
jmp 0x14005aa9a
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 0x14005aacc
mov rdx, qword [rax]
mov qword [rsp + 0x128], rdx
test rdx, rdx
jne 0x14005aad6
mov eax, r15d
jmp 0x14005aaea
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14005aae0
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 0x14005ab80
mov qword [rsp + 0x130], rcx
mov eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
sub eax, 1
mov dword [rsp + 0xf8], eax
jne 0x14005ab77
mov rbx, qword [rsp + 0x130]
test rbx, rbx
je 0x14005ab77
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005ab50
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005ab6a
mov qword [rsp + 0x1a0], rcx
call fcn.14008c190
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.14005d5a0
test al, al
je 0x14005ad13
mov qword [rsp + 0x40], r15
cmp word [rsp + 0x48], 8
jne 0x14005abba
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14005f640
jmp 0x14005ac16
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 0x14005ae8e
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x40]
call fcn.14005f640
nop
lea rcx, [rsp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14005ac25
mov rdx, qword [rax]
jmp 0x14005ac28
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 0x14005ac5a
mov rdx, qword [rax]
mov qword [rsp + 0x138], rdx
test rdx, rdx
jne 0x14005ac64
mov eax, r15d
jmp 0x14005ac7a
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14005ac70
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 0x14005ad13
mov qword [rsp + 0x140], rcx
mov eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
sub eax, 1
mov dword [rsp + 0x108], eax
jne 0x14005ad0a
mov rbx, qword [rsp + 0x140]
test rbx, rbx
je 0x14005ad0a
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005ace3
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005acfd
mov qword [rsp + 0x1b0], rcx
call fcn.14008c190
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.14005d5a0
test al, al
je 0x14005ad9e
cmp word [rsp + 0x48], 0x17
jne 0x14005ad3d
mov ebx, dword [rsp + 0x50]
mov dword [rsp + 0x68], ebx
jmp 0x14005ad97
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 0x14005ae96
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 0x14005adcd
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14005f280
add qword [r14 + 8], 0x78
jmp 0x14005adde
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, r14
call fcn.14005eff0
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.140054c00
lea rcx, [rsp + 0x90]
call fcn.140054c00
lea rcx, [rsp + 0x80]
call fcn.140054c00
lea rcx, [rsp + 0x70]
call fcn.140054c00
nop
inc esi
mov dword [rsp + 0x30], esi
jmp 0x14005a914
mov al, 1
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14022b120
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.14022c4c0
nop
mov ecx, eax
call fcn.14022c4c0
nop
mov ecx, eax
call fcn.14022c4c0
int3