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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cf00
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x412024]
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 eax, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x5c], eax
call fcn.004014d0
mov ecx, eax
test ecx, ecx
je 0x4059b8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push 2
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
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]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x40e428
push 1
push 0
push 0x40e418
call dword [sym.imp.ole32.dll_CoCreateInstance]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
call fcn.00401790
mov byte [ebp - 4], 1
mov edx, dword [eax]
test edx, edx
je 0x4055f6
mov edx, dword [edx]
jmp 0x4055f8
xor edx, edx
mov eax, dword [ebp - 0x24]
lea edi, [ebp - 0x1c]
push edi
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], 0
or ebx, 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x405663
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x405663
test edi, edi
je 0x405663
mov eax, dword [edi]
test eax, eax
je 0x405641
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x405658
push eax
call fcn.0040be09
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0040bdfb
add esp, 8
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
push str.SELECT__FROM_WmiMonitorConnectionParams
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], 0
call fcn.004016f0
mov edi, eax
push 0x40e7b4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004016f0
mov byte [ebp - 4], 3
mov edi, dword [edi]
test edi, edi
je 0x4056af
mov edi, dword [edi]
jmp 0x4056b1
xor edi, edi
mov eax, dword [eax]
test eax, eax
je 0x4056bb
mov edx, dword [eax]
jmp 0x4056bd
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
push 0
push 0x30
push edi
push edx
push eax
call dword [ecx + 0x50]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x405727
mov ecx, ebx
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x405720
test edi, edi
je 0x405720
mov eax, dword [edi]
test eax, eax
je 0x4056fe
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x405715
push eax
call fcn.0040be09
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0040bdfb
add esp, 8
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x405775
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x405775
test edi, edi
je 0x405775
mov eax, dword [edi]
test eax, eax
je 0x405753
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40576a
push eax
call fcn.0040be09
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0040bdfb
add esp, 8
cmp dword [ebp - 0x2c], 0
jge 0x40578c
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
jmp 0x405855
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x405840
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x14], 0
je 0x40583d
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x48]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.InstanceName
push eax
call dword [ecx + 0x10]
mov ebx, dword [ebp - 0x40]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x58]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.VideoOutputTechnology
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x50]
cmp eax, 0x80000000
je 0x40580c
cmp eax, 0xb
jne 0x40581f
lea eax, [ebp - 0x2c]
push eax
push 0x40ea88
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x405890
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x4057a4
or ebx, 0xffffffff
mov eax, dword [ebp - 0x1c]
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 eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esi - 0x10]
add esi, 0xfffffff0
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x5c], eax
jl 0x40594e
cmp ecx, dword [esi]
jne 0x40594e
mov edi, esi
lock inc dword [eax]
jmp 0x405977
lea eax, [ebp - 0x30]
push eax
push 0x40ea88
push dword [ebp - 0x2c]
call edi
lea eax, [ebp - 0x34]
push eax
push 0x40ea88
push dword [ebp - 0x30]
call edi
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x4058b9
xor ecx, ecx
jmp 0x4058cf
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4058c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.00404e20
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
mov ecx, eax
jl 0x4058fc
cmp ecx, dword [esi]
jne 0x4058fc
mov edi, esi
lock inc dword [ebx]
jmp 0x405929
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x4059c2
mov eax, dword [esi + 4]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
lea eax, [esi + 0x10]
mov edx, dword [esi + 4]
inc edx
push edx
push eax
call fcn.00405060
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x60]
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40599a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x40599a
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x4059c7
mov eax, dword [esi + 4]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
lea eax, [esi + 0x10]
mov edx, dword [esi + 4]
inc edx
push edx
push eax
call fcn.00405060
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x60]
mov dword [edi], eax
mov eax, dword [ebp - 0x5c]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40599a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0040bb4a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401220
call fcn.00405050
call fcn.00405050
int3