Function at 0x180030670
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push r12
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1801f5f20]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r12d, r12d
lea rax, str.vboxvideo
mov qword [rbp + 0x1f], rax
lea rdx, [rbp - 0x11]
lea rax, str.VBoxVideoW8
mov qword [rbp - 0x21], r12
mov qword [rbp + 0x27], rax
lea rcx, [rbp - 0x21]
lea rax, str.VBoxWddm
mov qword [rbp - 0x11], r12
mov qword [rbp + 0x2f], rax
mov r15d, r12d
mov qword [rbp - 0x29], r12
call fcn.1800333d0
test eax, eax
je 0x18003097b
mov qword [rsp + 0xd0], rbx
lea rcx, [0x1801ae388]
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xe0], rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_NTEventlogFile
mov rdi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea esi, [r12 + 1]
mov rbx, rax
test rdi, rdi
je 0x180030770
test rax, rax
je 0x180030767
mov rcx, qword [rbp - 0x21]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea r9d, [r12 + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], r12
mov rdx, rdi
mov r10, qword [rcx]
call qword [r10 + 0xa0]
test eax, eax
jns 0x180030767
mov rcx, qword [rbp - 0x21]
mov esi, r12d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x18003077e
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x180030947
mov rcx, qword [rbp - 0x29]
mov qword [rbp - 0x31], r12
mov dword [rbp - 0x35], r12d
test rcx, rcx
je 0x180030927
mov qword [rsp + 0xe8], r14
test r15d, r15d
jne 0x18003091f
mov rax, qword [rcx]
lea rdx, [rbp - 0x35]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x31]
or edx, 0xffffffff
lea r8d, [r15 + 1]
call qword [rax + 0x20]
cmp dword [rbp - 0x35], r12d
je 0x18003091b
mov rcx, qword [rbp - 0x31]
lea r9, [rbp - 9]
mov qword [rsp + 0x28], r12
lea rdx, str.FileName
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x180030902
movzx eax, word [rbp - 9]
cmp ax, 1
je 0x180030902
test al, 8
je 0x1800308f8
mov rcx, qword [rbp - 1]
lea rdx, str.System
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1800308f8
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x31]
lea r9, [rbp - 9]
mov qword [rsp + 0x28], r12
lea rdx, str.Sources
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r14, qword [rbp - 1]
lea rdx, [rbp + 0x17]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
js 0x1800308f8
lea r8, [rbp - 0x15]
mov rcx, r14
lea edx, [r15 + 1]
call qword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea r8, [rbp - 0x19]
mov rcx, r14
lea edx, [r15 + 1]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov esi, dword [rbp - 0x19]
sub esi, dword [rbp - 0x15]
inc esi
mov dword [rbp - 0x39], r12d
test esi, esi
jle 0x1800308ef
lea r8, [rbp + 0xf]
mov rcx, r14
lea rdx, [rbp - 0x39]
call qword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
mov ebx, r12d
lea rdi, [rbp + 0x1f]
nop dword [rax + rax]
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0xf]
call fcn.18015d890
test eax, eax
je 0x1800308e9
inc ebx
add rdi, 8
cmp ebx, 3
jb 0x1800308c0
mov eax, dword [rbp - 0x39]
inc eax
mov dword [rbp - 0x39], eax
cmp eax, esi
jl 0x1800308a0
jmp 0x1800308ef
mov r15d, 1
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
jne 0x1800307a3
jmp 0x18003091f
mov rcx, qword [rbp - 0x29]
mov r14, qword [rsp + 0xe8]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x21]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x11]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rsi, qword [rsp + 0xd8]
mov eax, r15d
mov rbx, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180131f30
add rsp, 0xb0
pop r15
pop r12
pop rbp
ret
mov eax, r15d
jmp 0x180030962