Function at 0x1400638f0
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r8
mov rsi, rcx
mov r13, qword [rsp + 0xd8]
xor ebp, ebp
mov qword [rsp + 0x58], rbp
lea ecx, [rbp + 0x18]
call fcn.140068190
mov rbx, rax
mov qword [rsp + 0x50], rax
lea r14d, [rbp + 1]
test rax, rax
je 0x14006397f
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], r14d
lea rcx, str.SELECT__FROM_Win32_ComputerSystem
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140063982
mov ecx, 0x8007000e
call fcn.140213d00
int3
mov rbx, rbp
mov qword [rsp + 0x40], rbx
test rbx, rbx
jne 0x140063997
mov ecx, 0x8007000e
call fcn.140213d00
nop
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140068190
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400639d0
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], rbp
mov dword [rdi + 0x10], r14d
lea rcx, [0x1402a2648]
call fcn.140213b70
mov qword [rdi], rax
jmp 0x1400639d3
mov rdi, rbp
mov qword [rsp + 0x38], rdi
test rdi, rdi
jne 0x1400639e8
mov ecx, 0x8007000e
call fcn.140213d00
nop
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbp
mov r9d, MsiGetFeatureCostA
mov r8, qword [rbx]
mov rdx, qword [rdi]
call qword [rax + reloc.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
setne sil
lock dec dword [rdi + 0x10]
jne 0x140063a48
mov rcx, qword [rdi]
test rcx, rcx
je 0x140063a2d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbp
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140063a3f
call fcn.1400681d4
mov qword [rdi + 8], rbp
mov rcx, rdi
call fcn.1400681d4
nop
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x140063a7f
mov rcx, qword [rbx]
test rcx, rcx
je 0x140063a65
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140063a77
call fcn.1400681d4
mov qword [rbx + 8], rbp
mov rcx, rbx
call fcn.1400681d4
test sil, sil
je 0x140063a8b
xor al, al
jmp 0x140063b7d
mov r15b, 1
mov dword [rsp + 0x60], ebp
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x50]
mov r8d, r14d
or edx, 0xffffffff
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
cmp eax, 1
je 0x140063b68
nop dword [rax + rax]
test eax, eax
jne 0x140063b65
mov rdx, r12
mov rcx, qword [rsp + 0x50]
call fcn.1400636b0
mov rsi, rax
test rax, rax
je 0x140063b5a
mov r8, r13
mov edx, 2
mov rcx, rax
call fcn.140063bb0
movzx r14d, al
mov edi, 2
lea rbx, [rsi + 0x30]
nop word [rax + rax]
sub rbx, 0x18
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
dec edi
jne 0x140063b00
mov rcx, rsi
call fcn.1400681d4
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
inc ebp
test r14b, r14b
lea r14d, [rdi + 1]
je 0x140063b68
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x50]
mov r8d, r14d
or edx, 0xffffffff
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
cmp eax, r14d
jne 0x140063ac0
jmp 0x140063b68
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor r15b, r15b
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
movzx eax, r15b
test ebp, ebp
cmovg eax, r14d
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401f3080
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret