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

Disassembly:
push 0x1c
mov eax, 0x4226eb
call fcn.0042193f
mov eax, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 0x28]
xor edi, edi
mov ebx, edi
test ecx, ecx
je 0x40e1f8
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x42e58c]
call esi
mov eax, dword [ebp - 0x14]
lea esi, [eax + 0x1c]
push 0x402f74
mov ecx, esi
mov dword [ebp - 0x20], esi
call dword [0x42e228]
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e2ca
cmp word [eax], di
je 0x40e2ca
push eax
mov ecx, esi
call dword [0x42e228]
push 2
pop eax
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call dword [sym.imp.MFC42u.dll_CString::Left]
push 0x402f94
mov ecx, eax
call fcn.0040cc91
lea ecx, [ebp - 0x24]
mov esi, eax
call dword [sym.imp.MFC42u.dll_CString::CString]
test esi, esi
mov esi, dword [ebp - 0x20]
jne 0x40e284
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax - 8]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MFC42u.dll_CString::Right]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call dword [0x42e224]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC42u.dll_CString::CString]
push 0x402f74
mov ecx, esi
call dword [sym.imp.MFC42u.dll_CString::Find_1]
cmp eax, 0xffffffff
je 0x40e40a
mov eax, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x20], edi
push 2
pop edx
mov eax, dword [eax - 8]
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004210e7
mov dword [ebp - 0x18], eax
pop ecx
test eax, eax
jne 0x40e3d5
mov ebx, 0x8007000e
mov esi, dword [ebp - 0x14]
lea ecx, [esi + 0x24]
push 0x402f78
call dword [0x42e228]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40e2f1
cmp word [eax], di
je 0x40e2f1
push eax
lea ecx, [esi + 0x24]
call dword [0x42e228]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
test ebx, ebx
js 0x40e3c2
lea eax, [ebp - 0x1c]
push eax
push 0x408404
push 1
push edi
push 0x4083f4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x40e3ad
cmp dword [ebp - 0x1c], 0
je 0x40e3ad
lea ecx, [ebp - 0x18]
call dword [0x42e21c]
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
push dword [esi + 0x24]
push dword [esi + 0x1c]
push 0x402fa0
push eax
call dword [sym.imp.MFC42u.dll_CString::Format]
add esp, 0x10
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC42u.dll_CString::AllocSysString]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40e38a
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x28]
push edx
push edi
push edi
mov esi, dword [ecx]
push edi
push edi
push edi
push edi
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x42e58c]
call dword [esi + 0xc]
push dword [ebp - 0x24]
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e58c]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
call dword [sym.imp.MFC42u.dll_CString::CString]
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x40e3c2
test ebx, ebx
js 0x40e3c2
mov ecx, edi
call fcn.0040ce44
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x28], edi
mov eax, ebx
call fcn.004218ee
ret 8
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameW]
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x40e3f7
push dword [ebp - 0x18]
lea ecx, [esi + 0x20]
call dword [0x42e228]
jmp 0x40e3fc
mov ebx, 0x80070057
push dword [ebp - 0x18]
call fcn.0042190c
pop ecx
jmp 0x40e2cd
push esi
mov esi, dword [ebp - 0x14]
lea ecx, [esi + 0x20]
call dword [0x42e224]
jmp 0x40e2cd