Function at 0x18002f960
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rbp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x198], rbx
mov r12, r8
mov rsi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x50], r13d
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x50], SafeArrayLock
mov qword [rbp - 0x58], r13
mov byte [rbp - 0x68], r13b
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x70], SafeArrayLock
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], r13b
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [0x1801873d8]
xor edx, edx
lea r8d, [r13 + 1]
lea rcx, [0x1801873c8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x18002fa86
mov qword [rbx + 0x18], SafeArrayLock
mov qword [rbx + 0x10], r13
mov byte [rbx], r13b
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180006a90
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x180030173
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x18003016e
test cl, 0x1f
je 0x18002fa58
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18002fa67
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x18002fa76
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x18003016b
call fcn.180154658
nop
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x40], rdx
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
lea rdx, str.ROOTCIMV2
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jns 0x18002fb52
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18002fad2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x18], SafeArrayLock
mov qword [rbx + 0x10], r13
mov byte [rbx], 0
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180006a90
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x180030173
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x18003016e
test cl, 0x1f
je 0x18002fb24
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18002fb33
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x18002fb42
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x18003016b
call fcn.180154658
nop
mov rax, qword [0x1801ff6a0]
test rax, rax
jne 0x18002fb82
lea rcx, [0x1801abb28]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1801abb68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801ff6a0], rax
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x78]
call rax
test eax, eax
jns 0x18002fc54
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18002fbc4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18002fbd4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x18], SafeArrayLock
mov qword [rbx + 0x10], r13
mov byte [rbx], 0
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180006a90
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x180030173
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x18003016e
test cl, 0x1f
je 0x18002fc26
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18002fc35
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x18002fc44
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x18003016b
call fcn.180154658
nop
mov qword [rbp - 0x78], r13
cmp qword [rsi + 0x18], 0x10
jb 0x18002fc62
mov rsi, qword [rsi]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.18013133c
mov rdi, rax
mov qword [rbp + 0xa8], rax
test rax, rax
je 0x18002fc93
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.180150aa0
mov qword [rdi], rax
jmp 0x18002fc96
mov rdi, r13
mov qword [rbp + 8], rdi
test rdi, rdi
jne 0x18002fcaa
mov ecx, 0x8007000e
call fcn.180150a70
nop
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.18013133c
mov rsi, rax
mov qword [rbp + 0xa8], rax
test rax, rax
je 0x18002fcdf
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
lea rcx, [0x1801abd48]
call fcn.180150aa0
mov qword [rsi], rax
jmp 0x18002fce2
mov rsi, r13
mov qword [rbp], rsi
test rsi, rsi
jne 0x18002fcf6
mov ecx, 0x8007000e
call fcn.180150a70
nop
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r13
mov r9d, 0x30
mov r8, qword [rdi]
mov rdx, qword [rsi]
call qword [rax + 0xa0]
mov r15d, eax
or r14, 0xffffffffffffffff
mov ecx, r14d
lock xadd dword [rsi + 0x10], ecx
cmp ecx, 1
jne 0x18002fd62
mov rcx, qword [rsi]
test rcx, rcx
je 0x18002fd43
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], r13
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x18002fd55
call fcn.180131a88
mov qword [rsi + 8], r13
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rsi
call fcn.180131a88
mov qword [rbp], r13
mov eax, r14d
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x18002fda3
mov rcx, qword [rdi]
test rcx, rcx
je 0x18002fd84
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r13
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x18002fd96
call fcn.180131a88
mov qword [rdi + 8], r13
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rdi
call fcn.180131a88
mov qword [rbp + 8], r13
test r15d, r15d
jns 0x18002fe4f
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18002fdc0
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18002fdcf
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x18], SafeArrayLock
mov qword [rbx + 0x10], r13
mov byte [rbx], 0
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180006a90
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x180030173
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x18003016e
test cl, 0x1f
je 0x18002fe21
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18002fe30
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x18002fe3f
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x18003016b
call fcn.180154658
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1800300bf
mov qword [rbp - 0x70], r13
mov dword [rbp + 0xa8], r13d
mov rax, qword [rcx]
lea rdx, [rbp + 0xa8]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x70]
mov r8d, 1
mov edx, r14d
call qword [rax + 0x20]
cmp dword [rbp + 0xa8], 0
je 0x1800300bb
lea rcx, [rbp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
cmp qword [rbp - 0x70], 0
je 0x1800300bb
xor r8d, r8d
mov rdx, r12
lea rcx, [rbp - 0x28]
call fcn.18002c170
nop
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x30]
xor r8d, r8d
call qword [rax + 0x20]
movabs rdi, 0x7fffffffffffffff
mov rdx, qword [rbp + 0x38]
test rdx, rdx
je 0x180030030
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r13
mov word [rbp - 0x48], r13w
cmp word [rdx], 0
jne 0x18002ff20
mov r14, r13
jmp 0x18002ff2b
inc r14
cmp word [rdx + r14*2], 0
jne 0x18002ff20
mov r8, r14
lea rcx, [rbp - 0x48]
call fcn.180008b00
nop
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x10]
call fcn.18002c294
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1800083fc
nop
mov rax, qword [rbp + 0x28]
cmp rax, 0x10
jb 0x18002ffaa
inc rax
mov rcx, qword [rbp + 0x10]
cmp rax, 0x1000
jb 0x18002ffa5
test cl, 0x1f
je 0x18002ff78
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18002ff87
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x18002ff96
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x18002ffa2
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rbp + 0x28], SafeArrayLock
mov qword [rbp + 0x20], r13
mov byte [rbp + 0x10], 0
mov rax, qword [rbp - 0x30]
cmp rax, 8
jb 0x18003001f
inc rax
mov rcx, qword [rbp - 0x48]
cmp rax, rdi
jbe 0x18002ffd6
call fcn.180154658
int3
add rax, rax
cmp rax, 0x1000
jb 0x18003001a
test byte [rbp - 0x48], 0x1f
je 0x18002ffed
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18002fffc
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003000b
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x180030017
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r13
mov word [rbp - 0x48], r13w
lea rcx, [rbp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbp - 0x10]
cmp rax, 8
jb 0x1800300aa
inc rax
mov rcx, qword [rbp - 0x28]
cmp rax, rdi
jbe 0x180030061
call fcn.180154658
int3
add rax, rax
cmp rax, 0x1000
jb 0x1800300a5
test byte [rbp - 0x28], 0x1f
je 0x180030078
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180030087
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x180030096
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x1800300a2
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r13
mov word [rbp - 0x28], r13w
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1800300d6
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x80]
test rdx, rdx
je 0x1800300ec
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1800300f7
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x18], SafeArrayLock
mov qword [rbx + 0x10], r13
mov byte [rbx], 0
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180006a90
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x180030173
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x18003016e
test cl, 0x1f
je 0x180030141
call fcn.180154658
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180030150
call fcn.180154658
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003015f
call fcn.180154658
int3
cmp rcx, 0x27
jbe 0x18003016b
call fcn.180154658
int3
mov rcx, rax
call fcn.18002c160
mov qword [rsp + 0x70], SafeArrayLock
mov qword [rsp + 0x68], r13
mov byte [rsp + 0x58], 0
mov qword [rbp - 0x50], SafeArrayLock
mov qword [rbp - 0x58], r13
mov byte [rbp - 0x68], 0
mov rax, rbx
mov rbx, qword [rsp + 0x198]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret