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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477238
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4a3140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
mov dword [ebp - 0x18], 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 - 0x14]
push eax
push 0x4832fc
push 1
push esi
push 0x4833cc
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x430cab
push str.ROOTCIMV2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], esi
call fcn.00430150
mov dword [ebp - 4], esi
mov eax, dword [eax]
cmp eax, esi
je 0x430c15
mov ecx, dword [eax]
jmp 0x430c17
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea edi, [ebp - 0x10]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x430c79
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, esi
jne 0x430c79
cmp edi, esi
je 0x430c79
mov eax, dword [edi]
cmp eax, esi
je 0x430c5e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, esi
je 0x430c6f
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp ebx, esi
jl 0x430ca0
mov eax, dword [ebp - 0x10]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, esi
jge 0x430cca
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.SELECT__FROM_Win32_DiskDrive_WHERE__SerialNumber_IS_NOT_NULL__AND__MediaType_LIKE_Fixed_hard_disk__
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
call fcn.004300c0
mov edi, eax
push 0x4878c0
lea ebx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.004300c0
mov byte [ebp - 4], 2
mov ecx, dword [edi]
cmp ecx, esi
je 0x430cfe
mov ecx, dword [ecx]
jmp 0x430d00
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x430d0a
mov edx, dword [eax]
jmp 0x430d0c
xor edx, edx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
lea ebx, [ebp - 0x1c]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
mov eax, dword [edi + 0x50]
call eax
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00430200
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00430200
cmp edi, esi
jge 0x430d72
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x430e30
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [sym.imp.MSVCR100.dll_wcsncpy]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], ecx
je 0x430da6
cmp dword [ebp - 0x18], 0xfe
jge 0x430e30
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x20]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x24], 0
je 0x430e2d
cmp dword [ebp + 8], 0
je 0x430e0c
lea ecx, [ebp - 0x40]
push ecx
call ebx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0
push 0x4878c4
push eax
call edx
mov eax, dword [ebp - 0x38]
push 0x80
push eax
push edi
call esi
add esp, 0xc
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [ebp + 0xc]
push edx
call fcn.00430830
test eax, eax
je 0x430e15
inc dword [ebp - 0x18]
add edi, 0x100
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x430d8c
jmp 0x430e30
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8