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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dc69
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], edx
mov esi, ecx
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [edx], 0
call fcn.00403750
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
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 dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
test eax, eax
jns 0x40e83b
cmp eax, 0x80010119
jne 0x40e86b
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40e848
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x20]
push eax
push 0x491d78
push 1
push 0
push 0x4836c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40e8a4
mov dword [ebp - 0x20], 0
mov esi, dword [ebp - 0x18]
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
test byte [ebp - 0x24], 1
je 0x40e886
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0xd], 0
je 0x40eaab
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40e90c
push 0x80004003
call fcn.00455560
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x40e86b
test esi, esi
jne 0x40e8f2
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e8ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov eax, dword [edi]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push edi
call dword [eax + 0xc]
test eax, eax
js 0x40e86e
mov byte [ebp - 0xd], 1
jmp 0x40e872
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x40e8b2
push 0x8007000e
call fcn.004039a0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40e93a
xor esi, esi
mov dword [ebp - 0x24], esi
push 0x491d10
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x40e954
push 0x8007000e
call fcn.004039a0
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x40e918
push 0x8007000e
call fcn.004039a0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e965
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push esi
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
test eax, eax
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
setns byte [ebp - 0xd]
call edi
push esi
call edi
cmp byte [ebp - 0xd], 0
je 0x40eaab
xor eax, eax
mov dword [ebp - 0x28], 1
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x40e89a
nop dword [eax]
test eax, eax
je 0x40e9ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0xffffffffffffffff
push esi
call dword [eax + 0x10]
test eax, eax
jne 0x40ea9a
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 0xc]
inc dword [eax]
cmp byte [ebp - 0xd], 0
je 0x40e9ff
mov byte [ebp - 0xd], 0
jmp 0x40ea0d
push 2
push 0x491d18
mov ecx, edi
call fcn.00409770
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40e89a
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push 0
push 0
push edx
push 0
push str.displayName
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x40ea79
mov eax, 8
cmp ax, word [ebp - 0x40]
jne 0x40ea79
mov edx, dword [ebp - 0x38]
test edx, edx
jne 0x40ea5c
xor ecx, ecx
jmp 0x40ea70
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ea61
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00409770
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40e89a
mov eax, dword [ebp - 0x18]
jmp 0x40e9c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40eaab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40eabc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40eacd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x40eade
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40eb00
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret