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

Disassembly:
sub esp, 0x24
push ebx
push ebp
xor ebx, ebx
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
mov ebp, ecx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 0xc]
push eax
push 0x438be4
push 1
push ebx
push 0x438cb4
mov dword [esp + 0x20], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x4126b7
cmp eax, ebx
je 0x4126c3
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push str.ROOTcimv2
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x4126a7
cmp eax, ebx
je 0x4126b3
lea edx, [esp + 0x10]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_DiskDrive_WHERE__Model_IS_NOT_NULL__AND__MediaType_LIKE_Fixed_hard_disk__
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
push 0x435d34
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jne 0x412693
cmp dword [esp + 0x10], ebx
je 0x4126a3
push esi
push edi
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x14], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea esi, [ebx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x20], ebx
je 0x41256c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x412640
cmp dword [esp + 0x20], ebx
je 0x412640
cmp dword [esp + 0x10], ebx
je 0x412640
lea ecx, [esp + 0x24]
push ecx
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push 0x435d28
push eax
call edx
test eax, eax
jne 0x412554
cmp word [esp + 0x24], si
jne 0x412554
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x412554
mov esi, dword [esp + 0x38]
push eax
mov ecx, esi
call fcn.00401501
push esi
mov ecx, ebp
call fcn.00412410
lea eax, [esp + 0x24]
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x412604
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x412614
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x412624
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x412634
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret 4
lea eax, [esp + 0x24]
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x412657
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x412667
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x412677
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x412687
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4126a3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4126b3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4126c3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret 4