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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1a42
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x56f734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00405870
mov dword [ebp - 0x190], eax
mov byte [ebp - 0xb1], 0
push 0x4fe0d8
push 0x4fe0e8
push SysReAllocString
lea eax, [ebp - 0xfc]
push eax
call fcn.004099d0
add esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xfc]
call fcn.00414db0
test eax, eax
jne 0x40c115
lea ecx, [ebp - 0xfc]
call fcn.004147e0
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx]
jge 0x40c0dc
lea ecx, [ebp - 0xfc]
call fcn.004147e0
add eax, 1
push eax
lea ecx, [ebp - 0xfc]
call fcn.004147c0
push eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
mov byte [ebp - 0xb1], 1
lea ecx, [ebp - 0xfc]
call fcn.004147e0
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov al, byte [ebp - 0xb1]
mov byte [ebp - 0xc5], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.004142e0
mov al, byte [ebp - 0xc5]
jmp 0x40c9c1
push str.select__from_Win32_NetworkAdapter_where_NOT_PNPDeviceID_LIKE_ROOT__AND_NOT_PNPDeviceID_LIKE_SW_
lea ecx, [ebp - 0x174]
call fcn.00414370
mov byte [ebp - 4], 1
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0xbc]
push ecx
push 0x54ac20
push 1
push 0
push 0x54ac10
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jge 0x40c190
mov byte [ebp - 0xc6], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.004142e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.004142e0
mov al, byte [ebp - 0xc6]
jmp 0x40c9c1
mov dword [ebp - 0xc0], 0
lea edx, [ebp - 0xc0]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4fe1e8
lea ecx, [ebp - 0x154]
call fcn.00408500
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14c]
call fcn.00408620
push eax
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x154]
call fcn.004085e0
cmp dword [ebp - 0xb8], 0
jge 0x40c258
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xbc]
push ecx
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 0xcd], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.004142e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.004142e0
mov al, byte [ebp - 0xcd]
jmp 0x40c9c1
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov eax, dword [ebp - 0xc0]
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jge 0x40c2dd
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xbc]
push ecx
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 0xcf], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.004142e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.004142e0
mov al, byte [ebp - 0xcf]
jmp 0x40c9c1
mov dword [ebp - 0xc4], 0
lea eax, [ebp - 0xc4]
push eax
push 0
push 0x30
lea ecx, [ebp - 0x174]
call fcn.004147c0
push eax
lea ecx, [ebp - 0x12c]
call fcn.00408500
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x164], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x164]
call fcn.00408620
push eax
push 0x4fe210
lea ecx, [ebp - 0x18c]
call fcn.0040eff0
mov dword [ebp - 0x17c], eax
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x184], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x184]
call fcn.00408620
push eax
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ecx + 0x50]
call eax
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18c]
call fcn.004085e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.004085e0
cmp dword [ebp - 0xb8], 0
jl 0x40c937
cmp dword [ebp - 0xc4], 0
je 0x40c937
mov dword [ebp - 0xdc], 0
lea ecx, [ebp - 0xdc]
push ecx
lea edx, [ebp - 0xb0]
push edx
push 0x1e
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0xf0]
call fcn.004142b0
mov byte [ebp - 4], 5
cmp dword [ebp - 0xb8], 0
jl 0x40c928
cmp dword [ebp - 0xdc], 0
jbe 0x40c928
lea ecx, [ebp - 0x11c]
call fcn.0040ef50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd4]
call fcn.0040ef00
mov dword [ebp - 0xd8], 0
jmp 0x40c443
mov ecx, dword [ebp - 0xd8]
add ecx, 1
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd8]
cmp edx, dword [ebp - 0xdc]
jae 0x40c749
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp + eax*4 - 0xb0]
mov dword [ebp - 0xcc], ecx
cmp dword [ebp - 0xcc], 0
je 0x40c744
push 0
lea edx, [ebp - 0x100]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push str.Index
lea ecx, [ebp - 0x160]
call fcn.00408500
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x138], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x138]
call fcn.00408620
push eax
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xcc]
push ecx
mov edx, dword [eax + 0x10]
call edx
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x160]
call fcn.004085e0
cmp dword [ebp - 0xb8], 0
jl 0x40c744
movzx eax, word [ebp - 0x114]
cmp eax, 3
jne 0x40c744
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x104], ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push str.ConfigManagerErrorCode
lea ecx, [ebp - 0x148]
call fcn.00408500
mov dword [ebp - 0x140], eax
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x188], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x188]
call fcn.00408620
push eax
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x148]
call fcn.004085e0
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x158], ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push str.MACAddress
lea ecx, [ebp - 0x180]
call fcn.00408500
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x150], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x150]
call fcn.00408620
push eax
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x180]
call fcn.004085e0
lea ecx, [ebp - 0x128]
call fcn.004142b0
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xb8], 0
jl 0x40c728
movzx ecx, word [ebp - 0x114]
cmp ecx, 8
jne 0x40c653
mov edx, dword [ebp - 0x10c]
push edx
call fcn.004131a0
add esp, 4
push eax
lea ecx, [ebp - 0x128]
call fcn.00414580
jmp 0x40c6e4
cmp dword [ebp - 0x158], 0x16
jne 0x40c6e4
xor eax, eax
mov word [ebp - 0x38], ax
xor ecx, ecx
mov dword [ebp - 0x36], ecx
mov dword [ebp - 0x32], ecx
mov dword [ebp - 0x2e], ecx
mov dword [ebp - 0x2a], ecx
mov word [ebp - 0x26], cx
push 0xa
push 0xa
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.MSVCR120.dll__ltow_s]
add esp, 0x10
lea ecx, [ebp - 0x38]
push ecx
push 0x4fe4c4
push SysReAllocString
lea edx, [ebp - 0x1a8]
push edx
call fcn.004099d0
add esp, 0x10
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x128]
call fcn.004145d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1a8]
call fcn.004142e0
lea ecx, [ebp - 0x128]
call fcn.00414db0
test eax, eax
jne 0x40c728
push 0x4fe508
push 0x4fe50c
lea ecx, [ebp - 0x128]
call fcn.00414f90
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040f270
mov ecx, eax
call fcn.004145d0
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x128]
call fcn.004142e0
jmp 0x40c434
lea edx, [ebp - 0x194]
push edx
lea ecx, [ebp - 0x11c]
call fcn.0048f6a0
mov eax, dword [eax]
mov dword [ebp - 0xd4], eax
jmp 0x40c779
push 0
lea ecx, [ebp - 0x198]
push ecx
lea ecx, [ebp - 0xd4]
call fcn.00445db0
lea edx, [ebp - 0x19c]
push edx
lea ecx, [ebp - 0x11c]
call fcn.0045d670
push eax
lea ecx, [ebp - 0xd4]
call fcn.004516c0
movzx eax, al
test eax, eax
je 0x40c858
lea ecx, [ebp - 0xd4]
call fcn.00486f70
add eax, 4
push eax
lea ecx, [ebp - 0xf0]
call fcn.004145d0
lea ecx, [ebp - 0xf0]
call fcn.00414db0
test eax, eax
jne 0x40c853
lea ecx, [ebp - 0xd4]
call fcn.00486f70
mov ecx, dword [eax]
mov dword [ebp - 0x13c], ecx
xor edx, edx
mov word [ebp - 0x24], dx
xor eax, eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
push 0xa
push 0xa
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.MSVCR120.dll__ltow_s]
add esp, 0x10
lea ecx, [ebp - 0xf0]
call fcn.004147c0
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4fe580
push SysReAllocString
call fcn.00409cb0
lea ecx, [ebp - 0xf0]
call fcn.004147c0
push eax
push str.HFNCv2
push 0x4fe5b8
push SysReAllocString
call fcn.00409cb0
jmp 0x40c858
jmp 0x40c765
lea ecx, [ebp - 0xf0]
call fcn.00414db0
test eax, eax
jne 0x40c8be
lea ecx, [ebp - 0xf0]
call fcn.004147e0
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx]
jge 0x40c8ae
lea ecx, [ebp - 0xf0]
call fcn.004147e0
add eax, 1
push eax
lea ecx, [ebp - 0xf0]
call fcn.004147c0
push eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
mov byte [ebp - 0xb1], 1
lea ecx, [ebp - 0xf0]
call fcn.004147e0
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [ebp - 0xe0], 0
jmp 0x40c8d9
mov eax, dword [ebp - 0xe0]
add eax, 1
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
cmp ecx, dword [ebp - 0xdc]
jae 0x40c919
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp + edx*4 - 0xb0]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
je 0x40c917
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x40c8ca
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x11c]
call fcn.0040f190
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
call fcn.004142e0
cmp dword [ebp - 0xc0], 0
je 0x40c954
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [eax + 8]
call edx
cmp dword [ebp - 0xbc], 0
je 0x40c971
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xbc]
push edx
mov eax, dword [ecx + 8]
call eax
cmp dword [ebp - 0xc4], 0
je 0x40c98e
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov dl, byte [ebp - 0xb1]
mov byte [ebp - 0xce], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.004142e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.004142e0
mov al, byte [ebp - 0xce]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004df9ac
mov esp, ebp
pop ebp
ret