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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor edi, edi
mov qword [rbp + 7], rdi
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9, [0x180050118]
xor edx, edx
lea r8d, [rdi + 1]
lea rcx, [0x180050108]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x180003863
call qword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x180003afc
mov qword [rbp + 0xf], rdi
lea rdx, str.ROOTCIMV2
lea rcx, [rbp - 0x19]
call fcn.180002b74
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x180003885
mov rdx, qword [rcx]
jmp 0x180003888
mov rdx, rdi
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
lea r8, [rbp + 0xf]
mov qword [rsp + 0x40], r8
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
call qword [rax + 0x18]
mov esi, eax
mov r15d, 0x18
or r14d, 0xffffffff
mov rbx, qword [rbp - 0x19]
test rbx, rbx
je 0x180003909
mov ecx, r14d
lock xadd dword [rbx + 0x10], ecx
add ecx, r14d
jne 0x180003909
test rbx, rbx
je 0x180003909
cmp qword [rbx], rdi
je 0x1800038ec
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800038fe
call fcn.18000b290
mov qword [rbx + 8], rdi
mov rdx, r15
mov rcx, rbx
call fcn.18000b290
test esi, esi
jns 0x18000391c
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x18000385c
mov qword [rbp - 1], rdi
lea rdx, str.SELECT__FROM_Win32_PnPEntity_WHERE_Caption_LIKE__camera_
lea rcx, [rbp - 0x11]
call fcn.180002af0
mov rbx, rax
lea rdx, [0x18005ca84]
lea rcx, [rbp - 0x21]
call fcn.180002af0
nop
mov r8, qword [rbx]
test r8, r8
je 0x180003951
mov r8, qword [r8]
jmp 0x180003954
mov r8, rdi
mov rax, qword [rax]
test rax, rax
je 0x180003961
mov rdx, qword [rax]
jmp 0x180003964
mov rdx, rdi
mov rcx, qword [rbp + 0xf]
mov rax, qword [rcx]
lea r9, [rbp - 1]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rdi
mov r9d, 0x20
call qword [rax + 0xa0]
mov esi, eax
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x1800039d4
mov ecx, r14d
lock xadd dword [rbx + 0x10], ecx
add ecx, r14d
jne 0x1800039d0
test rbx, rbx
je 0x1800039d0
cmp qword [rbx], rdi
je 0x1800039b3
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800039c5
call fcn.18000b290
mov qword [rbx + 8], rdi
mov rdx, r15
mov rcx, rbx
call fcn.18000b290
mov qword [rbp - 0x21], rdi
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x180003a1d
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
add eax, r14d
jne 0x180003a1d
test rbx, rbx
je 0x180003a1d
cmp qword [rbx], rdi
je 0x180003a00
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180003a12
call fcn.18000b290
mov qword [rbx + 8], rdi
mov rdx, r15
mov rcx, rbx
call fcn.18000b290
test esi, esi
js 0x180003ae5
mov bl, dil
mov dword [rbp + 0x37], edi
jmp 0x180003ac9
mov rax, qword [rcx]
lea rdx, [rbp + 0x37]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x17]
mov r8d, 1
mov edx, r14d
call qword [rax + 0x20]
cmp dword [rbp + 0x37], edi
je 0x180003ad8
mov rcx, qword [rbp + 0x17]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x1f]
xor r8d, r8d
lea rdx, str.Caption
call qword [rax + 0x20]
test eax, eax
js 0x180003abf
call fcn.180005d98
mov rcx, rax
mov rdx, qword [rbp + 0x27]
call fcn.18000608c
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.180006bf0
movzx edx, ax
mov rcx, rbx
call fcn.180006ad4
mov rcx, rbx
call fcn.180006a04
mov bl, 1
lea rcx, [rbp + 0x1f]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x17]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 1]
test rcx, rcx
jne 0x180003a30
jmp 0x180003adc
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov dil, bl
mov rcx, qword [rbp + 0xf]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 7]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov al, dil
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.18000b240
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret