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

Disassembly:
push 0x3c
mov eax, 0x41a352
call fcn.00409dce
lea eax, [ebp - 0x14]
push eax
push 0x41e540
xor ebx, ebx
inc ebx
push ebx
xor esi, esi
push esi
push 0x41e610
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x405382
push str.ROOTCIMV2
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x20]
call fcn.00404c0a
mov eax, dword [eax]
cmp eax, esi
mov dword [ebp - 4], esi
je 0x4051ae
mov ecx, dword [eax]
jmp 0x4051b0
xor ecx, ecx
lea edi, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
mov edi, eax
cmp ecx, esi
je 0x4051d6
call fcn.00404c57
cmp edi, esi
jge 0x4051e2
mov eax, dword [ebp - 0x14]
jmp 0x405378
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, esi
jge 0x405208
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x4051da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4051da
push str.SELECT__FROM_Win32_NetworkAdapterConfiguration
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
call fcn.00404bbd
mov edi, eax
push 0x41be84
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00404bbd
mov ecx, dword [edi]
cmp ecx, esi
mov byte [ebp - 4], 2
je 0x405238
mov ecx, dword [ecx]
jmp 0x40523a
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x405244
mov edx, dword [eax]
jmp 0x405246
xor edx, edx
lea ebx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
call dword [edi + 0x50]
mov edi, eax
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
je 0x405269
call fcn.00404c57
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x405279
call fcn.00404c57
cmp edi, esi
jl 0x4051f9
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x18], esi
je 0x40534e
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [eax + 0x10]
cmp dword [ebp - 0x24], esi
je 0x40534e
lea eax, [ebp - 0x38]
push eax
call edi
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push esi
push esi
push edx
push esi
push str.Caption
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x40533f
push 0x41bdc8
push dword [ebp - 0x30]
call fcn.00409791
pop ecx
or eax, eax
pop ecx
je 0x40533f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push esi
push esi
push edx
push esi
push str.ServiceName
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x40533f
push str.SVPadapter
push dword [ebp - 0x30]
call fcn.004089c0
pop ecx
or eax, eax
pop ecx
jne 0x40533f
lea eax, [ebp - 0x48]
push eax
call edi
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push esi
push esi
push edx
push esi
push str.InterfaceIndex
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x40538b
lea eax, [ebp - 0x48]
push eax
call ebx
lea eax, [ebp - 0x38]
push eax
call ebx
cmp dword [ebp - 0x18], esi
jne 0x40529c
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x40535b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x405368
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x405375
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x405382
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, 0xffffffff
call fcn.00409e6d
ret
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x405398
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x4053a5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x4053b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x4053bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x40]
jmp 0x405385