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

Disassembly:
jmp 0x429eb5
mov eax, 0x466d0c
call fcn.0043da24
sub esp, 0x34
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esi
jl 0x42a115
cmp dword [ebp + 8], 8
jae 0x42a115
push ebx
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
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 - 0x20]
mov dword [ebp - 0x20], esi
push eax
push 0x46e890
push 1
pop ebx
push ebx
push esi
push 0x46e960
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x429f1d
push 0xfffffffffffffffe
pop esi
jmp 0x42a10a
push 0x477d00
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], esi
call fcn.0040142e
mov eax, dword [eax]
mov dword [ebp - 4], esi
cmp eax, esi
je 0x429f3a
mov ecx, dword [eax]
jmp 0x429f3c
xor ecx, ecx
mov eax, dword [ebp - 0x20]
push edi
lea edi, [ebp - 0x18]
mov edx, dword [eax]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
mov edi, eax
je 0x429f63
call fcn.0040241e
cmp edi, esi
jge 0x429f6f
push 0xfffffffffffffffe
pop esi
jmp 0x42a100
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, esi
jge 0x429f8e
push 0xfffffffffffffffe
pop esi
jmp 0x42a0f7
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], esi
push dword [eax*8 + 0x469480]
call fcn.00401429
mov eax, dword [eax]
mov dword [ebp - 4], ebx
cmp eax, esi
je 0x429fb0
mov edi, dword [eax]
jmp 0x429fb2
xor edi, edi
push 0x477cfc
lea ecx, [ebp - 0x24]
call fcn.00401429
mov eax, dword [eax]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x429fcd
mov ecx, dword [eax]
jmp 0x429fcf
xor ecx, ecx
mov eax, dword [ebp - 0x18]
lea ebx, [ebp - 0x14]
push ebx
push esi
mov edx, dword [eax]
push 0x30
push edi
push ecx
push eax
call dword [edx + 0x50]
mov ecx, dword [ebp - 0x24]
mov edi, eax
cmp ecx, esi
je 0x429ff2
call fcn.0040241e
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x42a002
call fcn.0040241e
cmp edi, esi
jge 0x42a00d
push 0xfffffffffffffffd
jmp 0x429f88
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x42a0ee
mov ebx, dword [ebp + 0xc]
mov edi, 0x80
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
je 0x42a037
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x10]
jge 0x42a0ee
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x1c]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x28], esi
je 0x42a0eb
cmp dword [ebp + 0xc], esi
je 0x42a0cc
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x1c]
push esi
lea edx, [ebp - 0x40]
push esi
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 8]
push esi
push dword [edx*8 + 0x469484]
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
call fcn.00401267
push edi
mov dword [ebp - 4], 3
push dword [ebp - 0x2c]
push ebx
call fcn.0043e8f8
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push edi
push ebx
push dword [ebp + 8]
call fcn.0042a1c1
add esp, 0xc
test eax, eax
je 0x42a0be
inc dword [ebp - 0x10]
add ebx, 0x100
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004021e9
jmp 0x42a0d5
inc dword [ebp - 0x10]
add ebx, 0x100
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x42a020
jmp 0x42a0ee
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop ebx
jmp 0x42a118
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret