Function at 0x1400513d0
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 [0x140313918]
xor rax, rsp
mov qword [rsp + 0x780], rax
mov rdi, rdx
cmp byte [rcx + 0x28], 0
jne 0x140051408
xor al, al
jmp 0x1400517dc
lea r8, [rsp + 0x60]
lea rdx, str.SELECT__FROM_Win32_DiskDrive
call fcn.140054220
test al, al
je 0x1400517da
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 0x1400517da
mov r14d, r15d
nop dword [rax + rax]
cmp r14d, dword [rsp + 0x30]
jae 0x1400517da
lea rcx, [rsp + 0x80]
call fcn.140051820
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.140053a90
test al, al
je 0x1400515d2
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140055700
nop
mov rax, qword [rax]
test rax, rax
je 0x1400514cd
mov rdx, qword [rax]
jmp 0x1400514d0
mov rdx, r15
lea rcx, [rsp + 0x100]
call fcn.140009744
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400514ea
mov rdx, qword [rax]
test rdx, rdx
jne 0x1400514f4
mov eax, r15d
jmp 0x14005150a
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140051500
mov r8d, eax
lea rcx, [rsp + 0x88]
call fcn.140002aa8
mov rdx, qword [rsp + 0x118]
cmp rdx, 8
jb 0x140051562
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005155d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051805
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 0x1400515d2
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400515cd
test rbx, rbx
je 0x1400515cd
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400515ae
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400515c0
call fcn.140078df4
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.140053a90
test al, al
je 0x140051712
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140055700
nop
mov rax, qword [rax]
test rax, rax
je 0x14005160b
mov rdx, qword [rax]
jmp 0x14005160e
mov rdx, r15
lea rcx, [rsp + 0x120]
call fcn.140009744
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140051628
mov rdx, qword [rax]
test rdx, rdx
jne 0x140051632
mov eax, r15d
jmp 0x14005164a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140051640
mov r8d, eax
lea rcx, [rsp + 0xb8]
call fcn.140002aa8
mov rdx, qword [rsp + 0x138]
cmp rdx, 8
jb 0x1400516a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005169d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005180b
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 0x140051712
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14005170d
test rbx, rbx
je 0x14005170d
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400516ee
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140051700
call fcn.140078df4
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.140053a90
test al, al
je 0x14005177b
cmp word [rsp + 0x38], 0x17
jne 0x140051738
mov ebx, dword [rsp + 0x40]
jmp 0x140051774
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 0x140051811
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 0x1400517a5
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.1400552c0
add qword [rdi + 8], 0x78
jmp 0x1400517b9
lea r8, [rsp + 0x80]
mov rdx, rax
mov rcx, rdi
call fcn.140055070
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rsp + 0x80]
call fcn.14002c040
inc r14d
jmp 0x140051460
mov al, 1
mov rcx, qword [rsp + 0x780]
xor rcx, rsp
call fcn.140215e10
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.14021f028
nop
call fcn.14021f028
nop
mov ecx, eax
call fcn.1402170a0
int3