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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 4], esi
jl 0x4167f2
cmp dword [ebp + 8], 8
jae 0x4167f2
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x416602
push 0xfffffffffffffffe
pop eax
jmp 0x4167f5
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]
lea eax, [ebp - 0xc]
push eax
push 0x438840
push 1
push esi
push 0x438910
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x416639
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4165fa
lea edi, [ebp - 0x18]
mov dword [ebp - 8], esi
call fcn.00416111
mov eax, dword [eax]
cmp eax, esi
je 0x41664e
mov eax, dword [eax]
jmp 0x416650
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
lea edi, [ebp - 8]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push ecx
call dword [edx + 0xc]
lea edi, [ebp - 0x18]
mov ebx, eax
call fcn.00416175
cmp ebx, esi
jge 0x41667d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x416631
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x4166b6
push 0xfffffffffffffffe
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
pop esi
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x4167f5
mov eax, dword [ebp + 8]
push dword [eax*8 + 0x43a220]
lea edi, [ebp - 0x14]
mov dword [ebp - 0x10], esi
call fcn.004160b9
mov eax, dword [eax]
cmp eax, esi
je 0x4166d5
mov ebx, dword [eax]
jmp 0x4166d7
xor ebx, ebx
push 0x43a2d8
lea edi, [ebp - 0x18]
call fcn.004160b9
mov eax, dword [eax]
cmp eax, esi
je 0x4166ee
mov ecx, dword [eax]
jmp 0x4166f0
xor ecx, ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
lea edi, [ebp - 0x10]
push edi
push esi
push 0x30
push ebx
push ecx
push eax
call dword [edx + 0x50]
lea edi, [ebp - 0x18]
mov ebx, eax
call fcn.00416175
lea edi, [ebp - 0x14]
call fcn.00416175
cmp ebx, esi
jge 0x41671f
push 0xfffffffffffffffd
jmp 0x416696
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x4167cf
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
je 0x416742
cmp dword [ebp - 4], 0xc
jge 0x4167cf
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x18], esi
je 0x4167cc
cmp dword [ebp + 0xc], esi
je 0x4167ad
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x28]
push edx
push esi
push dword [edi*8 + 0x43a224]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x20]
push SysReAllocString
mov edx, 0x80
mov ecx, ebx
call fcn.00416272
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
mov ecx, edi
call fcn.00416557
test eax, eax
je 0x4167b6
inc dword [ebp - 4]
add ebx, 0x100
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
cmp eax, esi
jne 0x41672d
jmp 0x4167cf
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
jmp 0x4167f5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret