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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fab0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5d1e6c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x4126f6
call fcn.00426ad5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4126a0
push 0x80004005
call fcn.00403fd0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
push 0
push 0
mov ecx, edi
call fcn.00403d00
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4126e0
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 0xc
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 0x41274c
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00426ad5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x412734
push 0x80004005
call fcn.00403fd0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
jmp 0x4126b3
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x5a8a24
push 1
push 0
push 0x5a8af4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4127a9
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00426ad5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x412791
push 0x80004005
call fcn.00403fd0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
jmp 0x4126b3
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], 0
call fcn.00404710
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x4127c7
mov edx, dword [eax]
jmp 0x4127c9
xor edx, edx
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x10]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.004047b0
test esi, esi
jns 0x412815
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, dword [ebp + 8]
mov ecx, edi
push 0
call fcn.00403860
jmp 0x4126be
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]
test eax, eax
jns 0x412871
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]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 8]
push 0
call fcn.00403860
lea ecx, [ebp + 0xc]
call fcn.00403fb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0
call fcn.00404680
mov esi, eax
push 0x5aee50
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00404680
mov byte [ebp - 4], 6
mov esi, dword [esi]
test esi, esi
je 0x4128a4
mov esi, dword [esi]
jmp 0x4128a6
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x4128b0
mov edx, dword [eax]
jmp 0x4128b2
xor edx, edx
mov eax, dword [ebp - 0x10]
lea edi, [ebp - 0x24]
push edi
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.004047b0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.004047b0
test esi, esi
js 0x412830
push 0x5ae2e0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0
call fcn.00403860
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ecx, ecx
je 0x412a8f
mov edi, dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
nop dword [eax]
mov eax, dword [ecx]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x28]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x34], 0
je 0x412a8f
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x20]
push edx
push 0
push 0x40
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x1c]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x30], 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x30]
jg 0x412a72
nop word [eax + eax]
lea eax, [ebp - 0x54]
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call edi
test eax, eax
jne 0x412a62
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x54]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push dword [ebp - 0x3c]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x412a62
lea ecx, [ebp - 0x1c]
call fcn.00404040
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00412b30
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.00403db0
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412a0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
push 0x5ae2e0
push eax
call fcn.00424f60
add esp, 8
test al, al
jne 0x412a56
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
call fcn.00425530
push 0x5aee54
lea ecx, [ebp - 0x18]
call fcn.004030b0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push dword [eax - 0xc]
push eax
call fcn.00403270
push 0x5ae2b4
lea ecx, [ebp - 0x18]
call fcn.004030b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00403fb0
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x30]
jle 0x412990
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x412920
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 eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x412ab7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x54]
push eax
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00403f30
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412aef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x412b0e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc