Function at 0x140004660
Capabilities:
Reference wmi statements

Disassembly:
push rsi
push rdi
sub rsp, 0x128
mov rax, qword [0x140017040]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x78]
call fcn.140001f40
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000498a
lea rax, [rsp + 0xc0]
lea rcx, str.SELECT__FROM_Win32_NTEventlogFile
mov rdi, rax
mov rsi, rcx
mov ecx, 0x46
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x78]
call fcn.140002190
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000498a
mov qword [rsp + 0x68], 0
mov dword [rsp + 0xb4], 0
cmp qword [rsp + 0x70], 0
je 0x14000494e
cmp dword [rsp + 0x34], 0
jne 0x14000494e
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
mov r8d, 1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x50]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0xb4], 0
jne 0x14000478a
jmp 0x14000494e
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.FileName
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x58]
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x88]
cmp eax, 1
je 0x140004949
lea rdx, str.System
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x14000492b
lea rcx, [rsp + 0x88]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.Sources
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jl 0x14000492b
lea r8, [rsp + 0xb8]
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea r8, [rsp + 0xbc]
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov eax, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xbc]
sub ecx, eax
mov eax, ecx
inc eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0xb0], 0
jmp 0x1400048de
mov eax, dword [rsp + 0xb0]
inc eax
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0xb0], eax
jge 0x14000492b
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
lea rdx, str.vboxvideo
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140004929
mov dword [rsp + 0x34], 1
jmp 0x14000492b
jmp 0x1400048ce
lea rcx, [rsp + 0x88]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x10]
jmp 0x140004729
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x78]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14000e450
add rsp, 0x128
pop rdi
pop rsi
ret