Function at 0x1400596e0
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 [0x14035c8c0]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov r14, rdx
cmp byte [rcx + 0x28], 0
jne 0x140059728
xor al, al
jmp 0x140059cd9
lea r8, [rsp + 0x120]
lea rdx, str.SELECT__FROM_Win32_DiskDrive
call fcn.14005c790
test al, al
je 0x140059cd7
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 0x140059cd7
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 0x140059cd7
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x78]
call fcn.1400154a0
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x80], rbx
lea rcx, [rsp + 0x88]
call fcn.1400154a0
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x90], rbx
lea rcx, [rsp + 0x98]
call fcn.1400154a0
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa0], rbx
lea rcx, [rsp + 0xa8]
call fcn.1400154a0
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.14005c0a0
test al, al
je 0x140059a00
mov qword [rsp + 0x38], r15
cmp word [rsp + 0x48], 8
jne 0x1400598ac
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14005e140
jmp 0x140059908
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 0x140059d06
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x38]
call fcn.14005e140
nop
lea rcx, [rsp + 0x148]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140059917
mov rdx, qword [rax]
jmp 0x14005991a
mov rdx, r15
lea rcx, [rsp + 0x1c0]
call fcn.14000983c
mov rdx, rax
mov qword [rsp + 0x198], rax
mov qword [rsp + 0x128], rax
cmp qword [rax + 0x18], 8
jb 0x14005994c
mov rdx, qword [rax]
mov qword [rsp + 0x128], rdx
test rdx, rdx
jne 0x140059956
mov eax, r15d
jmp 0x14005996a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140059960
mov dword [rsp + 0x60], eax
mov r8d, eax
lea rcx, [rsp + 0x78]
call fcn.140002a7c
nop
lea rcx, [rsp + 0x1c0]
call fcn.140009824
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140059a00
mov qword [rsp + 0x130], rcx
mov eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
sub eax, 1
mov dword [rsp + 0xf8], eax
jne 0x1400599f7
mov rbx, qword [rsp + 0x130]
test rbx, rbx
je 0x1400599f7
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400599d0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400599ea
mov qword [rsp + 0x1a0], rcx
call fcn.14008ae10
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140004518
mov qword [rsp + 0x38], r15
mov esi, dword [rsp + 0x30]
lea r9, [rsp + 0x48]
lea r8, str.Name
mov rdx, qword [rdi]
call fcn.14005c0a0
test al, al
je 0x140059b93
mov qword [rsp + 0x40], r15
cmp word [rsp + 0x48], 8
jne 0x140059a3a
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14005e140
jmp 0x140059a96
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 0x140059d0e
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x40]
call fcn.14005e140
nop
lea rcx, [rsp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140059aa5
mov rdx, qword [rax]
jmp 0x140059aa8
mov rdx, r15
lea rcx, [rsp + 0x1e0]
call fcn.14000983c
mov rdx, rax
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x138], rax
cmp qword [rax + 0x18], 8
jb 0x140059ada
mov rdx, qword [rax]
mov qword [rsp + 0x138], rdx
test rdx, rdx
jne 0x140059ae4
mov eax, r15d
jmp 0x140059afa
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140059af0
mov dword [rsp + 0x64], eax
mov r8d, eax
lea rcx, [rsp + 0xa8]
call fcn.140002a7c
nop
lea rcx, [rsp + 0x1e0]
call fcn.140009824
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140059b93
mov qword [rsp + 0x140], rcx
mov eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
sub eax, 1
mov dword [rsp + 0x108], eax
jne 0x140059b8a
mov rbx, qword [rsp + 0x140]
test rbx, rbx
je 0x140059b8a
mov rcx, qword [rbx]
test rcx, rcx
je 0x140059b63
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140059b7d
mov qword [rsp + 0x1b0], rcx
call fcn.14008ae10
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140004518
mov qword [rsp + 0x40], r15
mov esi, dword [rsp + 0x30]
lea r9, [rsp + 0x48]
lea r8, str.Index
mov rdx, qword [rdi]
call fcn.14005c0a0
test al, al
je 0x140059c1e
cmp word [rsp + 0x48], 0x17
jne 0x140059bbd
mov ebx, dword [rsp + 0x50]
mov dword [rsp + 0x68], ebx
jmp 0x140059c17
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 0x140059d16
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 0x140059c4d
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14005dd80
add qword [r14 + 8], 0x78
jmp 0x140059c5e
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, r14
call fcn.14005daf0
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.140053a80
lea rcx, [rsp + 0x90]
call fcn.140053a80
lea rcx, [rsp + 0x80]
call fcn.140053a80
lea rcx, [rsp + 0x70]
call fcn.140053a80
nop
inc esi
mov dword [rsp + 0x30], esi
jmp 0x140059794
mov al, 1
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140229da0
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.14022b140
nop
mov ecx, eax
call fcn.14022b140
nop
mov ecx, eax
call fcn.14022b140
int3