Function at 0x489b30
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1e54
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
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]
push 0x4f02d0
push 0x4cc9c8
push 1
push ebx
push 0x4cca98
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [0x4f02d0], ebx
jne 0x489cab
lea eax, [ebp - 0x100]
push eax
call fcn.00410ff0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x100]
push str.WMIDeviceQueryInit_FAILED._return__3.
push ecx
call fcn.00418890
add esp, 8
push 0x12
mov esi, 0xf
push str.WMIDeviceQueryInit
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004159b0
mov byte [ebp - 4], 1
push 0x12
push str.WMIDeviceQuery.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004159b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x100]
push eax
call fcn.004110f0
mov byte [ebp - 4], 3
push eax
push 0x104
push 3
call fcn.004117f0
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.0047acf0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], 8
jb 0x489c3f
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 1
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jb 0x489c69
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], edi
jb 0x489c86
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.004039f0
mov eax, 0xfffffffd
jmp 0x48a08d
lea ebx, [ebp - 0x68]
call fcn.00488d30
mov dword [ebp - 4], 4
mov eax, dword [eax]
xor ebx, ebx
cmp eax, ebx
je 0x489cc6
mov ecx, dword [eax]
jmp 0x489cc8
xor ecx, ecx
mov eax, dword [0x4f02d0]
mov edx, dword [eax]
push 0x4f02d4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x68]
cmp eax, ebx
je 0x489d2c
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x489d29
cmp esi, ebx
je 0x489d29
mov eax, dword [esi]
cmp eax, ebx
je 0x489d10
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x489d20
push eax
call fcn.0049b58d
add esp, 4
push esi
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x68], ebx
cmp dword [0x4f02d0], ebx
jne 0x489e4c
lea ecx, [ebp - 0x100]
push ecx
call fcn.00410ff0
mov dword [ebp - 4], 5
lea edx, [ebp - 0x100]
push str.WMIDeviceQueryInit_FAILED._return__4.
push edx
call fcn.00418890
add esp, 8
push 0x12
mov esi, 0xf
push str.WMIDeviceQueryInit
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004159b0
mov byte [ebp - 4], 6
push 0x12
push str.WMIDeviceQuery.cpp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004159b0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.004110f0
mov byte [ebp - 4], 8
push eax
push 0x115
push 3
call fcn.004117f0
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.0047acf0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x50], 8
jb 0x489ddf
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 6
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jb 0x489e09
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], edi
jb 0x489e27
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.004039f0
mov eax, 0xfffffffc
jmp 0x48a08d
mov eax, dword [0x4f02d4]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
je 0x489f7e
lea ecx, [ebp - 0x100]
push ecx
call fcn.00410ff0
mov dword [ebp - 4], 9
lea edx, [ebp - 0x100]
push str.WMIDeviceQueryInit_FAILED._return__5.
push edx
call fcn.00418890
add esp, 8
push 0x12
mov esi, 0xf
push str.WMIDeviceQueryInit
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004159b0
mov byte [ebp - 4], 0xa
push 0x12
push str.WMIDeviceQuery.cpp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004159b0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.004110f0
mov byte [ebp - 4], 0xc
push eax
push 0x126
push 3
call fcn.004117f0
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.0047acf0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x50], 8
jb 0x489f11
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 0xa
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jb 0x489f3b
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 9
cmp dword [ebp - 0x34], edi
jb 0x489f59
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.004039f0
mov eax, 0xfffffffb
jmp 0x48a08d
lea eax, [ebp - 0x100]
push eax
call fcn.00410ff0
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x100]
push str.WMIDeviceQueryInit_OK.
push ecx
call fcn.00418890
add esp, 8
push 0x12
mov esi, 0xf
push str.WMIDeviceQueryInit
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004159b0
mov byte [ebp - 4], 0xe
push 0x12
push str.WMIDeviceQuery.cpp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004159b0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x100]
push eax
call fcn.004110f0
mov byte [ebp - 4], 0x10
push eax
push 0x12a
push 3
call fcn.004117f0
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.0047acf0
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x50], 8
jb 0x48a025
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 0xe
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jb 0x48a04f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x34], edi
jb 0x48a06d
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.004039f0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b315
mov esp, ebp
pop ebp
ret