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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41128b
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x41a1a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
push 2
xor edi, edi
mov dword [ebp - 4], 0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x60]
push eax
push 0x417714
push 1
push edi
push 0x4177e4
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x401fdc
cmp dword [ebp + 0x2c], 0x10
jb 0x402051
push dword [ebp + 0x18]
call fcn.00403ffd
add esp, 4
jmp 0x402051
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
mov ecx, dword [eax]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x401fc5
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x58]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x401fc5
push 0x4122c2
lea ecx, [ebp - 0x30]
call fcn.00401000
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
push edx
push 0
push 0x30
push ebx
push 0x412468
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x50]
test eax, eax
jns 0x402071
lea ecx, [ebp - 0x30]
call fcn.00401050
lea ecx, [ebp + 0x18]
call fcn.00401050
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00404e64
mov esp, ebp
pop ebp
ret 0x28
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
lea esp, [esp]
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x4021a7
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x64]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x18], 0
je 0x4021a4
mov eax, dword [ebp - 0x64]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x74]
push edx
push 0
push dword [ebp - 0x7c]
push eax
call dword [ecx + 0x10]
mov ebx, dword [ebp - 0x6c]
push 0xc
call fcn.00403fae
add esp, 4
mov esi, eax
test esi, esi
je 0x4020e2
mov dword [esi + 4], 0
mov dword [esi + 8], 1
mov dword [esi], ebx
jmp 0x4020e4
xor esi, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x78], esi
test esi, esi
jne 0x4020f9
push 0x8007000e
call fcn.0040d9f0
cmp dword [esi + 4], 0
mov byte [ebp - 4], 5
jne 0x40210d
push dword [esi]
call fcn.0040da10
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
cmp byte [esi], 0
jne 0x402119
xor eax, eax
jmp 0x402122
push esi
call fcn.00404790
add esp, 4
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00401340
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
add eax, ecx
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
push eax
xor edx, edx
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
call fcn.004017a0
push dword [ebp + 0x28]
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push 0
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.004038e0
cmp eax, 0xffffffff
je 0x40218b
inc edi
cmp edi, 2
jl 0x4021e3
lea ecx, [ebp - 0x48]
call fcn.004019f0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.00401a20
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [eax]
mov dword [ebp - 4], 2
call dword [ecx + 8]
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x30]
call fcn.00401050
lea ecx, [ebp + 0x18]
call fcn.00401050
mov eax, edi
jmp 0x402053
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x34], 8
jb 0x4021fd
push dword [ebp - 0x48]
call fcn.00403ffd
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 3
call fcn.00401a20
jmp 0x402080