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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e33d2
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00406200
mov dword [ebp - 0x190], eax
mov byte [ebp - 0xb1], 0
push 0x5000f8
push 0x500108
push SysReAllocString
lea eax, [ebp - 0xfc]
push eax
call fcn.0040a5f0
add esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xfc]
call fcn.00415d20
test eax, eax
jne 0x40cd55
lea ecx, [ebp - 0xfc]
call fcn.00415810
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx]
jge 0x40cd1c
lea ecx, [ebp - 0xfc]
call fcn.00415810
add eax, 1
push eax
lea ecx, [ebp - 0xfc]
call fcn.004157f0
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.00415810
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.00415310
mov al, byte [ebp - 0xc5]
jmp 0x40d601
push str.select__from_Win32_NetworkAdapter_where_NOT_PNPDeviceID_LIKE_ROOT__AND_NOT_PNPDeviceID_LIKE_SW_
lea ecx, [ebp - 0x174]
call fcn.004153a0
mov byte [ebp - 4], 1
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0xbc]
push ecx
push 0x54d7a0
push 1
push 0
push 0x54d790
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jge 0x40cdd0
mov byte [ebp - 0xc6], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.00415310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00415310
mov al, byte [ebp - 0xc6]
jmp 0x40d601
mov dword [ebp - 0xc0], 0
lea edx, [ebp - 0xc0]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push str.ROOTCIMV2
lea ecx, [ebp - 0x154]
call fcn.004090b0
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.00409210
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.00409190
cmp dword [ebp - 0xb8], 0
jge 0x40ce98
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.00415310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00415310
mov al, byte [ebp - 0xcd]
jmp 0x40d601
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 0x40cf1d
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.00415310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00415310
mov al, byte [ebp - 0xcf]
jmp 0x40d601
mov dword [ebp - 0xc4], 0
lea eax, [ebp - 0xc4]
push eax
push 0
push 0x30
lea ecx, [ebp - 0x174]
call fcn.004157f0
push eax
lea ecx, [ebp - 0x12c]
call fcn.004090b0
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.00409210
push eax
push 0x500330
lea ecx, [ebp - 0x18c]
call fcn.0040fd20
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.00409210
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.00409190
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.00409190
cmp dword [ebp - 0xb8], 0
jl 0x40d577
cmp dword [ebp - 0xc4], 0
je 0x40d577
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.004152e0
mov byte [ebp - 4], 5
cmp dword [ebp - 0xb8], 0
jl 0x40d568
cmp dword [ebp - 0xdc], 0
jbe 0x40d568
lea ecx, [ebp - 0x11c]
call fcn.0040fc80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd4]
call fcn.0040fc60
mov dword [ebp - 0xd8], 0
jmp 0x40d083
mov ecx, dword [ebp - 0xd8]
add ecx, 1
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd8]
cmp edx, dword [ebp - 0xdc]
jae 0x40d389
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp + eax*4 - 0xb0]
mov dword [ebp - 0xcc], ecx
cmp dword [ebp - 0xcc], 0
je 0x40d384
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.004090b0
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.00409210
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.00409190
cmp dword [ebp - 0xb8], 0
jl 0x40d384
movzx eax, word [ebp - 0x114]
cmp eax, 3
jne 0x40d384
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.004090b0
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.00409210
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.00409190
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.004090b0
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.00409210
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.00409190
lea ecx, [ebp - 0x128]
call fcn.004152e0
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xb8], 0
jl 0x40d368
movzx ecx, word [ebp - 0x114]
cmp ecx, 8
jne 0x40d293
mov edx, dword [ebp - 0x10c]
push edx
call fcn.00414270
add esp, 4
push eax
lea ecx, [ebp - 0x128]
call fcn.004155b0
jmp 0x40d324
cmp dword [ebp - 0x158], 0x16
jne 0x40d324
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 0x5007dc
push SysReAllocString
lea edx, [ebp - 0x1a8]
push edx
call fcn.0040a5f0
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.00415600
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1a8]
call fcn.00415310
lea ecx, [ebp - 0x128]
call fcn.00415d20
test eax, eax
jne 0x40d368
push 0x500820
push 0x500824
lea ecx, [ebp - 0x128]
call fcn.00415f40
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040ffa0
mov ecx, eax
call fcn.00415600
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x128]
call fcn.00415310
jmp 0x40d074
lea edx, [ebp - 0x194]
push edx
lea ecx, [ebp - 0x11c]
call fcn.0048bef0
mov eax, dword [eax]
mov dword [ebp - 0xd4], eax
jmp 0x40d3b9
push 0
lea ecx, [ebp - 0x198]
push ecx
lea ecx, [ebp - 0xd4]
call fcn.00410050
lea edx, [ebp - 0x19c]
push edx
lea ecx, [ebp - 0x11c]
call fcn.0043ef60
push eax
lea ecx, [ebp - 0xd4]
call fcn.0048b6d0
movzx eax, al
test eax, eax
je 0x40d498
lea ecx, [ebp - 0xd4]
call fcn.00461e70
add eax, 4
push eax
lea ecx, [ebp - 0xf0]
call fcn.00415600
lea ecx, [ebp - 0xf0]
call fcn.00415d20
test eax, eax
jne 0x40d493
lea ecx, [ebp - 0xd4]
call fcn.00461e70
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.004157f0
push eax
lea eax, [ebp - 0x24]
push eax
push 0x5008bc
push SysReAllocString
call fcn.0040a8d0
lea ecx, [ebp - 0xf0]
call fcn.004157f0
push eax
push str.HFNCv2
push 0x5008f4
push SysReAllocString
call fcn.0040a8d0
jmp 0x40d498
jmp 0x40d3a5
lea ecx, [ebp - 0xf0]
call fcn.00415d20
test eax, eax
jne 0x40d4fe
lea ecx, [ebp - 0xf0]
call fcn.00415810
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx]
jge 0x40d4ee
lea ecx, [ebp - 0xf0]
call fcn.00415810
add eax, 1
push eax
lea ecx, [ebp - 0xf0]
call fcn.004157f0
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.00415810
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [ebp - 0xe0], 0
jmp 0x40d519
mov eax, dword [ebp - 0xe0]
add eax, 1
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
cmp ecx, dword [ebp - 0xdc]
jae 0x40d559
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp + edx*4 - 0xb0]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
je 0x40d557
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x40d50a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x11c]
call fcn.0040fec0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
call fcn.00415310
cmp dword [ebp - 0xc0], 0
je 0x40d594
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 0x40d5b1
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 0x40d5ce
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.00415310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.00415310
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.004e11cc
mov esp, ebp
pop ebp
ret