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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42440d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x40]
call fcn.004018e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004018e0
mov byte [ebp - 4], 1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x40787d
mov byte [ebp - 0x4d], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401870
mov al, byte [ebp - 0x4d]
jmp 0x407b63
mov dword [ebp - 0x44], 0
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]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x4078d2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0x4e], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401870
mov al, byte [ebp - 0x4e]
jmp 0x407b63
lea eax, [ebp - 0x44]
push eax
push 0x42526c
push 1
push 0
push 0x42527c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x407920
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0x4f], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401870
mov al, byte [ebp - 0x4f]
jmp 0x407b63
mov dword [ebp - 0x48], 0
push str.ROOTCIMV2
lea ecx, [ebp - 0x60]
call fcn.00405b90
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.00405c50
push eax
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00405c30
cmp dword [ebp - 0x4c], 0
jge 0x4079b8
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0x50], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401870
mov al, byte [ebp - 0x50]
jmp 0x407b63
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x407a22
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0x51], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401870
mov al, byte [ebp - 0x51]
jmp 0x407b63
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.00407650
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x407a90
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0x52], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401870
mov al, byte [ebp - 0x52]
jmp 0x407b63
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.004074b0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x407afb
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0x53], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401870
mov al, byte [ebp - 0x53]
jmp 0x407b63
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.004086e0
add esp, 0xc
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408200
lea ecx, [ebp - 0x7c]
call fcn.00401870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b794
mov esp, ebp
pop ebp
ret