Function at 0x140005ef0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x180], rbx
mov rax, qword [0x140047008]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r12d, edx
mov rsi, rcx
mov edi, 0x80004005
xor r13d, r13d
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x80], r13
mov ebx, r13d
mov qword [rbp - 0x68], rbx
cmp qword [rcx], r13
jne 0x14000636f
cmp qword [rcx + 8], r13
jne 0x14000636f
cmp qword [rcx + 0x18], r13
je 0x140005f67
cmp qword [rcx + 0x10], r13
jne 0x140005f72
cmp qword [rcx + 0x30], 0
je 0x14000636f
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x14002f8a0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14002f880]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x14000636f
mov r14, qword [rbp - 0x70]
mov ecx, SafeArrayPutElement
call fcn.14000d6dc
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140005fee
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r13
mov dword [rdi + 0x10], 1
lea rcx, str.ROOTWMI
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
jne 0x140005ff1
mov ecx, 0x8007000e
call fcn.14000e740
int3
mov rdi, r13
mov qword [rsp + 0x58], rdi
test rdi, rdi
jne 0x140006006
mov ecx, 0x8007000e
call fcn.14000e740
nop
mov rax, qword [r14]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, r14
call qword [rax + SafeArrayPutElement]
mov edi, eax
lea rcx, [rsp + 0x58]
call fcn.1400016a0
test edi, edi
js 0x14000636f
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test eax, eax
js 0x14000636f
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x14002f870]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [0x14002f890]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x14000636f
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp - 0x60]
call fcn.140010440
mov r9d, r12d
lea r8, str.SELECT__FROM_hpqBEvnt_WHERE_EventID___d
mov edx, 0x40
lea rcx, [rbp - 0x60]
call fcn.140006470
cmp qword [rsi + 0x18], 0
je 0x140006158
cmp qword [rsi + 0x10], 0
je 0x140006158
mov ecx, 0x48
call fcn.14000d6dc
mov rbx, rax
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
movups xmm1, xmmword [rsi + 0x18]
movsd xmm0, qword [rsi + 0x28]
mov rax, qword [rsi + 0x10]
movups xmmword [rbx + 0x10], xmm1
movsd qword [rbx + 0x20], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x70], 0xffffffff
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x28], xmm0
movsd xmm1, qword [rsp + 0x70]
movsd qword [rbx + 0x38], xmm1
jmp 0x1400061e1
cmp qword [rsi + 0x30], 0
je 0x140006203
cmp qword [rsi + 0x10], 0
je 0x140006203
mov ecx, 0x48
call fcn.14000d6dc
mov rbx, rax
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
movups xmm3, xmmword [rsi + 0x30]
movsd xmm2, qword [rsi + 0x40]
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x70], 0xffffffff
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x10], xmm0
movsd xmm1, qword [rsp + 0x70]
movsd qword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x28], xmm3
movsd qword [rbx + 0x38], xmm2
lea rcx, vtable.Hotkey::QLBController::WmiEventSink.0
mov qword [rbx], rcx
mov rcx, rbx
mov dword [rbx + 8], 1
mov qword [rbx + 0x40], rax
call qword [0x14003e380]
mov qword [rbp - 0x68], rbx
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
lea r8, [rbp - 0x80]
mov rdx, rbx
call qword [rax + SafeArrayPutElement]
mov edi, eax
test eax, eax
js 0x14000636f
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
lea r8, [rsi + 8]
lea rdx, [0x14002f860]
call qword [rax]
mov edi, eax
test eax, eax
jns 0x140006249
call fcn.1400059d0
lea r9, str.QueryInterface_failed:_0x_08X
jmp 0x140006356
mov ecx, SafeArrayPutElement
call fcn.14000d6dc
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140006291
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r13
mov dword [rdi + 0x10], 1
lea rcx, [rbp - 0x60]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
jne 0x140006294
mov ecx, 0x8007000e
call fcn.14000e740
int3
mov rdi, r13
mov qword [rsp + 0x50], rdi
test rdi, rdi
jne 0x1400062a9
mov ecx, 0x8007000e
call fcn.14000e740
nop
mov ecx, SafeArrayPutElement
call fcn.14000d6dc
mov r14, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400062e6
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 8], r13
mov dword [r14 + 0x10], 1
lea rcx, [0x14003e2e4]
call fcn.14000e850
mov qword [r14], rax
jmp 0x1400062e9
mov r14, r13
mov qword [rsp + 0x58], r14
test r14, r14
jne 0x1400062fe
mov ecx, 0x8007000e
call fcn.14000e740
nop
mov rcx, qword [rsi]
mov r10, qword [rcx]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 0x80
mov r8, qword [rdi]
mov rdx, qword [r14]
call qword [r10 + 0xb8]
mov edi, eax
lea rcx, [rsp + 0x58]
call fcn.1400016a0
nop
lea rcx, [rsp + 0x50]
call fcn.1400016a0
test edi, edi
jns 0x14000636f
call fcn.14000cdd0
cmp eax, 1
jne 0x14000636f
call fcn.1400059d0
lea r9, str.ExecNotificationQueryAsync_failed:_0x_08X
mov dword [rsp + 0x20], edi
lea r8, str.Hotkey::QLBController::WmiEvent::Register
mov edx, 5
mov rcx, rax
call fcn.140009b40
nop
test rbx, rbx
je 0x14000637e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000638e
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14000639e
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400063ad
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14000d6b0
mov rbx, qword [rsp + 0x180]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret