Function at 0x1400d03a0
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
xor edi, edi
mov qword [rbp + 0x77], rdi
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
lea r9, [0x1401f6af8]
xor edx, edx
lea r8d, [rdi + 1]
lea rcx, [0x1401f6b08]
call qword [0x1401dae60]
test eax, eax
js 0x1400d0610
mov qword [rbp + 0x6f], rdi
mov rax, qword [rbp + 0x77]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x18]
lea rdx, str.ROOTCIMV2
lea rcx, [rbp + 0xf]
call fcn.14001349c
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x1400d040f
mov rdx, qword [rdx]
jmp 0x1400d0412
mov rdx, rdi
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0x77]
mov rax, rbx
call qword [case.0x1400f17b3.0]
mov ebx, eax
lea rcx, [rbp + 0xf]
call fcn.140014744
test ebx, ebx
js 0x1400d05ff
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 7]
mov rcx, qword [rbp + 0x6f]
call qword [0x1401dae68]
test eax, eax
js 0x1400d05ee
mov qword [rbp + 7], rdi
mov rax, qword [rbp + 0x6f]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0xa0]
lea rdx, str.SELECT__FROM_Win32_OperatingSystem
lea rcx, [rbp + 0x17]
call fcn.14001342c
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x1400d04b5
mov rbx, qword [rcx]
jmp 0x1400d04b8
mov rbx, rdi
lea rdx, [0x1401dc58c]
lea rcx, [rbp + 0xf]
call fcn.14001342c
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x1400d04d6
mov rdx, qword [rcx]
jmp 0x1400d04d9
mov rdx, rdi
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 0x30
mov r8, rbx
mov rcx, qword [rbp + 0x6f]
mov rax, rsi
call qword [case.0x1400f17b3.0]
mov ebx, eax
lea rcx, [rbp + 0xf]
call fcn.140014744
nop
lea rcx, [rbp + 0x17]
call fcn.140014744
test ebx, ebx
js 0x1400d05ee
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1400d05ee
mov qword [rbp + 0x7f], rdi
mov dword [rbp + 0x67], edi
mov rax, qword [rcx]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x7f]
mov r8d, 1
or edx, 0xffffffff
mov rax, qword [rax + 0x20]
call qword [case.0x1400f17b3.0]
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x1400d05b6
cmp dword [rbp + 0x67], edi
jbe 0x1400d05b6
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x1f]
xor r8d, r8d
lea rdx, [0x1401dc590]
mov rax, qword [rax + 0x20]
call qword [case.0x1400f17b3.0]
lea rdx, str.Windows_10
mov rcx, qword [rbp + 0x27]
call fcn.1401b24dc
test rax, rax
setne dil
lea rcx, [rbp + 0x1f]
call qword [0x1401da7c0]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f17b3.0]
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f17b3.0]
mov rcx, qword [rbp + 0x77]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x1400f17b3.0]
mov rcx, qword [rbp + 7]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x1400f17b3.0]
mov al, dil
jmp 0x1400d0612
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f17b3.0]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f17b3.0]
xor al, al
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret