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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov dword [ebp - 0x30], ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40589e
movzx eax, byte [ebp - 9]
push eax
push 0x40f798
lea ecx, [ebp - 0x60]
call fcn.00401da0
mov ecx, eax
call fcn.00407a80
push eax
push 0x414660
call fcn.00402600
add esp, 8
mov dword [ebp - 0x14], eax
push 0x4039c0
mov ecx, dword [ebp - 0x14]
call fcn.00404d90
mov eax, dword [ebp - 4]
jmp 0x405ac3
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 - 4], eax
cmp dword [ebp - 4], 0
jge 0x405907
movzx ecx, byte [ebp - 0xa]
push ecx
push str.CoInitializeSecurity_failed
lea ecx, [ebp - 0xb8]
call fcn.004011a0
mov ecx, eax
call fcn.00407c30
push eax
push 0x414660
call fcn.00402600
add esp, 8
mov dword [ebp - 0x18], eax
push 0x4039c0
mov ecx, dword [ebp - 0x18]
call fcn.00404d90
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
jmp 0x405ac3
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402cb0
add esp, 4
push eax
push 0x40f788
push 1
push 0
push 0x410a18
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x405976
movzx eax, byte [ebp - 0xb]
push eax
push str.CoCreateInstance_failed
lea ecx, [ebp - 0x7c]
call fcn.004017e0
mov ecx, eax
call fcn.00407b10
push eax
push 0x414660
call fcn.00402600
add esp, 8
mov dword [ebp - 0x1c], eax
push 0x4039c0
mov ecx, dword [ebp - 0x1c]
call fcn.00404d90
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
jmp 0x405ac3
push str.._rootcimv2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405a35
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x80
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x405a2b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
movzx edx, byte [ebp - 0xc]
push edx
push str.ConnectServer_failed
lea ecx, [ebp - 0x48]
call fcn.00402040
mov ecx, eax
call fcn.004079f0
push eax
push 0x414660
call fcn.00402600
add esp, 8
mov dword [ebp - 0x28], eax
push 0x4039c0
mov ecx, dword [ebp - 0x28]
call fcn.00404d90
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx + 8]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
jmp 0x405ac3
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x405ac1
movzx eax, byte [ebp - 0xd]
push eax
push str.CoSetProxyBlanket_failed
lea ecx, [ebp - 0x98]
call fcn.004014f0
mov ecx, eax
call fcn.00407ba0
push eax
push 0x414660
call fcn.00402600
add esp, 8
mov dword [ebp - 0x2c], eax
push 0x4039c0
mov ecx, dword [ebp - 0x2c]
call fcn.00404d90
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
jmp 0x405ac3
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc