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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x50
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], 0
push 0
push eax
mov dword [esp + 0x24], 0
call fcn.0040eab0
add esp, 0xc
mov dword [esp + 0x20], 0
xor ebx, ebx
mov dword [esp + 0x28], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
lea eax, [esp + 0x1c]
push eax
push 0x42f6c0
setns byte [esp + 0x1f]
xor edi, edi
push 1
push edi
push 0x42f6d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x404ac2
cmp dword [esp + 0x1c], ebx
je 0x404ac2
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.._rootcimv2
call esi
mov dword [esp + 0x30], eax
test eax, eax
je 0x404ac2
push str.Win32_PNPEntity
call esi
mov dword [esp + 0x34], eax
test eax, eax
je 0x404aa4
push str.DeviceID
call esi
mov ebx, eax
test ebx, ebx
je 0x404aa4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
push edi
mov edx, dword [ecx]
push edi
push edi
push edi
push edi
push dword [esp + 0x4c]
push ecx
call dword [edx + 0xc]
test eax, eax
js 0x404aa4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404aa4
push edi
push edi
push 3
push 3
push edi
push edi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push edi
push edi
push dword [esp + 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
test eax, eax
js 0x404aa4
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x404aa4
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x4c]
push edx
push 0x14
push 0x2710
push ecx
call dword [eax + 0x10]
test eax, eax
js 0x404aa2
nop
mov eax, dword [esp + 0x28]
test eax, eax
je 0x404aa2
xor esi, esi
test eax, eax
je 0x404a7f
mov eax, dword [esp + esi*4 + 0x48]
lea edx, [esp + 0x38]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x404a62
cmp word [esp + 0x38], 8
jne 0x404a62
mov eax, dword [esp + 0x40]
test eax, eax
je 0x404a62
push 0x42f17c
push eax
call fcn.0040e4d6
add esp, 8
test eax, eax
je 0x404a62
push str.VID_
push dword [esp + 0x44]
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
call fcn.0040e4d6
add esp, 8
test eax, eax
je 0x404a12
lea ecx, [esp + 0x24]
push ecx
push str.VID__4X
push eax
call fcn.00404640
mov ecx, dword [esp + 0x30]
xor edx, edx
add esp, 0xc
cmp eax, 1
cmovne ecx, edx
mov dword [esp + 0x24], ecx
push str.PID_
push dword [esp + 0x44]
call fcn.0040e4d6
add esp, 8
test eax, eax
je 0x404a48
lea ecx, [esp + 0x2c]
push ecx
push str.PID__4X
push eax
call fcn.00404640
mov ecx, dword [esp + 0x38]
xor edx, edx
add esp, 0xc
cmp eax, 1
cmovne ecx, edx
jmp 0x404a4c
mov ecx, dword [esp + 0x2c]
movzx eax, word [esp + 0x24]
movzx ecx, cx
shl ecx, 0x10
or ecx, eax
cmp ecx, dword [ebp]
je 0x404b39
mov ecx, dword [esp + esi*4 + 0x48]
test ecx, ecx
je 0x404a74
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + esi*4 + 0x48], edi
inc esi
cmp esi, dword [esp + 0x28]
jb 0x404986
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x4c]
push edx
mov ecx, dword [eax]
push 0x14
push 0x2710
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x404970
xor edi, edi
push dword [esp + 0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
test ebx, ebx
je 0x404ab7
push ebx
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x404ac2
push eax
call esi
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x48]
test ecx, ecx
je 0x404ada
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + esi*4 + 0x48], 0
inc esi
cmp esi, 0x14
jb 0x404ac4
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x404af6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x404b0c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404b22
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x20], 0
cmp byte [esp + 0x17], 0
je 0x404b2f
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x404aa4