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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x1c8]
sub rsp, 0x2b0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140dda370]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140002e6a
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x140002e64
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x140d1aa58]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x140d1ab28]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140002e64
mov qword [rsp + 0x50], r12
lea ecx, [r12 + 0x18]
call fcn.1400aca1c
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140002d9c
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x140db28e0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140002d9f
mov ecx, 0x8007000e
call fcn.1400abb80
int3
mov rbx, r12
mov qword [rbp - 0x68], rbx
test rbx, rbx
jne 0x140002db3
mov ecx, 0x8007000e
call fcn.1400abb80
nop
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x18]
mov edi, eax
or ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
dec ecx
jne 0x140002e17
mov rcx, qword [rbx]
test rcx, rcx
je 0x140002e01
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140002e0f
call fcn.1400ad4f8
mov rcx, rbx
call fcn.1400abea0
test edi, edi
js 0x140002e59
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140002e71
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x14000305a
mov qword [rsp + 0x70], r12
mov r9, rsi
lea r8, [0x140db2900]
mov edx, 0x100
lea rcx, [rbp - 0x60]
call fcn.140002ac0
mov ecx, 0x18
call fcn.1400aca1c
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140002ecd
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [rbp - 0x60]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140002ed0
mov ecx, 0x8007000e
call fcn.1400abb80
int3
mov rbx, r12
mov qword [rbp - 0x80], rbx
test rbx, rbx
jne 0x140002ee4
mov ecx, 0x8007000e
call fcn.1400abb80
nop
mov ecx, 0x18
call fcn.1400aca1c
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140002f17
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x140db295c]
call fcn.1400c1350
mov qword [rdi], rax
jmp 0x140002f1a
mov rdi, r12
mov qword [rbp - 0x70], rdi
test rdi, rdi
jne 0x140002f2e
mov ecx, 0x8007000e
call fcn.1400abb80
nop
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r12
mov r9d, 0x30
mov r8, qword [rbx]
mov rdx, qword [rdi]
call qword [rax + 0xa0]
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
dec ecx
jne 0x140002f8a
mov rcx, qword [rdi]
test rcx, rcx
je 0x140002f73
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140002f81
call fcn.1400ad4f8
mov rcx, rdi
call fcn.1400abea0
nop
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x140002fba
mov rcx, qword [rbx]
test rcx, rcx
je 0x140002fa4
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140002fb2
call fcn.1400ad4f8
mov rcx, rbx
call fcn.1400abea0
test esi, esi
js 0x140002e4e
mov qword [rsp + 0x78], r12
mov dword [rsp + 0x60], r12d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003031
mov rax, qword [rcx]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x78]
mov r8d, 1
or edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rsp + 0x60], 0
jne 0x140003026
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x14000305a
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400ac900
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret