Function at 0x45b750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, dword [esp + 0x90]
xor ebx, ebx
push edi
cmp byte [esi + 0x28], bl
jne 0x45b774
push esi
xor eax, eax
mov byte [esi + 0x28], 1
call fcn.0045c170
cmp dword [esi + 0x30], ebx
je 0x45bbd3
mov eax, str.Select__from_WmiMonitorBrightness
cmp byte [esp + 0x9c], bl
jne 0x45b790
mov eax, str.Select__from_WmiMonitorBrightnessEvent
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, dword [esi + 0x30]
mov ebp, eax
mov dword [esp + 0x44], ebp
mov byte [esp + 0x40], 1
mov byte [esp + 0x20], 1
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x38], 1
mov dword [esp + 0x34], ebx
mov byte [esp + 0x30], 1
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], 1
mov dword [esp + 0x24], ebx
mov edi, 0x4d0dc0
cmp byte [esp + 0x9c], bl
je 0x45b801
lea eax, [esp + 0x10]
push eax
call fcn.004569e0
mov eax, dword [eax]
cmp eax, ebx
je 0x45b7eb
mov eax, dword [eax]
jmp 0x45b7ed
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0x24]
push edx
push ebx
push 0x30
push ebp
push eax
mov eax, dword [ecx + 0x50]
push esi
call eax
jmp 0x45b829
lea ecx, [esp + 0x10]
push ecx
call fcn.004569e0
mov eax, dword [eax]
cmp eax, ebx
je 0x45b815
mov eax, dword [eax]
jmp 0x45b817
xor eax, eax
mov edx, dword [esi]
mov edx, dword [edx + 0x58]
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x30
push ebp
push eax
push esi
call edx
lea edi, [esp + 0x10]
mov esi, eax
call fcn.00456a40
cmp esi, ebx
je 0x45b880
cmp byte [esp + 0x20], bl
je 0x45b84e
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x45b84e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], ebx
cmp ebp, ebx
je 0x45bbd3
push ebp
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0xc
mov eax, dword [esp + 0x94]
cmp byte [eax + 4], bl
jne 0x45bad7
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
push edx
push 1
mov byte [esp + 0x24], 1
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push 0x3e8
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, 0x40004
jne 0x45b8d9
cmp byte [esp + 0x18], bl
je 0x45b8d3
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x45b8d3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
jmp 0x45b880
cmp eax, ebx
jne 0x45baba
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x68]
push edx
push ebx
push str.InstanceName
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x45bb4a
mov ecx, dword [esp + 0x68]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x4c], eax
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x4c], 1
mov dword [esp + 0x14], ebx
call fcn.0043c460
mov ebp, dword [esp + 0x98]
lea edx, [esp + 0x10]
push edx
mov edi, ebp
call fcn.00401250
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x45b964
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x45b95b
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x45b964
cmp eax, ebx
jne 0x45b964
call fcn.0045f5a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x58]
push edx
push ebx
cmp byte [esp + 0xac], bl
je 0x45ba3c
push str.CurrentBrightness
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x45bb6f
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x78]
push edx
push ebx
push str.Level
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x45bb13
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x88]
push edx
push ebx
push str.Levels
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jne 0x45bb41
mov ax, word [esp + 0x50]
cmp ax, 0x11
jne 0x45b9e9
movzx eax, byte [esp + 0x58]
jmp 0x45b9f8
cmp ax, 3
jne 0x45b9f5
mov eax, dword [esp + 0x58]
jmp 0x45b9f8
or eax, 0xffffffff
lea ecx, [esp + 0x70]
lea edi, [ebp + 8]
push ecx
mov dword [ebp + 4], eax
call fcn.0045ad90
mov eax, dword [ebp]
cmp eax, ebx
je 0x45ba14
add eax, 4
jmp 0x45ba16
xor eax, eax
mov esi, dword [esp + 0x94]
push eax
mov ecx, esi
call fcn.0045aa20
cmp eax, ebx
je 0x45ba31
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
jmp 0x45ba81
push ebp
add esi, 0x34
call fcn.0045d180
jmp 0x45ba81
push str.Brightness
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jne 0x45bb6f
mov ax, word [esp + 0x50]
cmp ax, 0x11
jne 0x45ba61
movzx eax, byte [esp + 0x58]
jmp 0x45ba70
cmp ax, 3
jne 0x45ba6d
mov eax, dword [esp + 0x58]
jmp 0x45ba70
or eax, 0xffffffff
mov ecx, dword [esp + 0x94]
push ebp
push ecx
mov dword [ebp + 4], eax
call fcn.0045aab0
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x45ba90
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x80]
push edx
call esi
lea eax, [esp + 0x60]
push eax
call esi
lea ecx, [esp + 0x70]
push ecx
call esi
lea edx, [esp + 0x50]
push edx
call esi
jmp 0x45b8bd
mov eax, dword [esp + 0x98]
call fcn.00401520
lea esi, [esp + 0x18]
test al, al
jne 0x45bba1
call fcn.0045d220
lea esi, [esp + 0x28]
call fcn.0045d220
lea esi, [esp + 0x30]
call fcn.0045d220
lea esi, [esp + 0x38]
call fcn.0045d220
lea esi, [esp + 0x20]
call fcn.0045d200
lea ecx, [esp + 0x40]
call fcn.00401540
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0xc
lea ecx, [esp + 0x48]
call fcn.00401540
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x80]
push edx
call esi
lea eax, [esp + 0x60]
push eax
call esi
lea ecx, [esp + 0x70]
push ecx
call esi
lea edx, [esp + 0x50]
push edx
jmp 0x45bb9b
lea ecx, [esp + 0x48]
call fcn.00401540
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x80]
push eax
call esi
lea ecx, [esp + 0x60]
push ecx
call esi
lea edx, [esp + 0x70]
push edx
call esi
lea eax, [esp + 0x50]
push eax
jmp 0x45bb9b
lea ecx, [esp + 0x48]
call fcn.00401540
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x80]
push ecx
call esi
lea edx, [esp + 0x60]
push edx
call esi
lea eax, [esp + 0x70]
push eax
call esi
lea ecx, [esp + 0x50]
push ecx
call esi
lea esi, [esp + 0x18]
call fcn.0045d220
lea esi, [esp + 0x28]
call fcn.0045d220
lea esi, [esp + 0x30]
call fcn.0045d220
lea esi, [esp + 0x38]
call fcn.0045d220
lea esi, [esp + 0x20]
call fcn.0045d200
lea ecx, [esp + 0x40]
call fcn.00401540
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret 0xc