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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463440
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp + 8]
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x418896
push 7
push str.COMFAIL
mov ecx, edi
call fcn.00407c90
xor al, al
jmp 0x418a73
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x46d854
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], eax
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call dword [0x46d854]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x4188e7
mov edx, dword [ecx]
lea eax, [ebp - 0x3c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x54]
push eax
mov ecx, ebx
mov dword [ebp - 4], 3
call fcn.00418730
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.00409e60
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
jns 0x418940
cmp eax, 0x80010119
je 0x418940
push 7
push str.SECFAIL
mov ecx, edi
call fcn.00407c90
xor al, al
jmp 0x418a73
lea eax, [ebp - 0x18]
push eax
push 0x46d8b0
push 1
push 0
mov dword [ebp - 4], 4
push 0x46b404
mov dword [ebp - 0x18], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x41897f
push 7
push str.LOCFAIL
mov ecx, edi
call fcn.00407c90
xor bl, bl
jmp 0x418a5d
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x418990
push 0x80004003
call fcn.00444100
push str.ROOTCIMV2
lea ecx, [ebp - 0x1c]
call fcn.0040dc40
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x4189ab
mov ecx, dword [eax]
jmp 0x4189ad
xor ecx, ecx
mov eax, dword [esi]
lea edx, [ebx + 0x18]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push esi
call dword [eax + 0xc]
test eax, eax
lea ecx, [ebp - 0x1c]
sets bl
mov byte [ebp - 4], 4
call fcn.0040dcf0
test bl, bl
je 0x4189e9
push str.CONNFAIL
mov ecx, edi
call fcn.00405280
xor bl, bl
jmp 0x418a5d
sub esp, 0x18
mov eax, esp
mov esi, dword [ebp - 0x20]
je 0x418a06
mov dword [eax], vtable.std::_Func_base_void__struct_std::_Nil__struct_std::_Nil__struct_std::_Nil__struct_std::_Nil__struct_std::_Nil__struct_std::_Nil__struct_std::_Nil_.0
mov dword [eax], 0x46d874
mov dword [eax + 4], esi
mov ecx, eax
jmp 0x418a08
xor ecx, ecx
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.00409dd0
push eax
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 7
call fcn.00418730
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.00409e60
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [esi + 0x18]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x418a5b
push str.BLNKFAIL
mov ecx, edi
call fcn.00405280
xor bl, bl
jmp 0x418a5d
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x418a71
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419056
mov esp, ebp
pop ebp
ret 4