Function at 0x4a02a0
Capabilities:
Reference wmi statements
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x55d9a4
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov dword [esp + 0x30], ecx
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
call fcn.0049f8f0
push str.ROOTcimv2
lea ebx, [esp + 0x24]
lea ecx, [esp + 0x30]
call fcn.0049fdc0
xor edi, edi
add esp, 4
cmp eax, edi
jl 0x4a0399
push str.SELECT__FROM_Win32_DiskDrive
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
call fcn.0049fa00
mov esi, eax
push 0x579bfc
lea ecx, [esp + 0x1c]
mov dword [esp + 0xd4], edi
call fcn.0049fa00
mov ecx, dword [esi]
mov byte [esp + 0xd0], 1
cmp ecx, edi
je 0x4a033a
mov ecx, dword [ecx]
jmp 0x4a033c
xor ecx, ecx
mov eax, dword [eax]
cmp eax, edi
je 0x4a0346
mov edx, dword [eax]
jmp 0x4a0348
xor edx, edx
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
lea ebx, [esp + 0x1c]
push ebx
push edi
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0049fd70
lea ecx, [esp + 0x24]
mov dword [esp + 0xd0], 0xffffffff
call fcn.0049fd70
cmp esi, edi
jge 0x4a03a7
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
jmp 0x4a069f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x4a069b
nop
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x28], edi
je 0x4a069b
cmp eax, edi
jne 0x4a069b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edi
push edi
lea edx, [esp + 0x90]
push edx
push edi
push str.Model
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edi
push edi
lea edx, [esp + 0xb0]
push edx
push edi
push str.Name
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edi
push edi
lea edx, [esp + 0x80]
push edx
push edi
push str.PNPDeviceID
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edi
push edi
lea edx, [esp + 0xa0]
push edx
push edi
push str.MediaType
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edi
push edi
lea edx, [esp + 0xc0]
push edx
push edi
push str.SerialNumber
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [esp + 0x90]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x3c]
call fcn.0049eff0
mov edx, dword [esp + 0xb0]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xd8], 2
call fcn.0049eff0
mov eax, dword [esp + 0x80]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 3
call fcn.0049eff0
mov ecx, dword [esp + 0xa0]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd8], 4
call fcn.0049eff0
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
mov byte [esp + 0xd4], 5
call eax
mov esi, dword [esp + 0x48]
call fcn.0049f930
mov ebp, eax
mov eax, dword [esp + 0x38]
call fcn.0049f9a0
mov dword [esp + 0x24], eax
call fcn.00492aa0
mov esi, eax
lea edi, [esi + 0x18]
push 1
mov ecx, edi
call fcn.004017c0
push 1
mov ecx, edi
mov dword [esp + 0x78], esi
call fcn.004017c0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0x20]
mov dword [esi + 0x24], str.cWmiDetectedPDInfo::QueryInfo_W7
mov dword [esi + 0x28], 0x14a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x2c], eax
mov ebx, dword [esp + 0x30]
push ebp
mov ecx, ebx
mov byte [esp + 0xd4], 6
call fcn.0049f9c0
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a0587
mov edi, dword [ebx + 4]
push 1
push 0
mov ecx, ebx
call fcn.004936a0
xor ecx, ecx
cmp eax, ecx
je 0x4a0627
cmp byte [ebx + 0xc], cl
je 0x4a0589
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4a0589
xor ecx, ecx
cmp edi, dword [ebx + 4]
jl 0x4a0595
mov edi, 0x5b9414
jmp 0x4a059a
mov edx, dword [ebx]
lea edi, [edx + edi*8]
mov eax, dword [esp + 0x24]
inc dword [esp + 0x18]
mov dword [edi], ebp
mov dword [edi + 4], eax
dec dword [esi + 0x20]
cmp dword [esi + 0x20], ecx
jg 0x4a05b5
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, vtable.cWCS.0
lea ecx, [esp + 0x64]
mov byte [esp + 0xd0], 4
mov dword [esp + 0x64], esi
call fcn.0049ee80
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 3
mov dword [esp + 0x54], esi
call fcn.0049ee80
lea ecx, [esp + 0x44]
mov byte [esp + 0xd0], 2
mov dword [esp + 0x44], esi
call fcn.0049ee80
lea ecx, [esp + 0x34]
mov dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x34], esi
call fcn.0049ee80
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4a069b
xor edi, edi
jmp 0x4a03c0
or edi, 0xffffffff
add dword [esi + 0x20], edi
cmp dword [esi + 0x20], ecx
jg 0x4a0638
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, vtable.cWCS.0
lea ecx, [esp + 0x64]
mov byte [esp + 0xd0], 4
mov dword [esp + 0x64], esi
call fcn.0049ee80
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 3
mov dword [esp + 0x54], esi
call fcn.0049ee80
lea ecx, [esp + 0x44]
mov byte [esp + 0xd0], 2
mov dword [esp + 0x44], esi
call fcn.0049ee80
lea ecx, [esp + 0x34]
mov dword [esp + 0xd0], edi
mov dword [esp + 0x34], esi
call fcn.0049ee80
mov eax, edi
jmp 0x4a069f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret