Function at 0x45b370
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 0x45b394
push esi
xor eax, eax
mov byte [esi + 0x28], 1
call fcn.0045bd40
cmp dword [esi + 0x30], ebx
je 0x45b7f3
mov eax, str.Select__from_WmiMonitorBrightness
cmp byte [esp + 0x9c], bl
jne 0x45b3b0
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 dword [esp + 0x24], ebx
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 edi, 0x4d0d90
cmp byte [esp + 0x9c], bl
je 0x45b421
lea eax, [esp + 0x10]
push eax
call fcn.00456680
mov eax, dword [eax]
cmp eax, ebx
je 0x45b40b
mov eax, dword [eax]
jmp 0x45b40d
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 0x45b449
lea ecx, [esp + 0x10]
push ecx
call fcn.00456680
mov eax, dword [eax]
cmp eax, ebx
je 0x45b435
mov eax, dword [eax]
jmp 0x45b437
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.004566e0
cmp esi, ebx
je 0x45b4a0
cmp byte [esp + 0x20], bl
je 0x45b46e
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x45b46e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], ebx
cmp ebp, ebx
je 0x45b7f3
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 0x45b6f7
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
push edx
push 1
mov dword [esp + 0x28], ebx
mov byte [esp + 0x24], 1
mov ecx, dword [eax]
push 0x3e8
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, 0x40004
jne 0x45b4f9
cmp byte [esp + 0x18], bl
je 0x45b4f3
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x45b4f3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
jmp 0x45b4a0
cmp eax, ebx
jne 0x45b6da
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 0x45b76a
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.0043c160
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 0x45b584
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x45b57b
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x45b584
cmp eax, ebx
jne 0x45b584
call fcn.0045f130
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 0x45b65c
push str.CurrentBrightness
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x45b78f
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 0x45b733
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 0x45b761
mov ax, word [esp + 0x50]
cmp ax, 0x11
jne 0x45b609
movzx eax, byte [esp + 0x58]
jmp 0x45b618
cmp ax, 3
jne 0x45b615
mov eax, dword [esp + 0x58]
jmp 0x45b618
or eax, 0xffffffff
lea ecx, [esp + 0x70]
lea edi, [ebp + 8]
push ecx
mov dword [ebp + 4], eax
call fcn.0045a9c0
mov eax, dword [ebp]
cmp eax, ebx
je 0x45b634
add eax, 4
jmp 0x45b636
xor eax, eax
mov esi, dword [esp + 0x94]
push eax
mov ecx, esi
call fcn.0045a650
cmp eax, ebx
je 0x45b651
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
jmp 0x45b6a1
push ebp
add esi, 0x34
call fcn.0045cd00
jmp 0x45b6a1
push str.Brightness
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jne 0x45b78f
mov ax, word [esp + 0x50]
cmp ax, 0x11
jne 0x45b681
movzx eax, byte [esp + 0x58]
jmp 0x45b690
cmp ax, 3
jne 0x45b68d
mov eax, dword [esp + 0x58]
jmp 0x45b690
or eax, 0xffffffff
mov ecx, dword [esp + 0x94]
push ebp
push ecx
mov dword [ebp + 4], eax
call fcn.0045a6e0
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x45b6b0
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 0x45b4dd
mov eax, dword [esp + 0x98]
call fcn.00401520
lea esi, [esp + 0x18]
test al, al
jne 0x45b7c1
call fcn.0045cda0
lea esi, [esp + 0x28]
call fcn.0045cda0
lea esi, [esp + 0x30]
call fcn.0045cda0
lea esi, [esp + 0x38]
call fcn.0045cda0
lea esi, [esp + 0x20]
call fcn.0045cd80
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 0x45b7bb
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 0x45b7bb
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.0045cda0
lea esi, [esp + 0x28]
call fcn.0045cda0
lea esi, [esp + 0x30]
call fcn.0045cda0
lea esi, [esp + 0x38]
call fcn.0045cda0
lea esi, [esp + 0x20]
call fcn.0045cd80
lea ecx, [esp + 0x40]
call fcn.00401540
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret 0xc