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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b9ab
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x464024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x407a53
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 0x407595
mov edx, str.Failed_to_initialize_COM_library._Error_code__0x
mov ecx, 0x469798
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
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 0x4075ec
mov edx, str.Failed_to_initialize_security._Error_code__0x
mov ecx, 0x469798
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
add esp, 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x43f4e8
push 1
push 0
push 0x43f4d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jns 0x407656
mov edx, str.Failed_to_create_IWbemLocator_object.
mov ecx, 0x469798
call fcn.00416b70
mov edx, str.Err_code__0x
mov ecx, eax
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
add esp, 4
push 0xc
mov dword [ebp - 0x10], 0
call fcn.0041b284
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x407699
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 0x407a5d
jmp 0x40769b
xor edi, edi
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x407a5d
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 0x407715
mov ecx, dword [edi]
test ecx, ecx
je 0x4076f0
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x407707
push eax
call fcn.0041ae9d
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0041b61a
mov eax, dword [ebp - 0x20]
add esp, 8
mov ecx, 0x469798
test eax, eax
jns 0x40776d
mov edx, str.Could_not_connect._Error_code__0x
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
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 0x407a23
mov edx, str.Connected_to_ROOTCIMV2_WMI_namespace
call fcn.00416b70
push eax
call fcn.00416e10
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 0x4077f8
mov edx, str.Could_not_set_proxy_blanket._Error_code__0x
mov ecx, 0x469798
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
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 0x407a23
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 0x407932
mov edx, str.Could_not_execute_method._Error_code__0x
mov ecx, 0x469798
call fcn.00416b70
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.004136e0
push eax
call fcn.00416e10
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 0x407a23
push 0xc
call fcn.0041b284
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x40796e
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 0x407a67
jmp 0x407970
xor edi, edi
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], edi
test edi, edi
je 0x407a5d
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 0x4079db
mov eax, dword [edi]
test eax, eax
je 0x4079b9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x4079d0
push eax
call fcn.0041ae9d
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0041b61a
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 0x407a3f
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.00402240
push 0x8007000e
call fcn.004189f0
push 0x8007000e
call fcn.004189f0
int3