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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fb98
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x44]
call fcn.004094f0
add esp, 4
lea edx, [ebp + 0x20]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00407070
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
push 0x423420
push 1
xor edi, edi
push edi
push 0x423410
mov dword [ebp - 0x5c], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4086db
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], edi
call fcn.00408100
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x4084d5
mov edx, dword [eax]
jmp 0x4084d7
xor edx, edx
mov eax, dword [ebp - 0x5c]
lea esi, [ebp - 0x50]
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]
mov byte [ebp - 4], 3
mov ebx, eax
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x408542
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x408542
test esi, esi
je 0x408542
mov eax, dword [esi]
test eax, eax
je 0x408520
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x408537
push eax
call fcn.0041e03c
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0041e079
add esp, 8
test ebx, ebx
js 0x4086d2
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x50]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x4086c9
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x58], 0
cmovae eax, dword [ebp - 0x44]
push eax
mov dword [ebp - 0x54], 0
call fcn.00408060
mov esi, eax
push 0x4239a8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00408060
mov byte [ebp - 4], 6
mov esi, dword [esi]
test esi, esi
je 0x4085ac
mov esi, dword [esi]
jmp 0x4085ae
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x4085b8
mov edx, dword [eax]
jmp 0x4085ba
xor edx, edx
mov eax, dword [ebp - 0x50]
lea ebx, [ebp - 0x58]
push ebx
push 0
push 0x10
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.004081b0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004081b0
test esi, esi
js 0x4086c9
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x54]
mov dword [ebp - 0x14], 0
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4086c0
cmp dword [ebp - 0x14], 0
jbe 0x4086c0
mov eax, dword [ebp - 0x54]
lea esi, [ebp - 0x6c]
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
push 0
cmovae edx, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 0
push esi
push 0
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4086b7
cmp word [ebp - 0x6c], 8
jne 0x4086b7
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0x423a3c
push 1
push 0
push 0x423a2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4086ae
mov eax, dword [ebp - 0x4c]
push dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
js 0x4086ae
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb4]
test eax, eax
js 0x4086ae
push dword [ebp - 0x48]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edi, 1
push dword [ebp - 0x48]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4086ed
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.00404710
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 0x10
jb 0x408713
inc eax
push eax
push dword [ebp - 0x44]
call fcn.00404770
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x408737
inc eax
push eax
push dword [ebp + 8]
call fcn.00404770
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x40875b
inc ecx
push ecx
push dword [ebp + 0x20]
call fcn.00404770
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e02b
mov esp, ebp
pop ebp
ret