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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10033fd7
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10048024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 7
jne 0x1003231f
mov eax, 1
jmp 0x100326de
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1003234d
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1003234d
mov eax, dword [ebp - 0x18]
jmp 0x100326de
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10032385
cmp dword [ebp - 0x18], 0x80010119
je 0x10032385
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
jmp 0x100326de
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x10036738
push 1
push 0
push 0x10036808
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x100323bb
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
jmp 0x100326de
cmp dword [ebp - 0x10], 0
jne 0x100323cf
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
jmp 0x100326de
mov dword [ebp - 0x20], 0
push str.ROOTCIMV2
lea ecx, [ebp - 0x40]
call fcn.100010a0
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x58]
call fcn.10001160
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10001140
cmp dword [ebp - 0x18], 0
jge 0x1003244e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
jmp 0x100326de
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10032499
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
jmp 0x100326de
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx*8 + 0x10040f2c]
push eax
lea ecx, [ebp - 0x44]
call section..text
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
push 0x10040f7c
lea ecx, [ebp - 0x48]
call section..text
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
push 0
push 0x30
mov ecx, dword [ebp - 0x60]
call fcn.10001160
push eax
mov ecx, dword [ebp - 0x68]
call fcn.10001160
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [eax + 0x50]
call ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.10001140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10001140
cmp dword [ebp - 0x18], 0
jge 0x10032553
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
jmp 0x100326de
cmp dword [ebp - 0x14], 0
je 0x100326ac
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0xc], 0
je 0x1003257e
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x10]
jl 0x1003257e
jmp 0x100326ac
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push 1
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [edx + 0x10]
call ecx
cmp dword [ebp - 0x28], 0
jne 0x100325a3
jmp 0x100326ac
cmp dword [ebp + 0xc], 0
je 0x1003269e
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*8 + 0x10040f30]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0x80
mov edx, dword [ebp - 0x1c]
shl edx, 8
add edx, dword [ebp + 0xc]
push edx
call fcn.10001360
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x1c]
shl ecx, 8
add ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 8], 0
jne 0x10032625
mov edx, dword [ebp - 0x2c]
push edx
push 0x80
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.10032110
jmp 0x1003269c
cmp dword [ebp + 8], 2
jne 0x1003263e
push 0x80
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.10031eb0
jmp 0x1003269c
cmp dword [ebp + 8], 1
jne 0x10032671
mov word [ebp - 0x4a], 0x3a
lea edx, [ebp - 0x4a]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10001460
add esp, 0xc
jmp 0x1003269c
mov word [ebp - 0x4c], 0x20
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + eax*2 + 2]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10001460
add esp, 0xc
jmp 0x100326a7
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x10032553
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc