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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x42b6dc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x21c], 0
movq xmm0, qword [str.SELECT__FROM]
mov dword [ebp - 0x230], eax
mov eax, dword [0x428260]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x204], eax
mov ax, word [0x428264]
push edi
mov edi, dword [ebp + 8]
mov word [ebp - 0x200], ax
mov al, byte [0x428266]
push 0x1f1
mov byte [ebp - 0x1fe], al
lea eax, [ebp - 0x1fd]
push 0
push eax
mov ebx, ecx
movq qword [ebp - 0x20c], xmm0
call fcn.0040eac0
push esi
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.0040b381
add esp, 0x18
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x408dd9
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]
lea eax, [ebp - 0x210]
push eax
push 0x422374
push 1
push 0
push 0x422444
mov dword [ebp - 0x210], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x408dd3
mov dword [ebp - 0x214], 0
test edi, edi
jne 0x408d21
lea eax, [edi + 1]
push str.ROOTCIMV2
lea ecx, [ebp - 0x21c]
jmp 0x408d2d
mov eax, 2
push edi
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x220], eax
call fcn.00407d20
mov eax, dword [eax]
test eax, eax
je 0x408d42
mov edx, dword [eax]
jmp 0x408d44
xor edx, edx
mov eax, dword [ebp - 0x210]
lea esi, [ebp - 0x214]
mov ecx, dword [eax]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x220]
test al, 2
je 0x408d8a
and eax, 0xfffffffd
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x220], eax
call fcn.00407d80
mov eax, dword [ebp - 0x220]
test al, 1
je 0x408d99
lea ecx, [ebp - 0x21c]
call fcn.00407d80
test esi, esi
js 0x408dc7
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x214]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x408def
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409dff
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x218], 0
call fcn.00407cd0
mov eax, dword [eax]
test eax, eax
je 0x408e15
mov esi, dword [eax]
jmp 0x408e17
xor esi, esi
push 0x428280
lea ecx, [ebp - 0x21c]
call fcn.00407cd0
mov eax, dword [eax]
test eax, eax
je 0x408e31
mov edx, dword [eax]
jmp 0x408e33
xor edx, edx
mov eax, dword [ebp - 0x214]
lea edi, [ebp - 0x218]
mov ecx, dword [eax]
push edi
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.00407d80
lea ecx, [ebp - 0x224]
call fcn.00407d80
test esi, esi
js 0x408dbb
push 0x400
push 0
push ebx
mov dword [ebp - 0x22c], 0
call fcn.0040eac0
mov ecx, dword [ebp - 0x218]
add esp, 0xc
test ecx, ecx
je 0x408f4b
mov eax, dword [ecx]
lea edx, [ebp - 0x22c]
push edx
lea edx, [ebp - 0x228]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x22c], 0
je 0x408f4b
mov eax, dword [ebp - 0x228]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x244]
push edx
push 0
push dword [ebp - 0x230]
push eax
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x23c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ee3
push 0
push 0
push 0x400
push ebx
sub ecx, esi
sar ecx, 1
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add ebx, eax
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x408f10
mov ax, word [0x427fa0]
mov word [edi], ax
lea eax, [ebp - 0x244]
push eax
inc ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x218]
test ecx, ecx
jne 0x408e94
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00409dff
mov esp, ebp
pop ebp
ret