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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
xor ebp, ebp
cmp dword [esp + 0x38], 7
push esi
push edi
mov dword [esp + 0x18], ebp
jb 0x4106cf
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebp
push ebp
push ebp
push 3
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 0x14]
push eax
push 0x455fe4
push 1
push ebp
push 0x4560b4
mov dword [esp + 0x28], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x410779
lea ebx, [esp + 0x24]
mov dword [esp + 0x10], ebp
call fcn.00410030
mov eax, dword [eax]
cmp eax, ebp
je 0x41071f
mov ecx, dword [eax]
jmp 0x410721
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea esi, [esp + 0x10]
push esi
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x24]
mov esi, eax
call fcn.004100d0
cmp esi, ebp
jl 0x41076d
mov eax, dword [esp + 0x10]
push ebp
push ebp
push 3
push 3
push ebp
push ebp
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x41078c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [eax*8 + 0x45bf78]
push ecx
lea ebx, [esp + 0x24]
mov dword [esp + 0x20], ebp
call fcn.0040ffa0
mov eax, dword [eax]
cmp eax, ebp
je 0x4107af
mov esi, dword [eax]
jmp 0x4107b1
xor esi, esi
push 0x45d2fc
lea ebx, [esp + 0x28]
call fcn.0040ffa0
mov eax, dword [eax]
cmp eax, ebp
je 0x4107c9
mov ecx, dword [eax]
jmp 0x4107cb
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea edi, [esp + 0x1c]
push edi
push ebp
push 0x30
push esi
push ecx
push eax
mov eax, dword [edx + 0x50]
call eax
lea edi, [esp + 0x24]
mov esi, eax
call fcn.004100d0
lea edi, [esp + 0x20]
call fcn.004100d0
cmp esi, ebp
jge 0x410824
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x41092c
mov esi, dword [esp + 0x44]
mov edi, esi
jmp 0x410844
mov esi, dword [esp + 0x44]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
cmp esi, ebp
je 0x41085b
cmp dword [esp + 0x18], 3
jge 0x41092c
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x24]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x24], ebp
je 0x410928
cmp esi, ebp
je 0x410904
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x40]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebp
push ebp
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebx*8 + 0x45bf7c]
push ebp
push ecx
push eax
call edx
mov edx, dword [esp + 0x30]
mov esi, 0x80
mov eax, edi
sub edx, edi
jmp 0x4108c0
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x4108e0
movzx ecx, word [edx + eax]
cmp cx, bp
je 0x4108e0
mov word [eax], cx
add eax, 2
sub esi, 1
jne 0x4108c0
jmp 0x4108e4
cmp esi, ebp
jne 0x4108e7
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, edi
mov ecx, ebx
call fcn.00410630
test eax, eax
je 0x41090e
inc dword [esp + 0x18]
add edi, 0x100
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x410840
jmp 0x41092c
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret