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

Disassembly:
push 0xffffffffffffffff
push 0x411258
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41dda0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
lea eax, [esp + 0x18]
push eax
push 0x412bf8
push 0x17
push edi
push 0x4137e4
mov dword [esp + 0x70], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x403dd7
or esi, 0xffffffff
push esi
push str.rootWMI
call fcn.00403660
mov ebx, eax
add esp, 8
cmp ebx, edi
mov dword [esp + 0x2c], ebx
jne 0x403b1a
push 0x8007000e
call fcn.00403420
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push eax
mov eax, dword [ecx + 0xc]
mov byte [esp + 0x80], 2
call eax
cmp eax, edi
mov eax, dword [esp + 0x14]
jge 0x403b67
cmp eax, edi
mov byte [esp + 0x5c], 1
je 0x403b57
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x5c], esi
jmp 0x403ddf
push edi
push edi
push 3
push 3
push edi
push edi
push esi
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, edi
jge 0x403b81
mov eax, dword [esp + 0x14]
jmp 0x403b46
mov dword [esp + 0x20], edi
push 0x412c50
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 3
call fcn.00403730
push str.SELECT__FROM_WmiMonitorBrightness
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], 4
call fcn.00403730
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push edi
push 0x20
push ebp
push ebx
push eax
mov eax, dword [ecx + 0x50]
mov byte [esp + 0x74], 5
call eax
cmp eax, edi
jl 0x403d9a
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x403d9a
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x20]
push edx
push 1
mov dword [esp + 0x40], edi
mov ecx, dword [eax]
push esi
push eax
mov eax, dword [ecx + 0x10]
mov byte [esp + 0x70], 6
call eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x403d1c
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x44]
push ecx
call esi
mov eax, dword [esp + 0x1c]
push edi
push edi
lea ecx, [esp + 0x4c]
push ecx
push edi
mov word [esp + 0x54], 0x16
mov word [esp + 0x5c], di
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0x412c08
push eax
call edx
cmp eax, edi
jl 0x403c4f
movsx eax, word [esp + 0x4c]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [0x41f0c0], edi
jne 0x403d18
lea edx, [esp + 0x44]
push edx
call esi
mov eax, dword [esp + 0x1c]
push edi
push edi
lea edx, [esp + 0x4c]
push edx
push edi
mov word [esp + 0x54], 0x2000
mov ecx, dword [eax]
push str.Level
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, edi
jl 0x403d0d
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x3c]
push ecx
push 1
push eax
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
cmp eax, edi
jl 0x403d0d
lea edx, [esp + 0x38]
push edx
push 1
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
cmp eax, edi
jl 0x403d0d
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
cmp eax, edi
jl 0x403d0d
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x3c]
xor eax, eax
add ecx, 1
cmp ecx, edi
mov dword [0x41f0c0], ecx
jle 0x403d06
mov edx, dword [esp + 0x40]
jmp 0x403cf0
movzx ebx, byte [eax + edx]
mov dword [eax*4 + 0x41f0c8], ebx
add eax, 1
cmp eax, ecx
jl 0x403cf0
mov ebx, dword [esp + 0x24]
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov byte [esp + 0x5c], 5
je 0x403d2d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebp
call esi
push ebx
call esi
mov eax, dword [esp + 0x20]
cmp eax, edi
mov byte [esp + 0x5c], 2
je 0x403d4e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, edi
mov byte [esp + 0x5c], 1
je 0x403d63
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0x5c], 0xffffffff
je 0x403d82
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebp
call esi
push ebx
call esi
mov eax, dword [esp + 0x20]
cmp eax, edi
mov byte [esp + 0x5c], 2
je 0x403dbb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, edi
mov byte [esp + 0x5c], 1
je 0x403dd0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
push eax
call esi
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x403def
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret