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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41d058
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x427760]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x427760]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x401f11
mov edx, str.Failed_to_initialize_COM_library._Error_code__0x
mov ecx, 0x428b40
call fcn.00404770
mov edx, eax
test edx, edx
jne 0x401edf
xor ecx, ecx
jmp 0x401ee6
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push esi
call fcn.00402390
push eax
call fcn.00404a20
add esp, 4
mov eax, 1
jmp 0x4022f1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
test esi, esi
jns 0x401f80
mov edx, str.Failed_to_initialize_security._Error_code__0x
mov ecx, 0x428b40
call fcn.00404770
mov edx, eax
test edx, edx
jne 0x401f48
xor ecx, ecx
jmp 0x401f4f
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push esi
call fcn.00402390
push eax
call fcn.00404a20
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x4022f1
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x41f334
push 1
push 0
push 0x41f324
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x401fc2
mov edx, str.Failed_to_create_IWbemLocator_object.
mov ecx, 0x428b40
call fcn.00404770
mov edx, str._Err_code__0x
mov ecx, eax
jmp 0x401f39
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00401d70
mov dword [esp + 0x70], 0
mov eax, dword [eax]
test eax, eax
je 0x401fe6
mov edx, dword [eax]
jmp 0x401fe8
xor edx, edx
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x18]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [esp + 0xc]
mov dword [esp + 0x70], 0xffffffff
mov esi, eax
call fcn.00401e20
test esi, esi
jns 0x402076
mov edx, str.Could_not_connect._Error_code__0x
mov ecx, 0x428b40
call fcn.00404770
mov edx, eax
test edx, edx
jne 0x402034
xor ecx, ecx
jmp 0x40203b
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push esi
call fcn.00402390
push eax
call fcn.00404a20
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x4022f1
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [esp + 0x34]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4020de
push eax
push ecx
mov edx, str.Could_not_set_proxy_blanket._Error_code__0x
mov ecx, 0x428b40
call fcn.00404770
mov ecx, eax
call fcn.00402360
mov ecx, eax
call fcn.00402390
push eax
call fcn.00404a20
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x4022f1
push str.SELECT__FROM_Win32_Process
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.00401cd0
mov esi, eax
push 0x42493c
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 1
call fcn.00401cd0
mov byte [esp + 0x70], 2
mov esi, dword [esi]
test esi, esi
je 0x40211b
mov esi, dword [esi]
jmp 0x40211d
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x402127
mov edx, dword [eax]
jmp 0x402129
xor edx, edx
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x20]
push edi
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.00401e20
lea ecx, [esp + 0x10]
mov dword [esp + 0x70], 0xffffffff
call fcn.00401e20
test esi, esi
jns 0x4021b6
push esi
push ecx
mov edx, str.Query_for_processes_failed.
mov ecx, 0x428b40
call fcn.00404770
mov edx, str._Error_code__0x
mov ecx, eax
call fcn.00404770
mov ecx, eax
call fcn.00402360
mov ecx, eax
call fcn.00402390
push eax
call fcn.00404a20
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x4022f1
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x48], 0
test ecx, ecx
je 0x4022cb
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ecx]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x20]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [esp + 0x48], 0
je 0x4022cb
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.ProcessId
push eax
call dword [ecx + 0x10]
push dword [esp + 0x54]
push 0x424984
call fcn.0040760c
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x3c]
add esp, 8
mov ecx, dword [eax]
push 0
push 0
push edx
push 0
push str.Name
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x402254
push eax
push str._ls_n
call fcn.0040760c
add esp, 8
jmp 0x402261
push 0x4249a4
call fcn.0040760c
add esp, 4
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x4249a8
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x402293
push eax
push str._ls_n
call fcn.0040760c
add esp, 8
jmp 0x4022a0
push 0x4249a4
call fcn.0040760c
add esp, 4
lea eax, [esp + 0x4c]
push eax
call esi
lea eax, [esp + 0x34]
push eax
call esi
lea eax, [esp + 0x24]
push eax
call esi
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x4021d8
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00406dff
mov esp, ebp
pop ebp
ret