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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b7fb
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x463024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
call fcn.00402520
mov ecx, eax
test ecx, ecx
je 0x408303
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test edi, edi
jns 0x407e45
mov edx, str.Failed_to_initialize_COM_library._Error_code__0x
mov ecx, 0x468798
call fcn.00416740
push edi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
add esp, 4
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 edi, eax
test edi, edi
jns 0x407e9c
mov edx, str.Failed_to_initialize_security._Error_code__0x
mov ecx, 0x468798
call fcn.00416740
push edi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
add esp, 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x43e4d8
push 1
push 0
push 0x43e4c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jns 0x407f06
mov edx, str.Failed_to_create_IWbemLocator_object.
mov ecx, 0x468798
call fcn.00416740
mov edx, str.Err_code__0x
mov ecx, eax
call fcn.00416740
push edi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
add esp, 4
push 0xc
mov dword [ebp - 0x10], 0
call fcn.0041b024
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x407f49
push str.ROOTDefault
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x40830d
jmp 0x407f4b
xor edi, edi
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x40830d
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push dword [edi]
push eax
call dword [ecx + 0xc]
or ebx, 0xffffffff
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
mov ecx, ebx
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x407fc5
mov ecx, dword [edi]
test ecx, ecx
je 0x407fa0
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x407fb7
push eax
call fcn.0041ac3d
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0041b3ba
mov eax, dword [ebp - 0x20]
add esp, 8
mov ecx, 0x468798
test eax, eax
jns 0x40801d
mov edx, str.Could_not_connect._Error_code__0x
call fcn.00416740
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, 1
jmp 0x4082d3
mov edx, str.Connected_to_ROOTCIMV2_WMI_namespace
call fcn.00416740
push eax
call fcn.004169e0
add esp, 4
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test edi, edi
jns 0x4080a8
mov edx, str.Could_not_set_proxy_blanket._Error_code__0x
mov ecx, 0x468798
call fcn.00416740
push edi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, 1
jmp 0x4082d3
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.Enable
call edi
push str.SystemRestore
mov dword [ebp - 0x20], eax
call edi
mov ecx, dword [ebp - 0x10]
lea edi, [ebp - 0x1c]
push 0
push edi
push 0
push 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ecx]
push eax
push ecx
mov dword [ebp - 0x2c], eax
call dword [edx + 0x18]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov edi, dword [ebp - 0x20]
push 0
push edx
push 0
mov dword [ebp - 0x24], 0
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, 8
lea edx, [ebp - 0x44]
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x30]
push 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
push edx
push 0
push str.Drive
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x28]
push 0
push edx
push dword [ebp - 0x18]
mov dword [ebp - 0x28], 0
mov ecx, dword [eax]
push 0
push 0
push edi
mov edi, dword [ebp - 0x2c]
push edi
push eax
call dword [ecx + 0x60]
mov dword [ebp - 0x30], eax
test eax, eax
jns 0x4081e2
mov edx, str.Could_not_execute_method._Error_code__0x
mov ecx, 0x468798
call fcn.00416740
push dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00413280
push eax
call fcn.004169e0
add esp, 4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x20]
call edi
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, 1
jmp 0x4082d3
push 0xc
call fcn.0041b024
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x40821e
push str.ReturnValue
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x408317
jmp 0x408220
xor edi, edi
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], edi
test edi, edi
je 0x40830d
push 0
push 0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x28]
push edx
push 0
push dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x40828b
mov eax, dword [edi]
test eax, eax
je 0x408269
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x408280
push eax
call fcn.0041ac3d
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0041b3ba
add esp, 8
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x20]
call edi
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4082ef
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402280
push 0x8007000e
call fcn.00418790
push 0x8007000e
call fcn.00418790
int3