Function at 0x580dc4
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x580dcc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58142e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.ole32.dll_CoInitialize
mov eax, dword [ebp - 4]
call fcn.0057ecd0
lea eax, [ebp - 8]
call fcn.004061b0
lea eax, [ebp - 0xc]
call fcn.004061b0
lea eax, [ebp - 0x10]
call fcn.004061b0
lea eax, [ebp - 0x14]
call fcn.004061b0
mov dword [ebp - 0x18], 1
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
lea eax, [ebp - 0x48]
push eax
call sub.oleaut32.dll_VariantInit_1
push 0
push 2
push 0
push 3
push 6
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.ole32.dll_CoInitializeSecurity
test eax, eax
lea eax, [ebp - 8]
call fcn.004061b0
push eax
push 0x605be8
push 1
push 0
push 0x605bd8
call sub.ole32.dll_CoCreateInstance
test eax, eax
jne 0x5813c6
lea eax, [ebp - 0xc]
call fcn.004061b0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x58143c
call sub.oleaut32.dll_SysAllocString
mov edx, eax
lea eax, [ebp - 0x5c]
call fcn.00404be4
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x5813c6
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov eax, dword [ebp - 0xc]
push eax
call sub.ole32.dll_CoSetProxyBlanket
xor eax, eax
push ebp
push 0x580f99
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004061b0
push eax
push 0
push 0
push 0x581460
push 0x5814b4
call sub.oleaut32.dll_SysAllocString
mov edx, eax
lea eax, [ebp - 0x60]
call fcn.00404be4
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
call fcn.004061b0
push eax
push 1
push 0x7d0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.0041b184
test al, al
je 0x580f8f
cmp dword [ebp - 0x18], 1
jne 0x580f8f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x5814bc
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
jne 0x580f8f
lea eax, [ebp - 0x48]
call fcn.004172ac
test al, al
jne 0x580f8f
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x48]
call fcn.004142d0
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, 0x1e
call fcn.00409f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x580fa3
xor eax, eax
push ebp
push 0x581285
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004061b0
push eax
push 0
push 0
push 0x5814dc
push 0x5814b4
call sub.oleaut32.dll_SysAllocString
mov edx, eax
lea eax, [ebp - 0x68]
call fcn.00404be4
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
jmp 0x581245
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x581518
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
jne 0x581035
lea eax, [ebp - 0x48]
call fcn.004172ac
test al, al
jne 0x581035
lea eax, [ebp - 0x6c]
lea edx, [ebp - 0x48]
call fcn.004142d0
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
add eax, 0x28f
mov ecx, 0x1e
call fcn.00409f3c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x581524
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
jne 0x581078
lea eax, [ebp - 0x48]
call fcn.004172ac
test al, al
jne 0x581078
lea eax, [ebp - 0x48]
call fcn.00412434
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2ae], eax
mov dword [ecx + 0x2b2], edx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x581530
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
jne 0x5810f3
lea eax, [ebp - 0x48]
call fcn.004172ac
test al, al
jne 0x5810f3
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
lea edx, [ebp - 0x48]
call fcn.004142d0
mov eax, dword [ebp - 0x74]
call fcn.00404680
push eax
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x48]
call fcn.004142d0
mov eax, dword [ebp - 0x78]
call fcn.00404680
push eax
lea eax, [ebp - 0x7c]
lea edx, [ebp - 0x48]
call fcn.004142d0
mov eax, dword [ebp - 0x7c]
pop edx
pop ecx
call fcn.004048e0
mov eax, dword [ebp - 0x70]
or edx, 0xffffffff
call fcn.0057e104
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x581544
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
jne 0x58112a
lea eax, [ebp - 0x48]
call fcn.004172ac
test al, al
jne 0x58112a
lea eax, [ebp - 0x48]
call fcn.00411970
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x581558
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
jne 0x581161
lea eax, [ebp - 0x48]
call fcn.004172ac
test al, al
jne 0x581161
lea eax, [ebp - 0x48]
call fcn.00411970
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x58123b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0057f9e0
test al, al
je 0x581231
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 8]
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0041e260
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2b2], 0
jne 0x5811b8
cmp dword [eax + 0x2ae], 0
jbe 0x581231
jmp 0x5811ba
jle 0x581231
mov eax, dword [ebp - 4]
fild qword [eax + 0x2ae]
fdiv dword [0x581574]
fdiv dword [0x581578]
call fcn.00402cbc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cdq
push edx
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x508]
sub eax, 0x64
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x5811fa
cmp eax, dword [esp]
pop edx
pop eax
ja 0x581225
jmp 0x5811fe
pop edx
pop eax
jg 0x581225
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x508]
add eax, 0x64
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x34]
cdq
cmp edx, dword [esp + 4]
jne 0x581221
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x581231
jmp 0x581225
pop edx
pop eax
jle 0x581231
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x508], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x581245
cmp dword [ebp - 0x10], 0
je 0x58127b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
call fcn.004061b0
push eax
push 1
push 0x7d0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.0041b184
test al, al
je 0x58127b
cmp dword [ebp - 0x18], 1
je 0x580fe9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58128f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 1
jl 0x5813c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.0041e260
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x598]
mov eax, dword [ebp - 4]
add eax, 0x28f
mov ecx, 0x1e
call fcn.00409f3c
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x508]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2d6], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x588]
mov eax, dword [ebp - 4]
add eax, 0x27
mov ecx, 0x14
call fcn.00409f3c
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x590]
mov eax, dword [ebp - 4]
add eax, 0x2b6
mov ecx, 0x14
call fcn.00409f3c
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x534]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2cb], eax
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 0x510]
mov edx, dword [ebp - 4]
mov byte [edx + 0x2d3], al
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x50c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2cf], eax
mov eax, dword [ebp - 0x30]
mov ax, word [eax + 0x514]
mov edx, dword [ebp - 4]
mov word [edx + 0x2d4], ax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x560]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2da], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x550]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2de], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x564]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2e2], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x5b0]
mov eax, dword [ebp - 4]
add eax, 0x2e6
mov ecx, 0x10
call fcn.00409f3c
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x5bc]
mov eax, dword [ebp - 4]
add eax, 0x2f7
mov ecx, 0x10
call fcn.00409f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581435
lea eax, [ebp - 0x7c]
mov edx, 5
call fcn.004043e4
lea eax, [ebp - 0x68]
call fcn.00404acc
lea eax, [ebp - 0x64]
call fcn.004043c0
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00404ae4
lea eax, [ebp - 0x4c]
call fcn.004043c0
lea eax, [ebp - 0x48]
call fcn.00410c50
lea eax, [ebp - 0x14]
call fcn.004061b0
lea eax, [ebp - 0x10]
call fcn.004061b0
lea eax, [ebp - 0xc]
call fcn.004061b0
lea eax, [ebp - 8]
call fcn.004061b0
ret