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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035ecb
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1004c024]
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 0x1003414f
mov eax, 1
jmp 0x1003450e
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1003417d
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1003417d
mov eax, dword [ebp - 0x18]
jmp 0x1003450e
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 0x100341b5
cmp dword [ebp - 0x18], 0x80010119
je 0x100341b5
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
jmp 0x1003450e
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x10038768
push 1
push 0
push 0x10038838
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x100341eb
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
jmp 0x1003450e
cmp dword [ebp - 0x10], 0
jne 0x100341ff
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
jmp 0x1003450e
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 0x1003427e
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 0x1003450e
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 0x100342c9
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 0x1003450e
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx*8 + 0x1004465c]
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 0x100446ac
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 0x10034383
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 0x1003450e
cmp dword [ebp - 0x14], 0
je 0x100344dc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0xc], 0
je 0x100343ae
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x10]
jl 0x100343ae
jmp 0x100344dc
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 0x100343d3
jmp 0x100344dc
cmp dword [ebp + 0xc], 0
je 0x100344ce
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 + 0x10044660]
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.10001350
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 0x10034455
mov edx, dword [ebp - 0x2c]
push edx
push 0x80
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.10033f40
jmp 0x100344cc
cmp dword [ebp + 8], 2
jne 0x1003446e
push 0x80
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.10033ce0
jmp 0x100344cc
cmp dword [ebp + 8], 1
jne 0x100344a1
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.10001450
add esp, 0xc
jmp 0x100344cc
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.10001450
add esp, 0xc
jmp 0x100344d7
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x10034383
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