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

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0xc], ebx
jl 0x412ed8
cmp ebp, 8
jae 0x412ed8
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x412c82
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 8]
push eax
push 0x438c14
push 1
push ebx
push 0x438ce4
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x412c8d
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x24
ret
push 0x4361f8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.004122d0
mov eax, dword [eax]
cmp eax, ebx
je 0x412ca9
mov ecx, dword [eax]
jmp 0x412cab
xor ecx, ecx
mov eax, dword [esp + 8]
mov edx, dword [eax]
push esi
lea esi, [esp + 0x34]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00412bd0
cmp esi, ebx
jl 0x412cf8
mov eax, dword [esp + 0x34]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x412d16
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x24
ret
mov eax, dword [ebp*8 + 0x436158]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.00412280
mov eax, dword [eax]
cmp eax, ebx
je 0x412d35
mov esi, dword [eax]
jmp 0x412d37
xor esi, esi
push 0x4361f4
lea ecx, [esp + 0x20]
call fcn.00412280
mov eax, dword [eax]
cmp eax, ebx
je 0x412d4f
mov ecx, dword [eax]
jmp 0x412d51
xor ecx, ecx
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
push edi
lea edi, [esp + 0x18]
push edi
push ebx
push 0x30
push esi
push ecx
push eax
mov eax, dword [edx + 0x50]
call eax
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.00412bd0
lea ecx, [esp + 0x1c]
call fcn.00412bd0
cmp esi, ebx
jge 0x412dab
mov eax, dword [esp + 0x38]
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
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x412ea6
mov esi, dword [esp + 0x3c]
mov edi, esi
jmp 0x412dc4
mov esi, dword [esp + 0x3c]
cmp esi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x412dde
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x40]
jge 0x412ea6
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 1
push 0xffffffffffffffff
push eax
call edx
cmp dword [esp + 0x20], ebx
je 0x412ea2
cmp esi, ebx
je 0x412e7d
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ebp*8 + 0x43615c]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov edx, dword [esp + 0x2c]
mov esi, 0x80
mov eax, edi
sub edx, edi
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x412e56
movzx ecx, word [edx + eax]
cmp cx, bx
je 0x412e56
mov word [eax], cx
add eax, 2
sub esi, 1
jne 0x412e36
jmp 0x412e5a
cmp esi, ebx
jne 0x412e5d
sub eax, 2
lea edx, [esp + 0x24]
push edx
mov word [eax], bx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 0x80
mov edx, edi
mov ecx, ebp
call fcn.00412ae0
test eax, eax
je 0x412e88
add dword [esp + 0x14], 1
add edi, 0x100
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x412dc0
jmp 0x412ea6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
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
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret