Function at 0x411c80
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 0x438c04
push 1
push ebx
push 0x438cd4
mov dword [esp + 0x20], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x411ea7
cmp eax, ebx
je 0x411eb3
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 0x411e97
cmp eax, ebx
je 0x411ea3
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 0x435dc8
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jne 0x411e83
cmp dword [esp + 0x10], ebx
je 0x411e93
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 0x411d5c
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 0x411e30
cmp dword [esp + 0x20], ebx
je 0x411e30
cmp dword [esp + 0x10], ebx
je 0x411e30
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 0x435dbc
push eax
call edx
test eax, eax
jne 0x411d44
cmp word [esp + 0x24], si
jne 0x411d44
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x411d44
mov esi, dword [esp + 0x38]
push eax
mov ecx, esi
call fcn.00401501
push esi
mov ecx, ebp
call fcn.00411c00
lea eax, [esp + 0x24]
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x411df4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x411e04
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x411e14
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x411e24
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 0x411e47
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x411e57
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x411e67
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x411e77
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 0x411e93
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x411ea3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x411eb3
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