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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c281
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x7fe
xor esi, esi
lea edx, [ebp - 0x84a]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0x880], eax
mov word [ebp - 0x84c], cx
call fcn.00422210
add esp, 0xc
xor eax, eax
push esi
push esi
mov word [ebp - 0x48], ax
mov dword [ebp - 0x46], eax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov word [ebp - 0x3a], ax
mov dword [ebp - 0x858], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x40aec0
push str._GetLocalIP__Failed_to_initialize_COM_library.
call fcn.00403790
add esp, 4
xor eax, eax
jmp 0x40b6dc
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x40aeef
push str._GetLocalIP__Failed_to_initialize_security.
call fcn.00403790
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x40b6dc
lea ecx, [ebp - 0x85c]
push ecx
push 0x42f4ec
push 1
push esi
push 0x42f5bc
mov dword [ebp - 0x85c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x40af1a
push str._GetLocalIP__Failed_to_create_IWbemLocator_object.
jmp 0x40aeda
lea ebx, [ebp - 0x850]
mov dword [ebp - 0x864], esi
call fcn.0040a130
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [eax]
cmp eax, esi
je 0x40af3a
mov ecx, dword [eax]
jmp 0x40af3c
xor ecx, ecx
mov eax, dword [ebp - 0x85c]
mov edx, dword [eax]
lea edi, [ebp - 0x864]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [ebp - 0x850]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1d0
cmp ebx, esi
jge 0x40afa0
push str._GetLocalIP__Could_not_connect_WMI_Server.
call fcn.00403790
add esp, 4
mov eax, dword [ebp - 0x85c]
cmp eax, esi
je 0x40aee2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x40b6dc
mov eax, dword [ebp - 0x864]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, esi
jge 0x40afdc
push str._GetLocalIP__Could_not_set_proxy_blanket.
call fcn.00403790
add esp, 4
mov eax, dword [ebp - 0x864]
cmp eax, esi
je 0x40af7d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40af7d
push str.SELECT__FROM_Win32_NetworkAdapterConfiguration_WHERE_IPEnabled__TRUE
lea ebx, [ebp - 0x87c]
mov dword [ebp - 0x878], esi
call fcn.0040a0a0
mov edi, eax
push 0x435cbc
lea ebx, [ebp - 0x850]
mov dword [ebp - 4], 1
call fcn.0040a0a0
mov byte [ebp - 4], 2
mov ecx, dword [edi]
xor esi, esi
cmp ecx, esi
je 0x40b01b
mov ecx, dword [ecx]
jmp 0x40b01d
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x40b027
mov edx, dword [eax]
jmp 0x40b029
xor edx, edx
mov eax, dword [ebp - 0x864]
mov edi, dword [eax]
lea ebx, [ebp - 0x878]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
mov eax, dword [edi + 0x50]
call eax
lea edi, [ebp - 0x850]
mov ebx, eax
call fcn.0040a1d0
lea edi, [ebp - 0x87c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1d0
cmp ebx, esi
jge 0x40b08e
push 0x435cc0
call fcn.00403790
mov eax, dword [ebp - 0x878]
add esp, 4
cmp eax, esi
je 0x40afc8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40afc8
mov eax, dword [ebp - 0x878]
mov dword [ebp - 0x884], esi
cmp eax, esi
je 0x40b41a
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [eax]
lea edx, [ebp - 0x884]
push edx
lea edx, [ebp - 0x860]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x884], esi
je 0x40b414
lea ecx, [ebp - 0x874]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x860]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push esi
lea ecx, [ebp - 0x874]
push ecx
push esi
push str.IPEnabled
push eax
call edx
cmp word [ebp - 0x86c], si
je 0x40b1d2
lea eax, [ebp - 0x874]
push eax
call ebx
mov eax, dword [ebp - 0x860]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x874]
push edx
push esi
push str.MacAddress
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [ebp - 0x86c]
push 8
push str.00:00:00
push ecx
call fcn.0041c79c
add esp, 0xc
test eax, eax
jne 0x40b153
lea edx, [ebp - 0x874]
push edx
call ebx
jmp 0x40b404
mov eax, dword [ebp - 0x86c]
push 0x11
push str.44:45:53:54:00:00
push eax
call fcn.0041c79c
add esp, 0xc
test eax, eax
jne 0x40b17b
lea ecx, [ebp - 0x874]
push ecx
call ebx
jmp 0x40b404
mov edx, dword [ebp - 0x86c]
push 0xb
push str.20:52:41:63
push edx
call fcn.0041c79c
add esp, 0xc
test eax, eax
jne 0x40b1a3
lea eax, [ebp - 0x874]
push eax
call ebx
jmp 0x40b404
mov eax, dword [ebp - 0x86c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40b1b0
sub eax, edx
sar eax, 1
cmp eax, 0x11
je 0x40b1d2
lea ecx, [ebp - 0x874]
push ecx
call ebx
jmp 0x40b404
lea edx, [ebp - 0x874]
push edx
call ebx
mov eax, dword [ebp - 0x860]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x874]
push edx
push esi
push str.IPEnabled
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp word [ebp - 0x86c], si
je 0x40b3f2
lea ecx, [ebp - 0x874]
push ecx
call ebx
mov eax, dword [ebp - 0x860]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push esi
lea ecx, [ebp - 0x874]
push ecx
push esi
push str.Description
push eax
call edx
test eax, eax
js 0x40b25f
mov eax, dword [ebp - 0x86c]
lea edx, [eax + 2]
jmp 0x40b240
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40b240
sub eax, edx
sar eax, 1
jne 0x40b25f
lea eax, [ebp - 0x874]
push eax
call ebx
jmp 0x40b404
lea ecx, [ebp - 0x874]
push ecx
call ebx
mov eax, dword [ebp - 0x860]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push esi
lea ecx, [ebp - 0x874]
push ecx
push esi
push str.IPAddress
push eax
call edx
cmp eax, esi
jge 0x40b297
lea eax, [ebp - 0x874]
push eax
call ebx
jmp 0x40b404
mov eax, dword [ebp - 0x86c]
lea ecx, [ebp - 0x88c]
push ecx
push 1
mov edi, eax
push eax
mov dword [ebp - 0x850], edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
test eax, eax
jns 0x40b2cd
lea edx, [ebp - 0x874]
push edx
mov dword [ebp - 0x854], esi
call ebx
jmp 0x40b404
lea eax, [ebp - 0x888]
push eax
push 1
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
test eax, eax
jns 0x40b2f5
lea ecx, [ebp - 0x874]
push ecx
mov dword [ebp - 0x854], esi
call ebx
jmp 0x40b404
lea edx, [ebp - 0x854]
push edx
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
cmp dword [ebp - 0x854], esi
jne 0x40b320
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
lea eax, [ebp - 0x874]
push eax
call ebx
jmp 0x40b404
cmp eax, esi
jl 0x40b3e5
mov eax, dword [ebp - 0x88c]
mov dword [ebp - 0x87c], eax
cmp eax, dword [ebp - 0x888]
jg 0x40b3e5
mov ecx, dword [ebp - 0x858]
mov edx, dword [ebp - 0x880]
mov esi, dword [ebp - 0x858]
shl ecx, 5
lea ebx, [ecx + edx + 0x18]
mov eax, dword [ebp - 0x854]
mov ecx, dword [eax]
push ecx
call fcn.004277d0
add dword [ebp - 0x854], 4
mov edi, eax
mov ecx, edi
call section..text
cmp al, 1
jne 0x40b3a2
add ebx, 0x20
inc esi
mov edx, ebx
mov dword [ebx - 0x18], esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax - 0x14], cl
inc eax
test cl, cl
jne 0x40b388
call fcn.00401330
mov dword [ebx], eax
mov dword [ebx + 4], edx
cmp esi, 0x10
je 0x40b3c8
push edi
call fcn.0041ae84
mov eax, dword [ebp - 0x87c]
inc eax
add esp, 4
mov dword [ebp - 0x87c], eax
cmp eax, dword [ebp - 0x888]
jle 0x40b359
mov dword [ebp - 0x858], esi
jmp 0x40b3d7
push edi
mov dword [ebp - 0x858], esi
call fcn.0041ae84
add esp, 4
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, dword [ebp - 0x850]
xor esi, esi
push edi
mov dword [ebp - 0x854], esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
lea eax, [ebp - 0x874]
push eax
call ebx
cmp dword [ebp - 0x858], 0x10
je 0x40b414
mov eax, dword [ebp - 0x878]
cmp eax, esi
jne 0x40b0a8
jmp 0x40b41a
mov eax, dword [ebp - 0x878]
mov ecx, dword [ebp - 0x860]
cmp ecx, esi
je 0x40b432
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x878]
cmp eax, esi
je 0x40b43e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x864]
cmp eax, esi
je 0x40b450
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x85c]
cmp eax, esi
je 0x40b462
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x858]
xor eax, eax
push 0xa
lea edx, [ebp - 0x48]
mov word [ebp - 0x38], ax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x880]
push edx
push ecx
mov dword [eax], ecx
mov byte [eax + 4], 0
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
call fcn.0041aee5
add esp, 0xc
xor eax, eax
jmp 0x40b4c0
movzx ecx, word [eax + str._GetLocalIP__Total__]
mov word [ebp + eax - 0x84c], cx
add eax, 2
cmp cx, si
jne 0x40b4c0
lea eax, [ebp - 0x48]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40b4e0
lea edi, [ebp - 0x84c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, si
jne 0x40b4f6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x84c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x40b520
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40b520
mov ecx, dword [str.__IP.__]
mov edx, dword [0x435dd8]
mov dword [eax], ecx
mov ecx, dword [0x435ddc]
mov dword [eax + 4], edx
mov edx, dword [0x435de0]
mov dword [eax + 8], ecx
mov ecx, dword [0x435de4]
mov dword [eax + 0xc], edx
mov dx, word [0x435de8]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
mov eax, dword [ebp - 0x858]
cmp eax, 1
jl 0x40b6c8
mov ebx, dword [ebp - 0x880]
add ebx, 0x38
mov dword [ebp - 0x850], eax
lea edi, [ebp - 0x84c]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b590
mov ecx, dword [0x435dec]
mov dword [edi], ecx
mov edi, 0xb5bc38
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b5b0
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
lea eax, [ebp - 0x38]
push eax
push ecx
push edx
call fcn.00401440
lea eax, [ebp - 0x38]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b5d6
lea edi, [ebp - 0x84c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40b5f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x38]
rep movsb byte es:[edi], byte [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b611
mov edi, 0xb5bc38
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40b626
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x84c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x40b650
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40b650
mov edx, dword [0x435df0]
mov si, word [0x435df4]
mov dword [eax], edx
mov word [eax + 4], si
mov eax, 0xb5bc38
add eax, 0xfffffffe
jmp 0x40b680
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40b680
mov dword [eax], edx
mov word [eax + 4], si
xor eax, eax
movzx ecx, ax
mov eax, ecx
shl ecx, 0x10
or eax, ecx
add ebx, 0x20
dec dword [ebp - 0x850]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
jne 0x40b581
lea edx, [ebp - 0x84c]
push edx
call fcn.00403790
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret