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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442066
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x45901c]
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
mov dword [ebp - 0x430], ecx
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00420ae0
add esp, 0xc
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40499d
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x404997
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0
push eax
push 0x447714
push 1
push 0
push 0x447704
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x404997
push 0xc
mov dword [ebp - 0x418], 0
call fcn.004087e5
mov esi, eax
add esp, 4
mov dword [ebp - 0x414], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4048d5
push str.ROOTCIMV2
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x404ec7
jmp 0x4048d7
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x414], esi
test esi, esi
je 0x404ec7
lea edx, [ebp - 0x418]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push dword [esi]
push eax
call dword [ecx + 0xc]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40495d
mov ecx, dword [esi]
test ecx, ecx
je 0x40493b
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404952
push eax
call fcn.00408c92
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00408815
add esp, 8
test edi, edi
js 0x40498b
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x418]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4049c4
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x41c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
lea esp, [ebp - 0x458]
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.004087d4
mov esp, ebp
pop ebp
ret
push 0xc
call fcn.004087e5
mov esi, eax
add esp, 4
mov dword [ebp - 0x414], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x4049fd
push str.SELECT__FROM_Win32_OperatingSystem
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.00409890
mov dword [esi], eax
jmp 0x4049ff
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x414], esi
test esi, esi
je 0x404ec7
push 0xc
mov dword [ebp - 4], 3
call fcn.004087e5
mov edi, eax
add esp, 4
mov dword [ebp - 0x420], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x404a51
push 0x4522f4
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call fcn.00409890
mov dword [edi], eax
jmp 0x404a53
xor edi, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x420], edi
test edi, edi
je 0x404ed1
lea edx, [ebp - 0x428]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x418]
push edx
push 0
push 0x30
push dword [esi]
mov ecx, dword [eax]
push dword [edi]
push eax
call dword [ecx + 0x50]
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x404ac6
mov ecx, dword [edi]
test ecx, ecx
je 0x404aa4
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x404abb
push eax
call fcn.00408c92
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00408815
add esp, 8
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x404b0d
mov eax, dword [esi]
test eax, eax
je 0x404aeb
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404b02
push eax
call fcn.00408c92
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00408815
add esp, 8
test ebx, ebx
jns 0x404b37
mov ecx, dword [ebp - 0x418]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x41c]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
jmp 0x4049a2
mov ecx, dword [ebp - 0x428]
test ecx, ecx
je 0x404e9c
nop word [eax + eax]
lea edx, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x424]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x42c], 0
je 0x404e8c
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0xc
call fcn.004087e5
mov esi, eax
add esp, 4
mov dword [ebp - 0x420], esi
mov dword [ebp - 4], 6
test esi, esi
je 0x404bc5
push str.Caption
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.00409890
mov dword [esi], eax
jmp 0x404bc7
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x414], esi
test esi, esi
je 0x404ec7
push 0
push 0
mov dword [ebp - 4], 7
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x424]
push edx
push 0
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x404c45
mov eax, dword [esi]
test eax, eax
je 0x404c23
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404c3a
push eax
call fcn.00408c92
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00408815
add esp, 8
mov edi, dword [ebp - 0x438]
test edi, edi
je 0x404c9b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404c54
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x404c9b
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.004091f0
mov esi, esp
test esi, esi
je 0x404c9b
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x404c9d
xor esi, esi
lea ecx, [ebp - 0x410]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x404ca5
lea edx, [ebp - 0x410]
mov esi, edx
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x404cc0
mov ebx, dword [ebp - 0x430]
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404cd2
mov ecx, edx
lea eax, [ebp - 0x440]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404d00
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push 0
push eax
call fcn.00420ae0
add esp, 0xc
push 0xc
call fcn.004087e5
mov esi, eax
add esp, 4
mov dword [ebp - 0x444], esi
mov dword [ebp - 4], 8
test esi, esi
je 0x404d54
push str.Version
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.00409890
mov dword [esi], eax
jmp 0x404d56
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x414], esi
test esi, esi
je 0x404ec7
push 0
push 0
mov dword [ebp - 4], 9
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x424]
push edx
push 0
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x404dd4
mov eax, dword [esi]
test eax, eax
je 0x404db2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404dc9
push eax
call fcn.00408c92
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00408815
add esp, 8
mov edi, dword [ebp - 0x438]
test edi, edi
jne 0x404de2
xor eax, eax
jmp 0x404e36
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404de7
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x404e2e
add ebx, ebx
mov eax, ebx
call fcn.004091f0
mov esi, esp
test esi, esi
je 0x404e2e
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x404e30
xor eax, eax
mov ebx, dword [ebp - 0x430]
lea edx, [ebp - 0x410]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [eax + edx - 1], cl
test cl, cl
jne 0x404e40
lea eax, [ebp - 0x410]
push eax
push ebx
push str._s__s
push ebx
call fcn.00401690
add esp, 0x10
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x424]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x428]
test ecx, ecx
jne 0x404b50
jmp 0x404e9c
mov ecx, dword [ebp - 0x428]
test ecx, ecx
je 0x404e9c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x404eac
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x404ebc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4049a2
push 0x8007000e
call fcn.00409870
push 0x8007000e
call fcn.00409870
int3