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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52519f
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x57a0ec]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push 0x5437cc
push 1
push 0
push 0x54389c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4068cc
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4068a0
mov eax, dword [esi]
jmp 0x4068a2
mov eax, esi
xor ecx, ecx
push ecx
mov word [eax], cx
mov ecx, esi
push 0x551b60
call fcn.00409790
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4068c5
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x406c92
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 0x1c]
push str.ROOTCIMV2
mov dword [ebp - 0x9c], eax
call fcn.00403680
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x4068fe
mov ecx, dword [eax]
jmp 0x406900
xor ecx, ecx
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x9c]
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push edx
call dword [eax + 0xc]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 2
call fcn.00403730
cmp dword [ebp - 0x9c], 0
jge 0x40697a
push 0x551b60
mov ecx, esi
call fcn.00408300
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40695e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4068c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x406c92
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x406941
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x98]
mov edx, str.SELECT__FROM
mov byte [ebp - 4], 4
push ebx
cmp dword [eax + 0x10], 0
jne 0x4069e1
lea ecx, [ebp - 0x94]
call fcn.0040bb00
add esp, 4
lea ecx, [ebp - 0x44]
push eax
call fcn.00408280
lea ecx, [ebp - 0x94]
jmp 0x406a87
lea ecx, [ebp - 0xc0]
call fcn.0040bb00
add esp, 4
push 0x552fa0
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
call fcn.0040bc60
add esp, 0xc
push dword [ebp - 0x98]
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf0]
call fcn.0040bda0
add esp, 4
push 0x552f9c
push eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 7
push eax
call fcn.0040bc60
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
push dword [ebp - 0x20]
mov edx, eax
call fcn.0040bda0
add esp, 4
lea ecx, [ebp - 0x44]
push eax
call fcn.00408280
lea ecx, [ebp - 0x94]
call fcn.00408240
lea ecx, [ebp - 0xd8]
call fcn.00408240
lea ecx, [ebp - 0xf0]
call fcn.00408240
lea ecx, [ebp - 0x74]
call fcn.00408240
lea ecx, [ebp - 0xc0]
call fcn.00408240
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00403680
mov ebx, eax
push ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.004035e0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebx]
test ecx, ecx
je 0x406ad4
mov edx, dword [ecx]
jmp 0x406ad6
xor edx, edx
mov eax, dword [eax]
test eax, eax
je 0x406ae0
mov ecx, dword [eax]
jmp 0x406ae2
xor ecx, ecx
mov ebx, dword [ebp - 0x98]
mov eax, dword [ebx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x98]
push 0
push 0x30
push edx
push ecx
push ebx
call dword [eax + 0x50]
lea ecx, [ebp - 0x20]
mov ebx, eax
call fcn.00403730
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00403730
test ebx, ebx
jns 0x406b45
push 0x551b60
mov ecx, esi
call fcn.00408300
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x406b38
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x44]
call fcn.00408240
jmp 0x40694d
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x24]
push edx
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x2c], 0
je 0x406bfa
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040e1d0
cmp dword [edi + 0x14], 8
jb 0x406b9d
mov edi, dword [edi]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x20]
push 0
push edx
lea edx, [ebp - 0x8c]
mov ecx, dword [eax]
push edx
push 0
push edi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x20]
cmp eax, 8
je 0x406c20
cmp eax, 0x65
je 0x406c20
mov edx, dword [ebp - 0x84]
cmp eax, 0x12
je 0x406bd3
cmp eax, 0x13
jne 0x406bf2
lea ecx, [ebp - 0xc0]
call fcn.00403340
push eax
lea ecx, [ebp - 0x5c]
call fcn.00408280
lea ecx, [ebp - 0xc0]
call fcn.00408240
lea ecx, [ebp - 0x7c]
call fcn.004034d0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x406c3f
mov eax, dword [esi]
jmp 0x406c41
mov edx, dword [ebp - 0x84]
test edx, edx
je 0x406bc9
cmp word [ebp - 0x8c], 1
je 0x406bf2
push edx
lea ecx, [ebp - 0x5c]
call fcn.004081f0
jmp 0x406bf2
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.004099b0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406c62
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x5c]
call fcn.00408240
jmp 0x406b27
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.004927a4
mov esp, ebp
pop ebp
ret