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

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
xor eax, eax
lea rcx, [0x140074670]
mov esi, eax
mov qword [rbp - 0x11], rax
mov r14d, eax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov r13d, eax
mov qword [rbp - 9], rax
mov edi, eax
call fcn.140008e10
mov r15, rax
test rax, rax
je 0x140021b16
lea rcx, [0x140074678]
call fcn.140008e10
mov r14, rax
test rax, rax
je 0x140021b16
lea ecx, [rdi + 0x20]
call fcn.140038534
mov rsi, rax
test rax, rax
je 0x140021b16
mov rcx, rax
call fcn.140004b90
test al, al
je 0x140021b16
lea rcx, [0x1400728f8]
mov qword [rsp + 0xa0], rbx
call fcn.140008e10
mov rbx, rax
test rax, rax
je 0x140021b0e
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r13, rax
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], di
jne 0x140021850
add r8, r8
xor edx, edx
mov rcx, rbx
call fcn.1400376d0
mov rcx, rbx
call fcn.140038520
lea rcx, [0x140072908]
call fcn.140008e10
mov rbx, rax
test rax, rax
je 0x140021b0e
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp - 9], rax
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], di
jne 0x1400218a0
add r8, r8
xor edx, edx
mov rcx, rbx
call fcn.1400376d0
mov rcx, rbx
call fcn.140038520
lea rcx, [0x140074688]
call fcn.140008e10
mov rbx, rax
test rax, rax
je 0x140021b0e
mov rcx, rax
mov qword [rsp + 0x98], r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, rbx
mov qword [rbp + 0xf], rax
mov rdi, rax
call fcn.140038520
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov r12d, eax
mov eax, 0x80000000
lea ecx, [r12 + rax]
test eax, ecx
jne 0x14002191e
cmp r12d, 0x80010106
jne 0x140021afb
xor edx, edx
lea rax, [rbp - 0x11]
lea r9, [0x140074218]
mov qword [rsp + 0x20], rax
lea rcx, [0x140074208]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140021afb
mov rax, qword [rcx]
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x40], rdx
xor ebx, ebx
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov rdx, r13
mov qword [rsp + 0x20], rbx
call qword [rax + SafeArrayCopy]
test eax, eax
js 0x140021af1
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140021af1
lea rax, [rbp + 0x77]
mov qword [rbp + 7], rbx
mov qword [rsp + 0x38], rax
lea r8, [rbp - 1]
lea rax, [rbp + 7]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 3]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoQueryProxyBlanket]
mov eax, dword [rbp + 0x6f]
lea edx, [rbx + 0xa]
mov rcx, qword [rbp - 0x21]
lea r8d, [rbx + 1]
mov dword [rsp + 0x38], ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], eax
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov rcx, qword [rbp - 0x21]
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x28], rdx
xor r9d, r9d
mov rdx, qword [rbp - 9]
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140021ae7
lea rdx, [rbp + 0x67]
mov qword [rbp - 0x29], rbx
mov dword [rbp + 0x67], ebx
lea r9, [rbp - 0x29]
mov rax, qword [rcx]
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rdx
lea edx, [rbx - 1]
call qword [rax + 0x20]
test eax, eax
jne 0x140021add
mov rcx, qword [rbp - 0x29]
mov rdx, r14
call fcn.140023130
mov rbx, rax
test rax, rax
je 0x140021aa7
cmp word [rax], 0
je 0x140021a9f
mov edx, 0x80
lea ecx, [rdx - 0x7f]
call fcn.14003853c
mov rdi, rax
test rax, rax
je 0x140021ab1
mov rcx, qword [rbp - 0x29]
mov rdx, r15
call fcn.140023130
mov rdx, rdi
mov qword [rdi], rax
mov rcx, rsi
mov qword [rdi + 0x20], rbx
call fcn.140004950
jmp 0x140021aa7
mov rcx, rbx
call fcn.140038520
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + recvfrom]
mov rcx, qword [rbp - 0x19]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x29]
mov edx, 0xffffffff
mov rax, qword [rcx]
lea r8d, [rdx + 2]
call qword [rax + 0x20]
test eax, eax
je 0x140021a50
mov rdi, qword [rbp + 0xf]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + recvfrom]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + recvfrom]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + recvfrom]
test r12d, r12d
mov r12, qword [rsp + 0x98]
js 0x140021b0e
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0xa0]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r15
call fcn.140038520
mov rcx, r14
call fcn.140038520
mov rax, rsi
add rsp, 0xa8
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret