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

Disassembly:
push 0x1b8
mov eax, 0x4af585
call fcn.0048bc3b
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x16], bl
mov dword [ebp - 0x30], ebx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x30]
push eax
push 0x4b46bc
push edi
push ebx
push 0x4b478c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40defd
cmp dword [ebp - 0x30], ebx
je 0x40defd
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x30]
push str.ROOTCIMV2
lea ecx, [ebp - 0x1c]
call fcn.0040bf25
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov dword [ebp - 0x14], edi
cmp eax, ebx
je 0x40dcb7
mov eax, dword [eax]
jmp 0x40dcb9
xor eax, eax
mov ecx, dword [esi]
lea edx, [ebp - 0x2c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0xc]
test eax, eax
jl 0x40dcd7
mov byte [ebp - 0x15], 1
cmp dword [ebp - 0x2c], ebx
jne 0x40dcda
mov byte [ebp - 0x15], bl
push 3
pop esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
and dword [ebp - 0x14], 0xfffffffe
cmp ecx, ebx
je 0x40dcf6
call fcn.0040bfbe
mov dword [ebp - 0x1c], ebx
cmp byte [ebp - 0x15], bl
je 0x40def1
push ebx
push ebx
push esi
push esi
push ebx
push ebx
push 0xa
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x40def1
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x2c]
push str.SELECT__FROM
lea ecx, [ebp - 0x34]
call fcn.00403c71
mov byte [ebp - 4], 7
or dword [ebp - 0x14], 2
push str.Win32_Process
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403e3d
add esp, 0xc
mov dword [ebp - 4], 8
push dword [eax]
or dword [ebp - 0x14], 4
lea ecx, [ebp - 0x24]
call fcn.0040bf25
mov esi, eax
mov dword [ebp - 4], 9
or dword [ebp - 0x14], 8
push 0x4c3a5c
lea ecx, [ebp - 0x1c]
call fcn.0040bf25
mov dword [ebp - 4], 0xa
mov ecx, dword [esi]
or dword [ebp - 0x14], 0x10
cmp ecx, ebx
je 0x40dd8d
mov ecx, dword [ecx]
jmp 0x40dd8f
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x40dd99
mov eax, dword [eax]
jmp 0x40dd9b
xor eax, eax
mov edx, dword [edi]
lea esi, [ebp - 0x28]
push esi
push ebx
push 0x30
push ecx
push eax
push edi
call dword [edx + 0x50]
test eax, eax
jl 0x40ddb7
mov byte [ebp - 0x15], 1
cmp dword [ebp - 0x28], ebx
jne 0x40ddba
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], 9
test byte [ebp - 0x14], 0x10
je 0x40ddda
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0xffffffef
cmp ecx, ebx
je 0x40ddda
call fcn.0040bfbe
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 8
test byte [ebp - 0x14], 8
je 0x40ddfa
mov ecx, dword [ebp - 0x24]
and dword [ebp - 0x14], 0xfffffff7
cmp ecx, ebx
je 0x40ddfa
call fcn.0040bfbe
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 7
test byte [ebp - 0x14], 4
je 0x40de13
and dword [ebp - 0x14], 0xfffffffb
lea ecx, [ebp - 0x20]
call fcn.00403910
mov dword [ebp - 4], 6
test byte [ebp - 0x14], 2
je 0x40de2c
and dword [ebp - 0x14], 0xfffffffd
lea ecx, [ebp - 0x34]
call fcn.00403910
cmp byte [ebp - 0x15], bl
je 0x40dee5
cmp dword [ebp - 0x28], ebx
je 0x40dee1
mov esi, fcn.004251a0
push esi
push 0x42517f
push 0x64
push 4
lea eax, [ebp - 0x1c4]
push eax
mov dword [ebp - 0x20], ebx
call fcn.004892ce
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x1c4]
push edx
push 0x64
push 0x2710
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x40decc
cmp dword [ebp - 0x20], ebx
je 0x40decc
mov dword [ebp - 0x1c], ebx
jbe 0x40deac
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
mov edi, dword [ebp + 8]
call fcn.004102f9
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x24], 4
cmp eax, dword [ebp - 0x20]
jb 0x40de92
mov byte [ebp - 4], 6
push esi
push 0x64
push 4
lea eax, [ebp - 0x1c4]
push eax
call fcn.00487c3c
cmp dword [ebp - 0x28], ebx
jne 0x40de43
jmp 0x40dee1
mov byte [ebp - 4], 6
push esi
push 0x64
push 4
lea eax, [ebp - 0x1c4]
push eax
call fcn.00487c3c
mov byte [ebp - 0x16], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00411fd6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00411fd6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00411fd6
mov al, byte [ebp - 0x16]
call fcn.0048bd13
ret